/* ═══════════════════════════════════════════════
   فروشگاه هایپر آرین - استایل اختصاصی
   سازگار با دارک مود و لایت مود
   ═══════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   متغیرهای اختصاصی فروشگاه (بدون تداخل با سایت)
   ─────────────────────────────────────────────── */
:root {
    /* رنگ‌های اختصاصی فروشگاه - با پیشوند shop */
    --shop-success: #10b981;
    --shop-success-bg: #ecfdf5;
    --shop-warning: #f59e0b;
    --shop-warning-bg: #fef3c7;
    --shop-danger: #ef4444;
    --shop-info: #3b82f6;
    
    /* بج‌ها و حالت‌های مختلف */
    --shop-text-muted: #9ca3af;
    --shop-border-light: rgba(0, 0, 0, 0.04);
    --shop-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shop-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shop-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shop-shadow-red: 0 4px 20px rgba(230, 0, 0, 0.25);
    --shop-radius-sm: 8px;
    --shop-radius-md: 12px;
    --shop-radius-lg: 16px;
    --shop-radius-xl: 20px;
    --shop-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* رنگ‌های صفحه فروشگاه - لایت مود */
    --shop-bg: var(--bg-color);
    --shop-bg-secondary: rgba(0, 0, 0, 0.02);
    --shop-bg-card: var(--surface-color);
    --shop-brand-light: rgba(230, 0, 0, 0.08);
    --shop-overlay: rgba(255, 255, 255, 0.85);
    --shop-toolbar-bg: var(--surface-color);
}

/* دارک مود */
[data-theme="dark"] {
    --shop-text-muted: #6b7280;
    --shop-border-light: rgba(255, 255, 255, 0.05);
    --shop-bg-secondary: rgba(255, 255, 255, 0.03);
    --shop-brand-light: rgba(230, 0, 0, 0.15);
    --shop-overlay: rgba(15, 16, 20, 0.85);
    --shop-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shop-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shop-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════
   بنر اسلایدر
   ═══════════════════════════════════════════════ */
.shop-banner-section {
    padding: 0 0 30px;
}
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--shop-radius-lg);
}
.banner-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.banner-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--shop-radius-lg);
    display: block;
}
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shop-shadow-md);
    transition: var(--shop-transition);
    z-index: 2;
    color: var(--text-primary);
}
[data-theme="dark"] .banner-nav {
    background: rgba(26, 28, 35, 0.95);
    color: var(--text-primary);
}
.banner-nav:hover {
    background: var(--brand-red);
    color: #fff;
}
.banner-prev {
    right: 15px;
}
.banner-next {
    left: 15px;
}
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--shop-transition);
}
.banner-dot.active {
    background: var(--brand-red);
    width: 28px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════
   دسته‌بندی اسکرول افقی
   ═══════════════════════════════════════════════ */
.shop-categories-section {
    padding: 10px 0 30px;
}
.categories-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar {
    display: none;
}
.cat-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
    z-index: 2;
}
.cat-scroll-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    padding: 15px 12px;
    border-radius: var(--shop-radius-md);
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: var(--shop-transition);
    cursor: pointer;
    text-align: center;
}
.category-item:hover {
    border-color: var(--brand-red);
    background: var(--shop-brand-light);
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-md);
}
.category-item.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-red);
}
.category-item.active span,
.category-item.active .cat-count {
    color: #fff;
}
.category-item.active .category-icon img,
.category-item.active .category-icon svg {
    filter: brightness(10);
}
.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--shop-bg-secondary);
    overflow: hidden;
}
.category-item.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}
.category-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.category-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.cat-count {
    font-size: 0.7rem;
    color: var(--shop-text-muted);
}

/* ═══════════════════════════════════════════════
   ویژه‌های فروشگاه
   ═══════════════════════════════════════════════ */
.shop-features-section {
    padding: 0 0 30px;
}
.shop-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.shop-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-md);
    transition: var(--shop-transition);
}
.shop-feature-item:hover {
    box-shadow: var(--shop-shadow-sm);
    border-color: var(--brand-red);
    transform: translateY(-2px);
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-brand-light);
    border-radius: 50%;
}
.shop-feature-item > div:last-child {
    display: flex;
    flex-direction: column;
}
.shop-feature-item strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
}
.shop-feature-item span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   🎯 نوار ابزار فروشگاه - v2.0 نهایی
   ═══════════════════════════════════════════════ */
.shop-toolbar-section {
    padding: 0 0 20px;
    position: sticky;
    top: 90px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

/* دکمه فیلتر - فقط موبایل */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    transition: var(--shop-transition);
    white-space: nowrap;
}

.filter-toggle-btn svg {
    color: var(--brand-red);
}

.filter-toggle-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* جستجو */
.toolbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--shop-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    transition: var(--shop-transition);
    min-width: 250px;
    color: var(--text-secondary);
}

.toolbar-search:focus-within {
    border-color: var(--brand-red);
    background: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.toolbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    font-family: inherit;
    color: var(--text-primary);
}

.toolbar-search input::placeholder {
    color: var(--shop-text-muted);
}

/* تعداد نتایج */
.results-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 6px 14px;
    background: var(--shop-brand-light);
    border-radius: var(--shop-radius-sm);
    font-weight: 700;
}

.results-count strong {
    color: var(--brand-red);
    font-weight: 900;
    margin-left: 3px;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   💻 مرتب‌سازی دسکتاپ - Tabs مثل دیجی‌کالا
   ═══════════════════════════════════════════════ */
.sort-tabs-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.sort-tabs-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.25px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-left: 4px;
    border-left: 1px solid var(--border-color);
    padding-right: 0;
    margin-left: 4px;
}

.sort-tabs-label svg {
    color: var(--brand-red);
}

.sort-tabs-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sort-tab svg {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.sort-tab:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
    background: var(--shop-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.12);
}

.sort-tab:hover svg {
    transform: scale(1.15);
    opacity: 1;
}

