/**
 * اصلاح استایل‌های backmeshki - حذف !important و اعمال بک‌گراند درست
 */


/* ============================================
   Backmeshki Offer Wrapper
   ============================================ */
.backmeshki-offer-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 90%;
    margin: 0 auto var(--spacing-3xl);
    padding: 0;
}

.backmeshki-offer-wrapper:last-child {
    margin-bottom: 0;
}

/* ============================================
   Classic Fit Section - بازنویسی کامل
   ============================================ */
.classic-fit-section {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-3xl);
    padding-top: 45px;
    margin-top: var(--spacing-xl);
}

/* Tab Buttons (کلاسور) */
.classic-fit-tabs {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    margin-bottom: 0;
    padding-left: 0;
    align-items: flex-end;
    justify-content: flex-end;
}

.classic-fit-tab {
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: -10px;
    white-space: nowrap;
    box-shadow: none;
    width: 200px;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
    border-radius: 18px 18px 0 0;
    overflow: visible;
    transform: scale(0.95);
}

.classic-fit-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d1d5db;
    clip-path: polygon(0% 100%, 3% 5%, 5% 2%, 7% 0.5%, 9% 0%, 91% 0%, 93% 0.5%, 95% 2%, 97% 5%, 100% 100%);
    border-radius: 18px 18px 0 0;
    z-index: -1;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.classic-fit-tab:first-child {
    margin-left: 0;
}

.classic-fit-tab[data-tab="classic-bottom"] {
    margin-left: -20px;
    margin-top: 0;
    z-index: 0;
}

.classic-fit-tab:hover {
    transform: scale(1.05);
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.classic-fit-tab:hover::before {
    background: #e5e7eb;
}

.classic-fit-tab.classic-fit-tab-active {
    z-index: 2;
    transform: scale(1.05);
    margin-top: 0;
    margin-bottom: -10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    height: 55px;
    min-height: 55px;
}

.classic-fit-tab:not(.classic-fit-tab-active) {
    z-index: 1;
    transform: scale(0.95);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
}

.classic-fit-tab.classic-fit-tab-active::before {
    background: #f3f4f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-bottom: none;
}

.classic-fit-tab::before {
    border-bottom: none;
}

/* Products Container with Background */
.classic-fit-products-container {
    position: relative;
    width: 100%;
    background: #f3f4f6 !important;
    border-radius: 16px !important;
    padding: var(--spacing-xl);
    margin-top: 0;
    z-index: 5;
    border: none;
    padding-top: var(--spacing-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .classic-fit-products-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: 16px !important;
    }
}

/* Section Title */
.classic-fit-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #000000;
    text-align: right;
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0;
}

/* Content Tabs */
.classic-fit-content {
    display: none;
}

.classic-fit-content.classic-fit-content-active {
    display: block;
}

/* Scroll Grid Wrapper با فلش‌های اسکرول */
.scroll-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.scroll-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--color-charcoal);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.scroll-arrow:hover {
    background: var(--accent-gold);
    transform: scale(1.05);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .scroll-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .scroll-arrow svg {
        width: 16px;
        height: 16px;
    }
}

.scroll-grid-wrapper .classic-fit-products-grid,
.scroll-grid-wrapper .sport-fit-products-grid,
.scroll-grid-wrapper .suggested-fit-products-grid {
    flex: 1;
    min-width: 0;
}

/* Products Grid - Horizontal Scroll (بدون نوار اسکرول) */
.classic-fit-products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.classic-fit-products-grid::-webkit-scrollbar {
    display: none;
}

.classic-fit-products-grid .product-card {
    flex: 0 0 auto;
    width: 160px;
}

@media (min-width: 768px) {
    .classic-fit-products-grid .product-card {
        width: 200px;
    }
}

@media (min-width: 1024px) {
    .classic-fit-products-grid .product-card {
        width: 220px;
    }
}

