﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

:root {
    --primary: #527398;
    --primary-dark: #bfc9d4;
    --primary-light: #17355F;
    --secondary: #0179ff;
    --featured-color: var(--primary);
    --latest-color: color-mix(in srgb, color-mix(in srgb, var(--primary) 65%, var(--secondary) 35%) 80%, black 20%);
    --popular-color: color-mix(in srgb, color-mix(in srgb, var(--primary) 35%, var(--secondary) 65%) 80%, black 20%);
    --bestselling-color: color-mix(in srgb, var(--primary) 68%, black 32%);
    --sale-color: color-mix(in srgb, color-mix(in srgb, var(--primary) 55%, var(--danger)) 82%, black 18%);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
}

body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --bg-hover: rgba(0, 0, 0, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.1);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
}

.hero-slider {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    background: var(--bg-card);
}

.heroSwiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

    .heroSwiper .swiper-wrapper {
        width: 100%;
        height: auto;
    }

.hero-slide {
    width: 100%;
    height: auto;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 6;
    min-height: 100px;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px 40px;
    max-width: 800px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    .hero-content.animated {
        transform: translateY(0);
        opacity: 1;
    }

.slide-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .slide-btn:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        box-shadow: 0 15px 30px -10px rgba(109, 40, 217, 0.5);
        border-color: rgba(255, 255, 255, 0.4);
    }

        .slide-btn:hover i {
            transform: translateX(-5px);
        }

    .slide-btn i {
        transition: transform 0.3s ease;
    }

.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        transform: scale(1.1);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20px !important;
        font-weight: bold;
        color: white;
    }

.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6) !important;
    opacity: 0.8;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 10px;
}

.default-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.skeleton-slide {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    width: 60%;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 20px;
}

.skeleton-text {
    width: 40%;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin: 0 auto 30px;
}

.skeleton-btn {
    width: 160px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin: 0 auto;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1400px) {
    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: 350px;
    }

    .hero-content {
        padding: 24px 48px;
        max-width: 900px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-section {
        padding: 16px 20px;
    }

    .hero-slider {
        border-radius: 24px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: 300px;
    }

    .hero-content {
        padding: 20px 30px;
        max-width: 800px;
    }

    .slide-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .slide-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .slide-btn {
        padding: 12px 30px;
        font-size: 15px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 42px !important;
        height: 42px !important;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 18px !important;
        }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        padding: 14px 16px;
    }

    .hero-slider {
        border-radius: 24px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: 250px;
    }

    .hero-content {
        padding: 18px 28px;
        max-width: 750px;
    }

    .slide-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-btn {
        padding: 11px 26px;
        font-size: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 17px !important;
        }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 12px 14px;
    }

    .hero-slider {
        border-radius: 20px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: 180px;
    }

    .hero-content {
        padding: 16px 24px;
        max-width: 700px;
    }

    .slide-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .slide-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .swiper-pagination {
        bottom: 14px !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 38px !important;
        height: 38px !important;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 16px !important;
        }
}

@media (min-width: 481px) and (max-width: 767px) {
    .hero-section {
        padding: 10px 12px;
    }

    .hero-slider {
        border-radius: 16px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: auto;
        background-size: contain !important;
        background-color: var(--bg-card);
    }

    .hero-content {
        padding: 12px 18px;
        max-width: 90%;
    }

    .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .slide-subtitle {
        font-size: 12px;
        margin-bottom: 14px;
        padding: 0 5px;
    }

    .slide-btn {
        padding: 8px 18px;
        font-size: 12px;
        gap: 6px;
    }

        .slide-btn i {
            font-size: 12px;
        }

    .swiper-pagination {
        bottom: 8px !important;
    }

    .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 4px !important;
    }

    .swiper-pagination-bullet-active {
        width: 18px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 6px 8px;
    }

    .hero-slider {
        border-radius: 12px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: auto;
        background-size: contain !important;
        background-color: var(--bg-card);
    }

    .hero-content {
        padding: 8px 12px;
        max-width: 95%;
    }

    .slide-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .slide-subtitle {
        font-size: 10px;
        margin-bottom: 10px;
        padding: 0 3px;
    }

    .slide-btn {
        padding: 6px 14px;
        font-size: 10px;
        gap: 5px;
    }

        .slide-btn i {
            font-size: 10px;
        }

    .swiper-pagination {
        bottom: 6px !important;
    }

    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px !important;
    }

    .swiper-pagination-bullet-active {
        width: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 4px 6px;
    }

    .hero-slider {
        border-radius: 10px;
    }

    .hero-slide {
        aspect-ratio: 16 / 6;
        min-height: auto;
        background-size: contain !important;
        background-color: var(--bg-card);
    }

    .hero-content {
        padding: 6px 10px;
        max-width: 98%;
    }

    .slide-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .slide-subtitle {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .slide-btn {
        padding: 5px 12px;
        font-size: 9px;
        gap: 4px;
    }

        .slide-btn i {
            font-size: 9px;
        }

    .swiper-pagination {
        bottom: 4px !important;
    }

    .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
        margin: 0 2px !important;
    }

    .swiper-pagination-bullet-active {
        width: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

body.light-theme .hero-slider {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body.light-theme .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.4) !important;
}

body.light-theme .swiper-button-next,
body.light-theme .swiper-button-prev {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}



.swiper-slide-active .hero-content .slide-title {
    animation: fadeInUp 0.6s ease forwards;
}

.swiper-slide-active .hero-content .slide-subtitle {
    animation: fadeInUp 0.6s ease 0.15s forwards;
}

.swiper-slide-active .hero-content .slide-btn {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

[dir="rtl"] .slide-btn i {
    transform: rotate(180deg);
}

[dir="rtl"] .slide-btn:hover i {
    transform: translateX(5px) rotate(180deg);
}

.section {
    padding: 60px 0;
}

.banner-grid {
    margin: 30px auto;
    max-width: 1400px;
    padding: 0 24px;
}

.categories-section {
    padding: 40px 0 30px 0;
}

.featured-section {
    padding: 50px 0;
}

.latest-section {
    padding: 40px 0 30px 0;
}

.popular-section {
    padding: 50px 0;
}

.bestselling-section {
    padding: 50px 0;
}

.sale-section {
    padding: 50px 0;
}

.brands-section {
    padding: 50px 0;
}



#belowSliderBanner {
    margin-top: 0;
}

#belowCategoriesBanner {
    margin-top: 10px;
}

#belowFeaturedBanner {
    margin-top: 10px;
}

#beforeBlogBanner {
    margin-top: 10px;
}

#aboveFooterBanner {
    margin-top: 10px;
}

#aboveSliderBanner {
    margin-top: 30px;
}

@media (max-width: 992px) {
    .section {
        padding: 40px 0;
    }

    .banner-grid {
        margin: 20px auto;
        padding: 0 20px;
    }

    .categories-section {
        padding: 30px 0 20px 0;
    }

    .featured-section {
        padding: 35px 0;
    }

    .latest-section {
        padding: 30px 0 20px 0;
    }

    .popular-section {
        padding: 35px 0;
    }

    .bestselling-section {
        padding: 35px 0;
    }

    .sale-section {
        padding: 35px 0;
    }

    .brands-section {
        padding: 35px 0;
    }


    #belowSliderBanner {
        margin-top: 0;
    }

    #belowCategoriesBanner {
        margin-top: 5px;
    }

    #belowFeaturedBanner {
        margin-top: 5px;
    }

    #beforeBlogBanner {
        margin-top: 5px;
    }

    #aboveFooterBanner {
        margin-top: 5px;
    }

    #aboveSliderBanner {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 30px 0;
    }

    .banner-grid {
        margin: 16px auto;
        padding: 0 16px;
    }

    .categories-section {
        padding: 20px 0 15px 0;
    }

    .featured-section {
        padding: 25px 0;
    }

    .latest-section {
        padding: 20px 0 15px 0;
    }

    .popular-section {
        padding: 25px 0;
    }

    .bestselling-section {
        padding: 25px 0;
    }

    .sale-section {
        padding: 25px 0;
    }

    .brands-section {
        padding: 25px 0;
    }


    #belowSliderBanner {
        margin-top: 0;
    }

    #belowCategoriesBanner {
        margin-top: 3px;
    }

    #belowFeaturedBanner {
        margin-top: 3px;
    }

    #beforeBlogBanner {
        margin-top: 3px;
    }

    #aboveFooterBanner {
        margin-top: 3px;
    }

    #aboveSliderBanner {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 0;
    }

    .banner-grid {
        margin: 12px auto;
        padding: 0 12px;
    }

    .categories-section {
        padding: 15px 0 10px 0;
    }

    .featured-section {
        padding: 18px 0;
    }

    .latest-section {
        padding: 15px 0 10px 0;
    }

    .popular-section {
        padding: 18px 0;
    }

    .bestselling-section {
        padding: 18px 0;
    }

    .sale-section {
        padding: 18px 0;
    }

    .brands-section {
        padding: 18px 0;
    }


    #belowSliderBanner {
        margin-top: 0;
    }

    #belowCategoriesBanner {
        margin-top: 2px;
    }

    #belowFeaturedBanner {
        margin-top: 2px;
    }

    #beforeBlogBanner {
        margin-top: 2px;
    }

    #aboveFooterBanner {
        margin-top: 2px;
    }

    #aboveSliderBanner {
        margin-top: 12px;
    }
}