.sort-tab.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.35);
    padding: 8px 18px;
}

.sort-tab.active svg {
    opacity: 1;
    color: #fff;
}

.sort-tab.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
    animation: sortTabShine 2s ease-in-out infinite;
}

@keyframes sortTabShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.sort-tab:focus-visible {
    outline: 3px solid rgba(230, 0, 0, 0.3);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════
   📱 دکمه مرتب‌سازی موبایل
   ═══════════════════════════════════════════════ */
.sort-mobile-trigger {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    transition: var(--shop-transition);
    white-space: nowrap;
}

.sort-mobile-trigger svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.sort-mobile-trigger:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.sort-mobile-current {
    display: none;
}

/* ═══════════════════════════════════════════════
   📱 Bottom Sheet
   ═══════════════════════════════════════════════ */
.sort-bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sort-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 24px 24px 0 0;
    z-index: 9999;
    padding: 12px 0 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.sort-bottom-sheet.active {
    transform: translateY(0);
}

.sort-sheet-handle {
    width: 45px;
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 auto 15px;
}

.sort-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.sort-sheet-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sort-sheet-header h3 svg {
    color: var(--brand-red);
}

.sort-sheet-close {
    width: 36px;
    height: 36px;
    background: var(--shop-bg-secondary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
}

.sort-sheet-close:hover {
    background: var(--brand-red);
    color: #fff;
    transform: rotate(90deg);
}

.sort-sheet-list {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    gap: 4px;
}

.sort-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 16px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--shop-radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
}

.sort-sheet-item:active {
    transform: scale(0.98);
}

.sort-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--shop-bg-secondary);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--shop-transition);
    flex-shrink: 0;
}

.sort-item-text {
    flex: 1;
    font-weight: 700;
}

.sort-item-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--brand-red);
    border-radius: 50%;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
}

.sort-sheet-item.active {
    background: var(--shop-brand-light);
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.sort-sheet-item.active .sort-item-icon {
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.05);
}

.sort-sheet-item.active .sort-item-check {
    opacity: 1;
    transform: scale(1);
}

@media (hover: hover) {
    .sort-sheet-item:hover {
        background: var(--shop-bg-secondary);
    }
    .sort-sheet-item.active:hover {
        background: var(--shop-brand-light);
    }
}

/* ═══════════════════════════════════════════════
   🎨 View Toggle (فقط دسکتاپ)
   ═══════════════════════════════════════════════ */
.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 8px 10px;
    border: none;
    background: var(--surface-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
    border-radius: 0;
}

