/**
 * بانو و جناب - استایل اصلی
 * BanoJenab Main Stylesheet
 */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;
    --bg-hover: #e0e0e0;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    /* Accent Colors */
    --accent-primary: #1a1a1a;
    --accent-gold: #c9a962;
    --accent-orange: #ff9500;
    
    /* Functional Colors */
    --success: #34c759;
    --warning: #ff9500;
    --error: #ff3b30;
    --info: #5ac8fa;
    
    /* Borders */
    --border-color: #e0e0e0;
    --border-light: #d0d0d0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1rem;
    
    /* Header */
    --header-height: 70px;
    --header-margin: 1.5rem;
    
    /* Charcoal (ذغالی) - for header, footer, mobile nav */
    --color-charcoal: #2d2d2d;
    --color-charcoal-light: rgba(255, 255, 255, 0.9);
    --color-charcoal-muted: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Gender Theme (تم بانو)
   ============================================ */
html.gender-female {
    --bg-primary: rgb(245, 230, 211) !important;
    --bg-secondary: rgb(250, 240, 225) !important;
    --bg-tertiary: rgb(240, 220, 200) !important;
    --bg-card: rgb(255, 250, 245) !important;
    --bg-hover: rgb(235, 215, 190) !important;
}

html.gender-female body {
    background-color: rgb(245, 230, 211) !important;
}

html.gender-female .main-content {
    background-color: rgb(245, 230, 211) !important;
}

html.gender-female .offer-content-box {
    background: rgb(245, 230, 211) !important;
}

html.gender-female .products-section {
    background: rgb(245, 230, 211) !important;
}

html.gender-female .product-card {
    background: rgb(255, 250, 245) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html.gender-female .header {
    background: var(--color-charcoal) !important;
}

html.gender-female .stories-section {
    background: rgb(245, 230, 211) !important;
}

html.gender-female .quick-categories-section {
    background: rgb(250, 240, 225) !important;
}

html.gender-female .features-section {
    background: rgb(245, 230, 211) !important;
}

html.gender-female .hero-slider-section {
    background: rgb(245, 230, 211) !important;
}

html.gender-female .background-image-section {
    background-color: rgb(245, 230, 211) !important;
}


html.gender-female .footer {
    background: var(--color-charcoal) !important;
}

/* اعمال رنگ به تمام بخش‌های اصلی */
html.gender-female section {
    background-color: rgb(245, 230, 211) !important;
}

html.gender-female .container {
    background-color: transparent !important;
}

/* پیام "به زودی" */
.coming-soon-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.coming-soon-message svg {
    margin: 0 auto var(--spacing-md);
    opacity: 0.5;
    color: var(--accent-gold);
}

.coming-soon-message h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.coming-soon-message p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: var(--header-margin);
    right: var(--header-margin);
    z-index: 1000;
    background: var(--color-charcoal);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* Header - light text/icons on charcoal */
.header .gender-btn {
    color: var(--color-charcoal-muted);
}

.header .gender-btn:hover {
    color: var(--color-charcoal-light);
    background: rgba(255, 255, 255, 0.1);
}

.header .gender-btn.active {
    background: var(--accent-gold);
    color: #fff;
}

.header .nav-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-charcoal-light);
}

.header .nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.navbar {
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--spacing-md);
    gap: var(--spacing-sm);
    position: relative;
}

.navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 50;
    pointer-events: auto;
    background: transparent;
}


.navbar .nav-actions {
    flex-shrink: 0;
    margin-left: auto;
}

/* Header Search - Modern & Elegant */
.header-search-container {
    position: relative;
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-charcoal-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    z-index: 10;
}

.search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--accent-gold);
    transform: scale(1.05);
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-search-form {
    position: fixed;
    top: calc(var(--header-height) + var(--header-margin) + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    width: 90%;
    max-width: 600px;
    background: var(--color-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    overflow: visible;
}

.header-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-charcoal-muted);
    transition: color 0.3s ease;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-charcoal-light);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    padding: 0;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--color-charcoal-muted);
    opacity: 0.7;
}


.search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-charcoal-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-charcoal-light);
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    border: none;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    margin-right: -1px;
}

.search-submit-btn:hover {
    background: #b8954a;
    transform: scale(1.05);
}

.search-submit-btn:active {
    transform: scale(0.98);
}

.search-submit-btn svg {
    width: 18px;
    height: 18px;
}

.header-search-form:focus-within .search-icon {
    color: var(--accent-gold);
}

.header-search-form:focus-within .search-input-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(201, 169, 98, 0.3);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    margin-top: 0;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestions-list {
    padding: var(--spacing-xs) 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-charcoal-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-image-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--color-charcoal-muted);
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.suggestion-name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: inherit;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.suggestion-name mark {
    background: rgba(201, 169, 98, 0.3);
    color: var(--accent-gold);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.suggestion-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.suggestion-price .old-price {
    color: var(--color-charcoal-muted);
    text-decoration: line-through;
    font-size: 0.9em;
}

.suggestion-price .current-price {
    color: var(--accent-gold);
    font-weight: 600;
}

.suggestion-item:hover .suggestion-price .current-price,
.suggestion-item.selected .suggestion-price .current-price {
    color: var(--accent-gold);
}

/* Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.navbar .menu-toggle,
.navbar .topics-trigger-wrapper {
    flex-shrink: 0;
}

/* Menu Toggle (همبرگر - موبایل) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    gap: 5px;
    transition: all 0.25s ease;
    cursor: pointer;
    color: var(--color-charcoal-light);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.menu-toggle.active {
    background: rgba(201, 169, 98, 0.25);
    border-color: rgba(201, 169, 98, 0.4);
    color: var(--accent-gold);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* موضوعات سایت (دسکتاپ - مگا منو) */
.topics-trigger-wrapper {
    display: none;
}

.topics-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--color-charcoal-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s ease;
}

.topics-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.topics-trigger-btn[aria-expanded="true"] {
    background: rgba(201, 169, 98, 0.25);
    border-color: rgba(201, 169, 98, 0.5);
    color: var(--accent-gold);
}

.topics-trigger-btn[aria-expanded="true"] .topics-trigger-chevron {
    transform: rotate(180deg);
}

.topics-trigger-btn svg {
    flex-shrink: 0;
}

.topics-trigger-chevron {
    transition: transform 0.25s ease;
    opacity: 0.8;
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: var(--header-height);
    left: var(--header-margin);
    right: var(--header-margin);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.mega-menu-content {
    position: relative;
    z-index: 1;
    background: var(--color-charcoal);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xl);
    border-top: 2px solid rgba(201, 169, 98, 0.4);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.mega-menu-section {
    padding: 0;
}

.mega-menu-section-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mega-menu-column-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-charcoal-light);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mega-menu-expandable {
    margin-bottom: var(--spacing-xs);
}

.mega-menu-expand-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
}

