/* style.css */
/* استایل اصلی سایت */

/* تنظیمات عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary { background-color: var(--secondary-color); }
.btn-secondary { background-color: var(--primary-color); }
.btn-success { background-color: var(--success-color); }
.btn-danger { background-color: var(--danger-color); }

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* هدر */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-item.active .nav-link {
    color: var(--secondary-color);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.cart-icon {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ناوبری آدرس‌دهی */
.breadcrumb {
    background-color: var(--light-color);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--secondary-color);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item span {
    color: var(--text-light);
}

/* پیام‌ها */
.message-container {
    margin-top: 15px;
}

.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

/* اسلایدر */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.slider-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    top: 50%;
    right: 50px; /* فاصله از راست در دسکتاپ */
    transform: translateY(-50%); /* عمودی وسط */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 450px; /* عرض محدود برای خوانایی */
    text-align: right; /* متن راست‌چین */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

.slider-description {
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.95;
    line-height: 1.5;
}

.slider-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-weight: 500;
}

.slider-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    gap: 6px;
    margin: 0 10px;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ========== رسپانسیو اسلایدر ========== */

/* تبلت */
@media (max-width: 992px) {
    .slider {
        height: 350px;
        margin-bottom: 30px;
    }
    
    .slider-content {
        right: 30px; /* فاصله کمتر از راست در تبلت */
        padding: 20px;
        max-width: 350px;
    }
    
    .slider-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .slider-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .slider-btn {
        padding: 9px 22px;
        font-size: 13px;
    }
}

/* موبایل متوسط */
@media (max-width: 768px) {
    .slider {
        height: 300px;
        border-radius: 10px;
        margin-bottom: 25px;
    }
    
    .slider-content {
        right: 20px; /* فاصله کمتر از راست در موبایل */
        padding: 15px;
        max-width: 280px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slider-title {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .slider-description {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* حداکثر 3 خط */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slider-btn {
        padding: 8px 20px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .slider-controls {
        bottom: 15px;
    }
    
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .slider-indicator {
        width: 8px;
        height: 8px;
    }
    
    .slider-indicators {
        gap: 5px;
    }
}

/* موبایل کوچک */
@media (max-width: 576px) {
    .slider {
        height: 250px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .slider-content {
        right: 15px; /* فاصله کمتر از راست در موبایل کوچک */
        padding: 12px;
        max-width: 220px;
    }
    
    .slider-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .slider-description {
        font-size: 11px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2; /* در موبایل کوچک 2 خط */
    }
    
    .slider-btn {
        padding: 7px 16px;
        font-size: 11px;
        border-radius: 18px;
    }
    
    .slider-controls {
        bottom: 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .slider-indicator {
        width: 6px;
        height: 6px;
    }
    
    .slider-indicators {
        gap: 4px;
    }
}

/* موبایل بسیار کوچک */
@media (max-width: 360px) {
    .slider {
        height: 220px;
    }
    
    .slider-content {
        right: 10px; /* حداقل فاصله از راست */
        padding: 10px;
        max-width: 180px;
    }
    
    .slider-title {
        font-size: 15px;
    }
    
    .slider-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    
    .slider-btn {
        padding: 6px 14px;
        font-size: 10px;
    }
    
    .slider-controls {
        bottom: 8px;
    }
    
    .slider-prev,
    .slider-next {
        width: 26px;
        height: 26px;
    }
}

/* برای حالت لنداسکیپ موبایل */
@media (max-width: 768px) and (orientation: landscape) {
    .slider {
        height: 250px;
    }
    
    .slider-content {
        right: 25px;
        max-width: 300px;
    }
    
    .slider-description {
        -webkit-line-clamp: 2;
    }
}

/* بخش‌های صفحه اصلی */
.section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* دکمه مشاهده بیشتر */
.more-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* بخش درباره ما */
.about-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* سبد خرید */
.cart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    background-color: var(--light-color);
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--light-color);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}

.remove-btn {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

/* فرم‌ها */
.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* صفحه تأیید سفارش */
.order-confirmation {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.confirmation-code {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
    direction: ltr;
}

.order-details {
    text-align: right;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.order-details h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.order-details ul {
    text-align: right;
}

.order-details li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-details li:last-child {
    border-bottom: none;
}

/* فوتر */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-right: 5px;
}

.contact-info li,
.founders-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info i,
.founders-info i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.design-credit {
    font-size: 13px;
    opacity: 0.6;
}

/* استایل‌های پیگیری */
.track-form-container {
    max-width: 500px;
    margin: 0 auto 50px;
}

.search-form .input-with-icon {
    position: relative;
}

.search-form .input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-form .input-with-icon input {
    padding-right: 45px;
}

.track-results {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.request-info {
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results-icon {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.service-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.service-details h3 {
    color: #333;
    margin-bottom: 10px;
}

/* جزئیات محصول - استایل‌های اختصاصی */
.product-detail {
    padding: 20px 0;
}

.product-image-container {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: white;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.out-of-stock-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

/* Override برای صفحه جزئیات محصول */
.product-detail .product-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-detail .product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-start;
}

.product-detail .product-meta i {
    margin-left: 5px;
}

.product-detail .product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-description-short {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.add-to-cart-form {
    margin-bottom: 25px;
}

/* Override برای کنترل‌های مقدار در جزئیات محصول */
.product-detail .quantity-control {
    margin-bottom: 15px;
}

.product-detail .quantity-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

/* Override برای دکمه‌های مقدار در جزئیات محصول */
.product-detail .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Override برای ورودی مقدار در جزئیات محصول */
.product-detail .quantity-input {
    width: 60px;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
}

.add-to-cart-form .btn {
    margin-left: 10px;
    margin-bottom: 10px;
}

.wishlist-btn {
    color: #6c757d;
}

.wishlist-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.out-of-stock-message {
    margin: 25px 0;
}

.product-description-full {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.product-detail .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.product-detail .section-title::after {
    display: none; /* غیرفعال کردن خط زیر عنوان در جزئیات محصول */
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

.product-specifications {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.specs-table .table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.specs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

/* Override برای grid محصولات مرتبط */
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Override برای کارت محصولات مرتبط */
.related-products .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.related-products .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-products .product-content {
    padding: 15px;
}

.related-products .product-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.related-products .product-title a {
    color: inherit;
    text-decoration: none;
}

.related-products .product-title a:hover {
    color: #3498db;
}

.related-products .product-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.related-products .product-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.related-products .product-meta {
    font-size: 12px;
    margin-bottom: 10px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.related-products .product-actions {
    margin-top: 10px;
}

/* استایل‌های صفحه تأیید خدمات */
.confirmation-icon .fa-clipboard-check {
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail .product-title {
        font-size: 20px;
    }
    
    .product-detail .product-price {
        font-size: 24px;
    }
    
    .add-to-cart-form .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .quantity-input-group {
        max-width: 100%;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .product-detail .product-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
}

/* استایل‌های رسپانسیو برای هدر */
@media (max-width: 992px) {
    .header-content {
        padding: 12px 0;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo img {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block; /* نمایش در موبایل */
        order: 1;
    }
    
    .logo {
        order: 2;
        flex: 1;
        justify-content: center;
        display: flex;
    }
    
    .cart-icon {
        order: 3;
    }
    
    .header-content {
        position: relative;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px; /* ارتفاع هدر */
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        display: block;
        padding-top: 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 15px 20px;
        justify-content: flex-start;
    }
    
    .nav-item.active .nav-link::after {
        display: none; /* غیرفعال کردن خط فعال در موبایل */
    }
    
    .nav-item.active .nav-link {
        background-color: var(--light-color);
        color: var(--secondary-color);
    }
    
    /* Overlay برای پس‌زمینه منو */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .cart-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -3px;
        left: -3px;
    }
}

@media (max-width: 576px) {
    .header-content {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hamburger-btn {
        font-size: 20px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nav-link i {
        font-size: 16px;
        min-width: 24px;
    }
}

/* استایل برای حالت لنداسکیپ در موبایل */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-link {
        padding: 10px 20px;
    }
}





/* در assets/css/style.css اضافه کنید */
/* Splash Screen */
.app-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.app-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.splash-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}