.view-btn.active,
.view-btn:hover {
    background: var(--brand-red);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   📱 Responsive - موبایل و تبلت
   ═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* مخفی‌ها در موبایل */
    .sort-tabs-desktop,
    .view-toggle {
        display: none !important;
    }
    
    /* چیدمان گرید */
    .shop-toolbar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px 0;
    }
    
    /* دکمه فیلتر */
    .filter-toggle-btn {
        display: flex !important;
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 14px !important;
    }
    
    /* دکمه مرتب‌سازی - مثل فیلتر */
    .sort-mobile-trigger {
        display: flex !important;
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 14px !important;
    }
    
    /* جستجو - فول عرض */
    .toolbar-search {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* تعداد نتایج */
    .results-count {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        text-align: center;
        display: block !important;
        white-space: normal;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .filter-toggle-btn,
    .sort-mobile-trigger {
        padding: 10px 10px !important;
        font-size: 0.82rem !important;
        gap: 5px !important;
    }
    
    .filter-toggle-btn svg,
    .sort-mobile-trigger svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .results-count {
        display: block !important;
        font-size: 0.82rem !important;
        padding: 6px 10px !important;
    }
    
    .sort-sheet-item {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .sort-item-icon {
        width: 36px;
        height: 36px;
    }
}

/* 🌙 دارک مود */
[data-theme="dark"] .sort-tab {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .sort-tab:hover {
    background: var(--shop-brand-light);
}

[data-theme="dark"] .sort-bottom-sheet {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════
   لایوت اصلی (سایدبار + گرید)
   ═══════════════════════════════════════════════ */
.shop-main-section {
    padding: 20px 0 80px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* ═══════════════════════════════════════════════
   سایدبار فیلتر - دسکتاپ
   ═══════════════════════════════════════════════ */
.shop-sidebar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    padding: 20px;
    position: sticky;
    top: 160px;
}

.shop-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--border-color);
}

.shop-sidebar .sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}
.shop-sidebar .sidebar-header h3 svg {
    color: var(--brand-red);
}
.sidebar-close {
    display: none;  /* دسکتاپ */
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
}

/* ═══════════ 📱 موبایل: هدر sticky + ضربدر ═══════════ */
@media (max-width: 992px) {
    .shop-sidebar .sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: var(--surface-color) !important;
        padding: 16px 20px !important;
        margin: 0 !important;
        border-bottom: 2px solid var(--border-color) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .shop-sidebar .sidebar-header h3 {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
    }
    
    /* ✅ دکمه ضربدر - نمایش در موبایل */
    .sidebar-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        background: var(--shop-bg-secondary) !important;
        border: none !important;
        border-radius: 50% !important;
        color: var(--text-primary) !important;
        cursor: pointer !important;
        transition: var(--shop-transition) !important;
        flex-shrink: 0;
    }
    
    .sidebar-close:hover,
    .sidebar-close:active {
        background: var(--brand-red) !important;
        color: #fff !important;
        transform: rotate(90deg);
    }
    
    .sidebar-close svg {
        width: 22px !important;
        height: 22px !important;
        display: block;
    }
    
    /* فیلترها با فاصله از هدر */
    .shop-sidebar {
        padding: 0 !important;
    }
    
    .shop-sidebar > *:not(.sidebar-header) {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .shop-sidebar > .filter-group:first-of-type {
        margin-top: 20px !important;
    }
    
    .shop-sidebar > .filter-actions:last-child {
        margin-bottom: 20px !important;
    }
}

/* ═══════════════════════════════════════════════
   فیلترها داخل سایدبار
   ═══════════════════════════════════════════════ */
.filter-group {
    margin-bottom: 20px;
    margin-top:20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.filter-title svg {
    transition: var(--shop-transition);
}

.filter-title.collapsed svg {
    transform: rotate(-90deg);
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: var(--shop-transition);
}

.filter-content.collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
    transition: var(--shop-transition);
}

.filter-checkbox:hover {
    color: var(--text-primary);
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
    cursor: pointer;
}

.filter-checkbox small {
    margin-right: auto;
    color: var(--shop-text-muted);
}

.price-range-inputs {
    display: flex;
    gap: 10px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-input-group label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.price-input-group input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.price-input-group input:focus {
    border-color: var(--brand-red);
}

.price-input-group small {
    font-size: 0.7rem;
    color: var(--shop-text-muted);
}

.price-range-slider {
    position: relative;
    height: 30px;
    margin-top: 10px;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    top: 50%;
    transform: translateY(-50%);
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-red);
    cursor: pointer;
    border: 3px solid var(--surface-color);
    box-shadow: var(--shop-shadow-sm);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-apply-filter {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
}

.btn-apply-filter:hover {
    background: #c00;
    box-shadow: var(--shop-shadow-red);
}

.btn-clear-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--shop-bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
}

.btn-clear-filter:hover {
    background: var(--shop-brand-light);
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* ═══════════════════════════════════════════════
   گرید محصولات
   ═══════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: var(--shop-transition);
}
.products-grid.list-view {
    grid-template-columns: 1fr;
}
.products-grid.list-view .hyper-product-card {
    flex-direction: row;
}
.products-grid.list-view .product-card-image {
    width: 180px;
    min-height: 180px;
    flex-shrink: 0;
}
.products-grid.list-view .product-card-info {
    padding: 20px;
    flex: 1;
}
.products-grid.list-view .product-add-to-cart {
    position: static;
    margin: 0 20px 20px;
    align-self: flex-end;
}

/* ═══════════════════════════════════════════════
   کارت محصول
   ═══════════════════════════════════════════════ */
.hyper-product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--shop-transition);
}
.hyper-product-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shop-shadow-md);
    transform: translateY(-4px);
}
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.products-grid.list-view .product-card-link {
    flex-direction: row;
    flex: 1;
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.sale-badge {
    background: var(--brand-red);
    color: #fff;
}
.outofstock-badge {
    background: #6b7280;
    color: #fff;
    right: auto;
    left: 12px;
}
.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-bg-secondary);
    padding: 15px;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.hyper-product-card:hover .product-card-image img {
    transform: scale(1.08);
}
.product-card-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.star-rating-display {
    display: flex;
    gap: 1px;
}
.rating-count {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
}
.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.price-original {
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}
.price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.price-current small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.product-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin: 0 15px 15px;
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
}
.product-add-to-cart:hover {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shop-shadow-red);
}
.product-add-to-cart.added {
    background: var(--shop-success);
    border-color: var(--shop-success);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   لودینگ
   ═══════════════════════════════════════════════ */
.shop-loading {
    position: absolute;
    inset: 0;
    background: var(--shop-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--shop-radius-lg);
    backdrop-filter: blur(4px);
}
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}
@keyframes shop-spin {
    to { transform: rotate(360deg); }
}
.loading-spinner span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   محصولی یافت نشد
   ═══════════════════════════════════════════════ */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.no-products-found h3 {
    margin: 20px 0 10px;
    color: var(--text-primary);
}
.no-products-found p {
    color: var(--shop-text-muted);
}

/* ═══════════════════════════════════════════════
   صفحه‌بندی
   ═══════════════════════════════════════════════ */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.shop-pagination a,
.shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--shop-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--shop-transition);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
}
.shop-pagination a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.shop-pagination .current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   صفحه تک محصول
   ═══════════════════════════════════════════════ */
.product-breadcrumb {
    margin-bottom: 20px;
}

/* لایوت سه ستونه */
.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 320px;
    gap: 30px;
    align-items: start;
}

/* ═══ گالری ═══ */
.product-gallery-wrapper {
    position: sticky;
    top: 100px;
}
.product-sale-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-red);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--shop-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    box-shadow: var(--shop-shadow-red);
}
.product-sale-ribbon span {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}
.product-sale-ribbon small {
    font-size: 0.7rem;
}
.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    background: var(--shop-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.main-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}
.main-image-container:hover img {
    transform: scale(1.05);
}
.zoom-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shop-shadow-sm);
    transition: var(--shop-transition);
}
.zoom-btn:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}
.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}
.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--shop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-bg-secondary);
}
.thumb-item:hover,
.thumb-item.active {
    border-color: var(--brand-red);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ═══ اطلاعات محصول ═══ */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.product-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--shop-warning-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
}
[data-theme="dark"] .product-rating-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.product-rating-badge small {
    font-weight: 400;
    opacity: 0.7;
}
.product-sku {
    font-size: 0.82rem;
    color: var(--shop-text-muted);
}
.product-sku span {
    color: var(--text-secondary);
}
.product-categories-tag {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.product-categories-tag a {
    color: var(--brand-red);
    text-decoration: none;
}
.product-categories-tag a:hover {
    text-decoration: underline;
}
.product-short-desc {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 15px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-md);
    border-right: 4px solid var(--brand-red);
}
.product-short-desc p {
    margin: 0;
}