.categories-section {
    background: transparent;
}

#categoriesGrid {
    display: grid;
    gap: 28px 20px;
    justify-content: center;
}

@media (min-width: 1280px) {
    #categoriesGrid {
        grid-template-columns: repeat(8, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    #categoriesGrid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #categoriesGrid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    #categoriesGrid {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        gap: 16px;
        padding: 4px 4px 12px 4px;
    }

        #categoriesGrid .category-card,
        #categoriesGrid .category-skeleton {
            flex: 0 0 auto;
            width: calc((100% - 3 * 16px) / 4.3);
            scroll-snap-align: start;
        }

        #categoriesGrid::-webkit-scrollbar {
            height: 4px;
        }

        #categoriesGrid::-webkit-scrollbar-track {
            background: var(--border);
            border-radius: 10px;
        }

        #categoriesGrid::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }
}

@media (max-width: 480px) {
    #categoriesGrid {
        gap: 14px;
    }

        #categoriesGrid .category-card,
        #categoriesGrid .category-skeleton {
            width: calc((100% - 3 * 14px) / 4.3);
        }
}

#categoriesGrid.items-less-than-8 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 20px;
    grid-template-columns: none;
}

    #categoriesGrid.items-less-than-8 .category-card,
    #categoriesGrid.items-less-than-8 .category-skeleton {
        flex: 0 0 auto;
        width: calc((100% - 7 * 20px) / 8);
        min-width: 80px;
        max-width: 140px;
    }

@media (min-width: 992px) and (max-width: 1279px) {
    #categoriesGrid.items-less-than-8 {
        gap: 20px;
    }

        #categoriesGrid.items-less-than-8 .category-card,
        #categoriesGrid.items-less-than-8 .category-skeleton {
            width: calc((100% - 5 * 20px) / 6);
            max-width: 130px;
        }
}

@media (min-width: 768px) and (max-width: 991px) {
    #categoriesGrid.items-less-than-8 {
        gap: 20px;
    }

        #categoriesGrid.items-less-than-8 .category-card,
        #categoriesGrid.items-less-than-8 .category-skeleton {
            width: calc((100% - 3 * 20px) / 4);
            max-width: 120px;
        }
}

@media (max-width: 767px) {
    #categoriesGrid.items-less-than-8 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        gap: 16px;
        padding: 4px 4px 12px 4px;
    }

        #categoriesGrid.items-less-than-8 .category-card,
        #categoriesGrid.items-less-than-8 .category-skeleton {
            flex: 0 0 auto;
            width: calc((100% - 3 * 16px) / 4.3);
            scroll-snap-align: start;
            max-width: none;
            min-width: auto;
        }
}

.category-card {
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-inner {
    text-align: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.category-card:hover .category-card-inner {
    transform: translateY(-5px);
    background: transparent;
    box-shadow: none;
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    background: #F8FAFC;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-theme .category-icon-wrapper {
    background: #1e293b;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.05);
}

.category-icon-wrapper i {
    font-size: 52px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-icon-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.category-card:hover .category-icon-wrapper img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 0 4px;
    line-height: 1.45;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-align: center;
}

.category-card:hover h3 {
    color: var(--primary);
}

@media (max-width: 992px) {
    .category-icon-wrapper {
        width: 85px;
        height: 85px;
    }

        .category-icon-wrapper i {
            font-size: 44px;
        }

        .category-icon-wrapper img {
            width: 85px;
            height: 85px;
        }

    .category-card h3 {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .category-icon-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 10px;
    }

        .category-icon-wrapper i {
            font-size: 38px;
        }

        .category-icon-wrapper img {
            width: 75px;
            height: 75px;
        }

    .category-card h3 {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .category-icon-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 8px;
    }

        .category-icon-wrapper i {
            font-size: 34px;
        }

        .category-icon-wrapper img {
            width: 65px;
            height: 65px;
        }

    .category-card h3 {
        font-size: 11px;
        line-height: 1.35;
    }
}

@media (max-width: 380px) {
    .category-icon-wrapper {
        width: 55px;
        height: 55px;
    }

        .category-icon-wrapper i {
            font-size: 28px;
        }

        .category-icon-wrapper img {
            width: 55px;
            height: 55px;
        }

    .category-card h3 {
        font-size: 10px;
    }

    #categoriesGrid {
        gap: 12px;
    }

        #categoriesGrid .category-card,
        #categoriesGrid .category-skeleton {
            width: calc((100% - 3 * 12px) / 4.3);
        }
}

.brands-section {
    position: relative;
    background: transparent;
}

    .brands-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
        opacity: 0.4;
    }

    .brands-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
        opacity: 0.4;
    }

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.brands-header-content {
    position: relative;
    text-align: right;
}

.brands-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    padding: 6px 18px 6px 22px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 18px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(4px);
}

    .brands-badge i {
        font-size: 14px;
    }

.brands-header-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brands-highlight {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
}

.brands-header-line {
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, transparent);
    border-radius: 3px;
    margin-top: 8px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 8px 4px;
}

    .brands-grid::-webkit-scrollbar {
        width: 4px;
    }

    .brands-grid::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .brands-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

        .brands-grid::-webkit-scrollbar-thumb:hover {
            background: var(--primary-light);
        }

    .brands-grid .brand-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        text-decoration: none;
        color: inherit;
        transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        background: transparent;
        border-radius: 0;
    }

        .brands-grid .brand-card:hover {
            transform: translateY(-6px);
        }

    .brands-grid .brand-logo-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        box-shadow: none;
        border: none;
    }

    .brands-grid .brand-card:hover .brand-logo-wrapper {
        transform: scale(1.05);
        box-shadow: none;
        background: transparent;
    }

    .brands-grid .brand-logo-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
        transition: transform 0.4s ease;
    }

    .brands-grid .brand-card:hover .brand-logo-wrapper img {
        transform: scale(1.08);
    }

    .brands-grid .brand-logo-wrapper i {
        font-size: 32px;
        color: var(--primary);
        transition: all 0.35s ease;
    }

    .brands-grid .brand-card:hover .brand-logo-wrapper i {
        color: var(--primary-light);
        transform: scale(1.1);
    }

    .brands-grid .brand-card h3 {
        margin: 0;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-secondary);
        transition: color 0.25s ease;
    }

    .brands-grid .brand-card:hover h3 {
        color: var(--primary);
    }

.brand-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
}

.skeleton-brand-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
}

.skeleton-brand-title {
    width: 60%;
    height: 12px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

@media (min-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 28px 20px;
        max-height: 280px;
    }

        .brands-grid .brand-logo-wrapper {
            width: 75px;
            height: 75px;
        }

            .brands-grid .brand-logo-wrapper i {
                font-size: 36px;
            }

        .brands-grid .brand-card h3 {
            font-size: 12px;
        }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 18px;
        max-height: 280px;
    }

        .brands-grid .brand-logo-wrapper {
            width: 70px;
            height: 70px;
        }

            .brands-grid .brand-logo-wrapper i {
                font-size: 32px;
            }

    .brands-header-content h2 {
        font-size: 32px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px 16px;
        max-height: 280px;
    }

        .brands-grid .brand-logo-wrapper {
            width: 65px;
            height: 65px;
        }

            .brands-grid .brand-logo-wrapper i {
                font-size: 30px;
            }

    .brands-header-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .brands-section {
        padding: 45px 0;
    }

    .brands-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .brands-header-content h2 {
        font-size: 28px;
    }

    .brands-grid {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        gap: 16px;
        max-height: none;
        padding: 4px 4px 14px 4px;
    }

        .brands-grid .brand-card,
        .brands-grid .brand-skeleton {
            flex: 0 0 auto;
            width: calc((100% - 3 * 16px) / 4.3);
            scroll-snap-align: start;
        }

        .brands-grid .brand-logo-wrapper {
            width: 60px;
            height: 60px;
        }

            .brands-grid .brand-logo-wrapper i {
                font-size: 28px;
            }

        .brands-grid .brand-card h3 {
            font-size: 11px;
        }

        .brands-grid::-webkit-scrollbar {
            height: 4px;
            width: auto;
        }
}