.mega-menu-expand-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-charcoal-light);
}

.mega-menu-expand-trigger.active {
    background: rgba(201, 169, 98, 0.2);
    border-color: rgba(201, 169, 98, 0.4);
    color: var(--accent-gold);
}

.mega-menu-expand-trigger.active .mega-menu-expand-icon {
    transform: rotate(180deg);
}

.mega-menu-expand-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mega-menu-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
    margin-top: 4px;
    border-right: 2px solid rgba(201, 169, 98, 0.3);
}

.mega-menu-submenu.expanded {
    display: flex;
}

.mega-menu-subitem {
    display: block;
    padding: 8px 12px;
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mega-menu-subitem:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-charcoal-light);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--color-charcoal-muted);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.mega-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-charcoal-light);
    padding-right: 18px;
}

.mega-menu-item.active {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent-gold);
}

@media (max-width: 991px) {
    .mega-menu-inner {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-columns {
        grid-template-columns: 1fr;
    }
}

/* Responsive: موبایل همبرگر | دسکتاپ موضوعات سایت */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    .mega-menu {
        display: none !important;
    }
    
    .navbar .logo {
        position: static;
        transform: none;
        flex: 1;
        margin: 0;
    }
    
    .navbar {
        justify-content: space-between;
    }
    
    .navbar .nav-actions {
        margin-left: 0;
    }
    
    .topics-trigger-wrapper {
        margin-left: 0;
    }
    
    .header-search-container {
        margin-left: var(--spacing-sm);
    }
}

@media (min-width: 768px) {
    .topics-trigger-wrapper {
        display: block;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .header-search-container {
        margin-left: var(--spacing-md);
    }
    
    .navbar .nav-actions {
        margin-left: var(--spacing-md);
    }
    
    .header-search-form {
        top: calc(var(--header-height) + var(--header-margin) + 15px);
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .header-search-container {
        margin-left: var(--spacing-sm);
    }
    
    .header-search-form {
        width: calc(100% - 2rem);
        max-width: none;
        left: 1rem;
        right: 1rem;
        transform: translateY(-20px) scale(0.95);
    }
    
    .header-search-form.active {
        transform: translateY(0) scale(1);
    }
    
    .search-submit-btn {
        width: 44px;
        height: 44px;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.logo-ampersand {
    color: var(--accent-gold);
    font-weight: 400;
}

/* Floating Gender Switcher (X: کنار صفحه | Y: وسط عمودی | سفید) */
.gender-switcher-floating {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: var(--header-margin);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 8px 5px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.gender-switcher-floating .gender-btn {
    padding: 18px 6px;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    font-size: var(--font-size-xs);
    min-width: 0;
}

/* Gender Switcher - shared styles */
.gender-switcher-floating .gender-btn {
    padding: 18px 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-family);
}

.gender-switcher-floating .gender-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.gender-switcher-floating .gender-btn.active {
    background: var(--accent-gold);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}


/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-charcoal-light);
    position: relative;
    transition: var(--transition-normal);
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-action-btn svg {
    width: 22px;
    height: 22px;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--error);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 100;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-xs) 0;
}

.dropdown-menu .admin-link {
    color: var(--accent-gold);
}

.dropdown-menu .logout-link {
    color: var(--error);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-charcoal);
    z-index: 1002;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-header .logo-text {
    color: var(--color-charcoal-light);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.mobile-menu-header .logo-ampersand {
    color: var(--accent-gold);
}

.close-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-charcoal-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-nav {
    padding: var(--spacing-lg);
}

.mobile-nav-section {
    margin-bottom: var(--spacing-xl);
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-section-title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px var(--spacing-md);
    color: var(--color-charcoal-muted);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: var(--font-size-base);
    font-weight: 500;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-charcoal-light);
}

.mobile-nav-item.active {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent-gold);
}

.mobile-nav-item-logout {
    color: rgba(255, 100, 100, 0.9);
}

.mobile-nav-item-logout:hover {
    background: rgba(255, 100, 100, 0.15);
    color: #ff8888;
}

/* Mobile Gender Switcher */
.mobile-gender-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 6px;
}

.mobile-gender-switcher .gender-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Mobile Nav Expandable Submenu */
.mobile-nav-expandable {
    margin-bottom: var(--spacing-xs);
}

.mobile-nav-expand-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px var(--spacing-md);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-base);
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
}

.mobile-nav-expand-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-charcoal-light);
}

.mobile-nav-expand-trigger.active {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent-gold);
}

.mobile-nav-expand-trigger.active .mobile-nav-expand-icon {
    transform: rotate(180deg);
}

.mobile-nav-expand-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mobile-nav-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md) var(--spacing-xl);
    margin-top: 4px;
    border-right: 2px solid rgba(201, 169, 98, 0.3);
}

.mobile-nav-submenu.expanded {
    display: flex;
}

.mobile-nav-subitem {
    display: block;
    padding: 10px var(--spacing-md);
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-nav-subitem:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-charcoal-light);
}


/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* جلوگیری از overflow افقی در همه section ها */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ============================================
   Categories Section (Circular)
   ============================================ */
.categories-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.categories-slider {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    scroll-snap-align: start;
    text-align: center;
    min-width: 100px;
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: var(--transition-normal);
    background: var(--bg-secondary);
}

.category-item:hover .category-image {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-normal);
}

.category-item:hover .category-name {
    color: var(--text-primary);
}

/* ============================================
   Instagram Stories Section
   ============================================ */
.stories-section {
    padding: var(--spacing-md) 0;
    background: var(--bg-primary);
}