/* ویژگی‌ها */
.product-attributes h4 {
    font-size: 1rem;
    margin: 0 0 12px;
    color: var(--text-primary);
}
.attributes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.attribute-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    padding: 8px 12px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-sm);
}
.attr-label {
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 80px;
}
.attr-dots {
    flex: 1;
    border-bottom: 2px dotted var(--border-color);
    min-width: 20px;
}
.attr-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* اعتمادسازی */
.product-trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 10px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ═══ باکس خرید ═══ */
.product-purchase-column {
    position: relative;
}
.purchase-box {
    position: sticky;
    top: 100px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shop-shadow-sm);
}
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    flex-wrap: wrap;
}
.stock-status.in-stock {
    color: var(--shop-success);
}
.stock-status.out-of-stock {
    color: var(--shop-danger);
}
.low-stock {
    display: block;
    width: 100%;
    font-size: 0.78rem;
    color: var(--shop-warning);
    font-weight: 500;
    margin-top: 4px;
    padding-right: 26px;
}
.purchase-price-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.discount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.discount-badge {
    background: var(--brand-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.original-price {
    font-size: 1rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}
.final-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
}
.final-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.you-save {
    font-size: 0.82rem;
    color: var(--shop-success);
    font-weight: 700;
    padding: 6px 12px;
    background: var(--shop-success-bg);
    border-radius: var(--shop-radius-sm);
}
[data-theme="dark"] .you-save {
    background: rgba(16, 185, 129, 0.15);
}
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quantity-selector label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--shop-bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
    border-radius: 0;
}
.qty-btn:hover {
    background: var(--shop-brand-light);
    color: var(--brand-red);
}
.qty-controls input {
    width: 50px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}
.btn-add-to-cart-single {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-md);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
}
.btn-add-to-cart-single:hover {
    background: #c00;
    box-shadow: var(--shop-shadow-red);
    transform: translateY(-2px);
}
.btn-add-to-cart-single.added {
    background: var(--shop-success);
}
.btn-notify-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: var(--shop-bg-secondary);
    color: var(--shop-text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: not-allowed;
}
.purchase-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.pf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   تب‌ها
   ═══════════════════════════════════════════════ */
.product-tabs-section {
    padding: 40px 0 60px;
}
.product-tabs-wrapper {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
}
.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}
.product-tabs-nav::-webkit-scrollbar {
    display: none;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: var(--shop-transition);
    border-radius: 0;
}
.tab-btn:hover {
    color: var(--brand-red);
    background: var(--shop-brand-light);
}
.tab-btn.active {
    color: var(--brand-red);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--brand-red);
    border-radius: 3px 3px 0 0;
}
.tab-content {
    display: none;
    padding: 30px;
}
.tab-content.active {
    display: block;
}
.tab-inner {
    line-height: 2;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.tab-inner h2,
.tab-inner h3 {
    color: var(--text-primary);
    margin-top: 25px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}
.specs-table tr:nth-child(even) {
    background: var(--shop-bg-secondary);
}
.specs-table th,
.specs-table td {
    padding: 14px 18px;
    text-align: right;
    font-size: 0.9rem;
}
.specs-table th {
    width: 160px;
    color: var(--text-secondary);
    font-weight: 700;
    background: var(--shop-bg-secondary);
}
.specs-table td {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════
   محصولات مرتبط
   ═══════════════════════════════════════════════ */
.related-products-section {
    padding: 0 0 80px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* ═══════════════════════════════════════════════
   نوار خرید ثابت موبایل
   ═══════════════════════════════════════════════ */
.mobile-purchase-bar {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mpb-price {
    display: flex;
    flex-direction: column;
}
.mpb-final {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.mpb-final small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.mpb-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   لایت‌باکس
   ═══════════════════════════════════════════════ */
.product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.product-lightbox.active {
    display: flex;
}
.product-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--shop-radius-md);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════
   Toast نوتیفیکیشن
   ═══════════════════════════════════════════════ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--surface-color);
    border: 1px solid var(--shop-success);
    border-radius: var(--shop-radius-md);
    box-shadow: var(--shop-shadow-lg);
    z-index: 9998;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

/* ═══════════════════════════════════════════════
   اورلی سایدبار موبایل (مخصوص shop)
   ═══════════════════════════════════════════════ */
.shop-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
}
.shop-sidebar-overlay.active {
    display: block;
}

/* Shop Products Area */
.shop-products-area {
    position: relative;
    min-height: 400px;
}

/* ═══════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════ */

/* تبلت */
@media (max-width: 1024px) {
    .product-main-layout {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .product-purchase-column {
        grid-column: 1 / -1;
    }
    .purchase-box {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .purchase-price-area {
        flex: 1;
        min-width: 200px;
    }
    .btn-add-to-cart-single {
        min-width: 200px;
    }
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shop-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

/* ═══════════════════════════════════════════════
   📱 سایدبار فیلتر موبایل - ایزوله از هدر
   ═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    /* سایدبار فیلتر - Z-index بالاتر از سایدبار هدر */
    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 88% !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 20px !important;
        background: var(--surface-color) !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2) !important;
    }
    
    .shop-sidebar.open {
        right: 0 !important;
    }
    
    .shop-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--surface-color);
        z-index: 10;
        padding: 10px 0 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-close {
        display: flex !important;
        width: 36px;
        height: 36px;
        background: var(--shop-bg-secondary) !important;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--shop-transition);
    }
    
    .sidebar-close:hover {
        background: var(--brand-red) !important;
        color: #fff;
        transform: rotate(90deg);
    }
    
    /* ═══ اورلی مخصوص فروشگاه (ایزوله از هدر) ═══ */
    .shop-sidebar-overlay {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 9998 !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .shop-sidebar-overlay.active {
        display: block !important;
        opacity: 1;
    }
    
    /* بقیه استایل‌های موبایل */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* موبایل */
@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .products-grid.list-view {
        grid-template-columns: 1fr;
    }
    .products-grid.list-view .product-card-image {
        width: 120px;
        min-height: 120px;
    }
    .product-card-image {
        height: 170px;
    }
    .product-card-info {
        padding: 10px;
    }
    .product-card-title {
        font-size: 0.82rem;
    }
    .price-current {
        font-size: 0.95rem;
    }
    .product-add-to-cart span {
        display: none;
    }
    .product-add-to-cart {
        margin: 0 10px 10px;
        padding: 10px;
        justify-content: center;
    }
    .banner-slide img {
        height: 180px;
    }
    .shop-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .shop-feature-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* تک محصول موبایل */
    .product-main-layout {
        grid-template-columns: 1fr;
    }
    .product-gallery-wrapper {
        position: static;
    }
    .product-purchase-column {
        grid-column: auto;
    }
    .purchase-box {
        position: static;
        flex-direction: column;
    }
    .product-title {
        font-size: 1.2rem;
    }
    .final-price {
        font-size: 1.4rem;
    }
    .mobile-purchase-bar {
        display: flex;
    }
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-tabs-nav {
        overflow-x: auto;
    }
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .tab-content {
        padding: 20px;
    }
    .specs-table th {
        width: 120px;
    }
    .category-item {
        min-width: 75px;
        padding: 10px 8px;
    }
    .category-icon {
        width: 40px;
        height: 40px;
    }
    .category-item span {
        font-size: 0.75rem;
    }
    .shop-toolbar-section {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-card-image {
        height: 140px;
        padding: 10px;
    }
    .product-card-title {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
    .price-current {
        font-size: 0.85rem;
    }
    .product-add-to-cart {
        padding: 8px;
        margin: 0 8px 8px;
    }
    .banner-slide img {
        height: 150px;
    }
    .shop-features-grid {
        grid-template-columns:1fr 1fr;
    }
    .results-count {
        display: block !important;  /* ✅ نمایش داده بشه */
        font-size: 0.82rem;
        padding: 6px 10px;
    }
}
/* ═══════════════════════════════════════════════
   صفحه سبد خرید - هایپر آرین
   ═══════════════════════════════════════════════ */

/* ━━━ هدر صفحه سبد ━━━ */
.cart-hero-section {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.02), transparent);
}

.cart-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
    margin-bottom: 30px;
}

