﻿/* =========================================================
       TOKENS (CSS VARIABLES)
    ========================================================== */
:root {
    --purple: #933DA7;
    --purple-dark: #7a2e8c;
    --purple-light: #b05dc4;
    --purple-bg: #f9f0fb;
    --teal: #2a9d8f;
    --teal-dark: #1e8073;
    --text-dark: #1a1a2e;
    --text-gray: #666;
    --text-light: #999;
    --border: #e8e8e8;
    --card-bg: #fff;
    --discount-red: #e63946;
    --star-yellow: #ffc107;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(147, 61, 167, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --figma-border: #A522C1;
    --figma-bg: #F7E5FF;
}

/* =========================================================
       BASE / RESET
    ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "mikhak-fd-medium", sans-serif;
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
       TOP STRIP
    ========================================================== */
.top-strip {
    height: 45px;
    background: url(/assets/images/top-banner.png) center / cover no-repeat;
}

/* =========================================================
       HEADER
    ========================================================== */
.site-header {
    background: #fff;
    padding-top: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-logo img {
    height: 48px;
}

.header-search {
    position: relative;
    max-width: 478px;
}

    /* Search icon on LEFT (Figma) */
    .header-search input {
        width: 100%;
        padding: 10px 16px 10px 44px;
        border: 1px solid var(--border);
        border-radius: 5px;
        font-family: "Vazirmatn", sans-serif;
        font-size: 13px;
        color: var(--text-dark);
        outline: none;
        transition: border-color 0.2s;
    }

        .header-search input:focus {
            border-color: var(--purple);
        }

    .header-search .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--purple);
        font-size: 16px;
    }

/* Actions order (cart | sep | login) */
.header-actions {
    display: flex;
    align-items: center;
    direction: ltr;
    gap: 10px;
}

.header-actions-sep {
    width: 1px;
    height: 34.5px;
    background: #772EA3;
    display: inline-block;
}

.btn-login {
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-login:hover {
        background: var(--purple-dark);
    }

.cart-btn {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--purple);
    ;
    border-radius: 10px;
    color: var(--purple);
    transition: all 0.2s;
}

    .cart-btn:hover {
        border-color: var(--purple);
        color: var(--purple);
    }

.cart-count {
    position: absolute;
    right: -6px;
    top: -6px;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* =========================================================
       NAV (Figma-like)
    ========================================================== */
.main-nav {
    background: #fff;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 46px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #a09f9f;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

    .nav-link img {
        width: 17px !important;
    }

    .nav-link:hover {
        color: var(--purple);
        border-bottom-color: var(--purple);
    }

    .nav-link.active {
        color: var(--purple);
/*        border-bottom-color: var(--purple);*/
    }

        .nav-link.active i {
            opacity: 1;
        }

.nav-item--category .nav-link {
    font-weight: 600;
}

.nav-caret {
    font-size: 12px !important;
    opacity: 0.65;
}

.nav-sep {
    width: 1px;
    height: 22px;
    background: rgba(147, 61, 167, 0.25);
    margin: 0 6px;
    flex: 0 0 auto;
}

@media (min-width: 1200px) {
    .container-lg {
        max-width: 1440px; /* یا 1560 */
    }
}

@media (min-width: 1600px) {
    .container-lg {
        max-width: 1680px; /* برای مانیتورهای خیلی عریض */
    }
}

/* =========================================================
       MEGA MENU (Desktop)
    ========================================================== */
.dropdown-mega {
    position: relative;
}

.nav-link--category {
    color: var(--purple);
    font-weight: 700;
}

.mega-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 980px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border: 2px solid rgba(147, 61, 167, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
    padding: 14px;
    display: none;
    z-index: 2000;
}

.mega-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
}

.mega-cats {
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(147, 61, 167, 0.35);
    border-radius: 12px;
    background: #fff;
    position: relative;
}

.mega-cat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
}

    .mega-cat > a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dark);
    }

        .mega-cat > a i {
            color: var(--purple);
            opacity: 0.75;
        }

.mega-arrow {
    color: #9a9a9a;
    font-size: 12px;
}

.mega-cat:hover,
.mega-cat.active {
    background: rgba(147, 61, 167, 0.08);
}

    .mega-cat:hover > a,
    .mega-cat.active > a {
        color: var(--purple);
    }

        .mega-cat:hover > a i,
        .mega-cat.active > a i {
            opacity: 1;
        }