/* Product Cards */
.classic-fit-section .product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.classic-fit-section .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    .classic-fit-tab {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 12px 12px 0 0;
        width: 160px;
        height: 42px;
        min-height: 42px;
        margin-bottom: -8px;
    }
    
    .classic-fit-tab.classic-fit-tab-active {
        transform: scale(1.05);
        margin-bottom: -8px;
        height: 44px;
        min-height: 44px;
    }
    
    .classic-fit-tab[data-tab="classic-bottom"] {
        margin-left: -20px;
    }
    
    .classic-fit-section {
        padding-top: 38px;
    }
    
    .classic-fit-products-container {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 12px !important;
    }
    
    .classic-fit-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
    
    .classic-fit-products-grid {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .classic-fit-tab {
        padding: 8px 12px;
        font-size: 12px;
        width: 150px;
        height: 40px;
        min-height: 40px;
        margin-bottom: -8px;
    }
    
    .classic-fit-tab.classic-fit-tab-active {
        margin-bottom: -8px;
        height: 42px;
        min-height: 42px;
    }
    
    .classic-fit-tabs {
        flex-wrap: nowrap;
    }
    
    .classic-fit-tab[data-tab="classic-bottom"] {
        margin-left: -20px;
    }
    
    .classic-fit-section {
        padding-top: 35px;
    }
}

/* ============================================
   Product Cards در Backmeshki
   ============================================ */
.backmeshki-offer-wrapper .product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.backmeshki-offer-wrapper .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Sport Fit Section - دقیقاً مثل Classic Fit
   ============================================ */
.sport-fit-section {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-3xl);
    padding-top: 45px;
}

/* Tab Buttons برای Sport Fit */
.sport-fit-tabs {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    margin-bottom: 0;
    padding-left: 0;
    align-items: flex-end;
    justify-content: flex-end;
}

.sport-fit-tab {
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: -10px;
    white-space: nowrap;
    box-shadow: none;
    width: 200px;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
    border-radius: 18px 18px 0 0;
    overflow: visible;
    transform: scale(0.95);
}

.sport-fit-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d1d5db;
    clip-path: polygon(0% 100%, 3% 5%, 5% 2%, 7% 0.5%, 9% 0%, 91% 0%, 93% 0.5%, 95% 2%, 97% 5%, 100% 100%);
    border-radius: 18px 18px 0 0;
    z-index: -1;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.sport-fit-tab:first-child {
    margin-left: 0;
}

.sport-fit-tab[data-tab="sport-bottom"] {
    margin-left: -20px;
    margin-top: 0;
    z-index: 0;
}

.sport-fit-tab:hover {
    transform: scale(1.05);
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.sport-fit-tab:hover::before {
    background: #e5e7eb;
}

.sport-fit-tab.sport-fit-tab-active {
    z-index: 2;
    transform: scale(1.05);
    margin-top: 0;
    margin-bottom: -10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    height: 55px;
    min-height: 55px;
}

.sport-fit-tab:not(.sport-fit-tab-active) {
    z-index: 1;
    transform: scale(0.95);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
}

.sport-fit-tab.sport-fit-tab-active::before {
    background: #f3f4f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-bottom: none;
}

.sport-fit-tab::before {
    border-bottom: none;
}

/* Products Container for Sport Fit */
.sport-fit-products-container {
    position: relative;
    width: 100%;
    background: #f3f4f6 !important;
    border-radius: 16px !important;
    padding: var(--spacing-xl);
    margin-top: 0;
    z-index: 5;
    border: none;
    padding-top: var(--spacing-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .sport-fit-products-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: 16px !important;
    }
}

/* Section Title for Sport Fit */
.sport-fit-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #000000;
    text-align: right;
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0;
}

/* Content Tabs for Sport Fit */
.sport-fit-content {
    display: none;
}

.sport-fit-content.sport-fit-content-active {
    display: block;
}

/* Products Grid for Sport Fit - Horizontal Scroll (بدون نوار اسکرول) */
.sport-fit-products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sport-fit-products-grid::-webkit-scrollbar {
    display: none;
}