@media (max-width: 550px) {
    .brands-grid {
        gap: 14px;
    }

        .brands-grid .brand-card,
        .brands-grid .brand-skeleton {
            width: calc((100% - 3 * 14px) / 4.3);
        }

        .brands-grid .brand-logo-wrapper {
            width: 65px;
            height: 65px;
        }

    .brands-header-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .brands-grid {
        gap: 12px;
    }

        .brands-grid .brand-card,
        .brands-grid .brand-skeleton {
            width: calc((100% - 3 * 12px) / 4.3);
        }

        .brands-grid .brand-logo-wrapper {
            width: 55px;
            height: 55px;
        }

            .brands-grid .brand-logo-wrapper i {
                font-size: 24px;
            }

        .brands-grid .brand-card h3 {
            font-size: 10px;
        }

    .brands-header-content h2 {
        font-size: 24px;
    }
}

body.dark-theme .brands-grid .brand-logo-wrapper {
    background: transparent;
}

body.dark-theme .brands-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.12));
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.2);
    }

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-actions-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

    .product-actions-overlay .action-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.2s ease;
        opacity: 0;
        transform: translateX(10px);
        cursor: pointer;
        border: none;
        text-decoration: none;
    }

.product-card:hover .product-actions-overlay .action-btn {
    opacity: 1;
    transform: translateX(0);
}

.product-actions-overlay .action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-actions-overlay .wishlist-btn.active {
    background: var(--danger);
    color: white;
}

.product-info {
    padding: 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-brand-badge,
.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: rgba(109, 40, 217, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

    .product-brand-badge i,
    .product-category-badge i {
        font-size: 11px;
        color: var(--primary);
    }

    .product-brand-badge .brand-link,
    .product-category-badge .category-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .product-brand-badge .brand-link:hover,
        .product-category-badge .category-link:hover {
            color: var(--primary);
        }

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .product-title a {
        color: var(--text-primary);
        text-decoration: none;
    }

        .product-title a:hover {
            color: var(--primary);
        }

.product-price {
    margin-bottom: 12px;
}

    .product-price .price-current {
        color: var(--primary);
        font-weight: 700;
        font-size: 18px;
    }

    .product-price .price-old {
        color: var(--text-muted);
        text-decoration: line-through;
        font-size: 13px;
        margin-right: 8px;
    }

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .add-to-cart-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* Contact-for-price label, shown instead of a price on any product card */
.contact-for-price-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: var(--info) !important;
    white-space: nowrap;
}

    .contact-for-price-tag i {
        font-size: 0.95em;
        display: inline-block;
        transform: scaleX(-1);
    }

/* Disabled "contact us" state for add-to-cart buttons on contact-for-price products */
.add-to-cart-btn.contact-price-btn {
    background: var(--info);
    cursor: not-allowed;
    opacity: 0.92;
}

    .add-to-cart-btn.contact-price-btn i {
        display: inline-block;
        transform: scaleX(-1);
    }

    .add-to-cart-btn.contact-price-btn:hover {
        background: var(--info);
        transform: none;
    }



.newsletter-section {
    padding: 60px 0;
    margin: 40px 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-2xl);
}

.newsletter-content i {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
    flex-wrap: wrap;
}

    .newsletter-form input {
        flex: 1;
        padding: 16px 24px;
        border: none;
        border-radius: 60px;
        background: white;
        font-size: 16px;
        outline: none;
    }

    .newsletter-form button {
        padding: 16px 32px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 60px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .newsletter-form button:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-2px);
        }

.banner-grid-container {
    display: grid !important;
    gap: 20px;
    margin: 0 auto;
}

.banner-grid .banner-item {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .banner-grid .banner-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    }

    .banner-grid .banner-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transition: transform 0.5s ease;
        display: block;
    }

    .banner-grid .banner-item:hover img {
        transform: scale(1.02);
    }

.banner-no-image {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
}

    .banner-no-image i {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .banner-no-image span {
        font-weight: bold;
        margin-bottom: 4px;
    }

    .banner-no-image small {
        font-size: 12px;
        opacity: 0.8;
    }

@media (min-width: 992px) {
    .banner-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

        .banner-grid-container:has(> :nth-child(2):last-child) {
            grid-template-columns: repeat(2, 1fr) !important;
        }

        .banner-grid-container:has(> :first-child:last-child) {
            grid-template-columns: 1fr !important;
        }
}

@media (min-width: 577px) and (max-width: 991px) {
    .banner-grid {
        padding: 0 20px;
    }

    .banner-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .banner-grid {
        padding: 0 16px;
    }

    .banner-grid-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .banner-no-image {
        padding: 30px 20px;
    }

        .banner-no-image i {
            font-size: 36px;
        }

        .banner-no-image span {
            font-size: 14px;
        }
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

.category-skeleton {
    text-align: center;
    padding: 20px;
}

.skeleton-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
}

.skeleton-title {
    width: 60%;
    height: 18px;
    margin: 0 auto 8px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-stats {
    width: 35%;
    height: 12px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.brand-skeleton {
    text-align: center;
}

.skeleton-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
}

.skeleton-brand-title {
    width: 50%;
    height: 14px;
    margin: 0 auto 6px;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-brand-count {
    width: 30%;
    height: 10px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.category-skeleton {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
}

.brand-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 20px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease, background 0.3s ease;
    opacity: 1;
    visibility: visible;
}

    #preloader.hide {
        opacity: 0;
        visibility: hidden;
    }

.loader {
    --color-one: color-mix(in srgb, var(--primary) 65%, white 35%);
    --color-two: color-mix(in srgb, var(--primary) 75%, black 25%);
    --color-three: color-mix(in srgb, var(--color-one) 50%, transparent 50%);
    --color-four: color-mix(in srgb, var(--color-two) 50%, transparent 50%);
    --color-five: color-mix(in srgb, var(--color-one) 25%, transparent 75%);
    --time-animation: 2s;
    --size: 1;
    position: relative;
    border-radius: 50%;
    transform: scale(var(--size));
    box-shadow: 0 0 25px 0 var(--color-three), 0 20px 50px 0 var(--color-four);
    animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

    .loader::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border-top: solid 1px var(--color-one);
        border-bottom: solid 1px var(--color-two);
        background: linear-gradient(180deg, var(--color-five), var(--color-four));
        box-shadow: inset 0 10px 10px 0 var(--color-three), inset 0 -10px 10px 0 var(--color-four);
    }

    .loader .box {
        width: 100px;
        height: 100px;
        background: linear-gradient(180deg, var(--color-one) 30%, var(--color-two) 70%);
        mask: url(#clipping);
        -webkit-mask: url(#clipping);
    }

    .loader svg {
        position: absolute;
    }

        .loader svg #clipping {
            filter: contrast(15);
            animation: roundness calc(var(--time-animation) / 2) linear infinite;
        }

            .loader svg #clipping polygon {
                filter: blur(7px);
            }

                .loader svg #clipping polygon:nth-child(1) {
                    transform-origin: 75% 25%;
                    transform: rotate(90deg);
                }

                .loader svg #clipping polygon:nth-child(2) {
                    transform-origin: 50% 50%;
                    animation: rotation var(--time-animation) linear infinite reverse;
                }

                .loader svg #clipping polygon:nth-child(3) {
                    transform-origin: 50% 60%;
                    animation: rotation var(--time-animation) linear infinite;
                    animation-delay: calc(var(--time-animation) / -3);
                }

                .loader svg #clipping polygon:nth-child(4) {
                    transform-origin: 40% 40%;
                    animation: rotation var(--time-animation) linear infinite reverse;
                }

                .loader svg #clipping polygon:nth-child(5) {
                    transform-origin: 40% 40%;
                    animation: rotation var(--time-animation) linear infinite reverse;
                    animation-delay: calc(var(--time-animation) / -2);
                }

                .loader svg #clipping polygon:nth-child(6) {
                    transform-origin: 60% 40%;
                    animation: rotation var(--time-animation) linear infinite;
                }

                .loader svg #clipping polygon:nth-child(7) {
                    transform-origin: 60% 40%;
                    animation: rotation var(--time-animation) linear infinite;
                    animation-delay: calc(var(--time-animation) / -1.5);
                }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes roundness {
    0% {
        filter: contrast(15);
    }

    20% {
        filter: contrast(3);
    }

    40% {
        filter: contrast(3);
    }

    60% {
        filter: contrast(15);
    }

    100% {
        filter: contrast(15);
    }
}