.mega-sub {
    position: absolute;
    right: 100%;
    top: -10px;
    width: 260px;
    background: #fff;
    border: 1px solid rgba(147, 61, 167, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    display: none;
}

.mega-cat:hover .mega-sub,
.mega-cat:focus-within .mega-sub {
    display: block;
}

.mega-cat::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 0;
    width: 12px;
    height: 100%;
}

.mega-sub ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-sub li {
    position: relative;
}

.mega-sub li a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    transition: color 0.18s ease, background-color 0.18s ease, padding 0.18s ease;
}

.mega-sub-item:hover > a,
.mega-sub-item:focus-within > a {
    padding-right: 9px;
    background: rgba(147, 61, 167, 0.08);
    color: var(--purple);
}

.mega-sub-item.has-children > a {
    padding-left: 20px;
}

.mega-sub-item.has-children > a::after {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    font-size: 11px;
}

.mega-third {
    position: absolute;
    right: calc(100% + 10px);
    top: -8px;
    width: 220px;
    min-height: 48px;
    background: #fff;
    border: 1px solid rgba(147, 61, 167, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    display: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.mega-sub-item.has-children::after {
    content: "";
    position: absolute;
    right: 100%;
    top: -8px;
    width: 12px;
    height: calc(100% + 16px);
}

.mega-sub-item:hover > .mega-third,
.mega-sub-item:focus-within > .mega-third {
    display: block;
}

.mega-third li a {
    font-size: 12px;
    padding: 7px 0;
}

.mega-third li:hover > a,
.mega-third li:focus-within > a {
    padding-right: 9px;
    background: rgba(147, 61, 167, 0.08);
    color: var(--purple);
}

.mega-cat-empty {
    justify-content: center;
}

.mega-blank {
    background: #fff;
    border-radius: 12px;
    min-height: 240px;
}

@media (min-width: 992px) {
    .dropdown-mega::after {
        content: "";
        position: absolute;
        right: 0;
        top: 100%;
        width: 240px;
        height: 12px;
    }

    .dropdown-mega:hover .mega-menu,
    .dropdown-mega:focus-within .mega-menu {
        display: block;
    }
}

@media (max-width: 991px) {
    .mega-menu {
        display: none !important;
    }

    .dropdown-mega:hover .mega-menu {
        display: none !important;
    }
}

/* =========================================================
       CATEGORIES (Figma)
    ========================================================== */
.category-figma {
    padding: 25px 0 22px;
    border-bottom: 1px solid var(--border);
}

.cat-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    flex-wrap: nowrap;
}

.cat-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}

.cat-circle {
    width: 85px;
    height: 85px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .cat-circle img {
        width: 54px;
        height: 54px;
        object-fit: contain;
        filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
    }

.cat-item:hover .cat-circle {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.cat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--purple);
    text-align: center;
    line-height: 1.2;
}