.stories-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.story-item:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-brand .story-ring {
    background: linear-gradient(45deg, var(--accent-gold), #e6c478, var(--accent-gold));
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.story-username {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-item:hover .story-username {
    color: var(--text-primary);
}

/* Responsive Stories */
@media (max-width: 768px) {
    .stories-wrapper {
        justify-content: flex-start;
        gap: var(--spacing-md);
    }
    
    .story-ring {
        width: 60px;
        height: 60px;
    }
    
    .story-username {
        font-size: 10px;
        max-width: 60px;
    }
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider-section {
    padding: var(--spacing-md);
    width: 100%;
    max-width: 100%;
}

/* دسکتاپ - تمام عرض */
@media (min-width: 1024px) {
    .hero-slider-section {
        padding: var(--spacing-md) 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-slider-section .container {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .hero-slider-section .slider-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}

.slider-container {
    position: relative !important;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-slider {
    position: relative !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    height: 500px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img,
.slide .slider-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    display: block;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* اگر تصویر overlay وجود داشته باشد، از multiple backgrounds استفاده می‌کنیم */
.slide-overlay[style*="background-image"] {
    background-image: var(--overlay-bg-image, none), linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-2xl);
    text-align: center;
    z-index: 10;
}

.slide-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide.active .slide-title {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slide.active .slide-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.slide-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.slide.active .slide-buttons {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Slider Navigation Arrows */
.slider-container {
    position: relative;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    pointer-events: none;
}

.slider-dots .dot {
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.2);
}

/* Slider Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Image Desktop/Mobile */
.slider-image-desktop {
    display: block;
}

.slider-image-mobile {
    display: none;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider-section {
        padding: var(--spacing-sm);
    }
    
    .hero-slider {
        height: 250px !important;
        min-height: 250px;
    }
    
    .slide {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    /* نمایش تصویر موبایل و مخفی کردن دسکتاپ */
    .slider-image-desktop {
        display: none;
    }
    
    .slider-image-mobile {
        display: block;
    }
    
    .slide-title {
        font-size: var(--font-size-xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-sm);
    }
    
    
    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .hero-slider {
        height: 200px !important;
        min-height: 200px;
    }
    
    .slider-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (min-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: var(--font-size-3xl);
    }
    
    .slide-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 600px;
    }
    
    .slide-title {
        font-size: var(--font-size-4xl);
    }
}

/* ============================================
   Products Grid
   ============================================ */
.products-section {
    padding: var(--spacing-xl) 0;
    overflow-x: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-link {
    font-size: var(--font-size-sm);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.view-all-link:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Sportfit Image */
.sportfit-image-wrapper {
    width: 100%;
    padding: 0 8px;
    margin: var(--spacing-md) 0 0;
    box-sizing: border-box;
}

.sportfit-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.sportfit-mobile {
    display: block;
    max-height: 360px;
}

.sportfit-desktop {
    display: none;
}

@media (min-width: 768px) {
    .sportfit-image-wrapper {
        padding: 0 12px;
    }
    
    .sportfit-image-wrapper.backmeshki-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: var(--spacing-md);
    }
    
    .sportfit-mobile {
        max-height: 504px;
    }
}

@media (min-width: 1024px) {
    .sportfit-image-wrapper {
        padding: 0;
    }
    
    .sportfit-image-wrapper.backmeshki-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: var(--spacing-md);
    }
    
    .sportfit-mobile {
        display: none;
    }
    
    .sportfit-desktop {
        display: block;
        max-height: 400px;
    }
}

@media (min-width: 1440px) {
    .sportfit-desktop {
        max-height: 576px;
    }
}

/* Classicfit Image - نمایش در همه سایزها */
.sportfit-image-wrapper:has(.classicfit-image) {
    position: relative;
    z-index: 4;
}

.classicfit-image {
    display: block;
    max-height: 360px;
    position: relative;
    z-index: 4;
}

@media (min-width: 768px) {
    .classicfit-image {
        max-height: 504px;
    }
}

@media (min-width: 1024px) {
    .classicfit-image {
        max-height: 400px;
    }
}

@media (min-width: 1440px) {
    .classicfit-image {
        max-height: 576px;
    }
}

/* Backmeshki Image - نمایش در همه سایزها */
/* ابعاد اصلی SVG: 674px × 1499.78px (نسبت تقریبی 1:2.22) */
.backmeshki-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    position: relative;
    z-index: 2;
}

/* دسکتاپ - بزرگتر کردن بک گراند مشکی */
@media (min-width: 1024px) {
    .backmeshki-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 2200px;
    }
}

@media (min-width: 1440px) {
    .backmeshki-image {
        min-height: 2400px;
    }
}

.backmeshki-products .product-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1023px) {
    .backmeshki-products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        width: calc(100% - 40px);
    }
}

@media (max-width: 767px) {
    .backmeshki-products {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
    }
}

.sportfit-image-wrapper.backmeshki-wrapper {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: var(--spacing-md);
    position: relative;
    overflow: visible;
    isolation: isolate;
    z-index: 1;
}

.backmeshki-content {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
    isolation: isolate;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .backmeshki-content {
        padding: 0 var(--spacing-xl);
    }
}

@media (min-width: 1440px) {
    .backmeshki-content {
        padding: 0 var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .backmeshki-content {
        padding: 0 !important;
    }
}

}

@media (max-width: 768px) {
    .backmeshki-image {
        height: auto !important;
        min-height: auto !important;
        object-fit: contain !important;
        object-position: center top !important;
        max-height: none !important;
    }
    
    .backmeshki-content {
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    .backmeshki-image {
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
    }
    
    /* تنظیم ارتفاع backmeshki-image تا انتهای group3-products-section */
    .backmeshki-offer-wrapper.group3-products-section {
        position: relative;
    }
    
    /* اطمینان از اینکه backmeshki-image تا انتهای group3-products-section ادامه دارد */
    .backmeshki-content:has(.backmeshki-offer-wrapper.group3-products-section) .backmeshki-image {
        min-height: calc(100% + 300px) !important;
        height: auto !important;
    }
    
    /* روش جایگزین: استفاده از absolute positioning */
    .backmeshki-wrapper:has(.backmeshki-offer-wrapper.group3-products-section) {
        position: relative;
    }
    
    .backmeshki-wrapper:has(.backmeshki-offer-wrapper.group3-products-section) .backmeshki-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
    }
    
    .backmeshki-content {
        overflow: visible !important;
        height: auto;
        min-height: auto;
    }
    
    .sportfit-image-wrapper.backmeshki-wrapper {
        overflow: visible !important;
        height: auto;
        min-height: auto;
    }
    
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: right !important;
        padding-right: 4px !important;
        box-sizing: border-box !important;
    }
}

/* هلال 20 درصد - فرورفته به داخل از بالا */
.backmeshki-crescent-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-80%);
    width: 200%;
    height: 500px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}

/* خطوط سفید در پایین تصویر */
.backmeshki-lines {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1406px;
    height: 100px;
    z-index: 15;
    pointer-events: none;
}

.backmeshki-line {
    position: absolute;
    border: 1px solid #ffffff;
    background: transparent;
}

/* Line 1 - خط افقی با چرخش جزئی */
.backmeshki-line.line-1 {
    width: 441px;
    height: 0px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) rotate(-0.13deg);
    border-color: #ffffff;
}

/* Line 2 - خط عمودی */
.backmeshki-line.line-2 {
    width: 71px;
    height: 0px;
    bottom: 30px;
    left: calc(50% - 220px);
    transform: rotate(90deg);
    border-color: #ffffff;
}

/* Line 4 - خط عمودی دیگر */
.backmeshki-line.line-4 {
    width: 71px;
    height: 0px;
    bottom: 30px;
    right: calc(50% - 220px);
    transform: rotate(-90deg);
    border-color: #ffffff;
}

/* Line 5 - مستطیل افقی */
.backmeshki-line.line-5 {
    width: 436px;
    height: 22.53px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #ffffff;
    background: transparent;
}

.backmeshki-products {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    width: calc(100% - 80px);
    max-width: 1120px;
    z-index: 10;
}