@keyframes colorize {
    0% {
        filter: hue-rotate(0deg);
    }

    20% {
        filter: hue-rotate(-30deg);
    }

    40% {
        filter: hue-rotate(-60deg);
    }

    60% {
        filter: hue-rotate(-90deg);
    }

    80% {
        filter: hue-rotate(-45deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-5 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 20px;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

    .no-image-placeholder i {
        font-size: 48px;
        color: var(--text-muted);
        opacity: 0.5;
    }

.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    direction: rtl;
}

.chat-toggle-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(115deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

    .chat-toggle-btn:hover {
        transform: scale(1.1);
    }

    .chat-toggle-btn i {
        font-size: 26px;
        color: white;
    }

.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    display: none;
}

.chat-window {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom left;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

    .chat-window.open {
        transform: scale(1);
        opacity: 1;
    }

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .chat-header-info i {
        font-size: 28px;
    }

    .chat-header-info h3 {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    .chat-header-info p {
        font-size: 11px;
        opacity: 0.8;
        margin: 2px 0 0;
    }

.chat-header-actions {
    display: flex;
    gap: 8px;
}

    .chat-header-actions button {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        color: white;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

        .chat-header-actions button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-secondary);
}

    .chat-messages::-webkit-scrollbar {
        width: 4px;
    }

.user-message {
    align-self: flex-end;
    max-width: 80%;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
}

.admin-message {
    align-self: flex-start;
    max-width: 80%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
}

.message-sender {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 9px;
    opacity: 0.6;
    margin-top: 6px;
    text-align: left;
}

.chat-loading, .chat-empty, .chat-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

    .chat-loading i, .chat-empty i, .chat-error i {
        font-size: 48px;
        margin-bottom: 16px;
        display: block;
    }

    .chat-loading span, .chat-empty p, .chat-error p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .chat-empty span {
        font-size: 12px;
        opacity: 0.7;
    }

    .chat-error button {
        margin-top: 12px;
        padding: 6px 16px;
        background: var(--primary);
        border: none;
        border-radius: 20px;
        color: white;
        cursor: pointer;
    }

.chat-input-area {
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

    .chat-input-area textarea {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: var(--bg-input);
        color: var(--text-primary);
        font-size: 13px;
        resize: none;
        font-family: inherit;
        outline: none;
        max-height: 100px;
    }

        .chat-input-area textarea:focus {
            border-color: var(--primary);
        }

    .chat-input-area button {
        width: 40px;
        height: 40px;
        background: var(--primary);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

        .chat-input-area button:hover {
            background: var(--primary-dark);
            transform: scale(1.05);
        }

.chat-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    z-index: 10001;
    animation: slideUp 0.3s ease;
    white-space: nowrap;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    /* چت پشتیبانی */
    .chat-widget {
        bottom: 16px;
        left: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: 480px;
        left: 16px;
        bottom: 16px;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
    }

        .chat-toggle-btn i {
            font-size: 24px;
        }

    /* دستیار هوش مصنوعی */
    .ai-assistant-widget {
        bottom: 78px;
        left: 16px;
    }

    .ai-assistant-toggle-btn {
        width: 40px;
        height: 40px;
    }

        .ai-assistant-toggle-btn i {
            font-size: 24px;
        }

    .ai-assistant-window {
        width: calc(100vw - 32px);
        height: 480px;
        left: 16px;
        bottom: 78px;
    }
}

.enamad-certificates {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

    .enamad-certificates .enamad-item {
        background: var(--bg-hover);
        border-radius: 12px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: var(--transition);
        cursor: pointer;
        width: 100%;
    }

        .enamad-certificates .enamad-item:hover {
            background: var(--primary);
            transform: translateX(-5px);
        }

            .enamad-certificates .enamad-item:hover span {
                color: white;
            }

        .enamad-certificates .enamad-item img {
            height: 40px;
            width: auto;
        }

        .enamad-certificates .enamad-item span {
            font-size: 13px;
            color: var(--text-muted);
            transition: var(--transition);
        }

@media (max-width: 768px) {
    .enamad-certificates {
        align-items: center;
    }

        .enamad-certificates .enamad-item {
            justify-content: center;
        }
}

.features-section-inline {
    padding: 8px 0;
}

.features-container-inline {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.features-bar-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: transparent;
    padding: 8px 0;
    margin: 0;
}

.feature-item-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    text-align: center;
}

@media (min-width: 769px) {
    .feature-item-inline::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
        border-radius: 2px;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-item-inline:hover::after {
        width: 70%;
    }

    .feature-item-inline:hover {
        transform: translateY(-3px) scale(1.02);
    }

        .feature-item-inline:hover .feature-icon-wrap-inline {
            transform: scale(1.1);
        }

        .feature-item-inline:hover .feature-text-inline h4 {
            color: var(--primary);
        }
}

.feature-item-inline.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #527398, #a78bfa, transparent);
    border-radius: 2px;
}

.feature-icon-wrap-inline {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    .feature-icon-wrap-inline.purple {
        color: #7c3aed;
    }

    .feature-icon-wrap-inline.blue {
        color: #3b82f6;
    }

    .feature-icon-wrap-inline.pink {
        color: #ec4899;
    }

    .feature-icon-wrap-inline.green {
        color: #10b981;
    }

.feature-text-inline {
    text-align: center;
}

    .feature-text-inline h4 {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
        margin: 0 0 3px 0;
        transition: color 0.2s ease;
    }

    .feature-text-inline span {
        font-size: 0.7rem;
        color: var(--text-muted);
        line-height: 1.3;
        display: block;
    }

@media (max-width: 768px) {
    .features-section-inline {
        padding: 4px 0;
    }

    .features-container-inline {
        padding: 0 16px;
    }

    .features-bar-inline {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item-inline {
        flex-direction: column;
        gap: 8px;
        padding: 14px 8px;
        justify-content: center;
        text-align: center;
    }

        .feature-item-inline:hover {
            transform: none;
        }

    .feature-icon-wrap-inline {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .feature-text-inline h4 {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .feature-text-inline span {
        font-size: 0.65rem;
    }

    .feature-item-inline.active::after {
        width: 50%;
        bottom: 2px;
    }
}

@media (max-width: 480px) {
    .features-bar-inline {
        gap: 8px;
    }

    .feature-item-inline {
        padding: 10px 4px;
    }

    .feature-icon-wrap-inline {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }

    .feature-text-inline h4 {
        font-size: 0.75rem;
    }

    .feature-text-inline span {
        font-size: 0.6rem;
    }
}

.featured-section {
    background: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-box {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.featured-label-card {
    flex-shrink: 0;
    width: 260px;
    background: var(--featured-color);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.label-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.featured-label-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.featured-label-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 24px;
}

.label-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .label-view-all:hover {
        background: rgba(255,255,255,0.3);
        gap: 12px;
    }

    .label-view-all i {
        transition: transform 0.3s ease;
    }

    .label-view-all:hover i {
        transform: translateX(-4px);
    }

.featured-products-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 15px 12px 25px 12px;
}

    .featured-products-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .featured-products-scroll::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .featured-products-scroll::-webkit-scrollbar-thumb {
        background: var(--featured-color);
        border-radius: 10px;
    }

.featured-products-scroll {
    user-select: none;
    -webkit-user-select: none;
}

    .featured-products-scroll a,
    .featured-products-scroll button,
    .featured-products-scroll .featured-product-info {
        user-select: auto;
        -webkit-user-select: auto;
    }

.featured-products-list {
    display: flex;
    gap: 16px;
    width: fit-content;
    padding: 5px 0;
}

.featured-product-card {
    width: 200px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

body.dark-theme .featured-product-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border);
}

.featured-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.featured-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .featured-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.featured-wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
    z-index: 3;
}

    .featured-wishlist-btn:hover {
        transform: scale(1.1);
    }

    .featured-wishlist-btn.active {
        color: #ef4444;
    }

body.dark-theme .featured-wishlist-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

.featured-product-info {
    padding: 12px;
    background: transparent;
}

.featured-product-brand {
    font-size: 10px;
    color: var(--featured-color);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

body.dark-theme .featured-product-brand {
    color: color-mix(in srgb, var(--featured-color) 70%, white 30%);
}

.featured-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .featured-product-title a {
        color: var(--text-primary);
        text-decoration: none;
    }

        .featured-product-title a:hover {
            color: var(--featured-color);
        }

.featured-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.featured-price-current {
    font-size: 13px;
    font-weight: 700;
    color: var(--featured-color);
}

.featured-price-old {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

body.dark-theme .featured-wishlist-btn {
    background: rgba(30,41,59,0.9);
    color: #94a3b8;
}

.featured-scroll-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    z-index: 5;
    align-self: center;
}

    .featured-scroll-btn:hover {
        background: var(--featured-color);
        color: white;
        border-color: var(--featured-color);
        transform: scale(1.05);
    }

    .featured-scroll-btn:active {
        transform: scale(0.95);
    }

.featured-scroll-left {
    margin-right: 8px;
}

.featured-scroll-right {
    margin-left: 8px;
}

@media (max-width: 768px) {
    .featured-scroll-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .featured-scroll-btn {
        width: 36px;
        height: 36px;
    }

    .featured-scroll-left {
        margin-left: 4px;
    }

    .featured-scroll-right {
        margin-right: 4px;
    }
}

@media (max-width: 992px) {
    .featured-box {
        flex-direction: column;
    }

    .featured-label-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 28px 20px;
    }

        .featured-label-card h3 {
            font-size: 20px;
        }
}

@media (max-width: 768px) {
    .featured-product-card,
    .popular-product-card {
        width: 160px;
    }

    .featured-product-title,
    .popular-product-title {
        font-size: 11px;
        height: 30px;
    }

    .featured-price-current,
    .popular-price-current {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .featured-product-card,
    .popular-product-card {
        width: 140px;
    }
}

.popular-section {
    background: transparent;
}

.popular-box {
    display: flex;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(315deg, color-mix(in srgb, var(--popular-color) 65%, black 20%), var(--popular-color), color-mix(in srgb, var(--popular-color) 70%, white 30%));
    border-radius: 28px;
    padding: 30px;
}

.popular-label-card {
    flex-shrink: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popular-label-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.popular-label-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.popular-label-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 24px;
}

.popular-label-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .popular-label-view-all:hover {
        background: rgba(255, 255, 255, 0.3);
        gap: 12px;
        color: white;
    }

    .popular-label-view-all i {
        transition: transform 0.3s ease;
    }

    .popular-label-view-all:hover i {
        transform: translateX(-4px);
    }

.popular-products-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0 25px 0;
    background: transparent;
}

    .popular-products-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .popular-products-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .popular-products-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
    }

.popular-products-list {
    display: flex;
    gap: 16px;
    width: fit-content;
    padding: 5px 0;
}

.popular-product-card {
    width: 200px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
}

body.dark-theme .popular-product-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.popular-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.popular-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .popular-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.popular-product-card:hover .popular-product-image img {
    transform: scale(1.05);
}

.popular-wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
    z-index: 3;
}

    .popular-wishlist-btn:hover {
        transform: scale(1.1);
    }

    .popular-wishlist-btn.active {
        color: #ef4444;
    }

.popular-product-info {
    padding: 12px;
    background: transparent;
}

.popular-product-brand {
    font-size: 10px;
    color: var(--popular-color);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

body.dark-theme .popular-product-brand {
    color: color-mix(in srgb, var(--popular-color) 70%, white 30%);
}

.popular-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .popular-product-title a {
        color: var(--text-primary);
        text-decoration: none;
    }

        .popular-product-title a:hover {
            color: var(--popular-color);
        }

.popular-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.popular-price-current {
    font-size: 13px;
    font-weight: 700;
    color: color-mix(in srgb, var(--popular-color) 70%, black 30%);
}

.popular-price-old {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.popular-scroll-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--popular-color);
    box-shadow: var(--shadow-sm);
    z-index: 5;
    align-self: center;
}

    .popular-scroll-btn:hover {
        background: var(--popular-color);
        color: white;
        border-color: var(--popular-color);
        transform: scale(1.05);
    }

    .popular-scroll-btn:active {
        transform: scale(0.95);
    }

.popular-scroll-left {
    margin-right: 8px;
}

.popular-scroll-right {
    margin-left: 8px;
}

@media (max-width: 1200px) {
    .popular-product-card {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .popular-box {
        flex-direction: column;
        padding: 28px 24px;
        gap: 20px;
    }

    .popular-label-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        padding: 28px 24px;
    }

        .popular-label-card h3 {
            font-size: 20px;
        }

        .popular-label-card p {
            font-size: 12px;
            margin-bottom: 20px;
        }

    .popular-products-scroll {
        padding: 10px 0 20px 0;
    }

    .popular-product-card {
        width: 170px;
    }

    .popular-scroll-btn {
        width: 38px;
        height: 38px;
    }

        .popular-scroll-btn i {
            font-size: 18px;
        }
}

@media (max-width: 768px) {
    .popular-box {
        padding: 20px 16px !important;
        border-radius: 24px;
        gap: 16px;
    }

    .popular-label-card {
        padding: 24px 18px !important;
        max-width: 100%;
        border-radius: 20px;
    }

    .popular-label-badge {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 16px;
    }

    .popular-label-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .popular-label-card p {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .popular-label-view-all {
        padding: 8px 18px;
        font-size: 12px;
    }

    .popular-products-scroll {
        padding: 5px 0 15px 0;
    }

    .popular-products-list {
        gap: 12px;
        padding: 3px 0;
    }

    .popular-product-card {
        width: 155px;
        border-radius: 16px;
    }

    .popular-product-info {
        padding: 10px;
    }

    .popular-product-title {
        font-size: 11px;
        height: 30px;
        margin-bottom: 4px;
    }

    .popular-price-current {
        font-size: 12px;
    }

    .popular-price-old {
        font-size: 9px;
    }

    .popular-product-brand {
        font-size: 9px;
    }

    .popular-wishlist-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 6px;
        left: 6px;
    }

    .popular-scroll-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .popular-box {
        padding: 16px 12px !important;
        border-radius: 20px;
        gap: 14px;
    }

    .popular-label-card {
        padding: 20px 14px !important;
        border-radius: 18px;
    }

    .popular-label-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 12px;
    }

    .popular-label-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .popular-label-card p {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .popular-label-view-all {
        padding: 6px 14px;
        font-size: 11px;
        gap: 6px;
    }

        .popular-label-view-all:hover {
            gap: 8px;
        }

    .popular-products-list {
        gap: 10px;
    }

    .popular-product-card {
        width: 135px;
        border-radius: 14px;
    }

    .popular-product-info {
        padding: 8px;
    }

    .popular-product-title {
        font-size: 10px;
        height: 26px;
        margin-bottom: 3px;
    }

    .popular-price-current {
        font-size: 11px;
    }

    .popular-price-old {
        font-size: 8px;
    }

    .popular-product-brand {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .popular-wishlist-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
        top: 4px;
        left: 4px;
    }

    .popular-products-scroll {
        padding: 3px 0 10px 0;
    }
}

@media (max-width: 380px) {
    .popular-box {
        padding: 12px 8px !important;
        border-radius: 16px;
        gap: 12px;
    }

    .popular-label-card {
        padding: 16px 10px !important;
        border-radius: 14px;
    }

    .popular-label-badge {
        font-size: 9px;
        padding: 2px 8px;
        margin-bottom: 10px;
    }

    .popular-label-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .popular-label-card p {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .popular-label-view-all {
        padding: 5px 12px;
        font-size: 10px;
        gap: 4px;
    }

    .popular-products-list {
        gap: 8px;
    }

    .popular-product-card {
        width: 120px;
        border-radius: 12px;
    }

    .popular-product-info {
        padding: 6px;
    }

    .popular-product-title {
        font-size: 9px;
        height: 22px;
        margin-bottom: 2px;
    }

    .popular-price-current {
        font-size: 10px;
    }

    .popular-price-old {
        font-size: 7px;
    }

    .popular-product-brand {
        font-size: 7px;
        margin-bottom: 2px;
    }

    .popular-wishlist-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
        top: 3px;
        left: 3px;
    }

    .popular-products-scroll {
        padding: 2px 0 8px 0;
    }
}

body.dark-theme .popular-box {
    background: linear-gradient(315deg, color-mix(in srgb, var(--popular-color) 45%, black 45%), color-mix(in srgb, var(--popular-color) 65%, black 25%), var(--popular-color));
}

body.dark-theme .popular-label-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .popular-label-badge {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-theme .popular-label-view-all {
    background: rgba(255, 255, 255, 0.1);
}

    body.dark-theme .popular-label-view-all:hover {
        background: rgba(255, 255, 255, 0.2);
    }

body.dark-theme .popular-scroll-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

    body.dark-theme .popular-scroll-btn:hover {
        background: var(--popular-color);
        color: white;
        border-color: var(--popular-color);
    }

.popular-products-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

[dir="rtl"] .popular-scroll-left {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] .popular-scroll-right {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .popular-label-view-all i {
    transform: rotate(180deg);
}

[dir="rtl"] .popular-label-view-all:hover i {
    transform: translateX(4px) rotate(180deg);
}

.bestselling-section {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bestselling-color) 8%, transparent 92%), color-mix(in srgb, var(--bestselling-color) 12%, transparent 88%));
    position: relative;
    overflow: hidden;
}

    .bestselling-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bestselling-color) 75%, black 25%), var(--bestselling-color), color-mix(in srgb, var(--bestselling-color) 75%, white 25%), transparent);
    }

    .bestselling-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 40px;
        position: relative;
        z-index: 2;
    }