.sport-fit-products-grid .product-card {
    flex: 0 0 auto;
    width: 160px;
}

@media (min-width: 768px) {
    .sport-fit-products-grid .product-card {
        width: 200px;
    }
}

@media (min-width: 1024px) {
    .sport-fit-products-grid .product-card {
        width: 220px;
    }
}

/* Responsive for Sport Fit */
@media (max-width: 767px) {
    .sport-fit-tab {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 12px 12px 0 0;
        width: 160px;
        height: 42px;
        min-height: 42px;
        margin-bottom: -8px;
    }
    
    .sport-fit-tab.sport-fit-tab-active {
        transform: scale(1.05);
        margin-bottom: -8px;
        height: 44px;
        min-height: 44px;
    }
    
    .sport-fit-tab[data-tab="sport-bottom"] {
        margin-left: -20px;
    }
    
    .sport-fit-section {
        padding-top: 38px;
    }
    
    .sport-fit-products-container {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 12px !important;
    }
    
    .sport-fit-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .sport-fit-tab {
        padding: 8px 12px;
        font-size: 12px;
        width: 150px;
        height: 40px;
        min-height: 40px;
        margin-bottom: -8px;
    }
    
    .sport-fit-tab.sport-fit-tab-active {
        margin-bottom: -8px;
        height: 42px;
        min-height: 42px;
    }
    
    .sport-fit-tabs {
        flex-wrap: nowrap;
    }
    
    .sport-fit-tab[data-tab="sport-bottom"] {
        margin-left: -20px;
    }
    
    .sport-fit-section {
        padding-top: 35px;
    }
}

/* ============================================
   Suggested Products Section - محصولات پیشنهادی
   ============================================ */
.suggested-fit-section {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-3xl);
    padding-top: 45px;
}

/* Tab Button for Suggested */
.suggested-fit-tabs {
    display: flex;
    flex-direction: row-reverse;
    gap: 0;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    margin-bottom: 0;
    padding-left: 0;
    align-items: flex-end;
    justify-content: flex-end;
}

.suggested-fit-tab {
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: -10px;
    white-space: nowrap;
    box-shadow: none;
    width: 200px;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    border-radius: 18px 18px 0 0;
    overflow: visible;
    transform: scale(1.05);
}

.suggested-fit-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    clip-path: polygon(0% 100%, 3% 5%, 5% 2%, 7% 0.5%, 9% 0%, 91% 0%, 93% 0.5%, 95% 2%, 97% 5%, 100% 100%);
    border-radius: 18px 18px 0 0;
    z-index: -1;
    transition: background-color 0.3s ease;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.suggested-fit-tab.suggested-fit-tab-active {
    height: 55px;
    min-height: 55px;
}

/* Products Container for Suggested */
.suggested-fit-products-container {
    position: relative;
    width: 100%;
    background: #f3f4f6 !important;
    border-radius: 16px !important;
    padding: var(--spacing-xl);
    margin-top: 0;
    z-index: 5;
    border: none;
    padding-top: var(--spacing-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .suggested-fit-products-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: 16px !important;
    }
}

/* Section Title for Suggested */
.suggested-fit-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #000000;
    text-align: right;
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0;
}

/* Content for Suggested */
.suggested-fit-content {
    display: none;
}

.suggested-fit-content.suggested-fit-content-active {
    display: block;
}

/* Products Grid for Suggested - Horizontal Scroll (بدون نوار اسکرول) */
.suggested-fit-products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.suggested-fit-products-grid::-webkit-scrollbar {
    display: none;
}

.suggested-fit-products-grid .product-card {
    flex: 0 0 auto;
    width: 160px;
}

@media (min-width: 768px) {
    .suggested-fit-products-grid .product-card {
        width: 200px;
    }
}

@media (min-width: 1024px) {
    .suggested-fit-products-grid .product-card {
        width: 220px;
    }
}

