* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== توکن‌های طراحی (پالت رنگ و شعاع گردی) ===== */
:root {
    --primary: #5b3df0;        /* رنگ اصلی برند - بنفش/ایندیگو پرانرژی */
    --primary-dark: #4527c4;   /* حالت hover دکمه‌ها و لینک‌ها */
    --primary-light: #8b74ff;  /* حالت دارک‌مود برای متن/آیکون روی پس‌زمینه تیره */
    --accent: #fbbf24;         /* رنگ تاکیدی - مخصوص شگفت‌انگیزها/فروش فوری */
    --accent-dark: #f59e0b;
    --radius-sm: 8px;          /* دکمه، اینپوت */
    --radius-lg: 16px;         /* کارت، باکس‌های بزرگ */
    --text-dark: #23254e;      /* رنگ متن تیره */
    --text-muted: #8d8d91;     /* رنگ متن ملایم */
    --blue: #2563eb;           /* آبی */
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
}

/* ===== انیمیشن‌های ورود ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
    opacity: 0;
}

/* استایل loading shimmer */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f1f2f4;
    direction: rtl;
    font-size: 14px;
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
}

/* ===== کانتینر اصلی با محدودیت عرض ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER سفید مثل دیجی‌کالا ===== */
.header {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    text-decoration: none;
    flex-shrink: 0;
}

.logo i {
    color: var(--primary);
    font-size: 1.6rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    background: #f0f0f1;
    transition: 0.3s;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    background: #e8e8e9;
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a3a8;
    font-size: 0.9rem;
}

.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.header-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #424750;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.2s;
    padding: 8px;
    border-radius: 8px;
}

.header-icons a:hover {
    background: #f0f0f1;
}

.cart-badge { position: relative; }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-btn { display: none; font-size: 1.3rem; cursor: pointer; }

/* ===== CATEGORY NAV ثابت مثل دیجی‌کالا ===== */
.category-nav {
    background: white;
    border-bottom: 1px solid #e0e0e2;
    position: sticky;
    top: 56px;
    z-index: 999;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.category-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
}

.category-list a {
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: #62666d;
    padding: 12px 16px;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.category-list a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #f5f5f7;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 16px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-text .highlight { color: var(--accent); }

.hero-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
    background: transparent;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-outline:hover {
    background: white;
    color: #1a1a2e;
}

/* ===== المان تصویری هیرو (جایگزین تصویر placeholder قبلی) ===== */
.hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.hero-visual-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(91,61,240,0.35), transparent 70%);
    filter: blur(6px);
}

.hero-visual-main {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 35px auto;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(91,61,240,0.45);
    transform: rotate(-6deg);
    animation: heroFloatMain 4s ease-in-out infinite;
}

.hero-visual-chip {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.15rem;
}

.hero-visual-chip.chip-1 { top: 5px; right: 15px; animation: heroFloatChip 3s ease-in-out infinite; }
.hero-visual-chip.chip-2 { bottom: 15px; left: 5px; animation: heroFloatChip 3.5s ease-in-out infinite reverse; }
.hero-visual-chip.chip-3 { top: 52%; right: -12px; animation: heroFloatChip 2.8s ease-in-out infinite; }

@keyframes heroFloatMain {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-8px); }
}

@keyframes heroFloatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ===== انیمیشن ظاهر شدن بخش‌ها هنگام اسکرول (کل سایت) ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-logo-img {
    border-radius: 28px;
}