.cart-header-content {
    flex: 1;
    min-width: 280px;
}

.cart-page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.cart-title-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shop-shadow-red);
}

.cart-page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.cart-page-subtitle strong {
    color: var(--brand-red);
}

/* مراحل خرید */
.cart-steps {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: var(--shop-transition);
}

.cart-step.active {
    opacity: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--shop-bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--shop-transition);
}

.cart-step.active .step-circle {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    box-shadow: var(--shop-shadow-red);
}

.cart-step span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-top: -20px;
}

/* ━━━ لایوت اصلی ━━━ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

/* ━━━ کارت لیست محصولات ━━━ */
.cart-items-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    box-shadow: var(--shop-shadow-sm);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
    background: var(--shop-bg-secondary);
}

.cart-items-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cart-items-header h3 svg {
    color: var(--brand-red);
}

.items-count-badge {
    background: var(--brand-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

/* ━━━ هر آیتم محصول ━━━ */
.cart-item-row {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
    transition: var(--shop-transition);
}

.cart-item-row:hover {
    background: var(--shop-bg-secondary);
}

.cart-item-row:last-child {
    border-bottom: none;
}

/* تصویر محصول */
.cart-item-image {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--shop-radius-md);
    overflow: hidden;
    background: var(--shop-bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image a,
.cart-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.cart-item-discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--brand-red);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: var(--shop-shadow-red);
}

/* اطلاعات محصول */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-item-title a:hover {
    color: var(--brand-red);
}

.cart-item-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

.stock-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shop-success);
    font-weight: 700;
}

.stock-low {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shop-warning);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.stock-out {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shop-danger);
    font-weight: 700;
}

.cart-item-shipping {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-item-shipping svg {
    color: var(--brand-red);
}

/* کنترل تعداد و حذف */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cart-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.cart-qty-wrapper label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    background: var(--surface-color);
}

.cart-qty-controls:hover {
    border-color: var(--brand-red);
}

.cart-qty-controls .qty-increase,
.cart-qty-controls .qty-decrease {
    width: 32px;
    height: 32px;
    background: var(--shop-bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--shop-transition);
    border-radius: 0;
}

.cart-qty-controls .qty-increase:hover,
.cart-qty-controls .qty-decrease:hover {
    background: var(--brand-red);
    color: #fff;
}

.cart-qty-controls .qty {
    width: 45px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    outline: none;
    -moz-appearance: textfield;
}

.cart-qty-controls .qty::-webkit-outer-spin-button,
.cart-qty-controls .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* دکمه حذف */
.cart-item-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    color: var(--shop-danger);
    border: 1px solid transparent;
    border-radius: var(--shop-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--shop-transition);
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--shop-danger);
}

/* قیمت */
.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 120px;
}

.price-original-cart {
    font-size: 0.82rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}

.price-final-cart {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary);
}

.price-final-cart .woocommerce-Price-amount {
    color: var(--text-primary);
}

.price-unit-cart {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.price-unit-cart small {
    color: var(--shop-text-muted);
}

/* دکمه‌های پایین */
.cart-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--shop-bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.continue-shopping-btn,
.update-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
    text-decoration: none;
}

.continue-shopping-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.continue-shopping-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateX(-3px);
}

.update-cart-btn {
    background: var(--shop-bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.update-cart-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* ━━━ ستون خلاصه سفارش ━━━ */
.cart-summary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 110px;
}

/* جعبه کوپن */
.cart-coupon-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    padding: 20px;
    box-shadow: var(--shop-shadow-sm);
}

.cart-coupon-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cart-coupon-box h4 svg {
    color: var(--brand-red);
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-sm);
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--shop-transition);
}

.coupon-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.apply-coupon-btn {
    padding: 11px 22px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--shop-transition);
    white-space: nowrap;
}

.apply-coupon-btn:hover {
    background: #c00;
    box-shadow: var(--shop-shadow-red);
}

/* جعبه خلاصه سفارش */
.cart-summary-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    padding: 25px;
    box-shadow: var(--shop-shadow-md);
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.summary-title svg {
    color: var(--brand-red);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.summary-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
}

.summary-discount .summary-label,
.summary-coupon .summary-label {
    color: var(--shop-success);
    font-weight: 700;
}

.text-success {
    color: var(--shop-success) !important;
}