/* Responsive for Suggested */
@media (max-width: 767px) {
    .suggested-fit-tab {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 12px 12px 0 0;
        width: 160px;
        height: 42px;
        min-height: 42px;
        margin-bottom: -8px;
    }
    
    .suggested-fit-tab.suggested-fit-tab-active {
        height: 44px;
        min-height: 44px;
    }
    
    .suggested-fit-section {
        padding-top: 38px;
    }
    
    .suggested-fit-products-container {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 12px !important;
    }
    
    .suggested-fit-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .suggested-fit-tab {
        padding: 8px 12px;
        font-size: 12px;
        width: 150px;
        height: 40px;
        min-height: 40px;
        margin-bottom: -8px;
    }
    
    .suggested-fit-tab.suggested-fit-tab-active {
        height: 42px;
        min-height: 42px;
    }
    
    .suggested-fit-section {
        padding-top: 35px;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .backmeshki-offer-wrapper {
        max-width: 100%;
        margin-bottom: var(--spacing-2xl);
    }
    
    .backmeshki-offer-wrapper .offer-toggle-buttons {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .backmeshki-offer-wrapper .offer-btn {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
    }
    
    .backmeshki-offer-wrapper .offer-btn + .offer-btn {
        margin-left: 0;
    }
    
    .backmeshki-offer-wrapper .offer-section-title {
        font-size: var(--font-size-xl);
    }
    
    .backmeshki-offer-wrapper .offer-content-box {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .backmeshki-offer-wrapper .offer-content-box .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}


/* ============================================
   New Black Background Section - بک‌گراند مشکی با پترن
   ============================================ */
.new-black-section {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-2xl);
    padding: 0;
    overflow: visible;
}

.new-black-background-wrapper {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    padding: var(--spacing-3xl) 0;
    overflow: visible;
    border-radius: 0 0 24px 24px;
}

@media (min-width: 1024px) {
    .new-black-background-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 0 0 24px 24px;
    }
}

@media (min-width: 1600px) {
    .new-black-background-wrapper {
        margin-left: calc(var(--spacing-xl) * 2);
        margin-right: calc(var(--spacing-xl) * 2);
        width: calc(100% - calc(var(--spacing-xl) * 4));
        border-radius: 24px;
    }
}

.new-black-background-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-radius: 0 0 100% 100% / 0 0 60px 60px;
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .new-black-background-wrapper::before {
        border-radius: 0 0 100% 100% / 0 0 60px 60px;
        left: 0;
        right: 0;
    }
}

.new-black-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.new-black-content-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

.new-black-section .container {
    position: relative;
    z-index: 2;
}

/* استایل‌های backmeshki-offer-wrapper در سکشن جدید */
.new-black-section .backmeshki-offer-wrapper {
    margin-bottom: var(--spacing-3xl);
}

.new-black-section .backmeshki-offer-wrapper:last-child {
    margin-bottom: 0;
}

.new-black-content {
    text-align: center;
    color: #ffffff;
}

.new-black-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.new-black-description {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Override gender-specific background */
html.gender-female .new-black-background-wrapper {
    background: #1a1a1a;
}

html.gender-male .new-black-background-wrapper {
    background: #1a1a1a;
}

/* استایل کانتینر دکمه‌ها در new-black-section - چیدمان کنار هم حفظ می‌شود */

/* استایل دکمه‌های offer-btn در new-black-section مشابه classic-fit-tab */
.new-black-section .offer-btn {
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #4B5563 !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    margin-bottom: -1px !important;
    white-space: nowrap;
    box-shadow: none !important;
    width: 200px !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
    border-radius: 18px 18px 0 0 !important;
    overflow: visible !important;
    transform: scale(0.95) !important;
    box-sizing: border-box;
}


.new-black-section .offer-btn::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #d1d5db !important;
    clip-path: polygon(0% 100%, 3% 5%, 5% 2%, 7% 0.5%, 9% 0%, 91% 0%, 93% 0.5%, 95% 2%, 97% 5%, 100% 100%) !important;
    border-radius: 18px 18px 0 0 !important;
    transform: none !important;
    transform-origin: unset !important;
    z-index: -1;
    transition: background-color 0.3s ease;
    border-bottom: none;
    box-shadow: none !important;
    background-size: unset !important;
    background-position: unset !important;
}