/* Group 3 Image Wrapper - تصویر زیر اسپرت فیت */
/* Group 3 Sport Fit Image - تصویر زیر بخش اسپرت فیت */
.group3-sport-fit-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
    z-index: 5;
}

.group3-sport-fit-image {
    width: 100%;
    max-height: 250px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 768px) {
    .group3-sport-fit-wrapper {
        max-width: 1800px;
        padding: 0 var(--spacing-lg);
        bottom: 30px;
    }
    
    .group3-sport-fit-image {
        max-height: 280px;
    }
}

@media (min-width: 1024px) {
    .group3-sport-fit-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        bottom: 40px;
    }
    
    .group3-sport-fit-image {
        max-height: 300px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .backmeshki-image {
        min-height: 2200px;
    }
}

@media (min-width: 768px) {
    .backmeshki-image {
        aspect-ratio: 16 / 12;
        min-height: 2000px;
    }
    
    .backmeshki-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .backmeshki-image {
        aspect-ratio: 16 / 12;
        min-height: 2200px;
    }
    
    .backmeshki-products {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 1440px) {
    .backmeshki-image {
        aspect-ratio: 16 / 12;
        min-height: 2400px;
    }
    
    .group3-sport-fit-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        bottom: 50px;
    }
    
    .group3-sport-fit-image {
        max-height: 320px;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Responsive برای خطوط */
@media (max-width: 1023px) {
    .backmeshki-line.line-1 {
        width: 300px;
    }
    
    .backmeshki-line.line-2,
    .backmeshki-line.line-4 {
        width: 50px;
        left: calc(50% - 150px);
        right: calc(50% - 150px);
    }
    
    .backmeshki-line.line-5 {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .backmeshki-line.line-1 {
        width: 250px;
    }
    
    .backmeshki-line.line-2,
    .backmeshki-line.line-4 {
        width: 40px;
        left: calc(50% - 125px);
        right: calc(50% - 125px);
    }
    
    .backmeshki-line.line-5 {
        width: 250px;
    }
}

/* Product Card - Figma Design */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
    width: 100%;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.wishlist-btn:hover {
    background: white;
    color: #e74c3c;
}

.wishlist-btn.active {
    background: white;
    color: #e74c3c;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 9;
    min-height: 20px; /* حفظ ارتفاع حتی وقتی خالی است */
    min-width: 32px; /* حفظ عرض برای حفظ فضای layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discount-badge.empty {
    visibility: hidden; /* مخفی کردن اما حفظ فضای آن */
}

/* Product Info */
.product-info {
    padding: 6px 6px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    position: relative;
    min-height: auto;
    min-width: 0; /* جلوگیری از overflow در سایزهای کوچک */
    height: auto;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    text-align: center;
}

/* Product Price Wrapper - یک سمت رنگ، یک سمت باکس قیمت و سبد */
.product-price-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0; /* جلوگیری از overflow در کارت‌های باریک */
    margin-top: 4px;
}

/* سمت راست (در RTL): رنگ محصول - کنار باکس قیمت */
.product-price-wrapper > .product-color-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 1;
    align-self: flex-end;
}

/* سمت چپ (در RTL): باکس قیمت و سبد خرید */
.product-price-wrapper > .price-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
    order: 2;
}

.product-color {
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    white-space: nowrap;
}

/* تنوع رنگی - کنار باکس قیمت، سواچ‌ها زیرش باز میشن */
.color-variety-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.color-variety-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: color 0.2s;
}

.color-variety-toggle:hover {
    color: var(--accent-gold);
}

.color-variety-toggle .toggle-icon {
    transition: transform 0.2s;
}

.color-variety-wrapper.expanded .color-variety-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* سواچ‌های رنگ - مخفی تا کلیک، وقتی باز میشه زیر کل ردیف */
.color-swatches-expandable {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.color-swatches-expandable.expanded {
    display: flex;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Product Info override for color positioning if needed */
.product-info .product-color {
    position: static;
    margin: 0;
    padding: 0;
    height: auto;
}

/* Price Frame */
.price-frame {
    position: relative;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    background-color: #f5e6d3;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    background-image: none; /* Remove image if causing issues */
}

/* Price Content */
.price-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-price-number {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.product-price-toman {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: #000000;
}

.toman-bg { display: none; } /* Hide background image for text clarity */
.toman-text { padding: 0; }

/* Cart Button */
.cart-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Old Price */
.product-old-price {
    font-size: 11px;
    color: #999999;
    text-decoration: line-through;
    text-align: left; /* Align with price frame */
    display: block;
    min-height: 14px; /* حفظ ارتفاع حتی وقتی خالی است */
    line-height: 14px;
    margin-bottom: 0;
    width: 100%;
}

.product-old-price.empty {
    visibility: hidden; /* مخفی کردن اما حفظ فضای آن */
}


/* ============================================
   Footer (مثل هدر - گوشه‌های گرد و فاصله از دو طرف)
   ============================================ */
.footer {
    background: var(--color-charcoal);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    margin-left: var(--header-margin);
    margin-right: var(--header-margin);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md) var(--spacing-lg);
}

/* ترتیب برای توازن: دسته‌بندی‌ها جای شبکات (بالا)، شبکات پایین */
@media (max-width: 767px) {
    .footer-about { order: 2; }
    .footer-categories { order: 0; }
    .footer-section:nth-child(3) { order: 1; } /* Quick Links */
    .footer-section:nth-child(4) { order: 3; } /* Contact */
}

.footer-social-wrapper {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .footer-about,
    .footer-categories,
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        order: unset;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-charcoal-light);
}

.footer-title .logo-text {
    color: var(--color-charcoal-light);
}

.footer-title .logo-ampersand {
    color: var(--accent-gold);
}

.footer-subtitle {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-charcoal-light);
}

.footer-desc {
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (max-width: 767px) {
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    .footer .container {
        padding: 0 var(--spacing-md);
    }
    .footer .footer-section {
        gap: var(--spacing-xs);
    }
    .footer .footer-title {
        font-size: var(--font-size-lg);
    }
    .footer .footer-subtitle {
        font-size: var(--font-size-sm);
    }
    .footer .footer-desc {
        font-size: var(--font-size-xs);
        line-height: 1.6;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-xs) var(--spacing-sm);
    }
    .footer-links li {
        display: inline;
    }
    .footer-links a {
        display: inline;
    }
    .footer-contact li {
        font-size: var(--font-size-xs);
    }
    .social-links {
        gap: var(--spacing-xs);
    }
    .social-link {
        width: 32px;
        height: 32px;
    }
    .footer-bottom {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    .footer-bottom p {
        font-size: var(--font-size-xs);
    }
}

.footer-links a {
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-charcoal-light);
    padding-right: var(--spacing-xs);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--accent-gold);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal-light);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-charcoal-muted);
    font-size: var(--font-size-sm);
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 1100;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.flash-success {
    background: var(--success);
    color: white;
}

.flash-error {
    background: var(--error);
    color: white;
}