.g-face-makeup {
    background: linear-gradient(135deg, #1A0838, #A523C1);
}

.g-face-care {
    background: linear-gradient(135deg, #F97BD8, #660265);
}

.g-hair-care {
    background: linear-gradient(135deg, #280F57, #ED8AE5);
}

.g-intimate {
    background: linear-gradient(135deg, #B916A7, #570179);
}

.g-lip {
    background: linear-gradient(135deg, #2D0281, #9C50E0);
}

.g-perfume {
    background: linear-gradient(135deg, #480B96, #F750F3);
}

/* =========================================================
       HERO
    ========================================================== */
.hero-slider {
    position: relative;
}

    .hero-slider .swiper-slide img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

    .hero-slider .swiper-pagination-bullet {
        background: #fff;
        opacity: 0.6;
    }

    .hero-slider .swiper-pagination-bullet-active {
        background: var(--purple);
        opacity: 1;
    }

/* =========================================================
       PRODUCT CARD
    ========================================================== */
.product-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    position: relative;
    transition: all 0.25s;
    cursor: pointer;
    height: 100%;
}

    .product-card:hover {
        border-color: var(--purple);
        box-shadow: 0 6px 24px rgba(147, 61, 167, 0.15);
        transform: translateY(-3px);
    }

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFF2FC;
    color: #670366;
    border: 1px solid #670366;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 9px;
    border-radius: 20px;
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    color: #A522C1;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-variant {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-stars {
    color: var(--star-yellow);
    font-size: 11px;
    margin-bottom: 8px;
}

    .product-stars .star-count {
        color: var(--text-light);
        font-size: 10px;
        margin-right: 3px;
    }

.product-price {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.product-price-original {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
}

.product-price-final {
    font-size: 14px;
    font-weight: 700;
    color: #A522C1;
}

.product-price-unit {
    font-size: 11px;
    color: #A522C1;
    margin-right: 2px;
}

/* =========================================================
       BRANDS (Figma)
    ========================================================== */
.brands-section {
    background: transparent;
    margin: 25px 0;
}

.brands-card {
    background: #F7E5FF;
    border: 2px solid #A522C1;
    border-radius: 14px;
    padding: 10px;
}

.brands-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.brands-side {
    width: 110px;
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 8px 6px 4px;
}

.brands-title {
    font-size: 14px;
    font-weight: 800;
    color: #A522C1;
    line-height: 1.1;
}

.brands-more {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #A522C1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .brands-more:hover {
        text-decoration: underline;
    }

.brands-track {
    flex: 1 1 auto;
    min-width: 0;
}

.brands-swiper {
    padding: 0 34px;
}

.brand-item {
    background: #fff;
    border-radius: 8px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.brand-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.brands-card .swiper-button-next,
.brands-card .swiper-button-prev {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(165, 34, 193, 0.35);
    color: #A522C1;
    top: 50%;
    transform: translateY(-50%);
}

    .brands-card .swiper-button-next::after,
    .brands-card .swiper-button-prev::after {
        font-size: 12px;
        font-weight: 900;
    }

.brands-card .swiper-button-next {
    left: 8px;
    right: auto;
}

.brands-card .swiper-button-prev {
    right: 8px;
    left: auto;
}

@media (max-width: 575px) {
    .brands-card {
        padding: 10px;
    }

    .brands-side {
        width: 96px;
        flex-basis: 96px;
    }

    .brand-item {
        height: 52px;
    }

    .brand-img {
        height: 26px;
    }

    .brands-swiper {
        padding: 0 30px;
    }
}

/* =========================================================
       SWIPERS (Shared)
    ========================================================== */
.products-swiper {
    padding: 5px 2px 20px;
}
 

    .products-swiper .swiper-button-disabled {
        background: #ddd;
    }

/* =========================================================
       SALE WRAP (Figma)
    ========================================================== */
.sale-wrap {
    background: var(--figma-bg);
    border: 2px solid var(--figma-border);
    border-radius: 18px;
    padding: 16px;
}

.sale-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
    flex-direction: row-reverse;
}

.sale-side {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
}

    .sale-side .sale-fire {
        width: 110px;
        height: auto;
        margin-bottom: 10px;
    }

    .sale-side .sale-title {
        font-size: 20px;
        font-weight: 800;
        color: var(--purple);
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .sale-side .sale-more {
        font-size: 12px;
        font-weight: 700;
        color: var(--purple);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .sale-side .sale-more:hover {
            text-decoration: underline;
        }

.sale-slider-box {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(165, 34, 193, 0.55);
    border-radius: 16px;
    padding: 14px 14px 20px;
    position: relative;
}


#sale-swiper .swiper-button-next,
#sale-swiper .swiper-button-prev,
.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(165, 34, 193, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: var(--purple);
}

    #sale-swiper .swiper-button-next::after,
    #sale-swiper .swiper-button-prev::after,
    .products-swiper .swiper-button-next::after,
    .products-swiper .swiper-button-prev::after {
        font-size: 14px;
        font-weight: 900;
    }

#sale-swiper .swiper-button-disabled {
    opacity: 0.35;
}

#sale-swiper .swiper-wrapper {
    align-items: stretch;
}

#sale-swiper .swiper-slide {
    width: 185px !important;
    height: auto;
}

#sale-swiper .product-card {
    height: auto;
}

#sale-swiper .product-img {
    height: 140px;
    object-fit: contain;
}

#bestseller-swiper .swiper-slide {
    width: 185px;
}

#bestseller-swiper .product-img {
    height: 140px;
    object-fit: contain;
}

#need-swiper .swiper-slide {
    width: 185px;
}
/* ================================================
   BESTSELLER RANK BADGE
================================================ */

.product-rank {
    position: absolute;
    top: 60px;
    right: 0;
    background: #DDF4CA;
    color: #6CA906;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 3;
}

    .product-rank .rank-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .product-rank .rank-number {
        font-size: 12px;
    }

    .product-rank .rank-label {
        font-size: 12px;
    }

    .product-rank i {
        font-size: 14px;
        color: #6CA906;
    }