@media (max-width: 768px) {
    .hero-visual {
        width: 150px;
        height: 150px;
        margin-top: 10px;
    }
    .hero-visual-main {
        width: 110px;
        height: 110px;
        margin: 25px auto;
    }
    .hero-logo-img {
        border-radius: 12px;
    }
    .hero-visual-chip {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== SECTION STYLING ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #23254e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

.see-all:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}
.filter-bar input,
.filter-bar select {
    padding: 9px 12px;
    border: 1px solid #d5d5da;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    background: white;
    color: #424750;
    transition: 0.2s;
    outline: none;
    min-width: 0;
}
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.filter-bar .fb-price {
    width: 110px;
}
.filter-bar .fb-btn {
    padding: 9px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    white-space: nowrap;
}
.filter-bar .fb-btn:hover {
    background: #1d4ed8;
}
body.dark-mode .filter-bar {
    background: #1a2332 !important;
    border-color: #374151;
}
body.dark-mode .filter-bar input,
body.dark-mode .filter-bar select {
    background: #111827;
    color: #e5e7eb;
    border-color: #4b5563;
}
body.dark-mode .filter-bar input:focus,
body.dark-mode .filter-bar select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
body.dark-mode .filter-bar input::placeholder {
    color: #6b7280;
}

/* ===== PRODUCT GRID محدود شده ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.scroll-wrapper .product-grid {
    cursor: grab;
}

.scroll-wrapper .product-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.scroll-wrapper .product-grid.dragging .product-card {
    pointer-events: none;
}

.product-grid {
    -ms-overflow-style: none;  /* اینترنت اکسپلورر و اج */
    scrollbar-width: none;  /* فایرفاکس */
}

.product-grid::-webkit-scrollbar {
    display: none;  /* کروم، سافاری، اپرا */
}

/* ===== PRODUCT CARD مثل دیجی‌کالا ===== */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card.animate-card {
    animation: scaleIn 0.4s ease forwards;
    opacity: 0;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f8f9;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: 0.3s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.badge-discount {
    background: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-flash {
    background: var(--accent);
    color: #1a1a2e;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.65rem;
    color: #8d8d91;
    margin-bottom: 4px;
}

.product-title {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #23254e;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-code {
    font-size: 0.6rem;
    color: #b0b0b5;
    margin-bottom: 8px;
}

.product-price-section {
    /* margin-top: auto; */ 
    /* اینو حذف کن یا کامنت کن */
}
.current-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #23254e;
}

.price-value.discounted {
    color: #ef4444;
}

.old-price {
    font-size: 0.75rem;
    color: #b0b0b5;
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

.add-to-cart:active {
    transform: scale(0.97);
}

/* ===== FLASH SALE SECTION ===== */
.flash-sale-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #5b61f0 70%, #4a4de0 100%);
    padding: 30px 30px 40px;
    border-radius: 20px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}
.flash-sale-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(251,191,36,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.flash-header-top h2 {
    color: var(--accent);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.flash-header-top h2 .flash-icon {
    display: inline-block;
    animation: flashPulse 1.5s ease-in-out infinite;
}
@keyframes flashPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.flash-header-top p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin: 2px 0 0 0;
}

/* ===== Digital Timer ===== */
.flash-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 14px;
    border: 1px solid rgba(251,191,36,0.2);
}
.flash-timer-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    white-space: nowrap;
}
.flash-timer-digits {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}
.flash-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.flash-timer-block span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 40px;
    height: 42px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid rgba(251,191,36,0.3);
    text-shadow: 0 0 10px rgba(251,191,36,0.3);
}
.flash-timer-unit {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
}
.flash-timer-sep {
    color: rgba(251,191,36,0.5);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: -18px;
}

.flash-product-card {
    border: 2px solid rgba(251, 191, 36, 0.4) !important;
}

.flash-product-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3) !important;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

.empty-state i {
    font-size: 4rem;
    color: #d5d5da;
    margin-bottom: 16px;
}