.bestselling-header-content {
    flex: 1;
}

.bestselling-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--bestselling-color) 15%, transparent 85%);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bestselling-color);
    margin-bottom: 16px;
}

    .bestselling-badge i {
        font-size: 14px;
        color: var(--bestselling-color);
    }

.bestselling-header-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bestselling-header-content .highlight {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bestselling-color) 75%, white 25%), var(--bestselling-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: 700;
}

.bestselling-header-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.bestselling-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--bestselling-color), color-mix(in srgb, var(--bestselling-color) 75%, black 25%));
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bestselling-color) 30%, transparent 70%);
    border: none;
    cursor: pointer;
}

    .bestselling-view-all:hover {
        transform: translateX(-5px);
        background: linear-gradient(135deg, color-mix(in srgb, var(--bestselling-color) 75%, white 25%), var(--bestselling-color));
        box-shadow: 0 6px 18px color-mix(in srgb, var(--bestselling-color) 40%, transparent 60%);
    }

    .bestselling-view-all i {
        transition: transform 0.3s ease;
    }

    .bestselling-view-all:hover i {
        transform: translateX(-5px);
    }

.bestselling-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bestselling-scroll-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

    .bestselling-scroll-btn:hover {
        background: var(--bestselling-color);
        color: white;
        border-color: var(--bestselling-color);
        transform: scale(1.05);
    }

    .bestselling-scroll-btn:active {
        transform: scale(0.95);
    }