.remove-coupon {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    background: var(--shop-danger);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.summary-divider {
    height: 2px;
    background: var(--border-color);
    margin: 15px 0;
    border-radius: 2px;
}

.summary-total {
    padding: 15px 0;
    font-size: 1.1rem;
}

.summary-total .summary-label {
    color: var(--text-primary);
    font-weight: 800;
}

.summary-total .summary-value {
    color: var(--brand-red);
    font-size: 1.3rem;
    font-weight: 900;
}

/* دکمه پرداخت */
.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-md);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: var(--shop-transition);
    box-shadow: var(--shop-shadow-red);
}

.checkout-btn:hover {
    background: #c00;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.4);
}

/* اعتمادسازی */
.cart-trust-items {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* جعبه پیشنهاد */
.cart-promo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--brand-red), #ff4d4d);
    color: #fff;
    padding: 20px;
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-red);
}

.promo-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.promo-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.promo-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════
   صفحه سبد خالی
   ═══════════════════════════════════════════════ */
.cart-empty-section {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.02), transparent);
}

.cart-empty-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-empty-illustration {
    margin-bottom: 30px;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 15px;
    color: var(--text-primary);
}

.empty-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 30px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.empty-btn-primary,
.empty-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--shop-transition);
}

.empty-btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shop-shadow-red);
}

.empty-btn-primary:hover {
    background: #c00;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.4);
}

.empty-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.empty-btn-secondary:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* پیشنهادات محصولات */
.empty-suggestions {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed var(--border-color);
}

.suggestions-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: right;
}

.suggestion-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--shop-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
    box-shadow: var(--shop-shadow-md);
}

.suggestion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}

.suggestion-image {
    width: 100%;
    height: 160px;
    background: var(--shop-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.suggestion-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.suggestion-info {
    padding: 15px;
}

.suggestion-info h4 {
    font-size: 0.85rem;
    margin: 0 0 8px;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-price small {
    font-size: 0.7rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}

.suggestion-price strong {
    font-size: 0.95rem;
    color: var(--brand-red);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 340px;
    }
    
    .suggestions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-column {
        position: static;
    }
    
    .cart-steps {
        width: 100%;
        justify-content: center;
    }
    
    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-page-header {
        padding: 20px;
    }
    
    .cart-page-title {
        font-size: 1.4rem;
    }
    
    .cart-title-icon {
        width: 44px;
        height: 44px;
    }
    
    .cart-item-row {
        grid-template-columns: 90px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 90px;
        height: 90px;
    }
    
    .cart-item-controls,
    .cart-item-price {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        border-top: 1px dashed var(--border-color);
        margin-top: 5px;
    }
    
    .cart-item-price {
        align-items: flex-end;
    }
    
    .cart-bottom-actions {
        flex-direction: column;
    }
    
    .continue-shopping-btn,
    .update-cart-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-step-line {
        width: 25px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .cart-step span {
        font-size: 0.72rem;
    }
    
    .empty-title {
        font-size: 1.8rem;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .empty-btn-primary,
    .empty-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart-items-header {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .summary-total .summary-value {
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════
   صفحه تسویه حساب - هایپر آرین
   ═══════════════════════════════════════════════ */

/* ━━━ هدر صفحه ━━━ */
.checkout-hero-section {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.02), transparent);
}

.checkout-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
    margin-bottom: 30px;
}

.checkout-header-content {
    flex: 1;
    min-width: 280px;
}

.checkout-page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.7rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.checkout-title-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shop-shadow-red);
}

.checkout-page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* مرحله انجام شده */
.cart-step.done {
    opacity: 1;
}

.cart-step.done .step-circle {
    background: var(--shop-success);
    border-color: var(--shop-success);
    color: #fff;
}

.cart-step-line.done {
    background: var(--shop-success);
}

/* ━━━ بنر ورود برای مهمان ━━━ */
.checkout-login-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.05), rgba(230, 0, 0, 0.02));
    border: 1px dashed var(--brand-red);
    border-radius: var(--shop-radius-lg);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.login-banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--brand-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-banner-text {
    flex: 1;
    min-width: 200px;
}

.login-banner-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.login-banner-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.login-banner-btn {
    padding: 10px 22px;
    background: var(--brand-red);
    color: #fff;
    border-radius: var(--shop-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--shop-transition);
    white-space: nowrap;
}

.login-banner-btn:hover {
    background: #c00;
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-red);
}

/* ━━━ لایوت اصلی ━━━ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 25px;
    align-items: start;
}

.checkout-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ━━━ کارت‌های فرم ━━━ */
.checkout-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    box-shadow: var(--shop-shadow-sm);
    transition: var(--shop-transition);
}

.checkout-card:hover {
    box-shadow: var(--shop-shadow-md);
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
    background: var(--shop-bg-secondary);
}

.checkout-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--shop-brand-light);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-card-header h3 {
    margin: 0 0 3px;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 800;
}

.checkout-card-header p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.checkout-card-body {
    padding: 25px;
}

/* ━━━ زیرعنوان بخش ━━━ */
.checkout-section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

/* ━━━ گرید فیلدها ━━━ */
.checkout-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.checkout-fields-grid .form-row {
    margin-bottom: 0;
    position: relative;
}

.checkout-fields-grid .form-row-wide,
.checkout-fields-grid .form-row[id*="billing_address_1"],
.checkout-fields-grid .form-row[id*="billing_address_2"],
.checkout-fields-grid .form-row[id*="shipping_address_1"],
.checkout-fields-grid .form-row[id*="shipping_address_2"],
.checkout-fields-grid .form-row[id*="billing_country"],
.checkout-fields-grid .form-row[id*="shipping_country"] {
    grid-column: 1 / -1;
}

/* ━━━ استایل فیلدها ━━━ */
.woocommerce form .form-row {
    padding: 0;
    margin: 0;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
}

.woocommerce form .form-row label .required {
    color: var(--brand-red);
    text-decoration: none;
    border: none;
    margin-right: 3px;
}