.empty-state p {
    color: #8d8d91;
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    border-top: 1px solid #e0e0e2;
    padding: 30px 0 15px;
    margin-top: 30px;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer h4 {
    color: #23254e;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer p {
    color: #8d8d91;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #8d8d91;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-links i {
    margin-left: 6px;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-icons i {
    cursor: pointer;
    font-size: 1.2rem;
    color: #8d8d91;
    transition: 0.2s;
}

.social-icons i:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
    font-size: 0.7rem;
    color: #b0b0b5;
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    /* هدر */
    .header-main {
        padding: 8px 0;
        gap: 10px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo i {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 30px;
    }
    
    .search-bar {
        display: none;
    }
    
    .header-icons {
        gap: 8px;
    }
    
    .header-icons a,
    .header-icons .dark-mode-toggle {
        font-size: 0.9rem;
        padding: 6px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* منوی دسته‌بندی افقی */
    .category-nav {
        top: 48px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-list a {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    /* منوی دایره‌ای - یک ردیف تک‌خطی قابل اسکرول، مثل اسلایدر محصولات */
    .category-circle-nav {
        padding: 10px 0;
    }
    
    .category-circle-list {
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .category-circle-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-circle-item {
        min-width: 58px;
    }
    
    .category-circle-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .category-circle-name {
        font-size: 0.6rem;
    }
    
    /* هیرو */
    .hero {
        padding: 16px 0;
        margin-bottom: 12px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 0.7rem;
    }
    
    .btn-primary, .btn-outline {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    /* کارت محصولات - اسلایدر */
    .scroll-wrapper .product-grid .product-card {
        min-width: 150px !important;
        max-width: 150px !important;
    }
    
    /* کارت محصولات - صفحه دسته‌بندی و جستجو (grid) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .product-grid .product-card {
        min-width: auto !important;
        max-width: none !important;
    }
    
    .product-image-wrapper {
        padding-top: 70%;
    }
    
    .product-image-wrapper img {
        padding: 8px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-brand {
        font-size: 0.6rem;
    }
    
    .product-title {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    
    .product-code {
        font-size: 0.55rem;
    }
    
    .price-value {
        font-size: 0.8rem;
    }
    
    .old-price {
        font-size: 0.65rem;
    }
    
    .add-to-cart {
        padding: 6px;
        font-size: 0.65rem;
    }
    
    /* اسلایدر */
    .scroll-btn {
        display: none !important;
    }
    
    .scroll-wrapper {
        padding: 0;
    }
    
    /* عناوین */
    .section-title {
        font-size: 0.9rem;
    }
    
    .see-all {
        font-size: 0.7rem;
    }
    
    /* کاهش padding باکس‌های سفید برای حس فضای کمتر هدررفته روی گوشی */
    .section-white {
        padding: 14px;
    }
    
    /* شگفت‌انگیزها */
    .flash-sale-section {
        padding: 16px;
    }
    .flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .flash-header-top h2 {
        font-size: 1.1rem;
    }
    .flash-header-top p {
        font-size: 0.7rem;
    }
    .flash-timer {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
    .flash-timer-block span:first-child {
        font-size: 1rem;
        min-width: 32px;
        height: 34px;
    }
    .flash-timer-sep {
        font-size: 1rem;
    }
    
    /* محصول تکی */
    .product-detail {
        flex-direction: column;
        padding: 16px;
    }
    
    .product-gallery {
        min-width: auto;
    }
    
    .product-details {
        min-width: auto;
    }
    
    .product-details h1 {
        font-size: 1rem;
    }
    
    .price-box .current {
        font-size: 1.1rem;
    }
    
    .color-option {
        width: 30px;
        height: 30px;
    }
    
    /* سبد خرید */
    .cart-table {
        font-size: 0.7rem;
    }
    
    .cart-table th, 
    .cart-table td {
        padding: 6px 4px;
        font-size: 0.65rem;
    }
    
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }
    
    .quantity-input {
        width: 35px;
        padding: 3px;
        font-size: 0.65rem;
    }
    
    .btn-update {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
    
    .btn-checkout {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    /* صفحه checkout */
    .checkout-container {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .checkout-form,
    .order-summary {
        min-width: auto;
    }
    
    .btn-submit {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    /* صفحه success */
    .success-page {
        padding: 30px 16px;
    }
    
    .success-page i {
        font-size: 3rem;
    }
    
    .success-page h1 {
        font-size: 1.1rem;
    }
    
    /* فوتر */
    .footer {
        padding: 20px 0 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .footer-grid > div {
        min-width: 0;
    }
    
    .footer h4 {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .footer p, 
    .footer-links a,
    .footer-links li {
        font-size: 0.65rem;
        line-height: 1.6;
    }
    
    .footer-links li {
        margin-bottom: 4px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons i {
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.6rem;
        padding-top: 10px;
    }
}

/* ===== گوشی‌های خیلی کوچیک ===== */
@media (max-width: 480px) {
    .scroll-wrapper .product-grid .product-card {
        min-width: 140px !important;
        max-width: 140px !important;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .product-title {
        font-size: 0.65rem;
    }
    
    .price-value {
        font-size: 0.7rem;
    }
    
    .category-circle-item {
        min-width: 50px;
    }
    
    .category-circle-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .category-circle-name {
        font-size: 0.55rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .container {
        padding: 0 8px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== اسکرول‌بار اختصاصی ===== */
.category-list::-webkit-scrollbar {
    height: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
    background: #d5d5da;
    border-radius: 4px;
}

/* ===== BREADCRUMB ===== */
.p-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #81858b;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.p-breadcrumb a,
.p-breadcrumb span {
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0f1;
    color: #424750;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}
.p-breadcrumb a:hover {
    background: #e0e0e2;
    border-color: #c0c2c5;
    color: #2563eb;
}
.p-breadcrumb i {
    font-size: 0.55rem;
    color: #c0c2c5;
}

/* ===== CART / CHECKOUT / PRODUCT PAGE ===== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
}

.cart-table th, .cart-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f1;
}

.cart-table th {
    background: #f8f8f9;
    font-weight: 600;
    font-size: 0.8rem;
    color: #62666d;
}

.quantity-input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    font-family: inherit;
}

.btn-update {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

.btn-remove {
    color: #ef4444;
    text-decoration: none;
    font-size: 1rem;
}

.btn-checkout {
    background: #22c55e;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: 0.2s;
}

.btn-checkout:hover {
    background: #16a34a;
}

.cart-empty {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

.color-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f1;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #62666d;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    animation: fadeInUp 0.5s ease forwards;
}

.checkout-form {
    flex: 1;
    min-width: 280px;
}

.order-summary {
    flex: 1;
    min-width: 280px;
    background: #f8f8f9;
    border-radius: var(--radius-lg);
    padding: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #424750;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 61, 240, 0.1);
}

.btn-submit {
    background: #22c55e;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
    font-family: inherit;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #16a34a;
}

.error {
    color: #ef4444;
    margin: 10px 0;
    font-size: 0.85rem;
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    animation: fadeInUp 0.5s ease forwards;
}

.product-detail-image {
    flex: 1;
    min-width: 280px;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    background: #f8f8f9;
}

.product-detail-info {
    flex: 1;
    min-width: 280px;
}

.success-page {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 50px;
    animation: scaleIn 0.5s ease forwards;
}

.success-page i {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 16px;
}

.success-page h1 {
    margin-bottom: 12px;
    color: #23254e;
}

/* ===== SECTION WRAPPER با پس‌زمینه سفید ===== */
.section-white {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e2;
    animation: fadeInUp 0.5s ease forwards;
}
/* ===== انتخاب رنگ توی صفحه محصول ===== */
.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.2s;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.color-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 61, 240, 0.2);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== انتخاب رنگ توی کارت محصول ===== */
.card-color-dot {
    transition: all 0.2s ease;
}

.card-color-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(91, 61, 240, 0.4);
}

.card-color-dot.selected {
    border-color: var(--primary) !important;
    box-shadow: 0 0 6px rgba(91, 61, 240, 0.5);
    transform: scale(1.3);
}
/* ===== کانتینر اسلایدر ===== */
.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 40px;
}

/* ===== دکمه‌های اسکرول ===== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #e0e0e2;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.2rem;
    color: #424750;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.scroll-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(91, 61, 240, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-right {
    left: 0;
}

.scroll-btn-left {
    right: 0;
}

/* مخفی کردن اسکرولبار */
.product-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

/* موبایل */
@media (max-width: 768px) {
    .scroll-container {
        padding: 0;
    }
    .scroll-btn {
        display: none;
    }
}
/* ===== چسبوندن دکمه افزودن به سبد به پایین کارت ===== */
.product-card form {
    margin-top: auto;
    padding: 0 12px 12px 12px;
}

.product-card .add-to-cart {
    width: 100%;
}
/* ===== اسلایدر افقی (مخصوص صفحه اصلی) ===== */
.product-slider {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slider .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}
/* ===== اسلایدر افقی - برای هر اسلایدری که داخل scroll-wrapper باشه (نه فقط صفحه اصلی) ===== */
.scroll-wrapper .product-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-wrapper .product-grid::-webkit-scrollbar {
    display: none;
}

.scroll-wrapper .product-grid .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}
/* ===== منوی دایره‌ای دسته‌بندی‌ها ===== */
.category-circle-nav {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 16px;
}

.category-circle-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 5px 10px;
}

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #424750;
    transition: all 0.3s;
    min-width: 75px;
}

.category-circle-item:hover {
    transform: translateY(-5px);
}

.category-circle-item:hover .category-circle-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(91, 61, 240, 0.3);
}

.category-circle-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.category-circle-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    color: #424750;
}

/* ===== دکمه دارک مود ===== */
.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #424750;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.dark-mode-toggle:hover {
    background: #f0f0f1;
}

body.dark-mode .dark-mode-toggle {
    color: #fbbf24;
}

body.dark-mode .dark-mode-toggle:hover {
    background: #374151;
}

/* ===== دارک مود ===== */
body.dark-mode {
    background: #111827;
    color: #d1d5db;
}

body.dark-mode .header,
body.dark-mode .category-nav,
body.dark-mode .category-circle-nav,
body.dark-mode .section-white,
body.dark-mode .product-card,
body.dark-mode .footer {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .section-white {
    border-color: #374151;
}

body.dark-mode .product-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

body.dark-mode .product-title,
body.dark-mode .section-title,
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4 {
    color: #f9fafb !important;
}

body.dark-mode .section-title i {
    color: var(--primary-light);
}

body.dark-mode .product-brand {
    color: #9ca3af;
}

body.dark-mode .product-code {
    color: #6b7280;
}

body.dark-mode .price-value {
    color: #f9fafb;
}

body.dark-mode .price-value.discounted {
    color: #f87171;
}

body.dark-mode .old-price {
    color: #6b7280;
}

body.dark-mode .see-all {
    color: var(--primary-light);
}

body.dark-mode .search-bar input {
    background: #374151;
    color: #f9fafb;
}

body.dark-mode .search-bar input::placeholder {
    color: #9ca3af;
}

body.dark-mode .category-list a {
    color: #d1d5db;
}

body.dark-mode .category-list a:hover {
    background: #374151;
    color: var(--primary-light);
}

body.dark-mode .category-circle-icon {
    background: #374151;
    color: var(--primary-light);
}

body.dark-mode .category-circle-name {
    color: #d1d5db;
}

body.dark-mode .add-to-cart {
    background: var(--primary);
}

body.dark-mode .add-to-cart:hover {
    background: var(--primary-dark);
}

.add-to-cart.out-of-stock,
.add-to-cart:disabled {
    background: #d5d5da;
    color: #8d8d91;
    cursor: not-allowed;
}
body.dark-mode .add-to-cart.out-of-stock,
body.dark-mode .add-to-cart:disabled {
    background: #374151;
    color: #6b7280;
}

body.dark-mode .flash-sale-section {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 30%, #111827 70%, #0f3460 100%);
}
body.dark-mode .flash-timer-block span:first-child {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(251,191,36,0.25);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #111827 100%);
}

body.dark-mode .footer p,
body.dark-mode .footer-links a,
body.dark-mode .copyright {
    color: #9ca3af;
}

body.dark-mode .footer-links a:hover {
    color: var(--primary-light);
}

body.dark-mode .footer-links i {
    color: var(--primary-light);
}

body.dark-mode .social-icons i {
    color: #9ca3af;
}

body.dark-mode .social-icons i:hover {
    color: var(--primary-light);
}

body.dark-mode .scroll-btn {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

body.dark-mode .scroll-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .cart-table th {
    background: #374151;
    color: #d1d5db;
}

body.dark-mode .cart-table td {
    border-color: #374151;
    color: #d1d5db;
}

/* ===== Breadcrumb dark mode ===== */
body.dark-mode .p-breadcrumb a,
body.dark-mode .p-breadcrumb span {
    background: #1e293b;
    color: #d1d5db;
    border-color: #374151;
}
body.dark-mode .p-breadcrumb a:hover {
    background: #334155;
    border-color: #60a5fa;
    color: #60a5fa;
}
body.dark-mode .p-breadcrumb i {
    color: #4b5563;
}

body.dark-mode .empty-state {
    background: #1f2937;
}
body.dark-mode .empty-state i {
    color: #4b5563;
}
body.dark-mode .empty-state p,
body.dark-mode .empty-state div {
    color: #9ca3af;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .quantity-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .form-group label {
    color: #d1d5db;
}

body.dark-mode .price-box,
body.dark-mode .order-summary,
body.dark-mode .description-box,
body.dark-mode .checkout-container,
body.dark-mode .product-detail {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .description-box p {
    color: #d1d5db;
}

body.dark-mode .btn-checkout {
    background: #22c55e;
}

body.dark-mode .btn-update {
    background: var(--primary);
}

body.dark-mode .color-badge {
    background: #374151;
    color: #d1d5db;
}

body.dark-mode .color-option {
    box-shadow: 0 1px 3px rgba(255,255,255,0.1);
}

body.dark-mode .info-row .label {
    color: #9ca3af;
}

body.dark-mode .info-row .value {
    color: #d1d5db;
}

body.dark-mode .header-icons a {
    color: #d1d5db;
}

body.dark-mode .header-icons a:hover {
    background: #374151;
}

body.dark-mode .logo {
    color: #f9fafb;
}

body.dark-mode .logo-img {
    filter: brightness(0.9);
}
.header-icons .user-greeting {
    font-size: 0.7rem;
    color: #424750;
    margin-left: 8px;
}
/* ===== استایل صفحات ورود، ثبت‌نام، پیگیری و پروفایل ===== */
.auth-container,
.tracking-form,
.tracking-result,
.profile-header,
.orders-section,
.order-card {
    background: white;
    color: #333;
}

.auth-container h2,
.tracking-form h2,
.tracking-result h3,
.profile-header h2,
.orders-section h3 {
    color: #23254e;
}

.auth-container .form-group label {
    color: #424750;
}

/* تنظیمات دارک مود برای این صفحات */
body.dark-mode .auth-container,
body.dark-mode .tracking-form,
body.dark-mode .tracking-result,
body.dark-mode .profile-header,
body.dark-mode .orders-section,
body.dark-mode .order-card {
    background: #1f2937;
    color: #d1d5db;
    border-color: #374151;
}

body.dark-mode .auth-container h2,
body.dark-mode .tracking-form h2,
body.dark-mode .tracking-result h3,
body.dark-mode .profile-header h2,
body.dark-mode .orders-section h3 {
    color: #f9fafb;
}

body.dark-mode .auth-container .form-group label {
    color: #d1d5db;
}

body.dark-mode .auth-container input,
body.dark-mode .tracking-form input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .auth-link,
body.dark-mode .auth-link a,
body.dark-mode .tracking-note,
body.dark-mode .tracking-note a {
    color: #9ca3af;
}

body.dark-mode .auth-link a:hover {
    color: var(--primary-light);
}

body.dark-mode .error {
    background: #7f1d1d;
    color: #fca5a5;
}

body.dark-mode .success {
    background: #064e3b;
    color: #6ee7b7;
}

body.dark-mode .order-card {
    border-color: #374151;
}

body.dark-mode .status-pending {
    background: #78350f;
    color: #fcd34d;
}

body.dark-mode .tracking-code {
    background: #374151;
}
/* ===== موبایل: صفحات کاربری ===== */
@media (max-width: 768px) {
    
    /* پروفایل کاربر */
    .profile-container {
        padding: 0 10px;
    }
       /* ===== رفع مشکل اسلایدرها در موبایل ===== */
    .scroll-wrapper .product-grid {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding-bottom: 10px !important;
        scroll-behavior: smooth !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
    }
    
    .scroll-wrapper .product-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .scroll-wrapper .product-grid .product-card {
        min-width: 160px !important;
        max-width: 160px !important;
        flex-shrink: 0 !important;
    }
}
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .profile-header .user-info h2 {
        font-size: 1rem;
    }
    
    .profile-header .user-info p {
        font-size: 0.8rem;
    }
    
    .profile-header .btn-primary,
    .profile-header .btn-logout {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .order-card-header > div:last-child {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .order-item {
        font-size: 0.75rem;
    }
    
    .tracking-code {
        font-size: 0.7rem;
    }
    
    /* صفحات ورود و ثبت‌نام */
    .auth-container {
        margin: 1rem 10px;
        padding: 1.5rem 1rem;
    }
    
    .auth-container h2 {
        font-size: 1.1rem;
    }
    
    .auth-container input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .auth-container .btn-submit {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* صفحه پیگیری */
    .tracking-container {
        padding: 0 10px;
    }
    
    .tracking-form {
        padding: 1.5rem 1rem;
    }
    
    .tracking-form h2 {
        font-size: 1rem;
    }
    
    .tracking-form input {
        width: 100% !important;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .tracking-form button {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .tracking-result {
        padding: 1.5rem 1rem;
    }
    
    .order-info {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    /* چک‌اوت */
    .checkout-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .checkout-form h3,
    .order-summary h3 {
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .btn-submit {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* ساکسس */
    .success-page {
        padding: 2rem 1rem;
    }
    
    .success-page i {
        font-size: 3.5rem;
    }
    
    .success-page h1 {
        font-size: 1rem;
    }
    
    .tracking-box {
        padding: 1rem;
    }
    
    .tracking-box .tracking-code {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    /* وضعیت سفارش‌ها */
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}
/* ===== منوی همبرگری حرفه‌ای ===== */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s;
    color: #424750;
}

.mobile-menu-btn:hover {
    background: #f0f0f1;
}

.mobile-menu {
    display: none;
    background: white;
    padding: 0;
    border-top: 1px solid #e0e0e2;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-menu.open {
    display: block;
    max-height: 500px;
    padding: 10px 0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #424750;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    border-right: 3px solid transparent;
}

.mobile-menu a:hover {
    background: #f5f5f7;
    border-right-color: var(--primary, #5b3df0);
    color: var(--primary, #5b3df0);
}

.mobile-menu a i {
    width: 20px;
    text-align: center;
    color: #8d8d91;
    font-size: 1rem;
}

.mobile-menu a:hover i {
    color: var(--primary, #5b3df0);
}

.mobile-menu .menu-divider {
    height: 1px;
    background: #e0e0e2;
    margin: 4px 16px;
}

/* ===== دارک مود منو ===== */
body.dark-mode .mobile-menu {
    background: #1f2937;
    border-top-color: #374151;
}

body.dark-mode .mobile-menu a {
    color: #d1d5db;
}

body.dark-mode .mobile-menu a:hover {
    background: #374151;
    border-right-color: var(--primary-light, #8b74ff);
    color: var(--primary-light, #8b74ff);
}

body.dark-mode .mobile-menu a i {
    color: #9ca3af;
}

body.dark-mode .mobile-menu a:hover i {
    color: var(--primary-light, #8b74ff);
}

body.dark-mode .mobile-menu .menu-divider {
    background: #374151;
}

/* ===== نمایش در موبایل ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.open {
        display: block;
    }
}
/* =========================================================
   رفع دارک مود برای صفحات جدید (FAQ، گارانتی، بازگشت کالا)
   ========================================================= */

body.dark-mode .faq-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .faq-question {
    color: #f9fafb !important;
}

body.dark-mode .faq-answer p {
    color: #d1d5db !important;
}

body.dark-mode .faq-cta {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .faq-cta p {
    color: #d1d5db !important;
}

/* ===== صفحات سیاست‌ها (گارانتی، بازگشت کالا) ===== */
body.dark-mode .policy-section {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .policy-section h2 {
    color: #f9fafb !important;
}

body.dark-mode .policy-section p,
body.dark-mode .policy-section li {
    color: #d1d5db !important;
}

body.dark-mode .policy-card {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .policy-card h3 {
    color: #f9fafb !important;
}

body.dark-mode .policy-card p {
    color: #9ca3af !important;
}

body.dark-mode .policy-card i {
    color: #8b74ff !important;
}

body.dark-mode .note-box {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .note-box p {
    color: #fcd34d !important;
}

/* ===== صفحه پیگیری سفارش ===== */
body.dark-mode .tracking-form {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .tracking-form h2 {
    color: #f9fafb !important;
}

body.dark-mode .tracking-form input {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

body.dark-mode .tracking-form input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .tracking-result {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .tracking-result h3,
body.dark-mode .tracking-result h4 {
    color: #f9fafb !important;
}

body.dark-mode .tracking-result .order-info div {
    color: #d1d5db !important;
}

body.dark-mode .tracking-result .order-info strong {
    color: #f9fafb !important;
}

/* ===== صفحات ورود، ثبت‌نام ===== */
body.dark-mode .auth-container {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .auth-container h2 {
    color: #f9fafb !important;
}

body.dark-mode .auth-container label {
    color: #d1d5db !important;
}

body.dark-mode .auth-container input {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

body.dark-mode .auth-container input::placeholder {
    color: #9ca3af !important;
}

/* ===== صفحه پروفایل ===== */
body.dark-mode .profile-header {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .profile-header .user-info h2 {
    color: #f9fafb !important;
}

body.dark-mode .profile-header .user-info p {
    color: #d1d5db !important;
}

body.dark-mode .orders-section {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .orders-section h3 {
    color: #f9fafb !important;
}

body.dark-mode .order-card {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .order-card-header strong {
    color: #f9fafb !important;
}

body.dark-mode .order-item span {
    color: #d1d5db !important;
}

body.dark-mode .no-order p {
    color: #9ca3af !important;
}

/* ===== صفحه درباره ما ===== */
body.dark-mode .about-hero {
    background: linear-gradient(135deg, #111827 0%, #1a1a2e 100%) !important;
}

body.dark-mode .about-section {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .about-section h2 {
    color: #f9fafb !important;
}

body.dark-mode .about-section p,
body.dark-mode .about-section li {
    color: #d1d5db !important;
}

body.dark-mode .contact-box {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .contact-box p {
    color: #d1d5db !important;
}

/* ===== صفحه سوالات متداول - هدر ===== */
body.dark-mode .faq-hero {
    background: linear-gradient(135deg, #111827 0%, #1a1a2e 100%) !important;
}

/* ===== صفحه سیاست‌ها - هدر ===== */
body.dark-mode .policy-hero {
    background: linear-gradient(135deg, #111827 0%, #1a1a2e 100%) !important;
}

/* ===== صفحه درباره ما - هدر ===== */
body.dark-mode .about-hero {
    background: linear-gradient(135deg, #111827 0%, #1a1a2e 100%) !important;
}