.bestselling-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px 0;
}

    .bestselling-scroll-container::-webkit-scrollbar {
        height: 4px;
    }

    .bestselling-scroll-container::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .bestselling-scroll-container::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, color-mix(in srgb, var(--bestselling-color) 75%, black 25%), var(--bestselling-color));
        border-radius: 10px;
    }

.bestselling-products-list {
    display: flex;
    gap: 20px;
    width: fit-content;
    padding: 5px 0;
}

.bestselling-product-card {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

    .bestselling-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-color: var(--bestselling-color);
    }

.bestselling-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .bestselling-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.bestselling-product-card:hover .bestselling-product-image img {
    transform: scale(1.05);
}

.bestselling-wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
    z-index: 3;
    opacity: 0;
    transform: translateX(10px);
}

.bestselling-product-card:hover .bestselling-wishlist-btn {
    opacity: 1;
    transform: translateX(0);
}

.bestselling-wishlist-btn:hover {
    transform: scale(1.1);
}

.bestselling-wishlist-btn.active {
    color: #ef4444;
    opacity: 1;
    transform: translateX(0);
}

.bestselling-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
}

.bestselling-product-info {
    padding: 12px;
    background: transparent;
}

.bestselling-product-brand {
    font-size: 10px;
    color: var(--bestselling-color);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.bestselling-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .bestselling-product-title a {
        color: var(--text-primary);
        text-decoration: none;
    }

        .bestselling-product-title a:hover {
            color: var(--bestselling-color);
        }

.bestselling-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.bestselling-price-current {
    font-size: 13px;
    font-weight: 700;
    color: var(--bestselling-color);
}

.bestselling-price-old {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

@media (max-width: 992px) {
    .bestselling-header-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .bestselling-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bestselling-header-content h2 {
        font-size: 24px;
    }

    .bestselling-scroll-btn {
        display: none;
    }

    .bestselling-product-card {
        width: 160px;
    }

    .bestselling-product-title {
        font-size: 11px;
        height: 30px;
    }

    .bestselling-price-current {
        font-size: 12px;
    }

    .bestselling-wishlist-btn {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .bestselling-product-card {
        width: 140px;
    }

    .bestselling-products-list {
        gap: 12px;
    }
}

.sale-section {
    position: relative;
    background: transparent;
}

.sale-premium-wrapper {
    position: relative;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sale-color) 8%, transparent 92%), color-mix(in srgb, var(--sale-color) 5%, transparent 95%));
    border-radius: 48px;
    padding: 48px 32px;
    overflow: hidden;
    backdrop-filter: blur(2px);
    border: 1px solid color-mix(in srgb, var(--sale-color) 20%, transparent 80%);
}

.sale-bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 48px;
}

.sale-bg-circle-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, color-mix(in srgb, var(--sale-color) 15%, transparent 85%), transparent 70%);
    border-radius: 50%;
}

.sale-bg-circle-2 {
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, color-mix(in srgb, var(--sale-color) 12%, transparent 88%), transparent 70%);
    border-radius: 50%;
}

.sale-bg-dots {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(color-mix(in srgb, var(--sale-color) 15%, transparent 85%) 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.sale-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 48px;
    position: relative;
    z-index: 5;
}

.sale-header-glow {
    position: absolute;
    top: -20px;
    right: 10%;
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--sale-color) 30%, transparent 70%), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.sale-header-content-wrapper {
    flex: 1;
}

.sale-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 75%, black 25%));
    padding: 6px 18px;
    border-radius: 60px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
}

    .sale-badge-modern i {
        font-size: 16px;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.sale-modern-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.title-part {
    color: var(--text-primary);
}

.title-highlight {
    background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 70%, white 30%), color-mix(in srgb, var(--sale-color) 40%, white 60%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
}

    .title-highlight::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 70%, white 30%));
        border-radius: 3px;
    }

.sale-modern-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

    .sale-modern-subtitle strong {
        color: var(--sale-color);
        font-size: 18px;
    }

.sale-header-decoration-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sale-color), transparent);
    margin-top: 20px;
    border-radius: 3px;
}

.sale-header-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    background: color-mix(in srgb, var(--sale-color) 10%, transparent 90%);
    backdrop-filter: blur(8px);
    padding: 12px 28px;
    border-radius: 60px;
    border: 1px solid color-mix(in srgb, var(--sale-color) 20%, transparent 80%);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 70%, white 30%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
}

.sale-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sale-scroll-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--sale-color);
    z-index: 5;
}

    .sale-scroll-btn:hover {
        border-color: var(--sale-color);
        color: white;
        background: var(--sale-color);
        transform: scale(1.05);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--sale-color) 25%, transparent 75%);
    }

    .sale-scroll-btn:active {
        transform: scale(0.97);
    }

    .sale-scroll-btn i {
        font-size: 20px;
        font-weight: 500;
    }

.sale-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px 0;
}

    .sale-scroll-container::-webkit-scrollbar {
        height: 3px;
    }

    .sale-scroll-container::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .sale-scroll-container::-webkit-scrollbar-thumb {
        background: var(--sale-color);
        border-radius: 10px;
    }

        .sale-scroll-container::-webkit-scrollbar-thumb:hover {
            background: color-mix(in srgb, var(--sale-color) 75%, black 25%);
        }

.sale-products-list {
    display: flex;
    gap: 20px;
    width: fit-content;
    padding: 0;
}

.sale-product-card {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .sale-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 0;
        background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 75%, black 25%));
        transition: height 0.3s ease;
        z-index: 1;
        border-radius: 20px 20px 0 0;
    }

    .sale-product-card:hover::before {
        height: 4px;
    }

    .sale-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 30px -12px color-mix(in srgb, var(--sale-color) 20%, transparent 80%);
        border-color: color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
    }

.sale-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .sale-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.sale-product-card:hover .sale-product-image img {
    transform: scale(1.05);
}

.sale-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 75%, black 25%));
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
    letter-spacing: 0.3px;
}

.sale-wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #cbd5e1;
    transition: all 0.25s ease;
    z-index: 3;
    opacity: 0;
    transform: translateX(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sale-product-card:hover .sale-wishlist-btn {
    opacity: 1;
    transform: translateX(0);
}

.sale-wishlist-btn:hover {
    transform: scale(1.1);
    background: var(--sale-color);
    color: white;
}

.sale-wishlist-btn.active {
    color: var(--sale-color);
    opacity: 1;
    transform: translateX(0);
}

    .sale-wishlist-btn.active:hover {
        background: var(--sale-color);
        color: white;
    }

.sale-product-info {
    padding: 12px;
    background: transparent;
}

.sale-product-brand {
    font-size: 10px;
    color: var(--sale-color);
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 600;
    background: color-mix(in srgb, var(--sale-color) 8%, transparent 92%);
    padding: 2px 10px;
    border-radius: 20px;
}

.sale-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.45;
    height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .sale-product-title a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .sale-product-title a:hover {
            color: var(--sale-color);
        }

.sale-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sale-price-current {
    font-size: 14px;
    font-weight: 800;
    color: var(--sale-color);
}

.sale-price-old {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sale-footer-action {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.sale-view-all-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sale-color), color-mix(in srgb, var(--sale-color) 75%, black 25%));
    color: white;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--sale-color) 30%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .sale-view-all-premium:hover {
        transform: translateY(-3px);
        gap: 16px;
        box-shadow: 0 12px 30px color-mix(in srgb, var(--sale-color) 40%, transparent 60%);
        background: linear-gradient(135deg, color-mix(in srgb, var(--sale-color) 75%, black 25%), color-mix(in srgb, var(--sale-color) 50%, black 50%));
    }

    .sale-view-all-premium i {
        transition: transform 0.3s ease;
    }

    .sale-view-all-premium:hover i {
        transform: translateX(-5px);
    }

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.sale-view-all-premium:hover .btn-shine {
    left: 100%;
}