.new-black-section .offer-btn:first-child {
    margin-left: 0;
}

.new-black-section .offer-btn:hover {
    transform: scale(1.05) !important;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.new-black-section .offer-btn:hover::before {
    background: #e5e7eb !important;
    transform: none !important;
}

.new-black-section .offer-btn.offer-btn-active {
    z-index: 2 !important;
    transform: scale(1.05) !important;
    margin-top: 0 !important;
    margin-bottom: -1px !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    height: 55px !important;
    min-height: 55px !important;
    color: #4B5563 !important;
    font-weight: 600 !important;
}

.new-black-section .offer-btn:not(.offer-btn-active) {
    z-index: 1 !important;
    transform: scale(0.95) !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) brightness(0.95);
}

.new-black-section .offer-btn.offer-btn-active::before {
    background: #f3f4f6 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border-bottom: none;
    transform: none !important;
}

.new-black-section .offer-btn span {
    position: relative;
    z-index: 2;
    color: #4B5563;
}

.new-black-section .offer-btn.offer-btn-active span {
    color: #4B5563;
}

/* Responsive */
@media (max-width: 767px) {
    .new-black-background-wrapper {
        padding: var(--spacing-2xl) 0;
    }
    
    .new-black-title {
        font-size: var(--font-size-xl);
    }
    
    .new-black-section .offer-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 12px 12px 0 0;
        width: 160px;
        height: 42px;
        min-height: 42px;
    }
    
    .new-black-section .offer-btn.offer-btn-active {
        transform: translateY(3px);
        height: 44px;
        min-height: 44px;
    }
    
}

@media (max-width: 480px) {
    .new-black-section .offer-btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 150px;
        height: 40px;
        min-height: 40px;
    }
    
    .new-black-section .offer-btn.offer-btn-active {
        height: 42px;
        min-height: 42px;
    }
    
}

/* ============================================
   Features Section - بک‌گراند مشکی با پترن
   ============================================ */
.features-section {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-2xl);
    padding: 0;
}

.features-black-background-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.features-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.features-content-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.features-section .container {
    position: relative;
    z-index: 2;
}

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

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

.features-section .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: #f3f4f6;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    backdrop-filter: none;
}

.features-section .feature-item:hover {
    transform: translateY(-4px);
    background: #e5e7eb;
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.features-section .feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    background: #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.features-section .feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: #d1d5db;
}

.features-section .feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: none;
}

.features-section .feature-text h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #000000;
    margin-bottom: var(--spacing-xs);
}