.woocommerce form .form-row .optional {
    color: var(--shop-text-muted);
    font-weight: 400;
    font-size: 0.78rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container--default .select2-selection--single,
.checkout-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--shop-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--shop-transition);
    outline: none;
    box-sizing: border-box;
    height: auto;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single,
.checkout-textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.1);
}

.woocommerce form .form-row textarea,
.checkout-textarea {
    min-height: 90px;
    resize: vertical;
}

/* select2 */
.woocommerce .select2-container--default .select2-selection--single {
    height: 50px !important;
    display: flex;
    align-items: center;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    left: 10px !important;
    right: auto !important;
}

.select2-dropdown {
    background: var(--surface-color) !important;
    border: 1.5px solid var(--brand-red) !important;
    border-radius: var(--shop-radius-md) !important;
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand-red) !important;
    color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
    background: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--shop-radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px !important;
}

/* خطاهای فیلد */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: var(--shop-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
    border-color: var(--shop-success);
}

/* چک‌باکس "ساخت حساب کاربری" */
.create-account {
    grid-column: 1 / -1;
    margin-top: 5px;
}

.checkbox-account {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 14px 18px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-md);
    border: 1.5px solid var(--border-color);
    transition: var(--shop-transition);
}

.checkbox-account:hover {
    border-color: var(--brand-red);
    background: var(--shop-brand-light);
}

.checkbox-account input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-red);
    cursor: pointer;
    margin: 0;
}

.checkbox-account span {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ━━━ ستون خلاصه ━━━ */
.checkout-summary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 110px;
}

/* کارت خلاصه سفارش */
.checkout-summary-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    box-shadow: var(--shop-shadow-md);
}

.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 2px solid var(--border-color);
    background: var(--shop-bg-secondary);
}

.summary-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.summary-card-header h3 svg {
    color: var(--brand-red);
}

.summary-items-count {
    background: var(--brand-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* لیست محصولات مینیاتوری */
.checkout-items-list {
    padding: 15px 22px;
    border-bottom: 1px solid var(--border-color);
    max-height: 280px;
    overflow-y: auto;
}

.checkout-items-list::-webkit-scrollbar {
    width: 6px;
}

.checkout-items-list::-webkit-scrollbar-track {
    background: var(--shop-bg-secondary);
    border-radius: 3px;
}

.checkout-items-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.checkout-item-mini {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.checkout-item-mini:last-child {
    border-bottom: none;
}

.mini-item-image {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    background: var(--shop-bg-secondary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mini-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

.mini-item-qty {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--brand-red);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    border: 2px solid var(--surface-color);
}

.mini-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.mini-item-info h5 {
    margin: 0 0 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-red);
}

/* خلاصه مالی */
.checkout-summary-totals {
    padding: 18px 22px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-total-row span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-total-row.text-success span {
    color: var(--shop-success) !important;
    font-weight: 700;
}

.checkout-total-divider {
    height: 2px;
    background: var(--border-color);
    margin: 12px 0;
    border-radius: 2px;
}

.checkout-final-total {
    padding: 12px 0 5px;
    font-size: 1.05rem;
}

.checkout-final-total span:first-child {
    color: var(--text-primary);
    font-weight: 800;
}

.checkout-final-total span:last-child {
    color: var(--brand-red);
    font-size: 1.3rem;
    font-weight: 900;
}

/* ━━━ کارت پرداخت ━━━ */
.checkout-payment-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    box-shadow: var(--shop-shadow-sm);
}

.payment-card-header {
    padding: 18px 22px;
    border-bottom: 2px solid var(--border-color);
    background: var(--shop-bg-secondary);
}

.payment-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.payment-card-header h3 svg {
    color: var(--brand-red);
}

.payment-card-body {
    padding: 20px 22px;
}

/* روش‌های پرداخت */
.wc_payment_methods.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc_payment_methods li {
    background: var(--shop-bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--shop-radius-md);
    padding: 14px 18px;
    transition: var(--shop-transition);
}

.wc_payment_methods li:hover {
    border-color: var(--brand-red);
}

.wc_payment_methods li.payment_method_selected,
.wc_payment_methods li:has(input[type="radio"]:checked) {
    border-color: var(--brand-red);
    background: var(--shop-brand-light);
}

.wc_payment_methods li label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 !important;
}

.wc_payment_methods li input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-red);
    cursor: pointer;
    margin: 0;
}

.wc_payment_methods li img {
    max-height: 30px;
    margin: 0 5px;
}

.wc_payment_methods li .payment_box {
    background: var(--bg-color);
    margin-top: 12px;
    padding: 12px 15px;
    border-radius: var(--shop-radius-sm);
    border-right: 3px solid var(--brand-red);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.wc_payment_methods li .payment_box::before {
    display: none;
}

/* قوانین */
.woocommerce-terms-and-conditions-wrapper {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-md);
    border: 1px solid var(--border-color);
}

.woocommerce-terms-and-conditions-checkbox-text {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    line-height: 1.6;
}

.woocommerce-terms-and-conditions-checkbox-text input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
    cursor: pointer;
    flex-shrink: 0;
}

/* ━━━ دکمه ثبت سفارش ━━━ */
.place-order-btn,
button.place-order-btn,
#place_order {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--brand-red), #ff4d4d) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--shop-radius-md) !important;
    font-family: inherit !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: var(--shop-transition) !important;
    box-shadow: var(--shop-shadow-red) !important;
    text-transform: none !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.place-order-btn:hover,
#place_order:hover {
    background: linear-gradient(135deg, #c00, var(--brand-red)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.5) !important;
}

.place-order-btn svg {
    flex-shrink: 0;
}

/* ━━━ کارت اعتمادسازی ━━━ */
.checkout-trust-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius-lg);
    padding: 18px;
    box-shadow: var(--shop-shadow-sm);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.trust-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 12px 8px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-md);
    transition: var(--shop-transition);
}