@media (max-width: 992px) {
    .sale-premium-wrapper {
        padding: 32px 24px;
    }

    .sale-modern-header {
        flex-direction: column;
        text-align: center;
    }

    .sale-header-content-wrapper {
        text-align: center;
    }

    .sale-modern-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .sale-header-decoration-line {
        margin-left: auto;
        margin-right: auto;
    }

    .sale-header-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sale-premium-wrapper {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .sale-scroll-btn {
        display: none !important;
    }

    .sale-scroll-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 0 20px 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

        .sale-scroll-container::-webkit-scrollbar {
            height: 3px !important;
        }

        .sale-scroll-container::-webkit-scrollbar-track {
            background: var(--border) !important;
            border-radius: 10px !important;
        }

        .sale-scroll-container::-webkit-scrollbar-thumb {
            background: var(--sale-color) !important;
            border-radius: 10px !important;
        }

    .sale-products-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        width: fit-content !important;
        padding: 0 4px !important;
    }

    .sale-product-card {
        width: 160px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .sale-product-title {
        font-size: 11px !important;
        height: 30px !important;
    }

    .sale-price-current {
        font-size: 13px !important;
    }

    .sale-price-old {
        font-size: 10px !important;
    }

    .sale-product-brand {
        font-size: 9px !important;
        padding: 2px 8px !important;
    }

    .sale-modern-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .sale-header-content-wrapper {
        text-align: center !important;
    }

    .sale-modern-title {
        font-size: 24px !important;
        justify-content: center !important;
    }

    .sale-modern-subtitle {
        font-size: 13px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .sale-header-decoration-line {
        margin: 12px auto 0 auto !important;
    }

    .sale-header-stats {
        padding: 8px 16px !important;
        gap: 12px !important;
        justify-content: center !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }

    .stat-number {
        font-size: 22px !important;
    }

    .stat-label {
        font-size: 10px !important;
    }

    .stat-divider {
        height: 30px !important;
    }

    .sale-footer-action {
        margin-top: 24px !important;
    }

    .sale-view-all-premium {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }

    .sale-wishlist-btn {
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    .sale-discount-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
}

@media (max-width: 480px) {
    .sale-bg-circle-1,
    .sale-bg-circle-2 {
        width: 180px;
        height: 180px;
    }

    .sale-premium-wrapper {
        padding: 16px 12px;
    }

    .sale-product-card {
        width: 140px !important;
    }

    .sale-modern-title {
        font-size: 20px !important;
    }

    .title-part,
    .title-highlight {
        font-size: 18px !important;
    }

    .sale-product-info {
        padding: 10px 8px !important;
    }

    .sale-product-title {
        font-size: 10px !important;
        height: 28px !important;
        margin-bottom: 6px !important;
    }

    .sale-price-current {
        font-size: 12px !important;
    }

    .sale-products-list {
        gap: 10px !important;
    }

    .sale-header-stats {
        gap: 8px !important;
        flex-direction: row !important;
        border-radius: 32px !important;
    }

    .stat-divider {
        width: 1px !important;
        height: 30px !important;
    }

    .sale-badge-modern {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }

        .sale-badge-modern i {
            font-size: 12px !important;
        }
}

.latest-swiper-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.latest-swiper-container {
    flex: 1;
    overflow: hidden;
    padding: 20px 0 40px 0;
}

.latest-section .swiper-slide {
    transition: all 0.3s ease;
    width: 220px;
    opacity: 0.5;
    transform: scale(0.85);
}

.latest-section .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.latest-product-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.latest-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .latest-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.latest-product-card:hover .latest-product-image img {
    transform: scale(1.05);
}

.latest-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.latest-wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #cbd5e1;
    transition: all 0.25s ease;
    z-index: 3;
    opacity: 0;
    transform: translateX(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.latest-product-card:hover .latest-wishlist-btn {
    opacity: 1;
    transform: translateX(0);
}

.latest-wishlist-btn:hover {
    transform: scale(1.1);
    background: var(--latest-color);
    color: white;
}

.latest-wishlist-btn.active {
    color: #ef4444;
    opacity: 1;
    transform: translateX(0);
}

    .latest-wishlist-btn.active:hover {
        background: #ef4444;
        color: white;
    }

.latest-product-info {
    padding: 12px;
    background: transparent;
}

.latest-product-brand {
    font-size: 10px;
    color: var(--latest-color);
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 600;
    background: color-mix(in srgb, var(--latest-color) 8%, transparent 92%);
    padding: 2px 10px;
    border-radius: 20px;
}

.latest-product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.45;
    height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .latest-product-title a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .latest-product-title a:hover {
            color: var(--latest-color);
        }

.latest-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.latest-price-current {
    font-size: 14px;
    font-weight: 800;
    color: var(--latest-color);
}

.latest-price-old {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.latest-scroll-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid color-mix(in srgb, var(--latest-color) 40%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--latest-color);
    z-index: 5;
}

    .latest-scroll-btn:hover {
        border-color: var(--latest-color);
        color: white;
        background: var(--latest-color);
        transform: scale(1.05);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--latest-color) 25%, transparent 75%);
    }

    .latest-scroll-btn:active {
        transform: scale(0.97);
    }

.latest-swiper-container .swiper-pagination {
    bottom: 0px !important;
}

.latest-swiper-container .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.latest-swiper-container .swiper-pagination-bullet-active {
    background: var(--latest-color);
    opacity: 1;
    width: 20px;
    border-radius: 10px;
}

.latest-section .swiper-slide {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease !important;
}

.latest-product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
}

.latest-product-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@media (max-width: 992px) {
    .latest-section .swiper-slide {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .latest-swiper-wrapper {
        gap: 8px;
    }

    .latest-section .swiper-slide {
        width: 180px;
        transform: scale(0.9);
    }

    .latest-section .swiper-slide-active {
        transform: scale(1);
    }

    .latest-wishlist-btn {
        opacity: 1;
        transform: translateX(0);
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .latest-discount-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .latest-section .swiper-slide {
        width: 160px;
        transform: scale(0.95);
    }

    .latest-section .swiper-slide-active {
        transform: scale(1);
    }

    .latest-product-info {
        padding: 10px 8px;
    }

    .latest-product-brand {
        font-size: 9px;
        padding: 2px 8px;
    }

    .latest-product-title {
        font-size: 10px;
        height: 28px;
    }

    .latest-price-current {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .latest-scroll-btn {
        display: none;
    }

    .latest-section .swiper-slide {
        width: 150px;
    }
}

#latest-section {
    position: relative;
    overflow: hidden;
}

    #latest-section .container {
        padding: 0 24px;
    }

    #latest-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: -20%;
        width: 50%;
        height: 100%;
        background: radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--latest-color) 4%, transparent 96%), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    #latest-section .section-header {
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        position: relative;
        z-index: 2;
    }

    #latest-section .latest-header-content {
        position: relative;
    }

    #latest-section .latest-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, var(--latest-color), color-mix(in srgb, var(--latest-color) 75%, black 25%));
        padding: 4px 12px 4px 14px;
        border-radius: 30px;
        font-size: 10px;
        font-weight: 700;
        color: white;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        box-shadow: 0 2px 8px color-mix(in srgb, var(--latest-color) 30%, transparent 70%);
    }

        #latest-section .latest-badge i {
            font-size: 11px;
            animation: sparkle 1.5s ease-in-out infinite;
        }

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

#latest-section .latest-header-content h2 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    position: relative;
}

    #latest-section .latest-header-content h2 .highlight {
        background: linear-gradient(135deg, var(--latest-color), color-mix(in srgb, var(--latest-color) 60%, var(--secondary) 40%), color-mix(in srgb, var(--latest-color) 70%, white 30%));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: inline-block;
        animation: gradientShift 3s ease infinite;
        background-size: 200% 200%;
        font-size: 28px;
        font-weight: 800;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

#latest-section .latest-header-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--latest-color), color-mix(in srgb, var(--latest-color) 60%, var(--secondary) 40%), transparent);
    border-radius: 3px;
}

#latest-section .latest-header-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 380px;
    margin: 14px 0 0 0;
    padding-right: 16px;
    border-right: 2px solid var(--latest-color);
}

#latest-section .latest-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: transparent;
    border-radius: 50px;
    color: var(--latest-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1.5px solid color-mix(in srgb, var(--latest-color) 30%, transparent 70%);
}

    #latest-section .latest-view-all::before {
        content: '';
        position: absolute;
        inset: -1.5px;
        border-radius: 50px;
        background: linear-gradient(135deg, var(--latest-color), color-mix(in srgb, var(--latest-color) 75%, black 25%));
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -2;
    }

    #latest-section .latest-view-all::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 53px;
        background: linear-gradient(135deg, var(--latest-color), color-mix(in srgb, var(--latest-color) 60%, var(--secondary) 40%), color-mix(in srgb, var(--latest-color) 70%, white 30%), var(--latest-color));
        background-size: 300% 300%;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -3;
        animation: borderRotate 3s linear infinite;
    }

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#latest-section .latest-view-all span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