.flash-warning {
    background: var(--warning);
    color: white;
}

.flash-info {
    background: var(--info);
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: var(--font-size-xl);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-gold:hover {
    filter: brightness(1.1);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-card { background: var(--bg-card); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .gender-switcher {
        margin-left: var(--spacing-sm);
        padding: 3px;
    }
    
    .gender-btn {
        padding: 6px 12px;
        font-size: var(--font-size-xs);
    }
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .category-image {
        width: 100px;
        height: 100px;
    }
    
    .hero-banner {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 1024px) {
    .hero-banner {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

/* ============================================
   Quick Categories Section (زیر اسلایدر)
   ============================================ */
.quick-categories-section {
    padding: var(--spacing-lg) 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.quick-categories-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-md) 0;
}

/* Category Card Styles (for categories-slider) */
.categories-slider {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    min-width: 100px;
    flex-shrink: 0;
    scroll-snap-align: start;
    gap: var(--spacing-sm);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card:hover .category-icon,
.category-card:hover .category-image {
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
    border-color: var(--accent-gold);
}

.category-card:hover .category-name {
    color: var(--accent-gold);
}

.category-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background-image: url('/assets/images/zireslider/Rectangle-1.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-normal);
}

.category-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.category-card:hover .category-icon svg {
    color: var(--accent-gold);
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background-image: url('/assets/images/zireslider/Rectangle-1.svg');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    overflow: visible;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
    box-sizing: border-box;
}

.category-image img {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    object-fit: contain;
    display: block;
}

.category-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    min-width: 100px;
}

.quick-category-item:hover {
    transform: translateY(-5px);
}

.quick-category-item:hover .quick-category-icon {
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
    border-color: var(--accent-gold);
}

.quick-category-item:hover .quick-category-name {
    color: var(--accent-gold);
}

.quick-category-icon {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    background: #f5f5f5;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.quick-category-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.quick-category-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

/* Responsive Quick Categories */
@media (max-width: 768px) {
    .quick-categories-wrapper {
        gap: var(--spacing-md);
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: var(--spacing-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .quick-categories-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .quick-category-item {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .quick-category-icon {
        width: 70px;
        height: 70px;
    }
    
    .quick-category-name {
        font-size: var(--font-size-xs);
    }
    
    /* Category Card Responsive */
    .categories-slider {
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .category-card {
        min-width: 100px;
    }
    
    .category-icon,
    .category-image {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
    
    .category-image img {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
    }
    
    .category-icon svg {
        width: 54px;
        height: 54px;
    }
    
    .category-name {
        font-size: var(--font-size-xs);
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .quick-category-item {
        min-width: 70px;
    }
    
    .quick-category-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Category Card Small Screens */
    .category-card {
        min-width: 80px;
    }
    
    .category-icon,
    .category-image {
        width: 70px;
        height: 70px;
        padding: 8px;
    }
    
    .category-image img {
        max-width: calc(100% - 16px);
        max-height: calc(100% - 16px);
    }
    
    .category-icon svg {
        width: 42px;
        height: 42px;
    }
    
    .category-name {
        font-size: 10px;
        max-width: 80px;
    }
}

/* ============================================
   Product Card Responsive - همه سایزها
   ============================================ */

/* تبلت و موبایل بزرگ (تا 768px) */
@media (max-width: 768px) {
    .product-price-wrapper {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .product-price-wrapper > .product-color-section,
    .product-price-wrapper > .price-section {
        flex-shrink: 0;
    }
    
    .price-frame {
        padding: 3px 6px;
        height: 28px;
    }
    
    .product-price-number {
        font-size: 13px;
    }
    
    .product-price-toman {
        font-size: 9px;
    }
    
    .cart-btn {
        width: 22px;
        height: 22px;
    }
    
    .cart-icon {
        width: 16px;
        height: 16px;
    }
    
    .product-old-price {
        font-size: 10px;
    }
    
    .product-color,
    .color-variety-toggle {
        font-size: 12px;
    }
    
    .color-swatch {
        width: 18px;
        height: 18px;
    }
}

/* موبایل متوسط (تا 480px) */
@media (max-width: 480px) {
    /* تنظیم فاصله دکمه‌ها در موبایل کوچک */
    .backmeshki-offer-wrapper .offer-toggle-buttons .offer-btn + .offer-btn {
        margin-right: 5px !important;
        margin-left: 0 !important;
    }
    
    .product-info {
        padding: 6px 6px;
    }
    
    .product-name {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .product-price-wrapper {
        gap: 4px;
        margin-top: 3px;
    }
    
    .price-frame {
        padding: 2px 5px;
        height: 26px;
    }
    
    .product-price-number {
        font-size: 12px;
    }
    
    .product-price-toman {
        font-size: 8px;
    }
    
    .product-color,
    .color-variety-toggle {
        font-size: 11px;
    }
    
    .color-swatch {
        width: 16px;
        height: 16px;
    }
    
    .color-swatches-expandable {
        gap: 4px;
    }
}

/* موبایل خیلی کوچک (تا 360px) */
@media (max-width: 360px) {
    .product-price-wrapper {
        gap: 3px;
    }
    
    .price-frame {
        padding: 2px 4px;
        height: 24px;
    }
    
    .product-price-number {
        font-size: 11px;
    }
    
    .product-color,
    .color-variety-toggle {
        font-size: 10px;
    }
    
    .color-swatch {
        width: 14px;
        height: 14px;
    }
    
    .cart-btn {
        width: 20px;
        height: 20px;
    }
}

/* تبلت بزرگ و دسکتاپ (1024px+) - اطمینان از layout صحیح */
@media (min-width: 1024px) {
    .product-price-wrapper {
        flex-wrap: nowrap;
    }
}

/* ============================================
   Special Offer Section
   ============================================ */
.special-offer-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    height: 100%;
}

/* در دسکتاپ، دکمه‌ها را بیشتر به بالا منتقل می‌کنیم و ارتفاع فضای دکمه‌ها را افزایش می‌دهیم */
@media (min-width: 1025px) {
    .special-offer-section .offer-toggle-buttons {
        transform: translateY(-15px);
    }
    
    .special-offer-section .offer-btn {
        height: 75px;
    }
    
    .special-offer-section .offer-btn.offer-btn-active {
        height: 80px;
    }
    
    .special-offer-wrapper {
        padding-top: 15px;
        min-height: calc(80px + 15px);
    }
}


/* Offer Toggle Buttons - Tab Style */
.offer-toggle-buttons {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    justify-content: flex-start;
    z-index: 5; /* زیر باکس محتوا */
    position: relative;
    overflow: visible; /* برای نمایش گوشه‌های دکمه‌ها */
    padding-right: 0;
    isolation: isolate; /* ایجاد Stacking Context جدید */
}

.offer-btn {
    padding: 12px 16px !important;
    font-size: 16px;
    font-weight: 700;
    border: none;
    background: none;
    color: #000000;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    width: 240px;
    height: 62px;
    min-height: 62px;
    position: relative;
    border-radius: 24px 24px 0 0; /* گوشه‌های گرد بالا */
    overflow: visible !important; /* تغییر از hidden به visible برای کلیک بهتر */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0;
    pointer-events: auto !important; /* اطمینان از فعال بودن pointer events */
    /* افزایش area کلیک با padding بیشتر */
    box-sizing: border-box;
    /* افزایش area کلیک با margin منفی */
    margin-top: -10px;
    margin-bottom: -10px;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

.offer-btn * {
    color: inherit;
    position: relative;
    z-index: 10;
}

/* شکل دهی تب با گوشه‌های گرد با استفاده از before */
.offer-btn::before {
    content: '';
    position: absolute;
    top: -10px; /* افزایش area کلیک */
    left: -10px; 
    right: -10px;
    bottom: -10px; /* افزایش area کلیک */
    background: #ffffff; /* پس‌زمینه سفید برای هماهنگی با section */
    background-size: cover;
    background-position: center;
    border-radius: 24px 24px 0 0; /* گوشه‌های گرد بالا */
    transform-origin: bottom center;
    transform: perspective(150px) rotateX(10deg); /* حالت ذوزنقه */
    box-shadow: none; /* حذف سایه برای عدم وجود خط فاصله */
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none; /* اجازه کلیک از طریق pseudo-element */
}

/* متن دکمه باید روی شکل باشد */
.offer-btn span {
    position: relative;
    z-index: 2;
    color: #000000;
}

/* افزایش area کلیک با padding و margin بیشتر - اما نه خیلی زیاد */
.backmeshki-offer-wrapper .offer-btn {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: -5px !important;
    margin-bottom: -5px !important;
    min-height: 50px !important;
    height: auto !important;
    z-index: 1 !important;
    position: relative;
}

/* Override برای classic-fit-section */
.classic-fit-section .offer-btn {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    height: auto !important;
    font-size: 14px !important;
}

/* همپوشانی دکمه‌ها مثل کلاسور - گوشه‌ها زیر هم */
.offer-btn + .offer-btn {
    margin-left: -30px; /* همپوشانی کم */
}

/* دکمه غیرفعال - عقب‌تر (مثل برگه پایین کلاسور) */
.offer-btn:not(.offer-btn-active) {
    z-index: 1 !important;
    position: relative;
    overflow: visible; /* برای نمایش گوشه‌های زیر */
    transform: scale(0.95); /* کمی کوچک‌تر */
    filter: brightness(0.95);
}

.offer-btn:not(.offer-btn-active)::before {
    background: #f0f0f0; /* پس‌زمینه خاکستری روشن برای تفاوت با دکمه فعال */
    filter: none;
    transform: perspective(150px) rotateX(10deg) scale(0.95);
    transform-origin: bottom center;
    box-shadow: none;
    z-index: -1;
    border-radius: 24px 24px 0 0;
    pointer-events: none; /* اجازه کلیک از طریق pseudo-element */
}

.offer-btn:hover::before {
    filter: brightness(0.95);
}

/* حالت فعال (جلو) - مثل برگه بالای کلاسور */
.offer-btn.offer-btn-active {
    z-index: 2 !important; /* بالاتر از دکمه غیرفعال اما زیر بک‌گراند */
    color: #000000 !important;
    font-weight: 800;
    position: relative;
    overflow: visible; /* برای نمایش کامل */
    transform: scale(1.05); /* اندازه اصلی */
    box-shadow: none;
}

.offer-btn.offer-btn-active span {
    color: #000000 !important;
    position: relative;
}

/* باکس محتوا زیر دکمه‌ها */
.offer-content-box {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    background: #f5f5f5;
    border-radius: 0 24px 24px 24px; /* گوشه بالا چپ تیز باشد تا به دکمه بچسبد (اختیاری) یا همان گرد */
    padding: var(--spacing-xl);
    margin-top: -2px; /* برای اتصال به دکمه‌ها */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    position: relative;
    z-index: 20; /* بالاتر از دکمه‌ها */
}

.content-box-inner {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .offer-content-box {
        padding: var(--spacing-lg);
        min-height: 250px;
        border-radius: 0 0 16px 16px;
    }
}

/* نمایش ردیفی (اسلایدر افقی) محصولات */
.offer-content-box .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding-bottom: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* فایرفاکس */
    /* margin: 0 -1rem; حذف مارجین منفی برای دسکتاپ */
    padding: 0 0 var(--spacing-sm) 0;
}

.offer-content-box .products-grid::-webkit-scrollbar {
    display: none; /* کروم و سافاری */
}

.offer-content-box .product-card {
    min-width: 280px;
    width: 280px;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .offer-content-box .products-grid {
        margin: 0 -1rem; /* جبران پدینگ کانتینر در موبایل */
        padding: 0 1rem var(--spacing-sm) 1rem;
        gap: 0;
    }

    .offer-content-box .product-card {
        min-width: 200px;
        width: 200px;
    }
}

.offer-btn.offer-btn-active::before {
    background: #ffffff; /* پس‌زمینه سفید */
    filter: brightness(1) !important;
    transform: perspective(150px) rotateX(10deg) scale(1.05);
    transform-origin: bottom center;
    box-shadow: none;
    z-index: -1;
    border-radius: 24px 24px 0 0;
    pointer-events: none; /* اجازه کلیک از طریق pseudo-element */
}


.special-offer-section {
    background: transparent;
    width: 100%;
    min-height: auto;
    margin: var(--spacing-2xl) 0;
    margin-top: 80px;
    margin-bottom: 0;
    display: block;
    position: relative;
    overflow: visible;
    border: none;
    padding: 0;
}

/* Position buttons relative to container, not section content */
.special-offer-section .container {
    position: relative;
}

/* Position buttons relative to container - fixed position regardless of content */
.special-offer-section .offer-toggle-buttons {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    justify-content: flex-start;
    z-index: 5;
    position: relative;
    overflow: visible;
    padding-right: 0;
    margin-bottom: -30px;
    isolation: isolate;
}

/* مرکز کردن دکمه‌ها در دسکتاپ */
@media (min-width: 1025px) {
    .special-offer-section .offer-toggle-buttons {
        justify-content: center;
    }
}

/* در سایزهای کوچک‌تر از دسکتاپ، دکمه‌ها را به بالا منتقل می‌کنیم */
@media (max-width: 1024px) {
    .special-offer-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .special-offer-section .offer-toggle-buttons {
        order: -1;
        margin-bottom: 0;
        position: relative;
        z-index: 10;
    }
    
}

/* Optional: Overlay if text needs to be readable */
/*
.special-offer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
*/

/* بکگراند خاکستری در backmeshki - استایل‌ها در بالا تعریف شده‌اند */

@media (max-width: 768px) {
    .backmeshki-offer-wrapper .offer-content-box {
        padding-left: var(--spacing-sm) !important;
        padding-right: var(--spacing-sm) !important;
    }
}

/* ============================================
   Background Image Section
   ============================================ */
.background-image-section {
    width: 100%;
    min-height: 350px;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-2xl) 0;
    clear: both;
    overflow: hidden;
}

.background-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.background-image-section .container {
    position: relative;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-section-content {
    position: relative;
    z-index: 2;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.background-image-item {
    max-width: 200px;
    width: auto;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: var(--transition-normal);
}

.background-image-item:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .background-image-section {
        min-height: 280px;
        padding: var(--spacing-lg) 0;
        background-size: cover;
        background-position: center center;
    }
    
    .background-image-section .container {
        padding: 0 var(--container-padding);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .background-section-content {
        min-height: 250px;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        flex-direction: row;
    }
    
    .background-image-item {
        max-width: 150px;
        width: auto;
        max-height: 200px;
    }
}

@media (min-width: 1024px) {
    .background-image-section {
        min-height: 450px;
        padding: var(--spacing-2xl) 0;
        background-size: cover;
        background-position: center center;
    }
    
    .background-image-section .container {
        width: 100%;
        max-width: var(--container-max);
        padding: 0 var(--spacing-xl);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .background-section-content {
        min-height: 400px;
        padding: var(--spacing-xl);
        gap: var(--spacing-2xl);
    }
    
    .background-image-item {
        max-width: 250px;
        max-height: 350px;
    }
}

/* ============================================
   SVG Section
   ============================================ */

/* ============================================
   Union Section
   ============================================ */
.union-section {
    width: 100%;
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.union-container {
    position: relative;
    width: 100%;
    max-width: 1370px;
    height: auto;
    min-height: 400px;
}

.union-shape {
    position: absolute;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 400px;
    background: #D9D9D9;
    border-radius: 53px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.rectangle-1 {
    position: absolute;
    width: 80%;
    max-width: 1370px;
    height: auto;
    min-height: 300px;
    background: #D9D9D9;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.rectangle-3 {
    position: absolute;
    width: 403px;
    max-width: 30%;
    height: 98px;
    background: #D9D9D9;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .union-container {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    
    .union-shape {
        width: 100%;
        height: 400px;
        border-radius: 30px;
    }
    
    .rectangle-1 {
        width: 80%;
        max-width: 80%;
        height: 300px;
    }
    
    .rectangle-3 {
        width: 60%;
        height: 60px;
    }
}

@media (min-width: 1024px) {
    .union-container {
        width: 100%;
        max-width: 1370px;
        height: 662px;
    }
}

/* ============================================
   SVG Image Section
   ============================================ */
.svg-image-section {
    padding: 0 0 var(--spacing-2xl) 0;
    background: #000000;
    width: 100%;
    overflow: hidden;
}

.svg-image-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    margin-top: 0;
    padding-top: 0;
}

.svg-image-section .container {
    padding-top: 0;
    margin-top: 0;
}

.svg-image-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.svg-image-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #007AFF;
    border-radius: 2px;
}

.svg-image-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    gap: 0;
}

.svg-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.svg-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-image-container .svg-image {
    width: 80%;
    height: auto;
    max-width: 80%;
    display: block;
    margin: 0 auto;
}

.svg-image-overlay {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.svg-image-overlay-1 {
    top: calc(65% - 3px);
    left: 30%;
    transform: translate(-50%, -50%);
}

.svg-image-overlay-2 {
    top: calc(65% - 3px);
    left: 70%;
    transform: translate(-50%, -50%);
}

.svg-image-small {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

/* Responsive - لپ‌تاپ */
@media (min-width: 769px) and (max-width: 1200px) {
    .svg-image-container .svg-image {
        width: 64%;
        max-width: 64%;
    }
    
    .svg-image-overlay {
        width: 240px;
        height: 240px;
    }
    
    .svg-image-overlay-1 {
        top: calc(60% - 3px);
        left: 35%;
    }
    
    .svg-image-overlay-2 {
        top: calc(60% - 3px);
        left: 65%;
    }
}

/* Responsive - دسکتاپ بزرگ */
@media (min-width: 1201px) {
    .svg-image-container .svg-image {
        width: 51.2%;
        max-width: 51.2%;
    }
    
    .svg-image-overlay {
        width: 360px;
        height: 360px;
    }
    
    .svg-image-overlay-1 {
        top: calc(55% - 3px);
        left: 36%;
    }
    
    .svg-image-overlay-2 {
        top: calc(55% - 3px);
        left: 64%;
    }
}

/* Responsive - موبایل */
@media (max-width: 768px) {
    .svg-image-wrapper {
        padding: var(--spacing-md);
    }
    
    .svg-image-overlay-1,
    .svg-image-overlay-2 {
        top: calc(60% - 3px);
    }
    
    .svg-image-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .svg-image-title::after {
        width: 80px;
        height: 2px;
    }
}

/* تم بانو برای SVG Section */
html.gender-female .svg-image-section {
    background: #000000 !important;
}

html.gender-female .svg-image-title {
    color: #5a4a3a;
}
html.gender-female .svg-image-title::after {
    background: #d4b88c;
}

/* ============================================
   New Products Horizontal Slider Section
   ============================================ */
.new-products-slider-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    width: 100%;
}

.products-slider {
    width: 100%;
    overflow: hidden;
}

.products-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* فایرفاکس */
    padding: 0 0 var(--spacing-sm) 0;
}

.products-slider-wrapper::-webkit-scrollbar {
    display: none; /* کروم و سافاری */
}

.products-slider-wrapper .product-card {
    min-width: 280px;
    width: 280px;
    flex: 0 0 auto;
}


/* Responsive - موبایل */
@media (max-width: 767px) {
    .products-slider-wrapper {
        margin: 0 -1rem; /* جبران پدینگ کانتینر در موبایل */
        padding: 0 1rem var(--spacing-sm) 1rem;
    }

    .products-slider-wrapper .product-card {
        min-width: 200px;
        width: 200px;
    }
}

/* تم بانو برای New Products Slider */
html.gender-female .new-products-slider-section {
    background: rgb(245, 230, 211) !important;
}

/* ============================================
   Featured Products Horizontal Slider Section
   ============================================ */
.featured-products-slider-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    width: 100%;
}

.featured-products-slider-section .products-slider {
    width: 100%;
    overflow: hidden;
}

.featured-products-slider-section .products-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* فایرفاکس */
    padding: 0 0 var(--spacing-sm) 0;
}

.featured-products-slider-section .products-slider-wrapper::-webkit-scrollbar {
    display: none; /* کروم و سافاری */
}

.featured-products-slider-section .products-slider-wrapper .product-card {
    min-width: 280px;
    width: 280px;
    flex: 0 0 auto;
}


/* Responsive - موبایل */
@media (max-width: 767px) {
    .featured-products-slider-section .products-slider-wrapper {
        margin: 0 -1rem; /* جبران پدینگ کانتینر در موبایل */
        padding: 0 1rem var(--spacing-sm) 1rem;
    }

    .featured-products-slider-section .products-slider-wrapper .product-card {
        min-width: 200px;
        width: 200px;
    }
    
}

/* تم بانو برای Featured Products Slider */
html.gender-female .featured-products-slider-section {
    background: rgb(245, 230, 211) !important;
}

/* ============================================
   Bestselling Products Horizontal Slider Section
   ============================================ */
.bestselling-products-slider-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    width: 100%;
}

.bestselling-products-slider-section .products-slider {
    width: 100%;
    overflow: hidden;
}

.bestselling-products-slider-section .products-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* فایرفاکس */
    padding: 0 0 var(--spacing-sm) 0;
}

.bestselling-products-slider-section .products-slider-wrapper::-webkit-scrollbar {
    display: none; /* کروم و سافاری */
}

.bestselling-products-slider-section .products-slider-wrapper .product-card {
    min-width: 280px;
    width: 280px;
    flex: 0 0 auto;
}

/* Responsive - موبایل */
@media (max-width: 767px) {
    .bestselling-products-slider-section .products-slider-wrapper {
        margin: 0 -1rem; /* جبران پدینگ کانتینر در موبایل */
        padding: 0 1rem var(--spacing-sm) 1rem;
    }

    .bestselling-products-slider-section .products-slider-wrapper .product-card {
        min-width: 200px;
        width: 200px;
    }
}

/* تم بانو برای Bestselling Products Slider */
html.gender-female .bestselling-products-slider-section {
    background: rgb(245, 230, 211) !important;
}

/* ============================================
   Features Section Styles
   ============================================ */
.features-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    margin-top: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #d4af37, var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    fill: none;
    color: var(--text-primary);
}

.feature-text {
    width: 100%;
}

.feature-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.feature-text p {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

/* Banner Section */
.banner-section {
    padding: var(--spacing-xl) 0;
    background: transparent;
}

.banner-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* دسکتاپ - محدود کردن عرض بنر */
@media (min-width: 1024px) {
    .banner-section .container {
        max-width: var(--container-max);
        padding: 0 var(--container-padding);
    }
    
    .banner-image {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
}

/* دسته‌بندی‌های صفحه محصولات */
.products-page-categories-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.products-page-categories-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.products-page-categories-slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0 var(--spacing-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-page-categories-slider::-webkit-scrollbar {
    display: none;
}

.products-page-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
    min-width: 100px;
    flex-shrink: 0;
    scroll-snap-align: start;
    gap: var(--spacing-sm);
}

.products-page-category-card:hover,
.products-page-category-card.active {
    color: var(--accent-gold);
}

.products-page-category-card:hover .products-page-category-image,
.products-page-category-card.active .products-page-category-image {
    box-shadow: 0 6px 16px rgba(201, 169, 98, 0.3);
    border-color: var(--accent-gold);
}

.products-page-category-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.products-page-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-page-category-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-page-category-card:hover .products-page-category-name,
.products-page-category-card.active .products-page-category-name {
    color: var(--accent-gold);
}

/* دسکتاپ - اسکرول افقی (همانند موبایل) */
@media (min-width: 768px) {
    .products-page-categories-slider {
        gap: var(--spacing-lg);
    }
    
    .products-page-category-card {
        min-width: 110px;
    }
    
    .products-page-category-image {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 1024px) {
    .products-page-categories-slider {
        gap: var(--spacing-xl);
    }
    
    .products-page-category-image {
        width: 120px;
        height: 120px;
    }
}

html.gender-female .products-page-categories-section {
    background: rgb(250, 240, 225);
}

/* ========================================
   Mobile Bottom Navigation Bar (نوار موبایل)
   ======================================== */
.banoo-bottom-nav {
    position: fixed;
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--color-charcoal);
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(17.9px);
    -webkit-backdrop-filter: blur(17.9px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    display: none;
    z-index: 1200;
}

.banoo-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.banoo-bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 22px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.banoo-bottom-nav-item:hover,
.banoo-bottom-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-charcoal-light);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.banoo-bottom-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banoo-bottom-nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    color: var(--color-charcoal-light);
    fill: currentColor;
    transition: transform 0.25s ease, color 0.25s ease;
}

.banoo-bottom-nav-item:hover .banoo-bottom-nav-icon,
.banoo-bottom-nav-item.active .banoo-bottom-nav-icon {
    transform: scale(1.1);
    color: var(--accent-gold);
}

.banoo-bottom-nav-icon-wrap {
    margin-bottom: 2px;
}

.banoo-bottom-nav-icon-wrap .banoo-bottom-nav-icon {
    margin-bottom: 0;
}

.banoo-bottom-nav-label {
    letter-spacing: -0.01em;
    white-space: nowrap;
    font-size: 0.6rem;
}

.banoo-bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .banoo-bottom-nav {
        display: block;
    }

    body:not(.admin-body) {
        padding-bottom: 72px;
    }
}

/* ============================================
   داشبورد مشتری - Customer Dashboard
   ============================================ */
.dashboard-section {
    padding: var(--spacing-2xl) 0;
    min-height: calc(100vh - var(--header-height) - 200px);
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.06) 0%, transparent 200px);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

/* سایدبار */
.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--header-margin) + 1rem);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    margin: calc(-1 * var(--spacing-xl)) calc(-1 * var(--spacing-xl)) var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8954a 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sidebar-header .user-avatar {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-header .avatar-placeholder {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sidebar-header .user-info strong {
    color: white;
    font-size: var(--font-size-lg);
}

.sidebar-header .user-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.08));
    color: var(--accent-gold);
    font-weight: 600;
}

.sidebar-link.admin-link {
    color: var(--accent-gold);
}

.sidebar-link.logout-link {
    color: var(--error);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-sm) 0;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-info strong {
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.user-email {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.dashboard-main {
    min-width: 0;
}

.dashboard-header,
.dashboard-welcome {
    margin-bottom: var(--spacing-xl);
}

.dashboard-welcome {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8954a 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.dashboard-welcome .dashboard-title {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.dashboard-welcome .dashboard-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
}

.dashboard-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* کارت‌های آمار */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.orders { background: linear-gradient(135deg, rgba(201, 169, 98, 0.25), rgba(201, 169, 98, 0.1)); color: var(--accent-gold); }
.stat-icon.delivered { background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1)); color: var(--success); }
.stat-icon.wishlist { background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.08)); color: var(--error); }

.stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* کارت داشبورد */
.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.dashboard-card .card-header h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
}

.dashboard-card .card-body {
    padding: var(--spacing-xl);
}

/* کارت‌های سفارش */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.order-card-footer {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1), transparent);
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }
}