.trust-grid-item:hover {
    background: var(--shop-brand-light);
    transform: translateY(-2px);
}

.trust-grid-item strong {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 800;
}

.trust-grid-item small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ━━━ پیام‌های ووکامرس ━━━ */
.woocommerce-NoticeGroup,
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--surface-color) !important;
    border-right: 4px solid var(--brand-red) !important;
    padding: 14px 18px !important;
    border-radius: var(--shop-radius-md) !important;
    color: var(--text-primary) !important;
    list-style: none !important;
    font-size: 0.9rem !important;
    box-shadow: var(--shop-shadow-sm);
    margin-bottom: 12px !important;
}

.woocommerce-message {
    border-right-color: var(--shop-success) !important;
}

.woocommerce-error {
    border-right-color: var(--shop-danger) !important;
}

.woocommerce-info {
    border-right-color: #3b82f6 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* لودر ووکامرس */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.blockUI.blockOverlay::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='%23e60000' stroke-width='4' stroke-dasharray='30 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* ═══════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr 380px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-column {
        position: static;
    }
    
    .checkout-fields-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-page-header {
        padding: 20px;
    }
    
    .checkout-page-title {
        font-size: 1.3rem;
    }
    
    .checkout-title-icon {
        width: 44px;
        height: 44px;
    }
    
    .checkout-card-body,
    .payment-card-body,
    .summary-card-header,
    .checkout-items-list,
    .checkout-summary-totals {
        padding: 16px;
    }
    
    .checkout-card-header {
        padding: 16px;
        gap: 12px;
    }
    
    .checkout-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .checkout-card-header h3 {
        font-size: 0.95rem;
    }
    
    .checkout-card-header p {
        font-size: 0.75rem;
    }
    
    .checkout-login-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .login-banner-btn {
        width: 100%;
        text-align: center;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid-item {
        flex-direction: row;
        text-align: right;
        justify-content: center;
        padding: 12px;
    }
    
    .place-order-btn,
    #place_order {
        font-size: 1rem !important;
        padding: 15px !important;
    }
}

/* ═══════════════════════════════════════════════
   🔧 اصلاح نهایی سایدبار فیلتر موبایل
   ═══════════════════════════════════════════════ */

@media (max-width: 992px) {
    /* سایدبار از سمت راست بیاد (RTL) */
    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 88% !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999 !important;
        border: none !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 0 !important;
        background: var(--surface-color) !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2) !important;
    }
    
    .shop-sidebar.open {
        right: 0 !important;
    }
    
    /* هدر sticky بالای سایدبار */
    .shop-sidebar .sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: var(--surface-color) !important;
        padding: 18px 20px !important;
        margin: 0 !important;
        border-bottom: 2px solid var(--border-color) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .shop-sidebar .sidebar-header h3 {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        color: var(--text-primary) !important;
        font-weight: 800 !important;
    }
    
    .shop-sidebar .sidebar-header h3 svg {
        color: var(--brand-red);
    }
    
    /* دکمه ضربدر */
    .sidebar-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        background: var(--shop-bg-secondary) !important;
        border: none !important;
        border-radius: 50% !important;
        color: var(--text-primary) !important;
        cursor: pointer !important;
        transition: var(--shop-transition) !important;
    }
    
    .sidebar-close:hover,
    .sidebar-close:active {
        background: var(--brand-red) !important;
        color: #fff !important;
        transform: rotate(90deg);
    }
    
    .sidebar-close svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* فیلترها با padding داخلی */
    .shop-sidebar .filter-group,
    .shop-sidebar .filter-actions {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .shop-sidebar .filter-group:first-of-type {
        margin-top: 20px !important;
    }
    
    /* اورلی */
    .shop-sidebar-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99998 !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .shop-sidebar-overlay.active {
        display: block !important;
        opacity: 1;
    }
    
    /* 🚨 وقتی سایدبار بازه، toolbar پشتش نره جلو */
    body:has(.shop-sidebar.open) .shop-toolbar-section {
        z-index: 1 !important;
    }
}
/* ═══════════════════════════════════════════════
   🎯 مرتب کردن ترتیب toolbar در دسکتاپ
   ═══════════════════════════════════════════════ */
@media (min-width: 993px) {
    .shop-toolbar {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
    
    /* ترتیب از راست به چپ (RTL) */
    .filter-toggle-btn {
        order: 1;
    }
    
    .toolbar-search {
        order: 2;
        flex: 0 0 auto;
    }
    
    .sort-tabs-desktop {
        order: 3;
        flex:none;
        justify-content: flex-end;
        padding: 0 15px;
        border-right: 1px solid var(--border-color);
        margin-right: 5px;
    }
    
    .sort-mobile-trigger {
        display: none !important;
    }
    
    .results-count {
        order: 4;
        flex-shrink: 0;
    }
    
    .view-toggle {
        order: 5;
        flex-shrink: 0;
    }
}

/* در موبایل view-toggle مخفی بشه */
@media (max-width: 992px) {
    .view-toggle {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════
   🚨 حل مشکل تداخل هدر با سایدبار فیلتر موبایل
   ═══════════════════════════════════════════════ */

@media (max-width: 992px) {
    /* ✅ وقتی سایدبار فیلتر بازه، هدر و فوتر و سبد شناور بره پشت اورلی */
    body.shop-filter-open .site-header {
        z-index: 1 !important;
        pointer-events: none;
    }
    
    body.shop-filter-open .site-footer {
        z-index: 1 !important;
        pointer-events: none;
    }
    
    body.shop-filter-open .floating-cart-btn,
    body.shop-filter-open #floatingCartBtn {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* ✅ اورلی همه چیز رو بپوشونه */
    .shop-sidebar-overlay {
        z-index: 999998 !important;
    }
    
    /* ✅ سایدبار بالاتر از اورلی */
    .shop-sidebar {
        z-index: 999999 !important;
    }
    
    /* ✅ جلوگیری از اسکرول body وقتی سایدبار بازه */
    body.shop-filter-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}