#latest-section .latest-view-all i {
    position: relative;
    z-index: 2;
    font-size: 14px;
    transition: transform 0.3s ease;
}

#latest-section .latest-view-all:hover {
    color: white;
    transform: translateX(-4px);
    gap: 14px;
    border-color: transparent;
}

    #latest-section .latest-view-all:hover::before {
        opacity: 1;
    }

    #latest-section .latest-view-all:hover::after {
        opacity: 1;
    }

    #latest-section .latest-view-all:hover i {
        transform: translateX(-5px);
    }

@media (max-width: 768px) {
    #latest-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    #latest-section .latest-header-content h2 {
        font-size: 28px;
    }

        #latest-section .latest-header-content h2::after {
            width: 45px;
        }

    #latest-section .latest-header-content p {
        font-size: 12px;
        margin-top: 10px;
    }

    #latest-section .latest-view-all {
        padding: 8px 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #latest-section .latest-header-content h2 {
        font-size: 24px;
    }

    #latest-section .latest-badge {
        padding: 3px 10px 3px 12px;
        font-size: 9px;
        margin-bottom: 8px;
    }

    #latest-section .container {
        padding: 0 16px;
    }
}

.blog-section {
    padding: 50px 0;
    position: relative;
}

.blog-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-header-right {
    position: relative;
}

.blog-title-modern {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.blog-title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    font-weight: 800;
}

.blog-header-line {
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
    border-radius: 3px;
    margin-top: 8px;
}

.blog-view-all-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .blog-view-all-modern:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateX(-4px);
    }

    .blog-view-all-modern i {
        transition: transform 0.3s ease;
    }

    .blog-view-all-modern:hover i {
        transform: translateX(-4px);
    }

.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card-modern {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

    .blog-card-modern:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: var(--shadow-xl);
    }

.blog-image-modern {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-hover);
}

    .blog-image-modern img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.blog-card-modern:hover .blog-image-modern img {
    transform: scale(1.05);
}

.blog-content-modern {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-modern-card {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

    .blog-title-modern-card a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .blog-title-modern-card a:hover {
            color: var(--primary);
        }

.blog-title-underline {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin-bottom: 12px;
}

.blog-excerpt-modern {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-meta-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

    .blog-meta-modern span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.blog-readmore-modern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .blog-readmore-modern:hover {
        gap: 8px;
        color: var(--primary-dark);
    }

    .blog-readmore-modern i {
        transition: transform 0.2s ease;
    }

    .blog-readmore-modern:hover i {
        transform: translateX(-3px);
    }

@media (max-width: 1200px) {
    .blog-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-title-modern {
        font-size: 28px;
    }

    .blog-title-highlight {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 30px 0;
    }

    .blog-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }

    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-title-modern {
        font-size: 24px;
    }

    .blog-title-highlight {
        font-size: 20px;
    }

    .blog-card-modern {
        border-radius: 16px;
    }

    .blog-content-modern {
        padding: 16px;
    }

    .blog-title-modern-card {
        font-size: 15px;
    }

    .blog-excerpt-modern {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .blog-view-all-modern {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 20px 0;
    }

    .blog-title-modern {
        font-size: 20px;
    }

    .blog-title-highlight {
        font-size: 18px;
    }

    .blog-grid-modern {
        gap: 12px;
    }

    .blog-content-modern {
        padding: 14px;
    }

    .blog-title-modern-card {
        font-size: 14px;
    }

    .blog-excerpt-modern {
        font-size: 11px;
    }

    .blog-meta-modern {
        font-size: 11px;
    }

    .blog-view-all-modern {
        padding: 6px 14px;
        font-size: 12px;
    }
}

body.dark-theme .blog-card-modern {
    background: var(--bg-card);
    border-color: var(--border);
}

body.dark-theme .blog-view-all-modern {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

    body.dark-theme .blog-view-all-modern:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

body.dark-theme .blog-title-modern-card a {
    color: var(--text-primary);
}

    body.dark-theme .blog-title-modern-card a:hover {
        color: var(--primary);
    }

/* ============================================================
   دکمه دستیار هوش مصنوعی (AI Assistant)
   ============================================================ */

.ai-assistant-widget {
    position: fixed;
    bottom: 96px;
    left: 24px;
    z-index: 10000;
    direction: rtl;
}

.ai-assistant-toggle-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(115deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 50%, transparent 50%);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    outline: none;
    padding: 0;
}

    .ai-assistant-toggle-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 28px color-mix(in srgb, var(--primary) 65%, transparent 35%);
    }

    .ai-assistant-toggle-btn:active {
        transform: scale(0.95);
    }

    .ai-assistant-toggle-btn i {
        font-size: 26px;
        color: white;
    }

    .ai-assistant-toggle-btn::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent 60%);
        animation: aiPulseRing 2s ease-out infinite;
    }

@keyframes aiPulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ============================================================
   پنجره چت دستیار هوش مصنوعی
   ============================================================ */

.ai-assistant-window {
    position: fixed;
    bottom: 96px;
    left: 24px;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    z-index: 10001;
}

    .ai-assistant-window.open {
        transform: scale(1);
        opacity: 1;
    }

/* هدر پنجره چت */
.ai-assistant-header {
    background: linear-gradient(115deg, var(--primary), var(--secondary));
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    flex-shrink: 0;
}

.ai-assistant-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .ai-assistant-header-info .ai-avatar {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .ai-assistant-header-info .ai-avatar i {
            font-size: 22px;
            color: white;
        }

    .ai-assistant-header-info h3 {
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
    }

    .ai-assistant-header-info p {
        font-size: 11px;
        opacity: 0.8;
        margin: 2px 0 0;
    }

.ai-assistant-header-actions {
    display: flex;
    gap: 8px;
}

    .ai-assistant-header-actions button {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        color: white;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .ai-assistant-header-actions button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.08);
        }

/* ناحیه پیام‌ها */
.ai-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-secondary);
}

    .ai-assistant-messages::-webkit-scrollbar {
        width: 4px;
    }

    .ai-assistant-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .ai-assistant-messages::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 10px;
    }

/* پیام کاربر */
.ai-user-message {
    align-self: flex-end;
    max-width: 80%;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
    animation: aiMsgFadeIn 0.3s ease;
}

/* پیام ربات */
.ai-bot-message {
    align-self: flex-start;
    max-width: 85%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
    animation: aiMsgFadeIn 0.3s ease;
}

/* پیام خطا */
.ai-error-message {
    align-self: flex-start;
    max-width: 85%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    font-size: 13px;
    line-height: 1.6;
    animation: aiMsgFadeIn 0.3s ease;
}

body.light-theme .ai-error-message {
    color: #dc2626;
}

@keyframes aiMsgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نشانگر تایپ */
.ai-typing-indicator {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px 18px 18px 4px;
}

    .ai-typing-indicator span {
        width: 7px;
        height: 7px;
        background: var(--text-muted);
        border-radius: 50%;
        animation: aiTypingBounce 1.4s infinite ease-in-out;
    }

        .ai-typing-indicator span:nth-child(1) {
            animation-delay: 0s;
        }

        .ai-typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .ai-typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes aiTypingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ناحیه ورودی */
.ai-assistant-input-area {
    padding: 14px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

    .ai-assistant-input-area textarea {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: var(--bg-input);
        color: var(--text-primary);
        font-size: 13px;
        resize: none;
        font-family: inherit;
        outline: none;
        max-height: 100px;
        line-height: 1.5;
        transition: border-color 0.2s ease;
    }

        .ai-assistant-input-area textarea:focus {
            border-color: var(--primary);
        }

        .ai-assistant-input-area textarea::placeholder {
            color: var(--text-muted);
        }

    .ai-assistant-input-area button {
        width: 40px;
        height: 40px;
        background: var(--primary);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

        .ai-assistant-input-area button:hover {
            background: var(--primary-dark);
            transform: scale(1.08);
        }

        .ai-assistant-input-area button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

/* ============================================================
   ریسپانسیو
   ============================================================ */



@media (max-width: 480px) {
    /* چت پشتیبانی */
    .chat-widget {
        bottom: 12px;
        left: 15px;
    }

    /* دستیار هوش مصنوعی */
    .ai-assistant-widget {
        bottom: 74px;
        left: 12px;
    }

    .ai-assistant-window {
        width: calc(100vw - 24px);
        height: 460px;
        left: 12px;
        bottom: 74px;
        border-radius: 16px;
    }

    .ai-assistant-header {
        padding: 12px 14px;
    }

    .ai-assistant-header-info h3 {
        font-size: 14px;
    }

    .ai-assistant-messages {
        padding: 12px;
    }

    .ai-user-message,
    .ai-bot-message {
        font-size: 12px;
        padding: 9px 12px;
    }
}

/* ============================================================
   تم روشن
   ============================================================ */

body.light-theme .ai-assistant-window {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

body.light-theme .ai-bot-message {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .ai-assistant-input-area textarea {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