.features-section .feature-text p {
    font-size: var(--font-size-sm);
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

/* Override gender-specific background */
html.gender-female .features-black-background-wrapper {
    background: #ffffff;
}

html.gender-male .features-black-background-wrapper {
    background: #ffffff;
}

/* ============================================
   Hero Slider - حذف بک‌گراند طوسی
   ============================================ */
.hero-slider {
    background: transparent !important;
}

.slide {
    background: transparent !important;
}

.slide img {
    background: transparent !important;
}

.slider-container {
    background: transparent !important;
}

/* ============================================
   هم‌تراز و هم‌عرض کردن Slider, Stories و Categories در دسکتاپ
   ============================================ */
@media (min-width: 1024px) {
    /* تنظیم یکسان برای همه container ها */
    .hero-slider-section .container,
    .stories-section .container,
    .quick-categories-section .container {
        max-width: 100% !important;
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* هم‌تراز کردن محتوای داخلی */
    .hero-slider-section .slider-container {
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .stories-wrapper {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        padding: var(--spacing-md) 0 !important;
        margin: 0 auto !important;
    }
    
    .stories-wrapper .story-item {
        flex-shrink: 0 !important;
    }
    
    .quick-categories-section .categories-section,
    .quick-categories-section .categories-slider {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px !important;
        padding: var(--spacing-md) var(--spacing-xl) !important;
        margin: 0 auto !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    .quick-categories-section .categories-slider .category-card {
        flex: 0 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    .categories-slider .category-icon,
    .categories-slider .category-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .categories-slider .category-name {
        font-size: 15px !important;
        margin-top: 12px !important;
    }
    
    /* اطمینان از هم‌ترازی افقی */
    .stories-section,
    .quick-categories-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* مانیتور بزرگ - فاصله بیشتر */
@media (min-width: 1440px) {
    .quick-categories-section .categories-section,
    .quick-categories-section .categories-slider {
        gap: 60px !important;
    }
}

@media (min-width: 1600px) {
    .quick-categories-section .categories-section,
    .quick-categories-section .categories-slider {
        gap: 70px !important;
    }
}

/* ============================================
   Categories Section - اصلاح برای همه سایزها
   ============================================ */
.categories-slider {
    display: flex !important;
    gap: var(--spacing-lg) !important;
    overflow-x: auto !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    justify-content: flex-start !important;
}

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

.category-card {
    min-width: 120px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
}

.category-icon,
.category-image {
    width: 110px !important;
    height: 110px !important;
}

.category-name {
    font-size: 14px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 767px) {
    .features-black-background-wrapper {
        padding: var(--spacing-2xl) 0;
    }
    
    .features-section .features-grid {
        gap: var(--spacing-md);
    }
    
    .features-section .feature-item {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    /* اصلاح Categories Section برای موبایل */
    .categories-slider {
        padding: var(--spacing-sm) var(--spacing-md) !important;
        gap: var(--spacing-sm) !important;
    }
    
    .category-card {
        min-width: 90px !important;
    }
    
    .category-icon,
    .category-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .category-name {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .categories-slider {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        gap: var(--spacing-xs) !important;
    }
    
    .category-card {
        min-width: 75px !important;
    }
    
    .category-icon,
    .category-image {
        width: 65px !important;
        height: 65px !important;
    }
    
    .category-name {
        font-size: 11px !important;
    }
}

/* ============================================
   بنر تبلیغاتی (فقط برای بانو)
   وقتی بانو انتخاب شده: فقط promo-banner نمایش داده شود
   ============================================ */
.promo-banner-section {
    padding: var(--spacing-xl) 0;
    background: transparent;
    display: none;
}

html.gender-female .promo-banner-section {
    display: block !important;
    visibility: visible !important;
}

/* مخفی کردن همه بخش‌ها به جز promo-banner وقتی بانو انتخاب شده */
html.gender-female .stories-section,
html.gender-female .hero-slider-section,
html.gender-female .quick-categories-section,
html.gender-female .products-section,
html.gender-female .banner-section,
html.gender-female .new-black-section,
html.gender-female .features-section,
html.gender-female .features-black-background-wrapper,
html.gender-female .bestselling-products-slider-section {
    display: none !important;
    visibility: hidden !important;
}

/* مخفی کردن header و footer وقتی بانو انتخاب شده */
html.gender-female .header,
html.gender-female .footer,
html.gender-female .banoo-bottom-nav {
    display: none !important;
    visibility: hidden !important;
}

/* نمایش همه بخش‌ها در حالت جناب */
html.gender-male .stories-section,
html.gender-male .hero-slider-section,
html.gender-male .quick-categories-section,
html.gender-male .products-section,
html.gender-male .banner-section,
html.gender-male .new-black-section,
html.gender-male .features-section,
html.gender-male .features-black-background-wrapper,
html.gender-male .bestselling-products-slider-section {
    display: block !important;
    visibility: visible !important;
}

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

.promo-banner-link {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Force display stories section - مهم‌ترین قانون
   ============================================ */
.stories-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* نمایش stories-section فقط در حالت جناب */
html.gender-male .stories-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}
    object-fit: cover;
    border-radius: var(--radius-lg);
}

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