@media (max-width: 767px) {
    .sale-row {
        flex-direction: column;
    }

    .sale-side {
        flex: 0 0 auto;
    }

    .sale-slider-box {
        padding: 12px 10px 18px;
    }
}

/* =========================================================
       MIDDLE BANNERS
    ========================================================== */
.middle-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.middle-banner-item {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

    .middle-banner-item:hover {
        transform: scale(1.01);
    }

    .middle-banner-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

/* =========================================================
       GENDER
    ========================================================== */
.gender-section {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 16px;
}

.gender-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gender-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s;
}

    .gender-card:hover {
        transform: translateY(-4px);
    }

    .gender-card img {
        width: 100%;
        object-fit: cover;
    }

/* =========================================================
       DISCOUNT BANNERS
    ========================================================== */
.discount-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.discount-card {
    border-radius: var(--radius);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .discount-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

.discount-percent {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.discount-card-1 {
    background: linear-gradient(135deg, #b05dc4, #933DA7);
}

.discount-card-2 {
    background: linear-gradient(135deg, #c970d8, #a040bb);
}

.discount-card-3 {
    background: linear-gradient(135deg, #933DA7, #7a2e8c);
}

.discount-card-4 {
    background: linear-gradient(135deg, #7a2e8c, #5d1f6c);
}

/* =========================================================
       BLOG
    ========================================================== */
/* =========================================================
   BLOG (Figma Style)
========================================================== */
.blog-section {
    background: transparent;
    padding: 0;
    margin: 22px 0 16px;
}

.blog-wrap {
    background: #F7E5FF;
    border-radius: 24px;
    padding: 22px 20px;
}

.blog-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #A522C1;
    margin-bottom: 16px;
}

.blog-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 230px; /* ارتفاع کارت مثل فیگما */
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateZ(0);
}

    .blog-card img.blog-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* bottom gradient overlay */
.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0,0,0,0) 45%, rgba(147, 61, 167, 0.75) 100% );
}

/* content on top of gradient */
.blog-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
}

.blog-post-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 200%;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    opacity: .95;
}

    .blog-meta .meta-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.blog-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(165,34,193,.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .blog-badge i {
        color: #A522C1;
        font-size: 16px;
    }

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}


/* =========================================================
       TRUST FOOTER
    ========================================================== */
.trust-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: var(--purple-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 22px;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.trust-text span {
    font-size: 11px;
    color: var(--text-gray);
}

/* =========================================================
       OFFCANVAS
    ========================================================== */
.offcanvas {
    z-index: 3000;
}

.offcanvas-backdrop {
    z-index: 2999;
}

/* =========================================================
       RESPONSIVE
    ========================================================== */
@media (max-width: 991px) {
    .hero-slider .swiper-slide img {
        height: 300px;
    }

    .middle-banners {
        grid-template-columns: 1fr;
    }

    .discount-banners {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list {
        width: max-content;
        padding: 0 8px;
    }

    .main-nav::-webkit-scrollbar {
        height: 6px;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(147, 61, 167, 0.25);
        border-radius: 999px;
    }

    .cat-row {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 8px;
        gap: 18px;
        -webkit-overflow-scrolling: touch;
    }

        .cat-row::-webkit-scrollbar {
            height: 6px;
        }

        .cat-row::-webkit-scrollbar-thumb {
            background: rgba(147, 61, 167, 0.25);
            border-radius: 999px;
        }

    .cat-circle {
        width: 92px;
        height: 92px;
    }

        .cat-circle img {
            width: 46px;
            height: 46px;
        }

    .cat-item {
        min-width: 92px;
    }

    .cat-label {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .header-actions .btn-login {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-slider .swiper-slide img {
        height: 200px;
    }

    .discount-banners {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .discount-percent {
        font-size: 36px;
    }

    .product-img {
        height: 130px;
    }
}

@media (max-width: 479px) {
    .header-logo img {
        height: 36px;
    }

    .discount-banners {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   DISCOUNT SWIPER (Fix)
========================================================= */
.discount-swiper {
    width: 100%;
    overflow: hidden;
}

    .discount-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .discount-swiper .swiper-slide {
        width: 230px; /* مهم: عرض اسلاید */
        height: auto;
        display: flex;
    }

    .discount-swiper .discount-card {
        width: 100%;
    }
.user-dashboard-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f5edf9;
    color: #772EA3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all .2s ease;
}

    .user-dashboard-btn:hover {
        background: #772EA3;
        color: #fff;
    }
