/* ============================================================
   STORE PREMIUM THEME
   Modern / Luxury / Unified Storefront
   Version: 1.0
   ============================================================ */

:root {

    --store-primary: #1769d2;
    --store-primary-2: #0f4fa8;
    --store-primary-dark: #0b3b7a;

    --store-accent: #d9a441;
    --store-accent-soft: #fff8e8;

    --store-ink: #14213d;
    --store-text: #26354f;
    --store-muted: #718096;

    --store-bg: #f4f7fb;
    --store-surface: #ffffff;
    --store-surface-soft: #f8fafc;

    --store-border: rgba(20, 59, 110, .10);
    --store-border-strong: rgba(23, 105, 210, .20);

    --store-danger: #dc3545;
    --store-success: #138a5b;

    --store-radius-sm: 10px;
    --store-radius-md: 14px;
    --store-radius-lg: 18px;
    --store-radius-xl: 26px;

    --store-shadow-sm:
        0 5px 18px rgba(20, 42, 75, .07);

    --store-shadow:
        0 14px 38px rgba(20, 42, 75, .10);

    --store-shadow-hover:
        0 20px 48px rgba(20, 42, 75, .15);

    --store-transition:
        all .25s cubic-bezier(.4,0,.2,1);

}
/* ============================================================
   GLOBAL STOREFRONT
   ============================================================ */

.store-site {

    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(139, 92, 246, .055),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(245, 158, 11, .035),
            transparent 24%
        ),
        var(--store-bg);

    color: var(--store-text);

}
.store-site *,
.store-site *::before,
.store-site *::after {

    box-sizing: border-box;

}


/* ============================================================
   دکمه‌ها
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

.store-site button,
.store-site input,
.store-site select,
.store-site textarea {

    font-family: inherit;

}


/* ============================================================
   هدر و منوی فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   PREMIUM STORE NAVIGATION
   Bright Royal Blue / Soft Navy / Gold
   ============================================================ */

.store-site .fixed-navbar {

    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            #243b63 0%,
            #315487 48%,
            #3b6595 100%
        );

    border-bottom: 1px solid rgba(255,255,255,.16);

    box-shadow:
        0 14px 38px rgba(32,55,92,.20);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

}
/* ============================================================
   TOP ROW
   ============================================================ */

.store-site .fixed-navbar .top-row {

    position: relative;

    min-height: 76px;

    padding: 11px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.025)
        );

    border-bottom: 1px solid rgba(255,255,255,.11);

}
.store-site .fixed-navbar .top-row::before {

    content: "";

    position: absolute;

    top: 0;
    right: 8%;
    left: 8%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            rgba(245,190,75,.65),
            rgba(255,255,255,.55),
            transparent
        );

}
/* ============================================================
   BRAND
   ============================================================ */

.store-site .logo-company {

    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;

}
.store-site #systemNavigationLogo {

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    object-fit: contain;

    padding: 5px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f8fc
        );

    border: 1px solid rgba(255,255,255,.30);

    box-shadow:
        0 7px 20px rgba(20,40,70,.20),
        0 0 0 1px rgba(255,255,255,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}
.store-site .logo-company:hover #systemNavigationLogo {

    transform: translateY(-1px) scale(1.025);

    box-shadow:
        0 10px 25px rgba(20,40,70,.25),
        0 0 0 4px rgba(255,255,255,.10);

}
.store-site .company-name {

    position: relative;

    min-width: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 850;

    letter-spacing: -.35px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow:
        0 2px 8px rgba(20,40,70,.18);

}
.store-site .company-name::after {

    content: "";

    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 9px;

    vertical-align: middle;

    border-radius: 50%;

    background: #f5c45b;

    box-shadow:
        0 0 8px rgba(245,196,91,.65);

}
/* ============================================================
   USER
   ============================================================ */

.store-site .user-info {

    display: flex;
    align-items: center;

    flex: 0 0 auto;

}
.store-site #user-display {

    position: relative;

    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 7px 16px;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.065)
        );

    border: 1px solid rgba(255,255,255,.19);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 6px 17px rgba(25,45,75,.14);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}
.store-site #user-display:hover {

    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.23),
            rgba(255,255,255,.10)
        );

    border-color: rgba(255,255,255,.32);

    box-shadow:
        0 8px 22px rgba(25,45,75,.20),
        0 0 16px rgba(255,255,255,.08);

}
/* ============================================================
   BOTTOM ROW
   ============================================================ */

.store-site .fixed-navbar .bottom-row {

    min-height: 60px;

    padding: 0 24px;

    display: flex;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.07),
            rgba(20,45,80,.08)
        );

}
.store-site .fixed-navbar .bottom-row::-webkit-scrollbar {

    display: none;

}
/* ============================================================
   NAV MENU
   ============================================================ */

.store-site .nav-list {

    width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    list-style: none;

}
.store-site .nav-list li {

    margin: 0;
    padding: 0;

    flex: 0 0 auto;

}
.store-site .nav-list li a {

    position: relative;

    min-height: 43px;

    font-family: "Tahoma", sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 16px;

    border: 1px solid transparent;
    border-radius: 13px;

    color: rgba(255,255,255,.86);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color .22s ease,
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;

}
/* ============================================================
   HOVER
   ============================================================ */

.store-site .nav-list li a:hover {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.20),
            rgba(255,255,255,.085)
        );

    border-color: rgba(255,255,255,.22);

    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        0 7px 18px rgba(20,45,80,.16),
        0 0 15px rgba(255,255,255,.06);

}
/* ============================================================
   ACTIVE
   ============================================================ */

.store-site .nav-list li a.active,
.store-site .nav-list li.active > a,
.store-site .nav-list li a[aria-current="page"] {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.25),
            rgba(96,165,250,.16)
        );

    border-color: rgba(255,255,255,.27);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        0 8px 20px rgba(20,45,80,.18);

}
.store-site .nav-list li a.active::after,
.store-site .nav-list li.active > a::after,
.store-site .nav-list li a[aria-current="page"]::after {

    content: "";

    position: absolute;

    right: 18px;
    left: 18px;
    bottom: 3px;

    height: 2px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            #8dd8ff,
            #f5c45b
        );

    box-shadow:
        0 0 9px rgba(141,216,255,.55);

}


/* ============================================================
   سبد خرید
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   CART
   ============================================================ */

.store-site .nav-list .cart-link {

    color: #ffffff !important;

    padding-right: 17px;
    padding-left: 17px;

    background:
        linear-gradient(
            135deg,
            #3978d4,
            #2694b6
        ) !important;

    border-color: rgba(255,255,255,.23) !important;

    box-shadow:
        0 8px 20px rgba(35,105,180,.25),
        inset 0 1px 0 rgba(255,255,255,.18);

}
.store-site .nav-list .cart-link:hover {

    color: #ffffff !important;

    transform: translateY(-2px) scale(1.015);

    background:
        linear-gradient(
            135deg,
            #4b8fe8,
            #2db4cf
        ) !important;

    border-color: rgba(255,255,255,.34) !important;

    box-shadow:
        0 11px 25px rgba(35,105,180,.32),
        0 0 18px rgba(45,180,207,.16),
        inset 0 1px 0 rgba(255,255,255,.22);

}
.store-site .nav-list .cart-link::after {

    display: none;

}
.store-site #cartCounter {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    margin-right: 7px !important;
    padding: 0 6px !important;

    border-radius: 999px !important;

    background: #ffffff !important;
    color: #3978d4 !important;

    font-size: 10px !important;
    font-weight: 900;

    box-shadow:
        0 2px 8px rgba(20,45,80,.20);

}
/* ============================================================
   LOGOUT
   ============================================================ */

.store-site #storeLogoutLink {

    color: rgba(255,225,230,.90);

}
.store-site #storeLogoutLink:hover {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(239,68,68,.20),
            rgba(255,255,255,.08)
        );

    border-color: rgba(255,150,160,.28);

    box-shadow:
        0 7px 18px rgba(20,45,80,.15),
        0 0 13px rgba(239,68,68,.08);

}


/* ============================================================
   واکنش‌گرایی و موبایل
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {


    .store-site .fixed-navbar .top-row {
        min-height: 68px;
        padding: 9px 18px;
    }

    .store-site #systemNavigationLogo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .store-site .company-name {
        font-size: 16px;
    }

    .store-site .fixed-navbar .bottom-row {
        min-height: 56px;
        padding: 0 14px;
    }

    .store-site .nav-list {
        justify-content: flex-start;
        gap: 5px;
    }

    .store-site .nav-list li a {
        min-height: 41px;
        padding: 7px 13px;
        font-size: 12.5px;
    }

}
@media (max-width: 600px) {


    .store-site .fixed-navbar .top-row {
        min-height: 62px;
        padding: 8px 12px;
        gap: 10px;
    }

    .store-site .logo-company {
        gap: 9px;
    }

    .store-site #systemNavigationLogo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        padding: 4px;
        border-radius: 12px;
    }

    .store-site .company-name {
        max-width: 48vw;
        font-size: 14px;
    }

    .store-site .company-name::after {
        display: none;
    }

    .store-site #user-display {
        min-height: 35px;
        padding: 6px 10px;
        border-radius: 11px;
        font-size: 11px;
    }

    .store-site .fixed-navbar .bottom-row {
        min-height: 53px;
        padding: 0 9px;
    }

    .store-site .nav-list li a {
        min-height: 39px;
        padding: 6px 11px;
        border-radius: 11px;
        font-size: 11.5px;
    }

    .store-site #cartCounter {
        min-width: 19px;
        height: 19px;
        margin-right: 5px !important;
    }

}
/* ============================================================
   MAIN STORE CONTAINERS
   ============================================================ */



.store-site .store-container,
.store-site .store-page-container,
.store-site .stores-container,
.store-site .history-container,
.store-site .favorites-container,
.store-site .contact-page-container {

    width: min(1440px, calc(100% - 40px));

    margin-right: auto;
    margin-left: auto;

}
/* ============================================================
   PAGE TITLES / HEADERS
   ============================================================ */

.store-site .page-title,
.store-site .section-title,
.store-site h1,
.store-site h2 {

    color: var(--store-ink);

}
.store-site h1 {

    font-weight: 900;
    letter-spacing: -.7px;

}
.store-site h2 {

    font-weight: 850;
    letter-spacing: -.4px;

}
.store-site .section-title {

    position: relative;

    margin-bottom: 24px;

    padding-right: 15px;

}
.store-site .section-title::before {

    content: "";

    position: absolute;

    right: 0;
    top: 4px;
    bottom: 4px;

    width: 4px;

    border-radius: 99px;

    background:
        linear-gradient(
            180deg,
            var(--store-primary),
            var(--store-primary-2)
        );

}


/* ============================================================
   محصولات جشنواره
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   FESTIVAL CARD COMPATIBILITY
   ============================================================ */

.store-site #festival-products .product-card {


    min-height:
        430px;

}
.store-site #festival-products
.product-card .price del {


    color:
        #9aa5b3;

    font-size:
        10.5px;

}
.store-site #festival-products
.product-card .price-discounted {


    color:
        var(--store-primary-dark) !important;

    font-size:
        18px;

    font-weight:
        950;

}


/* ============================================================
   محصولات مشابه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   SIMILAR PRODUCTS
   ============================================================ */

.store-site .similar-products-scroll {


    overflow-x: auto;

    padding:
        8px 4px 22px;

    scrollbar-width:
        thin;

}
.store-site .similar-products-wrapper {


    display:
        flex;

    gap:
        18px;

    min-width:
        max-content;

}


/* ============================================================
   کارت محصولات فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

.store-site .similar-product-card {


    position:
        relative;

    width:
        220px;

    min-width:
        220px;

    overflow:
        hidden;

    padding:
        0 0 14px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );

    border:
        1px solid rgba(20,59,110,.10);

    border-radius:
        17px;

    box-shadow:
        0 5px 16px rgba(20,42,75,.055);

    cursor:
        pointer;

    transition:
        transform .28s cubic-bezier(.2,.7,.2,1),
        box-shadow .28s ease,
        border-color .25s ease;

}
.store-site .similar-product-card:hover {


    transform:
        translateY(-6px);

    border-color:
        rgba(23,105,210,.22);

    box-shadow:
        0 16px 34px rgba(20,42,75,.11);

}
/* ---------- Similar image ---------- */

.store-site .similar-product-card img {


    width:
        100%;

    height:
        165px;

    display:
        block;

    object-fit:
        contain;

    padding:
        13px;

    background:
        linear-gradient(
            145deg,
            #f7faff,
            #edf3f9
        );

    border-bottom:
        1px solid rgba(20,59,110,.07);

    transition:
        transform .35s cubic-bezier(.2,.7,.2,1);

}
.store-site .similar-product-card:hover img {


    transform:
        scale(1.055);

}
/* ---------- Similar title ---------- */

.store-site .similar-product-card .title {


    min-height:
        45px;

    margin:
        12px 13px 5px;

    display:
        -webkit-box;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;

    overflow:
        hidden;

    color:
        var(--store-ink);

    font-size:
        13px;

    font-weight:
        800;

    line-height:
        1.7;

    text-align:
        center;

}
/* ---------- Similar price ---------- */

.store-site .similar-product-card .price {


    min-height:
        44px;

    margin:
        3px 11px 0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    line-height:
        1.4;

}
.store-site .similar-product-card .price-original {


    color:
        #9aa5b3;

    font-size:
        10px;

    text-decoration:
        line-through;

}
.store-site .similar-product-card .price-discounted {


    color:
        var(--store-primary-dark);

    font-size:
        15px;

    font-weight:
        950;

}
/* ---------- Similar discount ---------- */

.store-site .similar-product-card .discount-badge {


    position:
        absolute;

    top:
        10px;

    right:
        10px;

    z-index:
        5;

    min-width:
        43px;

    padding:
        6px 9px;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            135deg,
            #e1b34f,
            #b98224
        ) !important;

    color:
        #ffffff !important;

    font-size:
        10px;

    font-weight:
        900;

    text-align:
        center;

    box-shadow:
        0 5px 12px rgba(185,130,36,.20);

}


/* ============================================================
   واکنش‌گرایی و موبایل
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   PRODUCT CARD RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {


    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site #festival-products {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap:
            20px;
    }

}
@media (max-width: 1000px) {


    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site #festival-products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            17px;
    }

    .store-site .product-card {

        min-height:
            420px;
    }

    .store-site .product-card
    .product-image-section,
    .store-site .product-card
    .img-wrapper {

        height:
            205px;

        flex-basis:
            205px;
    }

}
@media (max-width: 700px) {


    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site #festival-products {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            12px;
    }

    .store-site .product-card {

        min-height:
            390px;

        border-radius:
            16px;
    }

    .store-site .product-card
    .product-image-section,
    .store-site .product-card
    .img-wrapper {

        height:
            175px;

        flex-basis:
            175px;
    }

    .store-site .product-card
    .product-image-section img,
    .store-site .product-card
    .img-wrapper img {

        padding:
            11px;
    }

    .store-site .product-card h3 {

        min-height:
            44px;

        max-height:
            44px;

        margin:
            11px 12px 4px;

        font-size:
            13px;

        line-height:
            1.7;
    }

    .store-site .product-card
    .product-code,
    .store-site .product-card
    .product-unit {

        margin-right:
            12px;

        margin-left:
            12px;

        font-size:
            9.5px;
    }

    .store-site .product-card
    .product-rating {

        margin-right:
            12px;

        margin-left:
            12px;

        font-size:
            11px;
    }

    .store-site .product-card
    .price-info,
    .store-site .product-card
    .price {

        min-height:
            48px;

        margin-right:
            12px;

        margin-left:
            12px;
    }

    .store-site .product-card
    .price-discounted {

        font-size:
            16px;
    }

    .store-site .product-card
    .price-normal,
    .store-site .product-card
    .price,
    .store-site .product-card
    .product-price {

        font-size:
            15px;
    }

    .store-site .product-card
    .cart-actions {

        margin-right:
            12px;

        margin-left:
            12px;

        margin-bottom:
            12px;
    }

    .store-site .product-card
    .btn-add-cart {

        min-height:
            40px;

        border-radius:
            10px;

        font-size:
            10.5px;
    }

    .store-site .product-card
    .quantity-controls {

        height:
            40px;

        border-radius:
            10px;
    }

    .store-site .product-card
    .quantity-controls button {

        width:
            38px;

        flex-basis:
            38px;

        font-size:
            18px;
    }

    .store-site .product-card
    .discount-badge {

        top:
            9px;

        right:
            9px;

        min-width:
            41px;

        min-height:
            29px;

        padding:
            5px 7px;

        border-radius:
            8px !important;

        font-size:
            9px;
    }

    .store-site .product-card
    .out-of-stock {

        top:
            9px;

        left:
            9px;

        padding:
            5px 7px;

        font-size:
            9px;
    }

}
@media (max-width: 390px) {


    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site #festival-products {

        grid-template-columns:
            1fr;

        gap:
            14px;
    }

    .store-site .product-card {

        min-height:
            425px;
    }

    .store-site .product-card
    .product-image-section,
    .store-site .product-card
    .img-wrapper {

        height:
            210px;

        flex-basis:
            210px;
    }

    .store-site .product-card h3 {

        font-size:
            14px;
    }

}
/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {


    .store-site .product-card,
    .store-site .product-card img,
    .store-site .similar-product-card,
    .store-site .similar-product-card img,
    .store-site .btn-add-cart {

        transition:
            none !important;
    }

}


/* ============================================================
   دکمه‌ها
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

.store-site .btn,
.store-site .primary-btn,
.store-site .btn-primary,
.store-site .store-save-btn,
.store-site .store-login-btn {

    border: 0;

    border-radius: 12px;

    min-height: 44px;

    padding: 9px 18px;

    background:
        linear-gradient(
            135deg,
            var(--store-primary),
            var(--store-primary-2)
        );

    color: #fff;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(23,105,210,.18);

    transition: var(--store-transition);

}
.store-site .btn:hover,
.store-site .primary-btn:hover,
.store-site .btn-primary:hover,
.store-site .store-save-btn:hover,
.store-site .store-login-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(23,105,210,.26);

}
.store-site .secondary-btn,
.store-site .btn-secondary,
.store-site .store-cancel-btn {

    border: 1px solid var(--store-border-strong);

    border-radius: 12px;

    min-height: 44px;

    padding: 9px 18px;

    background: #fff;

    color: var(--store-primary-dark);

    font-weight: 800;

    cursor: pointer;

    transition: var(--store-transition);

}
.store-site .secondary-btn:hover,
.store-site .btn-secondary:hover,
.store-site .store-cancel-btn:hover {

    background: #faf7ff;

    border-color:
        rgba(23,105,210,.28);

}
/* ============================================================
   FORMS
   ============================================================ */

.store-site input,
.store-site select,
.store-site textarea {

    width: 100%;

    min-height: 45px;

    padding: 10px 13px;

    border:
        1px solid rgba(23,105,210,.14);

    border-radius: 12px;

    background: #fff;

    color: var(--store-ink);

    font-size: 13px;

    outline: none;

    transition: var(--store-transition);

}
.store-site textarea {

    min-height: 110px;

    resize: vertical;

}
.store-site input:focus,
.store-site select:focus,
.store-site textarea:focus {

    border-color: var(--store-primary);

    box-shadow:
        0 0 0 4px rgba(23,105,210,.08);

}
.store-site label {

    color: var(--store-text);

    font-size: 12px;

    font-weight: 800;

}
/* form containers */

.store-site .store-form-container,
.store-site .login-container,
.store-site .forgot-password-container {

    background: rgba(255,255,255,.94);

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-xl);

    box-shadow: var(--store-shadow);

    backdrop-filter: blur(10px);

}


/* ============================================================
   سبد خرید
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   CART
   ============================================================ */

.store-site .cart-container {

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

}
.store-site .cart-header {

    margin-bottom: 22px;

}
.store-site .cart-table-wrapper {

    overflow: hidden;

    background: #fff;

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-lg);

    box-shadow: var(--store-shadow-sm);

}
.store-site .cart-table {

    width: 100%;

    border-collapse: collapse;

}
.store-site .cart-table th {

    padding: 15px;

    background:
        linear-gradient(
            135deg,
            #f4f8fd,
            #edf4fc
        );

    color: var(--store-primary-dark);

    font-size: 12px;
    font-weight: 850;

}
.store-site .cart-table td {

    padding: 14px;

    border-top:
        1px solid rgba(23,105,210,.065);

    font-size: 12px;

}
.store-site .cart-summary-box {

    margin-top: 20px;

    padding: 22px;

    background: #fff;

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-lg);

    box-shadow: var(--store-shadow-sm);

}
/* empty cart */

.store-site .cart-empty-message {

    padding: 55px 25px;

    background: #fff;

    border:
        1px dashed rgba(23,105,210,.20);

    border-radius: var(--store-radius-xl);

    text-align: center;

    color: var(--store-muted);

}
.store-site .cart-empty-icon {

    font-size: 48px;

    margin-bottom: 12px;

}
/* ============================================================
   FAVORITES / HISTORY / PROFILE
   ============================================================ */

.store-site .favorites-container,
.store-site .history-container {

    padding-bottom: 45px;

}

.store-site .favorites-container > *,
.store-site .history-container > * {

    max-width: 100%;

}


/* ============================================================
   FAVORITES PAGE
   ============================================================ */

.store-site .favorites-page {

    width: 100%;

    padding-top: 28px;

}


.store-site .favorites-header {

    margin-bottom: 25px;

    padding:
        24px
        26px;

    background:
        linear-gradient(
            145deg,
            #f8fbfe 0%,
            #edf3f8 55%,
            #e3ebf3 100%
        );

    border:
        2px solid
        #b4c4d3;

    border-radius:
        20px;

    box-shadow:
        0 8px 22px
        rgba(30,45,62,.09);

    text-align: center;

}


.store-site .favorites-header h1 {

    margin:
        0 0 7px;

    color:
        #153f6a;

    font-size:
        1.55rem;

    font-weight:
        950;

}


.store-site .favorites-subtitle {

    margin: 0;

    color:
        #64778a;

    font-size:
        .88rem;

    font-weight:
        700;

}


/* ============================================================
   FAVORITES GRID
   ============================================================ */

.store-site .favorites-list {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        20px;

    width: 100%;

    align-items: stretch;

}


/*
   علاقه‌مندی‌ها دقیقاً از همان کارت اصلی فروشگاه استفاده می‌کنند.
   هیچ ظاهر جداگانه‌ای برای کارت تعریف نمی‌شود.
*/

.store-site .favorites-list
.store-product-card {

    width: 100%;

    min-width: 0;

}


/* ============================================================
   REMOVE FAVORITE
   ============================================================ */

.store-site .store-product-card
.favorite-remove-btn {

    position: absolute;

    top: 13px;
    left: 13px;

    z-index: 10;

    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf2f6
        );

    color:
        #b71c1c;

    border:
        2px solid
        rgba(183,28,28,.30);

    border-radius:
        50%;

    box-shadow:
        0 6px 14px
        rgba(30,45,62,.18);

    font-family:
        Arial,
        Tahoma,
        sans-serif;

    font-size:
        20px;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease;

}


.store-site .store-product-card
.favorite-remove-btn:hover:not(:disabled) {

    transform:
        translateY(-2px)
        scale(1.06);

    background:
        linear-gradient(
            145deg,
            #fff4f4,
            #ffe1e1
        );

    color:
        #8e1515;

    border-color:
        rgba(183,28,28,.55);

    box-shadow:
        0 9px 18px
        rgba(183,28,28,.22);

}


.store-site .store-product-card
.favorite-remove-btn:active:not(:disabled) {

    transform:
        scale(.96);

}


.store-site .store-product-card
.favorite-remove-btn:disabled {

    opacity:
        .55;

    cursor:
        wait;

}


/* ============================================================
   FAVORITES STATES
   ============================================================ */

.store-site .favorites-state {

    width: 100%;

    min-height:
        230px;

    box-sizing:
        border-box;

    align-items:
        center;

    justify-content:
        center;

    flex-direction:
        column;

    padding:
        30px 20px;

    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #edf3f8
        );

    border:
        2px dashed
        #b6c6d5;

    border-radius:
        20px;

    color:
        #65788b;

    text-align:
        center;

}


.store-site .favorites-empty-icon,
.store-site .favorites-error-icon {

    margin-bottom:
        10px;

    font-size:
        48px;

}


.store-site .favorites-state h2 {

    margin:
        0 0 8px;

    color:
        #294b68;

    font-size:
        1.05rem;

    font-weight:
        900;

}


.store-site .favorites-state p {

    max-width:
        520px;

    margin:
        0 0 18px;

    color:
        #718294;

    font-size:
        .84rem;

    font-weight:
        650;

    line-height:
        1.8;

}


.store-site .favorites-shop-btn,
.store-site .favorites-retry-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        42px;

    padding:
        8px 20px;

    border:
        2px solid
        #124c91;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            #1557a6,
            #2478d5
        );

    color:
        #fff;

    font-size:
        .8rem;

    font-weight:
        900;

    text-decoration:
        none;

    cursor:
        pointer;

    box-shadow:
        0 6px 14px
        rgba(21,87,166,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;

}


.store-site .favorites-shop-btn:hover,
.store-site .favorites-retry-btn:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.05);

    box-shadow:
        0 9px 18px
        rgba(21,87,166,.28);

}


.store-site .favorites-error {

    border-color:
        #e0b2b2;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff0f0
        );

}


.store-site .favorites-error h2 {

    color:
        #8f2525;

}


/* ============================================================
   FAVORITES / HISTORY TABLES
   ============================================================ */

.store-site .history-container table,
.store-site .favorites-container table {

    width: 100%;

    background: #fff;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-lg);

    box-shadow: var(--store-shadow-sm);

}


.store-site .history-container th,
.store-site .favorites-container th {

    padding: 14px;

    background: #f4f8fd;

    color: var(--store-primary-dark);

    font-weight: 850;

}


.store-site .history-container td,
.store-site .favorites-container td {

    padding: 13px;

    border-top:
        1px solid rgba(23,105,210,.06);

}


/* ============================================================
   FAVORITES RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .store-site .favorites-list {

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap:
            17px;

    }

}


@media (max-width: 800px) {

    .store-site .favorites-page {

        padding-top:
            20px;

    }


    .store-site .favorites-header {

        padding:
            19px 16px;

        margin-bottom:
            18px;

    }


    .store-site .favorites-header h1 {

        font-size:
            1.25rem;

    }


    .store-site .favorites-subtitle {

        font-size:
            .78rem;

    }


    .store-site .favorites-list {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            12px;

    }


    .store-site .store-product-card
    .favorite-remove-btn {

        top:
            10px;

        left:
            10px;

        width:
            34px;

        height:
            34px;

        font-size:
            18px;

    }

}


@media (max-width: 390px) {

    .store-site .favorites-list {

        gap:
            9px;

    }


    .store-site .favorites-header {

        padding:
            16px 12px;

    }


    .store-site .favorites-header h1 {

        font-size:
            1.1rem;

    }


    .store-site .favorites-subtitle {

        font-size:
            .72rem;

    }


    .store-site .store-product-card
    .favorite-remove-btn {

        top:
            9px;

        left:
            9px;

        width:
            31px;

        height:
            31px;

        font-size:
            16px;

    }

}
/* ============================================================
   STORE INFORMATION PAGES
   ============================================================ */

.store-site .store-page-container,
.store-site .contact-page-container {

    padding-bottom: 50px;

}
.store-site .store-page-container section,
.store-site .contact-page-container section {

    background: rgba(255,255,255,.94);

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-lg);

    box-shadow: var(--store-shadow-sm);

    transition: var(--store-transition);

}
.store-site .store-page-container section:hover,
.store-site .contact-page-container section:hover {

    box-shadow: var(--store-shadow);

}
/* ============================================================
   STORES
   ============================================================ */

.store-site .stores-container {

    padding-bottom: 45px;

}
.store-site .stores-container .store-card,
.store-site .stores-container .branch-card {

    background: #fff;

    border:
        1px solid var(--store-border);

    border-radius: var(--store-radius-lg);

    box-shadow: var(--store-shadow-sm);

    transition: var(--store-transition);

}
.store-site .stores-container .store-card:hover,
.store-site .stores-container .branch-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--store-shadow);

}


/* ============================================================
   محصولات جشنواره
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   FESTIVAL
   ============================================================ */

.store-site .festival-container,
.store-site [class*="festival"] {

    --festival-soft:
        rgba(23,105,210,.06);

}
.store-site .festival-banner {

    overflow: hidden;

    border-radius: var(--store-radius-xl);

    box-shadow: var(--store-shadow);

    position: relative;

}
.store-site .festival-banner::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.13),
            transparent 45%,
            rgba(255,255,255,.08)
        );

}
/* ============================================================
   LOGIN / SIGNUP
   ============================================================ */

.store-site.login-page {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(23,105,210,.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(245,158,11,.08),
            transparent 28%
        ),
        var(--store-bg);

}
.store-site.login-page .login-container {

    overflow: hidden;

}


/* ============================================================
   دکمه‌ها
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

.store-site .login-container input,
.store-site .login-container button {

    width: 100%;

}


/* ============================================================
   واکنش‌گرایی و موبایل
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   PRINT
   ============================================================ */

@media print {


    .store-site .fixed-navbar,
    .store-site nav,
    .store-site button {
        display: none !important;
    }

    .store-site {
        background: #fff !important;
    }

    .store-site .cart-table-wrapper,
    .store-site .invoice-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

}
/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {


    .store-site .fixed-navbar .top-row {
        padding: 9px 16px;
        min-height: 65px;
    }

    .store-site #systemNavigationLogo {
        width: 43px;
        height: 43px;
    }

    .store-site .fixed-navbar .bottom-row {
        justify-content: flex-start;

        padding: 0 12px;
    }

    .store-site .nav-list {
        justify-content: flex-start;

        gap: 3px;
    }

    .store-site .nav-list li a {
        padding: 7px 11px;

        font-size: 12px;
    }

    .store-site .store-products-grid,
    .store-site #storeProductsContainer {
        grid-template-columns:
            repeat(auto-fill, minmax(210px, 1fr));

        gap: 15px;
    }

    .store-site .product-image-section {
        height: 215px;
    }

}
@media (max-width: 600px) {


    .store-site .fixed-navbar .top-row {
        padding: 8px 11px;

        gap: 10px;
    }

    .store-site .company-name {
        max-width: 52vw;

        font-size: 14px;
    }

    .store-site #user-display {
        max-width: 130px;

        padding: 6px 10px;

        font-size: 11px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .store-site .fixed-navbar .bottom-row {
        min-height: 52px;
    }

    .store-site .nav-list li a {
        min-height: 38px;

        padding: 6px 9px;

        border-radius: 10px;

        font-size: 11px;
    }

    .store-site .store-container,
    .store-site .store-page-container,
    .store-site .stores-container,
    .store-site .history-container,
    .store-site .favorites-container,
    .store-site .contact-page-container {
        width: calc(100% - 22px);
    }

    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site .favorites-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 11px;
    }

    .store-site .product-image-section {
        height: 175px;
    }

    .store-site .product-card h3 {
        margin: 12px 12px 5px;

        font-size: 13px;
    }

    .store-site .product-code,
    .store-site .product-unit,
    .store-site .product-rating {
        margin-right: 12px;
        margin-left: 12px;
    }

    .store-site .price-info {
        margin-right: 12px;
        margin-left: 12px;
    }

    .store-site .cart-actions {
        padding: 9px 10px 11px;
    }

    .store-site .cart-actions button,
    .store-site .btn-add-cart {
        min-height: 39px;

        font-size: 11px;
    }

}
@media (max-width: 380px) {


    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site .favorites-list {
        grid-template-columns: 1fr;
    }

    .store-site .product-image-section {
        height: 220px;
    }

}


/* ============================================================
   سبد خرید
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   CART PAGE — PREMIUM STORE THEME
   فقط صفحه مدیریت سبد خرید
   ============================================================ */

.store-site .cart-page {

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 55px;

}
/* ---------- Header ---------- */

.store-site .cart-page .cart-header {

    margin-bottom: 24px;
    padding: 22px 24px;

    background:
        linear-gradient(
            135deg,
            rgba(23,105,210,.08),
            rgba(23,105,210,.035)
        );

    border: 1px solid rgba(23,105,210,.10);
    border-radius: 20px;

}
.store-site .cart-page .cart-header h1 {

    margin: 0 0 6px;

    color: var(--store-primary-dark);

    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;

}
.store-site .cart-page .cart-header p {

    margin: 0;

    color: var(--store-muted);

    font-size: 13px;
    font-weight: 600;

}
/* ---------- Cart table ---------- */

.store-site .cart-page .cart-table-wrapper {

    overflow-x: auto;
    overflow-y: hidden;

    background: var(--store-surface);

    border: 1px solid var(--store-border);
    border-radius: 18px;

    box-shadow: var(--store-shadow-sm);

    -webkit-overflow-scrolling: touch;

}
.store-site .cart-page .cart-table {

    min-width: 900px;

}
.store-site .cart-page .cart-table th {

    height: 54px;
    padding: 12px 14px;

    background:
        linear-gradient(
            135deg,
            #f4f8fd,
            #edf4fc
        );

    border-bottom: 1px solid rgba(23,105,210,.10);

    color: var(--store-primary-dark);

    font-size: 12px;
    font-weight: 900;

    white-space: nowrap;

}
.store-site .cart-page .cart-table td {

    padding: 16px 14px;

    background: #fff;

    border-top: 1px solid rgba(23,105,210,.055);

    color: var(--store-ink);

    font-size: 12px;
    font-weight: 600;

    vertical-align: middle;

    transition: background .2s ease;

}
.store-site .cart-page .cart-table tbody tr {

    transition:
        background .2s ease,
        transform .2s ease;

}
.store-site .cart-page .cart-table tbody tr:hover td {

    background: #f7faff;

}
/* ---------- Product name ---------- */

.store-site .cart-page .cart-product-name {

    min-width: 180px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;

    color: var(--store-ink);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;

}
.store-site .cart-page .out-of-stock {

    display: inline-flex;
    align-items: center;

    padding: 3px 8px;

    border-radius: 999px;

    background: rgba(220,38,38,.08);
    color: #b91c1c;

    font-size: 10px;
    font-weight: 800;

}
/* ---------- Quantity ---------- */

.store-site .cart-page .quantity-control {

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 4px 6px;

    background: #faf9fc;

    border: 1px solid rgba(23,105,210,.12);
    border-radius: 12px;

}
.store-site .cart-page .quantity-control button {

    width: 32px;
    height: 32px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: #fff;

    color: var(--store-primary-dark);

    font-size: 18px;
    font-weight: 900;

    cursor: pointer;

    box-shadow: 0 2px 7px rgba(0,0,0,.06);

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;

}
.store-site .cart-page .quantity-control button:hover:not(:disabled) {

    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            var(--store-primary),
            var(--store-primary-2)
        );

    color: #fff;

}
.store-site .cart-page .quantity-control button:disabled {

    opacity: .45;
    cursor: not-allowed;

}
.store-site .cart-page .qtyDisplay {

    min-width: 30px;

    text-align: center;

    color: var(--store-ink);

    font-size: 13px;
    font-weight: 900;

}
/* ---------- Remove ---------- */

.store-site .cart-page .removeBtn {

    min-width: 58px;
    min-height: 34px;

    padding: 7px 11px;

    border: 1px solid rgba(220,38,38,.14);
    border-radius: 10px;

    background: rgba(220,38,38,.055);
    color: #b91c1c;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;

}
.store-site .cart-page .removeBtn:hover {

    transform: translateY(-1px);

    background: #dc2626;
    color: #fff;

    box-shadow: 0 6px 14px rgba(220,38,38,.18);

}
/* ---------- Summary ---------- */

.store-site .cart-page + * {

    box-sizing: border-box;

}
.store-site .cart-page ~ .cart-summary {

    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 0;

}
.store-site .cart-page .cart-summary-box,
.store-site .cart-summary-box {

    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7faff
        );

    border: 1px solid var(--store-border);
    border-radius: 18px;

    box-shadow: var(--store-shadow-sm);

}
.store-site .cart-summary .summary-row,
.store-site .cart-summary-box .summary-row {

    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: var(--store-muted);

    font-size: 12px;
    font-weight: 700;

}
.store-site .cart-summary-box .summary-row strong {

    color: var(--store-ink);

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;

}
.store-site .cart-summary-box .summary-divider {

    height: 1px;

    margin: 8px 0 10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(23,105,210,.18),
            transparent
        );

}
.store-site .cart-summary-box .final-total {

    margin-top: 4px;
    padding-top: 5px;

}
.store-site .cart-summary-box .final-total span {

    color: var(--store-primary-dark);

    font-size: 14px;
    font-weight: 900;

}
.store-site .cart-summary-box .final-total strong {

    color: var(--store-primary-dark);

    font-size: 19px;
    font-weight: 950;

}
/* ---------- Checkout area ---------- */

.store-site .cart-page ~ .cart-actions {

    width: min(1180px, calc(100% - 40px));

    margin: 18px auto 50px;

    padding: 0;

    display: flex;
    justify-content: flex-start;

    border: 0;

}
.store-site .cart-page ~ .cart-actions .checkout-btn {

    min-width: 210px;
    min-height: 48px;

    padding: 11px 24px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--store-primary),
            var(--store-primary-2)
        );

    color: #fff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(23,105,210,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}
.store-site .cart-page ~ .cart-actions .checkout-btn:hover:not(:disabled) {

    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(23,105,210,.28);

}
/* ---------- Continue shopping ---------- */

.store-site .cart-page .continue-shopping-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 18px;

    border: 1px solid var(--store-border);
    border-radius: 11px;

    background: #fff;

    color: var(--store-primary-dark);

    font-family: inherit;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;

}
.store-site .cart-page .continue-shopping-btn:hover {

    transform: translateY(-1px);

    background: #faf7ff;
    border-color: rgba(23,105,210,.20);

}
/* ============================================================
   CART MOBILE
   ============================================================ */

@media (max-width: 700px) {


    .store-site .cart-page {
        width: calc(100% - 22px);
        padding-top: 20px;
    }

    .store-site .cart-page .cart-header {
        padding: 17px 16px;
        margin-bottom: 15px;
        border-radius: 16px;
    }

    .store-site .cart-page .cart-header h1 {
        font-size: 19px;
    }

    .store-site .cart-page .cart-header p {
        font-size: 11px;
    }

    .store-site .cart-page .cart-table-wrapper {
        border-radius: 14px;
    }

    .store-site .cart-page .cart-table th {
        height: 48px;
        padding: 10px;
        font-size: 10px;
    }

    .store-site .cart-page .cart-table td {
        padding: 11px 10px;
        font-size: 11px;
    }

    .store-site .cart-page .cart-product-name {
        min-width: 150px;
        font-size: 11px;
    }

    .store-site .cart-page .quantity-control button {
        width: 29px;
        height: 29px;
        font-size: 16px;
    }

    .store-site .cart-page .qtyDisplay {
        min-width: 25px;
        font-size: 12px;
    }

    .store-site .cart-page ~ .cart-actions {
        width: calc(100% - 22px);
    }

    .store-site .cart-page ~ .cart-actions .checkout-btn {
        width: 100%;
        min-width: 0;
    }

    .store-site .cart-page ~ .cart-summary {
        width: calc(100% - 22px);
    }

    .store-site .cart-summary-box {
        padding: 17px 15px;
        border-radius: 15px;
    }

    .store-site .cart-summary .summary-row,
    .store-site .cart-summary-box .summary-row {
        min-height: 39px;
        font-size: 11px;
    }

    .store-site .cart-summary-box .final-total span {
        font-size: 12px;
    }

    .store-site .cart-summary-box .final-total strong {
        font-size: 16px;
    }

}
/* ============================================================
   REPRESENTATIVES PAGE
   Unified Store Theme
   ============================================================ */

.representatives-section .tabs {

    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px;
    background: var(--store-surface-soft);
    border: 1px solid var(--store-border);
    border-radius: 14px;

}
.representatives-section .tabs .tabBtn {

    padding: 10px 18px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--store-muted);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--store-transition);

}
.representatives-section .tabs .tabBtn:hover {

    color: var(--store-primary);
    background: rgba(23, 105, 210, .06);

}
.representatives-section .tabs .tabBtn.active {

    background: var(--store-primary);
    border-color: var(--store-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(23, 105, 210, .18);

}
#tabContent {

    width: 100%;
    overflow-x: auto;

}
#tabContent table {

    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 14px;
    background: var(--store-surface);
    text-align: center;

}
#tabContent th,
#tabContent td {

    padding: 11px 12px;
    border-bottom: 1px solid var(--store-border);
    border-left: 1px solid var(--store-border);
    text-align: center;
    vertical-align: middle;

}
#tabContent th {

    background: linear-gradient(
        135deg,
        var(--store-primary),
        var(--store-primary-2)
    );
    color: #fff;
    font-weight: 800;
    white-space: nowrap;

}
#tabContent td {

    color: var(--store-text);
    background: var(--store-surface);

}
#tabContent tr:nth-child(even) td {

    background: var(--store-surface-soft);

}
#tabContent tr:last-child td {

    border-bottom: 0;

}
#tabContent th:last-child,
#tabContent td:last-child {

    border-left: 0;

}


/* ============================================================
   واکنش‌گرایی و موبایل
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

@media (max-width: 768px) {


    .representatives-section .tabs {
        overflow-x: auto;
        padding: 5px;
    }

    .representatives-section .tabs .tabBtn {
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: .8rem;
    }

    #tabContent th,
    #tabContent td {
        padding: 9px 8px;
        font-size: .78rem;
    }

}


/* ============================================================
   کارت محصولات فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ---------- IMAGE ---------- */

/* ---------- Product Grid ---------- */

.store-site #storeProductsContainer {

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;

}


/* ============================================================
   کارت محصولات فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ---------- Main Card ---------- */

   ============================================================ */
/* =========================================================
   PRODUCT CARD - PREMIUM STORE DESIGN
   سازگار با HTML تولیدشده توسط store.js
========================================================= */


/* =========================================================
   گرید محصولات
========================================================= */

.store-products-grid {

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;

}


/* ============================================================
   کارت محصولات فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* =========================================================
   کارت اصلی محصول
/* ============================================================
   واکنش‌گرایی و موبایل
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* =========================================================
   Desktop
========================================================= */

@media (max-width: 1250px) {


    .store-products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


}
/* =========================================================
   Tablet
========================================================= */

@media (max-width: 950px) {


    .store-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }


}
/* =========================================================
   Mobile
========================================================= */

@media (max-width: 650px) {


    .store-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }










    .product-code,
    .product-unit {
        margin-right: 10px;
        margin-left: 10px;

        font-size: 0.65rem;
    }












    .cart-actions {
        padding:
            0
            10px
            10px;
    }












    .out-of-stock {
        margin:
            -2px
            10px
            7px !important;

        padding: 4px 5px;

        font-size: 0.64rem;
    }


}
/* =========================================================
   موبایل خیلی کوچک
   همچنان دو کارت نگه می‌داریم
========================================================= */

@media (max-width: 390px) {


    .store-products-grid {
        gap: 8px;
    }


    .product-card > h3 {
        font-size: 0.75rem;
    }


    .price-info .price,
    .price-info .price-discounted {
        font-size: 0.79rem;
    }


}


/* ============================================================
   کارت محصولات فروشگاه
   ------------------------------------------------------------
   این بخش مربوط به همین قسمت از فروشگاه است.
   برای تغییر ظاهر این قسمت، ابتدا همین بخش را بررسی کنید.
   ============================================================ */

/* ============================================================
   کارت محصول اصلی فروشگاه — PREMIUM DARK LUXURY
   ------------------------------------------------------------
   تنها استایل مرجع کارت اصلی فروشگاه
   ============================================================ */


/* ============================================================
   PRODUCT GRID
   ============================================================ */

.store-site .store-products-grid,
.store-site #storeProductsContainer,
.store-site .favorites-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.store-site #storeProductsContainer .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #eef2f6 0%,
            #e1e7ee 52%,
            #d5dee8 100%
        );

    border: 3px solid #5f7690;
    border-radius: 22px;

    box-shadow:
        0 9px 24px rgba(30, 45, 62, .16),
        0 3px 8px rgba(30, 45, 62, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

    cursor: pointer;
    isolation: isolate;
}


/* ============================================================
   CARD TOP ACCENT
   ============================================================ */

.store-site #storeProductsContainer .product-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;

    background:
        linear-gradient(
            90deg,
            #1557a6 0%,
            #2478d5 45%,
            #c9a35b 100%
        );

    z-index: 5;
}


/* ============================================================
   HOVER
   ============================================================ */

.store-site #storeProductsContainer .product-card:hover {
    transform: translateY(-6px);

    border-color: #2478d5;

    box-shadow:
        0 17px 36px rgba(21, 87, 166, .22),
        0 6px 13px rgba(30, 45, 62, .13);
}


/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.store-site #storeProductsContainer .product-card .product-image-section {
    position: relative;

    height: 205px;
    min-height: 205px;
    flex: 0 0 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background:
        radial-gradient(
            circle at 50% 40%,
            #f9fbfd 0%,
            #e7edf3 58%,
            #d8e1ea 100%
        );

    border-bottom: 2px solid #a9bacb;
}


.store-site #storeProductsContainer .product-card .product-image-section img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 14px;

    transition:
        transform .3s ease,
        filter .3s ease;
}


.store-site #storeProductsContainer .product-card:hover
.product-image-section img {
    transform: scale(1.045);
}


/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */

.store-site #storeProductsContainer
.product-card .product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    border-radius: 14px;

    background:
        linear-gradient(145deg, #dce4ec, #cbd6e1);

    color: #617387;

    font-size: .9rem;
    font-weight: 800;
}


/* ============================================================
   DISCOUNT BADGE
   ============================================================ */

.store-site #storeProductsContainer
.product-card .discount-badge {
    position: absolute;

    top: 13px;
    right: 13px;

    z-index: 8;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    min-height: 30px;

    padding: 5px 11px;

    background:
        linear-gradient(135deg, #b71c1c, #7b1fa2) !important;

    color: #fff !important;

    border: 2px solid rgba(255,255,255,.72);
    border-radius: 999px;

    box-shadow:
        0 6px 14px rgba(123,31,162,.25);

    font-size: .78rem;
    font-weight: 950;

    letter-spacing: .2px;

    text-shadow:
        0 1px 2px rgba(0,0,0,.25);
}


/* ============================================================
   PRODUCT TITLE
   ============================================================ */

.store-site #storeProductsContainer
.product-card h3 {
    margin:
        11px 13px 4px;

    min-height: 40px;

    color: #153f6a;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.65;

    letter-spacing: -.15px;

    text-align: right;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    transition:
        color .2s ease,
        transform .2s ease;
}


.store-site #storeProductsContainer
.product-card:hover h3 {
    color: #0b4f91;
}


/* ============================================================
   PRODUCT META
   ============================================================ */

.store-site #storeProductsContainer
.product-card .product-code,
.store-site #storeProductsContainer
.product-card .product-unit {
    margin-right: 14px;
    margin-left: 14px;

    color: #596b7d;

    font-size: .72rem;
    font-weight: 700;

    line-height: 1.7;
}


/* ============================================================
   RATING
   ============================================================ */

.store-site #storeProductsContainer
.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 2px;

    margin:
        7px 14px 5px;

    min-height: 25px;
}


.store-site #storeProductsContainer
.product-card .product-rating svg {
    width: 23px !important;
    height: 23px !important;

    flex: 0 0 23px;

    overflow: visible;

    filter:
        drop-shadow(0 2px 2px rgba(185,111,0,.22));
}


.store-site #storeProductsContainer
.product-card .product-rating svg path {
    stroke: #b96f00 !important;
    stroke-width: 1.6 !important;
}


.store-site #storeProductsContainer
.product-card .product-rating svg[fill] {
    fill: #f3a500 !important;
}


/* ============================================================
   PRICE BOX
   ============================================================ */

.store-site #storeProductsContainer
.product-card .price-info {
    margin: 5px 11px 7px;
    text-align: center;
    padding: 7px 10px;

    background:
        linear-gradient(
            135deg,
            #d9e2eb,
            #ccd7e2
        );

    border: 1px solid #aebdcb;
    border-radius: 11px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        0 3px 8px rgba(40,57,75,.07);

    text-align: center;
}


/* ============================================================
   ORIGINAL PRICE
   ============================================================ */

.store-site #storeProductsContainer
.product-card .price-original {
    display: block;
    margin: 0 0 1px;

    color: #7f1d1d !important;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: .76rem;
    font-weight: 800;
    line-height: 1.35;

    letter-spacing: 0;

    white-space: nowrap;
}


.store-site #storeProductsContainer
.product-card .price-original s {
    text-decoration-line: line-through;
    text-decoration-thickness: 1.7px;
    text-decoration-color: #8f2020;
    text-decoration-skip-ink: none;
}


/* ============================================================
   FINAL PRICE
   ============================================================ */

.store-site #storeProductsContainer
.product-card .price-discounted,
.store-site #storeProductsContainer
.product-card .price {
    display: inline-block;

    color: #06743d !important;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: 1.05rem;
    font-weight: 900;

    letter-spacing: 0;
    line-height: 1.35;

    text-shadow:
        0 1px 1px rgba(0,0,0,.06);

    white-space: nowrap;
}


.store-site #storeProductsContainer
.product-card .price-discounted::after,
.store-site #storeProductsContainer
.product-card .price::after {
    content: "";
}


/* ============================================================
   OUT OF STOCK
   ============================================================ */

.store-site #storeProductsContainer
.product-card .out-of-stock {
    margin:
        0 12px 9px !important;

    padding:
        6px 8px;

    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffe0e0
        );

    color: #b71c1c !important;

    border:
        1px solid #e7a0a0;

    border-radius: 9px;

    font-size: .72rem;
    font-weight: 900;

    text-align: center;
}


/* ============================================================
   CART ACTIONS
   ============================================================ */

.store-site #storeProductsContainer
.product-card .cart-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;

    margin:
        auto 14px 14px;

    padding: 0;

    min-height: 39px;
}


/* ============================================================
   ADD CART BUTTON
   ============================================================ */

.store-site #storeProductsContainer
.product-card .btn-add-cart {
    width: 100%;
    min-height: 45px;

    padding:
        9px 14px;

    background:
        linear-gradient(
            135deg,
            #1557a6,
            #2478d5
        );

    color: #fff;

    border:
        2px solid #124c91;

    border-radius: 12px;

    box-shadow:
        0 6px 14px rgba(21,87,166,.22);

    font-size: .78rem;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.store-site #storeProductsContainer
.product-card .btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 9px 18px rgba(21,87,166,.30);
}


/* ============================================================
   QUANTITY CONTROLS
   ============================================================ */

.store-site #storeProductsContainer
.product-card .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 39px;

    padding: 4px;

    background:
        linear-gradient(
            135deg,
            #cbd6e1,
            #dce4ec
        );

    border:
        2px solid #91a4b7;

    border-radius: 13px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10);
}


.store-site #storeProductsContainer
.product-card .quantity-controls > span {
    min-width: 36px;

    color: #20364d;

    font-size: 1rem;
    font-weight: 950;

    text-align: center;
}


/* ============================================================
   QUANTITY BUTTON BASE
   ============================================================ */

.store-site #storeProductsContainer
.product-card .quantity-controls button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 10px;

    font-family:
        Arial,
        Tahoma,
        sans-serif;

    font-size: 1.35rem;
    font-weight: 950;

    line-height: 1;

    cursor: pointer;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}


/* ============================================================
   MINUS — RED
   ============================================================ */

.store-site #storeProductsContainer
.product-card .quantity-controls .btn-minus {
    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffdcdc
        ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18);

    border: none !important;
}


.store-site #storeProductsContainer
.product-card .quantity-controls .btn-minus:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);

    filter: brightness(1.02);

    box-shadow:
        0 8px 16px rgba(198,40,40,.27);
}


.store-site #storeProductsContainer
.product-card .quantity-controls .btn-minus:active {
    color: #c62828 !important;

    background:
        linear-gradient(
            135deg,
            #ffe5e5,
            #ffd2d2
        ) !important;

    transform: scale(.96);
}


/* ============================================================
   PLUS — GREEN
   ============================================================ */

.store-site #storeProductsContainer
.product-card .quantity-controls .btn-plus {
    background:
        linear-gradient(
            135deg,
            #e4f8ec,
            #c9efd8
        ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19);

    border: none !important;
}


.store-site #storeProductsContainer
.product-card .quantity-controls .btn-plus:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);

    filter: brightness(1.03);

    box-shadow:
        0 8px 16px rgba(8,120,62,.28);
}


.store-site #storeProductsContainer
.product-card .quantity-controls .btn-plus:active {
    color: #08783e !important;

    background:
        linear-gradient(
            135deg,
            #d9f5e4,
            #bce8cd
        ) !important;

    transform: scale(.96);
}


/* ============================================================
   DISABLED QUANTITY BUTTON
   ============================================================ */

.store-site #storeProductsContainer
.product-card .quantity-controls button:disabled {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1250px) {

    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site .favorites-list {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


@media (max-width: 950px) {

    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site .favorites-list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

}


@media (max-width: 700px) {

    .store-site .store-products-grid,
    .store-site #storeProductsContainer,
    .store-site .favorites-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 11px;
    }

    .store-site #storeProductsContainer
    .product-card .product-image-section {
        height: 160px;
        min-height: 160px;
        flex-basis: 160px;
    }

    .store-site #storeProductsContainer
    .product-card h3 {
        margin-right: 12px;
        margin-left: 12px;

        font-size: 13.5px;
    }

    .store-site #storeProductsContainer
    .product-card .product-code,
    .store-site #storeProductsContainer
    .product-card .product-unit,
    .store-site #storeProductsContainer
    .product-card .product-rating {
        margin-right: 12px;
        margin-left: 12px;
    }

    .store-site #storeProductsContainer
    .product-card .price-info {
        margin-right: 10px;
        margin-left: 10px;
    }

    .store-site #storeProductsContainer
    .product-card .cart-actions {
        margin-right: 10px;
        margin-left: 10px;
        margin-bottom: 10px;
    }

}


@media (max-width: 390px) {

    .store-site .store-products-grid,
    .store-site #storeProductsContainer {
        gap: 8px;
    }

    .store-site #storeProductsContainer
    .product-card .product-image-section {
        height: 175px;
        min-height: 175px;
        flex-basis: 175px;
    }

    .store-site #storeProductsContainer
    .product-card h3 {
        font-size: 12.5px;
    }

    .store-site #storeProductsContainer
    .product-card .price-discounted,
    .store-site #storeProductsContainer
    .product-card .price {
        font-size: 1rem;
    }

    .store-site #storeProductsContainer
    .product-card .quantity-controls button {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

}


/* ============================================================
   END — MASTER PRODUCT CARD STYLE
   ============================================================ */




/* ============================================================
   PREMIUM STORE NAVIGATION — V2
   خلوت / حرفه‌ای / Dropdown / Mega Menu
   ============================================================ */

.store-site .store-premium-navbar {

    font-family: "Tahoma", sans-serif;

}


/* ============================================================
   MAIN MENU
   ============================================================ */

.store-site .store-main-menu {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

}


.store-site .store-main-link {

    position: relative;

    min-height: 43px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding: 8px 15px;

    border: 1px solid transparent;

    border-radius: 13px;

    background: transparent;

    color: rgba(255,255,255,.88);

    font-family: "Tahoma", sans-serif;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .22s ease,
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;

}


.store-site .store-main-link:hover {

    color: #fff;

    background:
        rgba(255,255,255,.10);

    border-color:
        rgba(255,255,255,.14);

    transform:
        translateY(-1px);

}


.store-site .store-main-link[aria-current="page"] {

    color: #fff;

    background:
        rgba(255,255,255,.13);

    border-color:
        rgba(255,255,255,.20);

    box-shadow:
        0 6px 18px rgba(0,0,0,.08);

}


/* ============================================================
   DROPDOWN
   ============================================================ */

.store-site .store-dropdown {

    position: relative;

}


.store-site .store-dropdown-toggle {

    border: 1px solid transparent;

    appearance: none;

    -webkit-appearance: none;

}


.store-site .store-dropdown.open
.store-dropdown-toggle {

    color: #fff;

    background:
        rgba(255,255,255,.13);

    border-color:
        rgba(255,255,255,.20);

}


.store-site .dropdown-arrow {

    display: inline-block;

    font-size: 14px;

    line-height: 1;

    transition:
        transform .22s ease;

}


.store-site .store-dropdown.open
.dropdown-arrow {

    transform:
        rotate(180deg);

}


/* ============================================================
   ACCOUNT MENU
   ============================================================ */

.store-site .store-account-menu {

    position: absolute;

    top: calc(100% + 9px);

    right: 0;

    min-width: 225px;

    padding: 9px;

    background:
        rgba(255,255,255,.98);

    border:
        1px solid rgba(20,59,110,.10);

    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(20,42,75,.18);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-7px) scale(.98);

    transform-origin:
        top right;

    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .20s ease;

    z-index: 10001;

}


.store-site .store-account-dropdown.open
.store-account-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0) scale(1);

}


.store-site .store-account-menu a {

    display: flex;

    align-items: center;

    gap: 9px;

    width: 100%;

    min-height: 42px;

    padding: 8px 12px;

    border-radius: 10px;

    color:
        #26354f;

    font-family:
        "Tahoma", sans-serif;

    font-size:
        12px;

    font-weight:
        600;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;

}


.store-site .store-account-menu a:hover {

    color:
        #1769d2;

    background:
        #f3f7fc;

    transform:
        translateX(-2px);

}


.store-site .account-menu-divider {

    height: 1px;

    margin: 7px 5px;

    background:
        rgba(20,59,110,.09);

}


.store-site .store-account-menu
.logout-menu-link {

    color:
        #c62828;

}


.store-site .store-account-menu
.logout-menu-link:hover {

    color:
        #b71c1c;

    background:
        #fff2f2;

}


/* ============================================================
   CART
   ============================================================ */

.store-site .store-main-menu
.cart-link {

    color: #fff !important;

    background:
        linear-gradient(
            135deg,
            #3978d4,
            #2694b6
        ) !important;

    border-color:
        rgba(255,255,255,.22) !important;

    box-shadow:
        0 7px 20px rgba(25,101,190,.20);

}


.store-site .store-main-menu
.cart-link:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 25px rgba(25,101,190,.28);

}


.store-site .store-cart-counter {

    display: none;

    align-items: center;

    justify-content: center;

    min-width: 20px;

    height: 20px;

    padding: 0 5px;

    margin-right: 2px;

    border-radius: 50px;

    background:
        #e53935;

    color:
        #fff;

    font-family:
        "Tahoma", sans-serif;

    font-size:
        10px;

    font-weight:
        700;

}


/* ============================================================
   MEGA MENU
   ============================================================ */

.store-site .store-mega-menu {

    position: absolute;

    top: calc(100% + 9px);

    right: 50%;

    width: min(900px, calc(100vw - 30px));

    min-height: 220px;

    padding: 20px;

    background:
        rgba(255,255,255,.985);

    border:
        1px solid rgba(20,59,110,.10);

    border-radius: 20px;

    box-shadow:
        0 22px 60px rgba(20,42,75,.20);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translate(50%, -8px) scale(.985);

    transform-origin:
        top center;

    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .20s ease;

    z-index: 10001;

}


.store-site .store-category-dropdown.open
.store-mega-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(50%, 0) scale(1);

}


.store-site .mega-menu-title {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 14px;

    margin-bottom: 15px;

    border-bottom:
        1px solid rgba(20,59,110,.08);

}


.store-site .mega-menu-title span {

    color:
        #14213d;

    font-size:
        16px;

    font-weight:
        800;

}


.store-site .mega-menu-title small {

    color:
        #718096;

    font-size:
        11px;

    font-weight:
        500;

}


.store-site .mega-menu-content {

    min-height: 130px;

}


.store-site .category-root-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );

    gap: 18px;

}


.store-site .category-tree-item {

    min-width: 0;

}


.store-site .category-parent {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 7px;

}


.store-site .category-parent a {

    color:
        #1769d2;

    font-size:
        13px;

    font-weight:
        750;

    text-decoration: none;

}


.store-site .category-parent a:hover {

    color:
        #0f4fa8;

}


.store-site .category-parent > span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 21px;

    height: 21px;

    padding: 0 5px;

    border-radius: 50px;

    background:
        #edf4fd;

    color:
        #1769d2;

    font-size:
        9px;

    font-weight:
        700;

}


.store-site .category-sub-list {

    display: flex;

    flex-direction: column;

    gap: 2px;

    padding-right: 10px;

    border-right:
        2px solid #edf3fa;

}


.store-site .category-leaf {

    display: block;

    padding: 5px 8px;

    border-radius: 7px;

    color:
        #52627a;

    font-size:
        11px;

    font-weight:
        500;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;

}


.store-site .category-leaf:hover {

    color:
        #1769d2;

    background:
        #f4f8fd;

}


.store-site .category-loading,
.store-site .category-empty,
.store-site .category-coming-soon {

    min-height: 130px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    text-align: center;

    color:
        #718096;

    font-size:
        12px;

}


.store-site .category-coming-icon {

    font-size:
        30px;

}


.store-site .category-coming-soon strong {

    color:
        #26354f;

    font-size:
        14px;

}


.store-site .category-coming-soon span {

    max-width:
        420px;

    line-height:
        1.9;

    color:
        #718096;

    font-size:
        11px;

}


/* ============================================================
   FOOTER
   ============================================================ */

.store-site .store-premium-footer {

    margin-top:
        45px;

    background:
        linear-gradient(
            135deg,
            #162b4b,
            #203d67
        );

    color:
        #fff;

}


.store-site .store-footer-inner {

    width:
        min(1400px, 100%);

    margin:
        0 auto;

    padding:
        35px 30px 18px;

}


.store-site .store-footer-grid {

    display:
        grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap:
        35px;

}


.store-site .store-footer-brand h3 {

    margin:
        0 0 10px;

    color:
        #fff;

    font-size:
        18px;

    font-weight:
        800;

}


.store-site .store-footer-brand p {

    max-width:
        430px;

    margin:
        0;

    color:
        rgba(255,255,255,.68);

    font-size:
        11px;

    line-height:
        2;

}


.store-site .store-footer-column h4 {

    margin:
        0 0 13px;

    color:
        #fff;

    font-size:
        13px;

    font-weight:
        750;

}


.store-site .store-footer-column a {

    display:
        block;

    width:
        fit-content;

    margin-bottom:
        9px;

    color:
        rgba(255,255,255,.68);

    font-size:
        11px;

    text-decoration:
        none;

    transition:
        color .18s ease,
        transform .18s ease;

}


.store-site .store-footer-column a:hover {

    color:
        #fff;

    transform:
        translateX(-2px);

}


.store-site .store-footer-bottom {

    margin-top:
        25px;

    padding-top:
        15px;

    border-top:
        1px solid rgba(255,255,255,.10);

    text-align:
        center;

    color:
        rgba(255,255,255,.48);

    font-size:
        10px;

}


/* ============================================================
   PRODUCT PAGE — FINAL VISUAL FIX
   ============================================================ */

/* فاصله امن از Navbar ثابت */
.store-site #product-container {
    padding-top: 78px !important;
}

/* کادر تصویر */
.store-site .product-detail-wrapper
.product-image-section {
    overflow: hidden;
    box-sizing: border-box;
}

/* تصویر بدون برش */
.store-site .product-detail-wrapper
.product-image-section > #productImage,
.store-site .product-detail-wrapper
.product-image-section > img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: calc(100% - 36px) !important;
    max-height: calc(100% - 36px) !important;

    object-fit: contain !important;

    margin: auto !important;

    border-radius: 14px !important;
    transform: none !important;
}

/* هنگام Hover هم تصویر از کادر بیرون نزند */
.store-site .product-detail-wrapper
.product-image-section:hover > #productImage,
.store-site .product-detail-wrapper
.product-image-section:hover > img {
    transform: scale(1.025) !important;
}

/* نام محصول:
   کاملاً شفاف، بدون کادر و بدون پس‌زمینه */
.store-site .product-detail-wrapper
.product-image-section .product-title-image {
    position: absolute;

    right: 18px;
    left: 18px;
    bottom: 10px;

    z-index: 8;

    margin: 0;
    padding: 3px 4px;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    color: #153f6a !important;

    font-size: .82rem;
    font-weight: 900;
    line-height: 1.5;

    text-align: right;

    pointer-events: none;

    text-shadow:
        0 1px 2px rgba(255,255,255,.95),
        0 -1px 1px rgba(255,255,255,.85);
}

/* ============================================================
   مثبت / منفی — هماهنگ با کارت اصلی فروشگاه
   ============================================================ */

.store-site .product-detail-wrapper
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 5px;

    min-height: 45px;
    padding: 4px;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;

    box-sizing: border-box;
}

.store-site .product-detail-wrapper
.quantity-controls button {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 9px !important;

    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    cursor: pointer;

    box-sizing: border-box;
}

/* منفی */
.store-site .product-detail-wrapper
.quantity-controls .btn-minus {
    background: linear-gradient(
        135deg,
        #fff0f0,
        #ffdcdc
    ) !important;

    color: #c62828 !important;

    border: 1px solid #e4a2a2 !important;

    box-shadow:
        0 4px 9px rgba(198,40,40,.16) !important;
}

/* مثبت */
.store-site .product-detail-wrapper
.quantity-controls .btn-plus {
    background: linear-gradient(
        135deg,
        #e4f8ec,
        #c9efd8
    ) !important;

    color: #08783e !important;

    border: 1px solid #8ac9a5 !important;

    box-shadow:
        0 4px 9px rgba(8,120,62,.17) !important;
}

/* عدد وسط */
.store-site .product-detail-wrapper
.quantity-controls > span {
    min-width: 32px;

    color: #20364d !important;

    font-size: 1rem;
    font-weight: 950;

    text-align: center;
}

/* Hover */
.store-site .product-detail-wrapper
.quantity-controls .btn-minus:hover {
    transform: translateY(-1px);
}

.store-site .product-detail-wrapper
.quantity-controls .btn-plus:hover {
    transform: translateY(-1px);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .store-site #product-container {
        padding-top: 68px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section > #productImage,
    .store-site .product-detail-wrapper
    .product-image-section > img {
        max-width: calc(100% - 36px) !important;
        max-height: calc(100% - 36px) !important;
    }
}

@media (max-width: 480px) {

    .store-site #product-container {
        padding-top: 62px !important;
    }
}

@media (max-width: 380px) {

    .store-site #product-container {
        padding-top: 58px !important;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .store-site .store-main-menu {

        justify-content:
            flex-start;

        overflow-x:
            auto;

        scrollbar-width:
            none;

        padding-bottom:
            2px;

    }

    .store-site .store-main-menu::-webkit-scrollbar {

        display:
            none;

    }

    .store-site .store-main-link {

        padding:
            7px 11px;

        min-height:
            40px;

        font-size:
            12px;

    }

    .store-site .store-mega-menu {

        width:
            calc(100vw - 24px);

        right:
            12px;

        transform:
            translate(0, -8px) scale(.985);

    }

    .store-site .store-category-dropdown.open
    .store-mega-menu {

        transform:
            translate(0, 0) scale(1);

    }

    .store-site .category-root-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .store-site .store-footer-grid {

        grid-template-columns:
            1fr 1fr;

    }

}


@media (max-width: 600px) {

    .store-site .fixed-navbar .bottom-row {

        padding:
            0 10px;

    }

    .store-site .store-main-menu {

        gap:
            3px;

    }

    .store-site .store-main-link {

        min-height:
            38px;

        padding:
            6px 9px;

        border-radius:
            10px;

        font-size:
            11px;

    }

    .store-site .store-account-menu {

        position:
            fixed;

        top:
            auto;

        right:
            10px;

        left:
            10px;

        width:
            auto;

        min-width:
            0;

    }

    .store-site .store-mega-menu {

        position:
            fixed;

        top:
            125px;

        right:
            10px;

        left:
            10px;

        width:
            auto;

        max-height:
            calc(100vh - 145px);

        overflow-y:
            auto;

    }

    .store-site .category-root-grid {

        grid-template-columns:
            1fr;

    }

    .store-site .mega-menu-title {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            5px;

    }

    .store-site .store-footer-inner {

        padding:
            28px 18px 15px;

    }

    .store-site .store-footer-grid {

        grid-template-columns:
            1fr;

        gap:
            25px;

    }

}


/* ============================================================
   END — PREMIUM STORE NAVIGATION V2
   ============================================================ */


/* ============================================================
   FINAL STORE ACCOUNT DROPDOWN FIX
   ============================================================ */

.store-site .store-account-dropdown {
    position: relative !important;
}

.store-site .store-account-dropdown > .store-dropdown-toggle {
    cursor: pointer !important;
}

.store-site .store-account-dropdown .store-account-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;

    min-width: 235px !important;
    width: max-content !important;
    max-width: 280px !important;

    padding: 8px !important;
    margin: 0 !important;

    background: rgba(18, 23, 31, 0.98) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px !important;

    box-shadow:
        0 18px 45px rgba(0,0,0,.38),
        0 4px 15px rgba(0,0,0,.20) !important;

    z-index: 99999 !important;

    display: none;
}

.store-site .store-account-dropdown:hover .store-account-menu,
.store-site .store-account-dropdown.is-open .store-account-menu,
.store-site .store-account-dropdown.open .store-account-menu,
.store-site .store-account-dropdown:focus-within .store-account-menu {
    display: block !important;
}

.store-site .store-account-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    width: 100% !important;
    box-sizing: border-box !important;

    min-height: 42px !important;
    padding: 9px 12px !important;
    margin: 2px 0 !important;

    border-radius: 11px !important;

    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease !important;
}

.store-site .store-account-menu a:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    transform: translateX(-2px) !important;
}

.store-site .store-account-menu a span {
    width: 24px !important;
    min-width: 24px !important;
    text-align: center !important;
    font-size: 17px !important;
}

.store-site .store-account-menu .account-menu-divider {
    height: 1px !important;
    margin: 7px 6px !important;
    background: rgba(255,255,255,.10) !important;
}

.store-site .store-account-menu .logout-menu-link {
    color: #ff8f8f !important;
}

.store-site .store-account-menu .logout-menu-link:hover {
    background: rgba(255,80,80,.10) !important;
    color: #ffb0b0 !important;
}

/* ============================================================
   FOOTER TYPOGRAPHY
   ============================================================ */

.store-site .store-footer-column a {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
}

.store-site .store-footer-column h4 {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.store-site .store-footer-brand p {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
}

.store-site .store-footer-bottom {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
}

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

    .store-site .store-account-dropdown .store-account-menu {
        right: auto !important;
        left: 0 !important;
        min-width: 215px !important;
    }

    .store-site .store-account-menu a {
        font-size: 14px !important;
        min-height: 40px !important;
    }

    .store-site .store-footer-column a {
        font-size: 14px !important;
    }
}


/* ============================================================
   PROFESSIONAL STORE FOOTER - FIX 2
   ============================================================ */

.store-site .store-premium-footer {
    width: 100%;
    margin-top: 60px;
    background:
        linear-gradient(
            180deg,
            rgba(15,20,28,.98),
            rgba(10,14,20,1)
        );
    border-top: 1px solid rgba(255,255,255,.08);
}

.store-site .store-footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 20px;
}

.store-site .store-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr);

    gap: 60px;
    align-items: start;
}

.store-site .store-footer-brand h3 {
    margin: 0 0 14px;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;

    color: #fff !important;
}

.store-site .store-footer-brand p {
    max-width: 330px;
    margin: 0;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 2 !important;

    color: rgba(255,255,255,.62) !important;
}

.store-site .store-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-site .store-footer-column h4 {
    margin: 0 0 16px;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;

    color: #fff !important;
}

.store-site .store-footer-column a {
    display: block;

    margin: 3px 0;
    padding: 3px 0;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;

    color: rgba(255,255,255,.70) !important;
    text-decoration: none !important;

    transition:
        color .2s ease,
        transform .2s ease !important;
}

.store-site .store-footer-column a:hover {
    color: #fff !important;
    transform: translateX(-3px);
}

.store-site .store-footer-bottom {
    margin-top: 40px;
    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,.08);

    text-align: center;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;

    color: rgba(255,255,255,.45) !important;
}

@media (max-width: 800px) {

    .store-site .store-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .store-site .store-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {

    .store-site .store-footer-inner {
        width: calc(100% - 28px);
        padding-top: 35px;
    }

    .store-site .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .store-site .store-footer-brand {
        grid-column: auto;
    }

    .store-site .store-footer-brand h3 {
        font-size: 20px !important;
    }

    .store-site .store-footer-column h4 {
        font-size: 15px !important;
    }

    .store-site .store-footer-column a {
        font-size: 14px !important;
    }
}


/* ============================================================
   FOOTER — MATCH NAVBAR + COMPACT HEIGHT
   ============================================================ */

.store-site .store-premium-footer {
    margin-top: 35px !important;

    /* همان فضای رنگی ناوبری */
    background: #111827 !important;

    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.store-site .store-footer-inner {
    width: min(1200px, calc(100% - 40px)) !important;

    /* ارتفاع فوتر کمتر */
    padding: 24px 0 12px !important;
}

.store-site .store-footer-grid {
    gap: 45px !important;
}

.store-site .store-footer-brand h3 {
    margin-bottom: 7px !important;
    font-size: 19px !important;
}

.store-site .store-footer-brand p {
    max-width: 310px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.store-site .store-footer-column h4 {
    margin-bottom: 7px !important;
    font-size: 14px !important;
}

.store-site .store-footer-column a {
    margin: 0 !important;
    padding: 1px 0 !important;

    font-size: 13px !important;
    line-height: 1.7 !important;
}

.store-site .store-footer-bottom {
    margin-top: 18px !important;
    padding-top: 10px !important;

    font-size: 11px !important;
}

/* موبایل */

@media (max-width: 800px) {

    .store-site .store-footer-inner {
        padding: 22px 0 10px !important;
    }

    .store-site .store-footer-grid {
        gap: 25px !important;
    }
}

@media (max-width: 520px) {

    .store-site .store-footer-inner {
        width: calc(100% - 28px) !important;
        padding: 20px 0 10px !important;
    }

    .store-site .store-footer-grid {
        gap: 20px !important;
    }

    .store-site .store-footer-brand h3 {
        font-size: 18px !important;
    }

    .store-site .store-footer-column h4 {
        font-size: 14px !important;
    }

    .store-site .store-footer-column a {
        font-size: 13px !important;
    }
}


/* ============================================================
   FOOTER — EXTRA COMPACT
   ============================================================ */

.store-site .store-premium-footer {
    margin-top: 25px !important;
}

.store-site .store-footer-inner {
    padding: 17px 0 8px !important;
}

.store-site .store-footer-grid {
    gap: 32px !important;
}

.store-site .store-footer-brand h3 {
    margin-bottom: 4px !important;
    font-size: 17px !important;
}

.store-site .store-footer-brand p {
    max-width: 290px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.store-site .store-footer-column h4 {
    margin-bottom: 4px !important;
    font-size: 13px !important;
}

.store-site .store-footer-column a {
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

.store-site .store-footer-bottom {
    margin-top: 12px !important;
    padding-top: 7px !important;
    font-size: 10px !important;
}

@media (max-width: 800px) {
    .store-site .store-footer-inner {
        padding: 16px 0 7px !important;
    }

    .store-site .store-footer-grid {
        gap: 20px !important;
    }
}

@media (max-width: 520px) {
    .store-site .store-footer-inner {
        padding: 15px 0 7px !important;
    }

    .store-site .store-footer-grid {
        gap: 16px !important;
    }
}


/* ============================================================
   FOOTER — EXACT NAVBAR COLOR
   ============================================================ */

.store-site .store-premium-footer {
    background:
        linear-gradient(
            135deg,
            #243b63 0%,
            #315487 48%,
            #3b6595 100%
        ) !important;

    border-top: 1px solid rgba(255,255,255,.16) !important;

    box-shadow:
        0 -8px 28px rgba(32,55,92,.14) !important;
}

/* حفظ ارتفاع فشرده Footer */
.store-site .store-footer-inner {
    padding: 17px 0 8px !important;
}

.store-site .store-footer-grid {
    gap: 32px !important;
}

.store-site .store-footer-brand h3 {
    margin-bottom: 4px !important;
    font-size: 17px !important;
}

.store-site .store-footer-brand p {
    max-width: 290px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.store-site .store-footer-column h4 {
    margin-bottom: 4px !important;
    font-size: 13px !important;
}

.store-site .store-footer-column a {
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

.store-site .store-footer-bottom {
    margin-top: 12px !important;
    padding-top: 7px !important;
    font-size: 10px !important;
}

/* موبایل */
@media (max-width: 800px) {
    .store-site .store-footer-inner {
        padding: 16px 0 7px !important;
    }

    .store-site .store-footer-grid {
        gap: 20px !important;
    }
}

@media (max-width: 520px) {
    .store-site .store-footer-inner {
        padding: 15px 0 7px !important;
    }

    .store-site .store-footer-grid {
        gap: 16px !important;
    }
}


/* ============================================================
   ACCOUNT / CATEGORY DROPDOWN — OVERFLOW FIX
   ============================================================ */

/* اجازه می‌ده Dropdown از ردیف Navbar خارج شود */
.store-site .fixed-navbar .bottom-row {
    overflow: visible !important;
}

/* اسکرول افقی منو روی خود منوی اصلی */
.store-site .fixed-navbar .store-main-menu {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
}

.store-site .fixed-navbar .store-main-menu::-webkit-scrollbar {
    display: none;
}

/* Dropdown همیشه بالای سایر عناصر */
.store-site .store-account-dropdown,
.store-site .store-category-dropdown {
    position: relative !important;
    z-index: 100000 !important;
}

.store-site .store-account-dropdown .store-account-menu {
    z-index: 100001 !important;
}


/* ============================================================
   FINAL ACCOUNT DROPDOWN — NO CLIPPING
   ============================================================ */

/* ردیف Navbar نباید Dropdown را قطع کند */
.store-site .fixed-navbar .bottom-row {
    overflow: visible !important;
}

/* منوی اصلی هم نباید Dropdown را Clip کند */
.store-site .fixed-navbar .store-main-menu {
    overflow: visible !important;
}

/* حساب کاربری */
.store-site .store-account-dropdown {
    position: relative !important;
    z-index: 100000 !important;
}

/* منوی حساب */
.store-site .store-account-dropdown .store-account-menu {
    display: block !important;

    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;

    min-width: 235px !important;
    width: max-content !important;
    max-width: 280px !important;

    padding: 8px !important;
    margin: 0 !important;

    background: rgba(18,23,31,.98) !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px !important;

    box-shadow:
        0 18px 45px rgba(0,0,0,.38),
        0 4px 15px rgba(0,0,0,.20) !important;

    z-index: 100001 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transform:
        translateY(-7px) scale(.98) !important;

    transform-origin: top right !important;

    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .20s ease !important;
}

/* وقتی JS کلاس open را می‌گذارد */
.store-site .store-account-dropdown.open .store-account-menu {
    opacity: 1 !important;
    visibility: visible !important;

    transform:
        translateY(0) scale(1) !important;
}

/* دکمه حساب کاربری */
.store-site .store-account-dropdown > .store-dropdown-toggle {
    position: relative !important;
    z-index: 100002 !important;
    cursor: pointer !important;
}

/* آیتم‌ها */
.store-site .store-account-menu a {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    box-sizing: border-box !important;

    min-height: 42px !important;
    padding: 9px 12px !important;
    margin: 2px 0 !important;

    gap: 10px !important;

    color: rgba(255,255,255,.92) !important;

    white-space: nowrap !important;
}

/* جلوگیری از مخفی شدن منو با hover */
.store-site .store-account-dropdown:hover .store-account-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}



/* ============================================================
   CATEGORY DROPDOWN — MATCH ACCOUNT DROPDOWN
   ============================================================ */

/* خود Dropdown */
.store-site .store-category-dropdown .store-mega-menu {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    right: 50% !important;

    width: min(760px, calc(100vw - 30px)) !important;
    min-height: 0 !important;

    padding: 10px !important;

    background: rgba(18, 23, 31, .98) !important;

    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 16px !important;

    box-shadow:
        0 22px 55px rgba(0, 0, 0, .30),
        0 8px 22px rgba(0, 0, 0, .16) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform:
        translate(50%, -7px) scale(.98) !important;

    transform-origin: top center !important;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease !important;

    z-index: 100001 !important;

    color: rgba(255, 255, 255, .92) !important;
}


/* حالت باز */
.store-site .store-category-dropdown.open .store-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform:
        translate(50%, 0) scale(1) !important;
}


/* عنوان بالای دسته‌بندی */
.store-site .store-category-dropdown .mega-menu-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 14px !important;

    padding: 10px 11px 11px !important;
    margin: 0 0 8px !important;

    border-bottom:
        1px solid rgba(255, 255, 255, .09) !important;
}


/* عنوان */
.store-site .store-category-dropdown .mega-menu-title span {
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
}


/* توضیح کوچک */
.store-site .store-category-dropdown .mega-menu-title small {
    color: rgba(255, 255, 255, .55) !important;

    font-size: 10px !important;
    font-weight: 500 !important;
}


/* محتوای دسته‌ها */
.store-site .store-category-dropdown .mega-menu-content {
    min-height: 0 !important;

    padding: 2px !important;
}


/* شبکه دسته‌های اصلی */
.store-site .store-category-dropdown .category-root-grid {
    display: grid !important;

    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr)) !important;

    gap: 7px !important;
}


/* هر شاخه */
.store-site .store-category-dropdown .category-tree-item {
    min-width: 0 !important;

    padding: 7px 8px !important;

    border-radius: 11px !important;

    background:
        rgba(255, 255, 255, .035) !important;

    border:
        1px solid rgba(255, 255, 255, .055) !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease !important;
}


/* هاور شاخه */
.store-site .store-category-dropdown .category-tree-item:hover {
    background:
        rgba(255, 255, 255, .065) !important;

    border-color:
        rgba(255, 255, 255, .10) !important;

    transform:
        translateY(-1px) !important;
}


/* عنوان دسته اصلی */
.store-site .store-category-dropdown .category-parent {
    margin-bottom: 5px !important;

    gap: 8px !important;
}


/* لینک دسته اصلی */
.store-site .store-category-dropdown .category-parent a {
    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 750 !important;

    text-decoration: none !important;

    transition:
        color .18s ease !important;
}


.store-site .store-category-dropdown .category-parent a:hover {
    color: #bcd7ff !important;
}


/* تعداد زیرمجموعه */
.store-site .store-category-dropdown .category-parent > span {
    min-width: 20px !important;
    height: 20px !important;

    padding: 0 6px !important;

    border-radius: 50px !important;

    background:
        rgba(255, 255, 255, .09) !important;

    color:
        rgba(255, 255, 255, .70) !important;

    font-size: 9px !important;
}


/* لیست زیرمجموعه */
.store-site .store-category-dropdown .category-sub-list {
    display: flex !important;
    flex-direction: column !important;

    gap: 1px !important;

    padding-right: 8px !important;

    border-right:
        1px solid rgba(255, 255, 255, .10) !important;
}


/* آیتم زیرمجموعه */
.store-site .store-category-dropdown .category-leaf {
    display: block !important;

    padding: 5px 7px !important;

    border-radius: 7px !important;

    color:
        rgba(255, 255, 255, .63) !important;

    font-size: 11px !important;
    font-weight: 500 !important;

    text-decoration: none !important;

    transition:
        background .16s ease,
        color .16s ease,
        padding-right .16s ease !important;
}


/* هاور زیرمجموعه */
.store-site .store-category-dropdown .category-leaf:hover {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, .08) !important;

    padding-right: 10px !important;
}


/* وضعیت Loading / Empty */
.store-site .store-category-dropdown .category-loading,
.store-site .store-category-dropdown .category-empty,
.store-site .store-category-dropdown .category-coming-soon {
    min-height: 110px !important;

    color:
        rgba(255, 255, 255, .58) !important;

    font-size: 11px !important;
}


/* عنوان حالت Coming Soon */
.store-site .store-category-dropdown .category-coming-soon strong {
    color: #ffffff !important;

    font-size: 13px !important;
}


/* متن حالت Coming Soon */
.store-site .store-category-dropdown .category-coming-soon span {
    color:
        rgba(255, 255, 255, .55) !important;
}


/* آیکون */
.store-site .store-category-dropdown .category-coming-icon {
    opacity: .85;
}


/* ============================================================
   CATEGORY DROPDOWN — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .store-site .store-category-dropdown .store-mega-menu {
        position: fixed !important;

        top: 125px !important;
        right: 10px !important;
        left: 10px !important;

        width: auto !important;
        max-width: none !important;

        max-height:
            calc(100vh - 145px) !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 9px !important;

        transform:
            translateY(-7px) scale(.98) !important;
    }

    .store-site .store-category-dropdown.open .store-mega-menu {
        transform:
            translateY(0) scale(1) !important;
    }

    .store-site .store-category-dropdown .category-root-grid {
        grid-template-columns: 1fr !important;
    }

    .store-site .store-category-dropdown .mega-menu-title {
        align-items: flex-start !important;
        flex-direction: column !important;

        gap: 3px !important;
    }

}


/* ============================================================
   FINAL UNIFIED PRODUCT CARD
   ONE MASTER STYLE FOR:
   - STORE HOME
   - FESTIVAL
   - PRODUCT / SIMILAR PRODUCTS
   ============================================================ */

.store-site .store-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #eef2f6 0%,
            #e1e7ee 52%,
            #d5dee8 100%
        );

    border: 3px solid #5f7690;
    border-radius: 22px;

    box-shadow:
        0 9px 24px rgba(30,45,62,.16),
        0 3px 8px rgba(30,45,62,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

    cursor: pointer;
    isolation: isolate;
}


/* TOP ACCENT */

.store-site .store-product-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            #1557a6 0%,
            #2478d5 45%,
            #c9a35b 100%
        );

    z-index: 5;
}


/* HOVER */

.store-site .store-product-card:hover {
    transform: translateY(-6px);

    border-color: #2478d5;

    box-shadow:
        0 17px 36px rgba(21,87,166,.22),
        0 6px 13px rgba(30,45,62,.13);
}


/* IMAGE SECTION */

.store-site .store-product-card .product-image-section {
    position: relative;

    width: 100%;
    height: 205px;
    min-height: 205px;
    flex: 0 0 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background:
        radial-gradient(
            circle at 50% 40%,
            #f9fbfd 0%,
            #e7edf3 58%,
            #d8e1ea 100%
        );

    border-bottom: 2px solid #a9bacb;

    box-sizing: border-box;
}


.store-site .store-product-card .product-image-section img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 14px;

    transition:
        transform .3s ease,
        filter .3s ease;
}


.store-site .store-product-card:hover
.product-image-section img {
    transform: scale(1.045);
}


/* PLACEHOLDER */

.store-site .store-product-card .product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #dce4ec,
            #cbd6e1
        );

    color: #617387;

    font-size: .9rem;
    font-weight: 800;
}


/* DISCOUNT */

.store-site .store-product-card .discount-badge {
    position: absolute;

    top: 13px;
    right: 13px;

    z-index: 8;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    min-height: 30px;

    padding: 5px 11px;

    background:
        linear-gradient(
            135deg,
            #b71c1c,
            #7b1fa2
        ) !important;

    color: #fff !important;

    border: 2px solid rgba(255,255,255,.72);
    border-radius: 999px;

    box-shadow:
        0 6px 14px rgba(123,31,162,.25);

    font-size: .78rem;
    font-weight: 950;

    letter-spacing: .2px;

    text-shadow:
        0 1px 2px rgba(0,0,0,.25);
}


/* TITLE */

.store-site .store-product-card h3,
.store-site .store-product-card .title {
    margin: 5px 11px 2px;

    min-height: 34px;

    color: #153f6a;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.4;

    text-align: right;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    transition: color .2s ease;
}


.store-site .store-product-card:hover h3,
.store-site .store-product-card:hover .title {
    color: #0b4f91;
}


/* META */

.store-site .store-product-card .product-code,
.store-site .store-product-card .product-unit {
    margin-right: 14px;
    margin-left: 14px;

    color: #596b7d;

    font-size: .72rem;
    font-weight: 700;

    line-height: 1.35;
}


/* RATING */

.store-site .store-product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 2px;

    margin: 3px 11px 2px;

    min-height: 21px;
}


.store-site .store-product-card .product-rating svg {
    width: 20px !important;
    height: 20px !important;

    flex: 0 0 20px;

    overflow: visible;

    filter:
        drop-shadow(0 2px 2px rgba(185,111,0,.22));
}


.store-site .store-product-card .product-rating svg path {
    stroke: #b96f00 !important;
    stroke-width: 1.6 !important;
}


.store-site .store-product-card .product-rating svg[fill] {
    /* رنگ هر ستاره از fill خود SVG گرفته می‌شود */
}
}


/* PRICE BOX */

.store-site .store-product-card .price-info {
    margin: 3px 9px 4px;
    text-align: center;
    padding: 4px 8px;

    background:
        linear-gradient(
            135deg,
            #d9e2eb,
            #ccd7e2
        );

    border: 1px solid #aebdcb;
    border-radius: 11px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        0 3px 8px rgba(40,57,75,.07);

    text-align: right;
}


/* OLD PRICE */

.store-site .store-product-card .price-original {
    display: block;

    margin: 0 0 1px;

    color: #7f1d1d !important;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: .76rem;
    font-weight: 800;

    line-height: 1.35;

    white-space: nowrap;
}


.store-site .store-product-card .price-original s {
    text-decoration-line: line-through;
    text-decoration-thickness: 1.7px;
    text-decoration-color: #8f2020;
    text-decoration-skip-ink: none;
}


/* FINAL PRICE */

.store-site .store-product-card .price-discounted,
.store-site .store-product-card .price {
    display: inline-block;

    color: #06743d !important;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: 1.05rem;
    font-weight: 900;

    line-height: 1.35;

    white-space: nowrap;
}


/* OUT OF STOCK */

.store-site .store-product-card .out-of-stock {
    margin: 0 12px 9px !important;

    padding: 6px 8px;

    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffe0e0
        );

    color: #b71c1c !important;

    border: 1px solid #e7a0a0;
    border-radius: 9px;

    font-size: .72rem;
    font-weight: 900;

    text-align: center;
}


/* CART */

.store-site .store-product-card .cart-actions,
.store-site .favorites-list .store-product-card .cart-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;

    margin: auto 14px 14px;

    padding: 0;

    min-height: 39px;
}


/* ADD CART */

.store-site .store-product-card .btn-add-cart,
.store-site .favorites-list .store-product-card .btn-add-cart {
    width: 100%;
    min-height: 45px;

    padding: 9px 14px;

    background:
        linear-gradient(
            135deg,
            #1557a6,
            #2478d5
        );

    color: #fff;

    border: 2px solid #124c91;
    border-radius: 12px;

    box-shadow:
        0 6px 14px rgba(21,87,166,.22);

    font-size: .78rem;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.store-site .store-product-card .btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 9px 18px rgba(21,87,166,.30);
}


/* QUANTITY */

.store-site .store-product-card .quantity-controls,
.store-site .favorites-list .store-product-card .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 39px;

    padding: 4px;

    background:
        linear-gradient(
            135deg,
            #cbd6e1,
            #dce4ec
        );

    border: 2px solid #91a4b7;
    border-radius: 13px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10);

    box-sizing: border-box;
}


.store-site .store-product-card .quantity-controls > span,
.store-site .favorites-list .store-product-card .quantity-controls > span {
    min-width: 36px;

    color: #20364d;

    font-size: 1rem;
    font-weight: 950;

    text-align: center;
}


.store-site .store-product-card .quantity-controls button,
.store-site .favorites-list .store-product-card .quantity-controls button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 10px;

    font-family: Arial, Tahoma, sans-serif;
    font-size: 1.35rem;
    font-weight: 950;

    line-height: 1;

    cursor: pointer;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}


/* MINUS */

.store-site .store-product-card .quantity-controls .btn-minus,
.store-site .favorites-list .store-product-card .quantity-controls .btn-minus {
    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffdcdc
        ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18);

    border: none !important;
}


.store-site .store-product-card .quantity-controls .btn-minus:hover:not(:disabled),
.store-site .favorites-list .store-product-card .quantity-controls .btn-minus:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);

    box-shadow:
        0 8px 16px rgba(198,40,40,.27);
}


/* PLUS */

.store-site .store-product-card .quantity-controls .btn-plus,
.store-site .favorites-list .store-product-card .quantity-controls .btn-plus {
    background:
        linear-gradient(
            135deg,
            #e4f8ec,
            #c9efd8
        ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19);

    border: none !important;
}


.store-site .store-product-card .quantity-controls .btn-plus:hover:not(:disabled),
.store-site .favorites-list .store-product-card .quantity-controls .btn-plus:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);

    box-shadow:
        0 8px 16px rgba(8,120,62,.28);
}


/* DISABLED */

.store-site .store-product-card .quantity-controls button:disabled,
.store-site .favorites-list .store-product-card .quantity-controls button:disabled {
    opacity: .48;

    cursor: not-allowed;

    filter: grayscale(.2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .store-site .store-product-card .product-image-section {
        height: 155px;
        min-height: 155px;
        flex-basis: 155px;
        padding: 10px;
    }

    .store-site .store-product-card h3,
    .store-site .store-product-card .title {
        margin: 7px 12px 2px;

        min-height: 34px;

        font-size: 13.5px;
        line-height: 1.5;
    }

    .store-site .store-product-card .product-code,
    .store-site .store-product-card .product-unit,
    .store-site .store-product-card .product-rating {
        margin-right: 12px;
        margin-left: 12px;
    }

    .store-site .store-product-card .product-rating {
        margin-top: 3px !important;
        margin-bottom: 3px !important;
        min-height: 22px !important;
    }

    .store-site .store-product-card .price-info {
        margin-right: 10px;
        margin-left: 10px;
    }

    .store-site .store-product-card .cart-actions {
        margin-right: 10px;
        margin-left: 10px;
        margin-bottom: 10px;
    }
}


@media (max-width: 390px) {

    .store-site .store-product-card .product-image-section {
        height: 150px;
        min-height: 150px;
        flex-basis: 150px;
    }

    .store-site .store-product-card h3,
    .store-site .store-product-card .title {
        font-size: 12.5px;
    }

    .store-site .store-product-card .price-discounted,
    .store-site .store-product-card .price {
        font-size: 1rem;
    }

    .store-site .store-product-card
    .quantity-controls button {
        width: 32px;
        height: 32px;
    }
}


/* ============================================================

/* ============================================================

/* ============================================================
   PRODUCT PAGE — UNIFIED WITH MASTER STORE PRODUCT CARD
   ============================================================ */

.store-site #product-container {
    padding-top: 34px !important;
    box-sizing: border-box;
}

/* ============================================================
   MAIN PRODUCT WRAPPER
   ============================================================ */

.store-site .product-detail-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 22px;
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto 18px;
    padding: 14px;
    background: linear-gradient(
        145deg,
        #eef2f6 0%,
        #e1e7ee 52%,
        #d5dee8 100%
    );
    border: 3px solid #5f7690;
    border-radius: 22px;
    box-shadow:
        0 9px 24px rgba(30,45,62,.16),
        0 3px 8px rgba(30,45,62,.10);
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.store-site .product-detail-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #1557a6 0%,
        #2478d5 45%,
        #c9a35b 100%
    );
    z-index: 10;
}

/* ============================================================
   PRODUCT IMAGE
   دقیقاً با ابعاد Master Card
   ============================================================ */

.store-site .product-detail-wrapper .product-image-section {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 205px;
    min-height: 205px;
    flex: 0 0 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: center;

    padding: 18px;

    background:
        radial-gradient(
            circle at 50% 40%,
            #f9fbfd 0%,
            #e7edf3 58%,
            #d8e1ea 100%
        );

    border: 0;
    border-bottom: 2px solid #a9bacb;
    border-radius: 0;

    box-sizing: border-box;
    overflow: hidden;
}

.store-site .product-detail-wrapper
.product-image-section > #productImage,
.store-site .product-detail-wrapper
.product-image-section > img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 14px;

    transition:
        transform .3s ease,
        filter .3s ease;
}

.store-site .product-detail-wrapper
.product-image-section:hover > #productImage,
.store-site .product-detail-wrapper
.product-image-section:hover > img {
    transform: scale(1.045);
}

/* ============================================================
   DISCOUNT
   ============================================================ */

.store-site .product-detail-wrapper .discount-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    min-height: 30px;
    padding: 5px 11px;

    background: linear-gradient(
        135deg,
        #b71c1c,
        #7b1fa2
    ) !important;

    color: #fff !important;

    border: 2px solid rgba(255,255,255,.72);
    border-radius: 999px;

    box-shadow:
        0 6px 14px rgba(123,31,162,.25);

    font-size: .78rem;
    font-weight: 950;

    box-sizing: border-box;
}

/* ============================================================
   IMAGE TITLE
   ============================================================ */

.store-site .product-detail-wrapper .product-title-image {
    position: absolute;
    right: 14px;
    left: 14px;
    bottom: 12px;
    z-index: 8;

    padding: 7px 10px;

    background: rgba(238,242,246,.94);
    border: 1px solid #a9bacb;
    border-radius: 10px;

    color: #153f6a;

    font-size: .82rem;
    font-weight: 900;
    line-height: 1.5;

    text-align: right;

    box-sizing: border-box;
}

/* ============================================================
   IMAGE RATING
   ============================================================ */

.store-site .product-detail-wrapper
.product-image-section > .product-rating {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 12;

    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 5px 9px;

    background: rgba(238,242,246,.94);
    border: 1px solid #a9bacb;
    border-radius: 9px;

    color: #596b7d;

    font-size: .72rem;
    font-weight: 800;
}

/* ============================================================
   INFORMATION
   ============================================================ */

.store-site .product-detail-wrapper .product-info-section {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 3px;

    box-sizing: border-box;
}

.store-site .product-detail-wrapper .info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;

    margin-bottom: 9px;
}

.store-site .product-detail-wrapper .info-grid > div {
    min-width: 0;

    padding: 8px 9px;

    background: rgba(217,226,235,.72);
    border: 1px solid #aebdcb;
    border-radius: 9px;

    color: #596b7d;

    font-size: .73rem;
    font-weight: 700;
    line-height: 1.6;

    box-sizing: border-box;
}

.store-site .product-detail-wrapper .info-grid strong {
    color: #153f6a;
    font-weight: 900;
}

.store-site .product-detail-wrapper .product-description {
    margin: 0 0 9px;
    padding: 9px 10px;

    background: #e1e7ee;
    border: 1px solid #aebdcb;
    border-radius: 10px;

    color: #596b7d;

    font-size: .76rem;
    font-weight: 600;
    line-height: 1.8;
}

/* ============================================================
   PRICE
   ============================================================ */

.store-site .product-detail-wrapper .product-price {
    margin: 5px 0 8px;
    padding: 8px 10px;

    background: linear-gradient(
        135deg,
        #d9e2eb,
        #ccd7e2
    );

    border: 1px solid #aebdcb;
    border-radius: 11px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        0 3px 8px rgba(40,57,75,.07);

    text-align: center;

    box-sizing: border-box;
}

.store-site .product-detail-wrapper
.product-price .price-original {
    display: block;

    margin: 0 0 2px;

    color: #7f1d1d !important;

    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.store-site .product-detail-wrapper
.product-price .price-discounted,
.store-site .product-detail-wrapper
.product-price .price {
    display: inline-block;

    color: #06743d !important;

    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
}

/* ============================================================
   RATING
   ============================================================ */

.store-site .product-detail-wrapper .product-stars {
    display: flex;
    align-items: center;
    gap: 2px;

    min-height: 27px;
    margin: 2px 0 7px;
}

.store-site .product-detail-wrapper
.product-stars .star {
    color: #9aa8b6;

    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .15s ease,
        transform .15s ease;
}

.store-site .product-detail-wrapper
.product-stars .star:hover,
.store-site .product-detail-wrapper
.product-stars .star.active {
    color: #f3a500;
    transform: scale(1.05);
}

/* ============================================================
   STOCK
   ============================================================ */

.store-site .product-detail-wrapper .product-stock {
    margin: 0 0 8px;

    color: #596b7d;

    font-size: .74rem;
    font-weight: 800;
}

/* ============================================================
   CART
   ============================================================ */

.store-site .product-detail-wrapper .cart-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;

    margin-top: auto;
    padding-top: 4px;

    box-sizing: border-box;
}

.store-site .product-detail-wrapper .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 45px;

    flex: 0 0 132px;

    padding: 4px;

    background: linear-gradient(
        135deg,
        #cbd6e1,
        #dce4ec
    );

    border: 2px solid #91a4b7;
    border-radius: 13px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10);

    box-sizing: border-box;
}

.store-site .product-detail-wrapper
.quantity-controls > span {
    min-width: 30px;

    color: #20364d;

    font-size: 1rem;
    font-weight: 950;

    text-align: center;
}

.store-site .product-detail-wrapper
.quantity-controls button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none !important;
    border-radius: 10px;

    font-family: Arial, Tahoma, sans-serif;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;

    cursor: pointer;
}

.store-site .product-detail-wrapper
.quantity-controls .btn-minus {
    background: linear-gradient(
        135deg,
        #fff0f0,
        #ffdcdc
    ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18);
}

.store-site .product-detail-wrapper
.quantity-controls .btn-plus {
    background: linear-gradient(
        135deg,
        #e4f8ec,
        #c9efd8
    ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19);
}

.store-site .product-detail-wrapper #btn-add {
    flex: 1;

    min-height: 45px;

    padding: 9px 14px;

    background: linear-gradient(
        135deg,
        #1557a6,
        #2478d5
    ) !important;

    color: #fff !important;

    border: 2px solid #124c91 !important;
    border-radius: 12px;

    box-shadow:
        0 6px 14px rgba(21,87,166,.22);

    font-size: .78rem;
    font-weight: 900;

    cursor: pointer;
}

.store-site .product-detail-wrapper #btn-favorite {
    min-width: 45px;
    min-height: 45px;

    padding: 0 10px;

    background: linear-gradient(
        135deg,
        #d9e2eb,
        #cbd6e1
    ) !important;

    color: #596b7d !important;

    border: 2px solid #91a4b7 !important;
    border-radius: 12px;

    font-size: 1.15rem;

    cursor: pointer;
}

/* ============================================================
   DESCRIPTION / REVIEWS
   ============================================================ */

.store-site .product-full-description,
.store-site .product-reviews {
    width: min(1120px, calc(100% - 28px));

    margin: 0 auto 14px;
    padding: 14px;

    background: linear-gradient(
        145deg,
        #eef2f6 0%,
        #e1e7ee 52%,
        #d5dee8 100%
    );

    border: 3px solid #5f7690;
    border-radius: 18px;

    box-shadow:
        0 7px 18px rgba(30,45,62,.12),
        0 2px 6px rgba(30,45,62,.08);

    box-sizing: border-box;
}

.store-site .product-full-description h2,
.store-site .product-reviews h2,
.store-site .similar-products > h2 {
    margin: 0 0 10px;
    padding-bottom: 7px;

    border-bottom: 2px solid #a9bacb;

    color: #153f6a;

    font-size: 1rem;
    font-weight: 900;
}

.store-site .product-full-description p {
    margin: 0;

    color: #596b7d;

    font-size: .78rem;
    font-weight: 600;
    line-height: 1.9;
}

/* ============================================================
   SIMILAR PRODUCTS
   همان Master Card
   ============================================================ */

.store-site .similar-products {
    width: min(1120px, calc(100% - 28px));

    margin: 0 auto 20px;

    box-sizing: border-box;
}

.store-site .similar-products-wrapper {
    display: grid;

    grid-auto-flow: column;
    grid-auto-columns: 260px;

    gap: 12px;

    overflow-x: auto;

    padding: 4px 2px 12px;

    box-sizing: border-box;
}

.store-site .similar-products-wrapper
.store-product-card {
    width: 260px;
    min-width: 260px;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .store-site #product-container {
        padding-top: 26px !important;
    }

    .store-site .product-detail-wrapper {
        grid-template-columns: 1fr;

        width: calc(100% - 20px);

        padding: 11px;
        gap: 12px;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 100%;
        max-width: 280px;

        height: 205px;
        min-height: 205px;
        flex-basis: 205px;
    }

    .store-site .product-full-description,
    .store-site .product-reviews,
    .store-site .similar-products {
        width: calc(100% - 20px);
    }

    .store-site .similar-products-wrapper {
        grid-auto-columns: 220px;
    }

    .store-site .similar-products-wrapper
    .store-product-card {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 480px) {

    .store-site #product-container {
        padding-top: 20px !important;
    }

    .store-site .product-detail-wrapper {
        width: calc(100% - 12px);

        padding: 8px;

        border-radius: 18px;
        border-width: 2px;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 100%;
        max-width: 240px;

        height: 205px;
        min-height: 205px;
        flex-basis: 205px;
    }

    .store-site .product-detail-wrapper .info-grid {
        grid-template-columns: 1fr;
    }

    .store-site .product-detail-wrapper .cart-actions {
        flex-wrap: wrap;
    }

    .store-site .product-detail-wrapper
    .quantity-controls {
        flex: 1 1 120px;
    }

    .store-site .product-detail-wrapper #btn-add {
        flex: 1 1 160px;
    }

    .store-site .product-full-description,
    .store-site .product-reviews,
    .store-site .similar-products {
        width: calc(100% - 12px);
    }
}

@media (max-width: 380px) {

    .store-site .product-detail-wrapper
    .product-image-section {
        max-width: 220px;
        height: 175px;
        min-height: 175px;
        flex-basis: 175px;
    }

    .store-site .similar-products-wrapper {
        grid-auto-columns: 200px;
    }

    .store-site .similar-products-wrapper
    .store-product-card {
        width: 200px;
        min-width: 200px;
    }
}



/* ============================================================
   FINAL PRODUCT PAGE FIX
   ============================================================ */

/* فاصله بیشتر از Navbar */
.store-site #product-container {
    padding-top: 95px !important;
}

/* کادر اصلی صفحه محصول */
.store-site .product-detail-wrapper {
    align-items: start !important;
}

/* ============================================================
   PRODUCT IMAGE — بدون برش
   ============================================================ */

.store-site .product-detail-wrapper .product-image-section {
    position: relative !important;

    width: 280px !important;
    max-width: 280px !important;

    height: 205px !important;
    min-height: 205px !important;

    padding: 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}

/*
 * فقط عکس اصلی محصول
 * نه zoom-box
 */
.store-site .product-detail-wrapper
.product-image-section > #productImage {
    position: relative !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 244px !important;
    max-height: 169px !important;

    margin: auto !important;

    object-fit: contain !important;

    border-radius: 14px !important;

    transform: none !important;
}

/* جلوگیری از دخالت Zoom در اندازه عکس اصلی */
.store-site .product-detail-wrapper
.product-image-section .zoom-box {
    position: absolute !important;
    z-index: 30 !important;
}

/* ============================================================
   نام محصول
   کاملاً شفاف و بدون Border
   ============================================================ */

.store-site .product-detail-wrapper
.product-image-section .product-title-image {
    position: absolute !important;

    right: 12px !important;
    left: 12px !important;
    bottom: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    border-width: 0 !important;

    box-shadow: none !important;

    color: #153f6a !important;

    font-size: .82rem !important;
    font-weight: 900 !important;

    line-height: 1.4 !important;

    text-align: center !important;

    pointer-events: none !important;
}

/* ============================================================
   + و - دقیقاً با استایل کارت اصلی فروشگاه
   ============================================================ */

.store-site .product-detail-wrapper
.quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    min-height: 39px !important;

    padding: 4px !important;

    background: linear-gradient(
        135deg,
        #cbd6e1,
        #dce4ec
    ) !important;

    border: 2px solid #91a4b7 !important;
    border-radius: 13px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10) !important;

    box-sizing: border-box !important;
}

.store-site .product-detail-wrapper
.quantity-controls > span {
    min-width: 36px !important;

    color: #20364d !important;

    font-size: 1rem !important;
    font-weight: 950 !important;

    text-align: center !important;
}

/* پایه مشترک دکمه‌ها */
.store-site .product-detail-wrapper
.quantity-controls button {
    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border-radius: 10px !important;
    border: none !important;

    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 950 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}

/* منفی */
.store-site .product-detail-wrapper
.quantity-controls #btn-decrease {
    background: linear-gradient(
        135deg,
        #fff0f0,
        #ffdcdc
    ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18) !important;
}

/* Hover منفی */
.store-site .product-detail-wrapper
.quantity-controls #btn-decrease:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 8px 16px rgba(198,40,40,.27) !important;
}

/* مثبت */
.store-site .product-detail-wrapper
.quantity-controls #btn-increase {
    background: linear-gradient(
        135deg,
        #e4f8ec,
        #c9efd8
    ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19) !important;
}

/* Hover مثبت */
.store-site .product-detail-wrapper
.quantity-controls #btn-increase:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 8px 16px rgba(8,120,62,.28) !important;
}

/* Disabled */
.store-site .product-detail-wrapper
.quantity-controls button:disabled {
    opacity: .48 !important;

    cursor: not-allowed !important;

    filter: grayscale(.2) !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .store-site #product-container {
        padding-top: 78px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 280px !important;
        max-width: 280px !important;

        height: 205px !important;
        min-height: 205px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section > #productImage {
        max-width: 244px !important;
        max-height: 169px !important;
    }
}

@media (max-width: 480px) {

    .store-site #product-container {
        padding-top: 70px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 240px !important;
        max-width: 240px !important;

        height: 205px !important;
        min-height: 205px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section > #productImage {
        max-width: 204px !important;
        max-height: 169px !important;
    }
}

@media (max-width: 380px) {

    .store-site #product-container {
        padding-top: 65px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 220px !important;
        max-width: 220px !important;

        height: 175px !important;
        min-height: 175px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section > #productImage {
        max-width: 184px !important;
        max-height: 139px !important;
    }
}


/* ============================================================
   PRODUCT PAGE — FINAL SPACING & FULL IMAGE
   ============================================================ */

/* فاصله واقعی از Navbar */
.store-site #product-container {
    padding-top: 135px !important;
    box-sizing: border-box !important;
}

/* کادر تصویر */
.store-site .product-detail-wrapper
.product-image-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

/*
   تصویر محصول:
   نسبت اصلی تصویر حفظ می‌شود
   هیچ crop / بریدگی / کشیدگی وجود ندارد
*/
.store-site .product-detail-wrapper
.product-image-section > #productImage {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 auto !important;

    transform: none !important;

    box-sizing: border-box !important;
}

/* تصویر نباید در Hover از محدوده بیرون بزند */
.store-site .product-detail-wrapper
.product-image-section:hover > #productImage {
    transform: none !important;
}

/* در موبایل هم فاصله کافی از Navbar */
@media (max-width: 800px) {
    .store-site #product-container {
        padding-top: 110px !important;
    }
}

@media (max-width: 480px) {
    .store-site #product-container {
        padding-top: 95px !important;
    }
}

@media (max-width: 380px) {
    .store-site #product-container {
        padding-top: 85px !important;
    }
}


/* ============================================================
   PRODUCT PAGE — FINAL CLEAN UNIFIED CARD
   هماهنگ با کارت اصلی فروشگاه
   ============================================================ */

/* فاصله صفحه از Navbar */
.store-site #product-container {
    padding-top: 135px !important;
    box-sizing: border-box !important;
}

/* کارت اصلی محصول */
.store-site .product-detail-wrapper {
    align-items: flex-start !important;
}

/* ============================================================
   IMAGE BOX
   ============================================================ */

.store-site .product-detail-wrapper .product-image-section {
    position: relative !important;

    width: 280px !important;
    max-width: 280px !important;

    height: 205px !important;
    min-height: 205px !important;
    flex: 0 0 205px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 18px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at 50% 40%,
            #f9fbfd 0%,
            #e7edf3 58%,
            #d8e1ea 100%
        ) !important;

    border: 0 !important;
    border-bottom: 2px solid #a9bacb !important;
    border-radius: 0 !important;
}

/* ============================================================
   عکس اصلی — بدون Crop و بدون Distortion
   ============================================================ */

.store-site .product-detail-wrapper
.product-image-section > #productImage {

    position: relative !important;
    z-index: 2 !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 14px !important;

    transform: none !important;
}

/* جلوگیری از Zoom روی عکس اصلی */
.store-site .product-detail-wrapper
.product-image-section > #productImage:hover {
    transform: none !important;
}

/* Zoom فقط مخفی باشد و روی عکس اصلی دخالت نکند */
.store-site .product-detail-wrapper
.product-image-section .zoom-box {
    display: none !important;
}

/* ============================================================
   نام محصول
   شفاف، بدون کادر، روی عکس
   ============================================================ */

.store-site .product-detail-wrapper
.product-image-section .product-title-image {

    position: absolute !important;

    right: 12px !important;
    left: 12px !important;
    bottom: 8px !important;

    z-index: 15 !important;

    display: block !important;

    width: auto !important;
    max-width: calc(100% - 24px) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    color: #153f6a !important;

    font-size: .82rem !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;

    text-align: center !important;

    white-space: normal !important;

    pointer-events: none !important;
}

/* ============================================================
   امتیاز
   ============================================================ */

.store-site .product-detail-wrapper
.product-image-section > .product-rating {
    z-index: 16 !important;
}

/* ============================================================
   QUANTITY — دقیقاً هماهنگ با کارت اصلی
   ============================================================ */

.store-site .product-detail-wrapper .quantity-controls {

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    min-height: 39px !important;

    padding: 4px !important;

    background: linear-gradient(
        135deg,
        #cbd6e1,
        #dce4ec
    ) !important;

    border: 2px solid #91a4b7 !important;
    border-radius: 13px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10) !important;

    box-sizing: border-box !important;
}

.store-site .product-detail-wrapper
.quantity-controls > span {

    min-width: 36px !important;

    color: #20364d !important;

    font-size: 1rem !important;
    font-weight: 950 !important;

    text-align: center !important;
}

/* پایه مشترک + و - */
.store-site .product-detail-wrapper
.quantity-controls > button {

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: none !important;
    border-radius: 10px !important;

    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;

    box-sizing: border-box !important;
}

/* منفی */
.store-site .product-detail-wrapper
.quantity-controls > #btn-decrease {

    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffdcdc
        ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18) !important;
}

.store-site .product-detail-wrapper
.quantity-controls > #btn-decrease:hover:not(:disabled) {

    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 8px 16px rgba(198,40,40,.27) !important;
}

/* مثبت */
.store-site .product-detail-wrapper
.quantity-controls > #btn-increase {

    background:
        linear-gradient(
            135deg,
            #e4f8ec,
            #c9efd8
        ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19) !important;
}

.store-site .product-detail-wrapper
.quantity-controls > #btn-increase:hover:not(:disabled) {

    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 8px 16px rgba(8,120,62,.28) !important;
}

/* Disabled */
.store-site .product-detail-wrapper
.quantity-controls > button:disabled {

    opacity: .48 !important;
    cursor: not-allowed !important;
    filter: grayscale(.2) !important;

    transform: none !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .store-site #product-container {
        padding-top: 125px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 280px !important;
        max-width: 280px !important;

        height: 205px !important;
        min-height: 205px !important;
    }
}

@media (max-width: 480px) {

    .store-site #product-container {
        padding-top: 110px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 280px !important;
        max-width: calc(100vw - 30px) !important;
    }
}



/* ============================================================
   FINAL PRODUCT DETAIL POLISH
   ============================================================ */

/* ---------- عنوان محصول روی تصویر ---------- */

.store-site .product-detail-wrapper .product-image-section .product-title-image {
    bottom: 1px !important;
    right: 8px !important;
    left: 8px !important;
    max-width: calc(100% - 16px) !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #153f6a !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.45 !important;
    text-align: center !important;

    text-shadow:
        0 1px 2px rgba(255,255,255,.95),
        0 0 4px rgba(255,255,255,.9) !important;

    pointer-events: none !important;
}


/* ---------- کارت اصلی جزئیات محصول ---------- */

.store-site .product-detail-wrapper {
    background: #ffffff !important;
}

.store-site .product-detail-wrapper .product-info-section {
    background: #ffffff !important;
    padding: 14px !important;
    border-radius: 0 0 16px 16px !important;
}


/* ---------- اطلاعات محصول ---------- */

.store-site .product-detail-wrapper .info-grid {
    gap: 9px !important;
    margin-bottom: 12px !important;
}

.store-site .product-detail-wrapper .info-grid > div {
    background: #ffffff !important;
    border: 1px solid #d5dde6 !important;

    padding: 10px 11px !important;

    color: #526477 !important;
    font-size: .9rem !important;
    font-weight: 750 !important;
    line-height: 1.8 !important;
}

.store-site .product-detail-wrapper .info-grid strong {
    color: #153f6a !important;
    font-size: .93rem !important;
    font-weight: 950 !important;
}


/* ---------- توضیحات کوتاه ---------- */

.store-site .product-detail-wrapper .product-description {
    margin: 0 0 12px !important;
    padding: 11px 12px !important;

    background: #ffffff !important;
    border: 1px solid #d5dde6 !important;

    color: #526477 !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
    line-height: 1.95 !important;
}


/* ---------- موجودی ---------- */

.store-site .product-detail-wrapper .product-stock {
    display: flex !important;
    align-items: center !important;
    margin: 4px 0 12px !important;

    color: inherit !important;
    font-size: .95rem !important;
    font-weight: 900 !important;
}

.store-site .product-detail-wrapper .product-stock .in-stock {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 13px !important;

    background: #e8f8ef !important;
    border: 1px solid #9bd8b5 !important;
    border-radius: 10px !important;

    color: #08783e !important;
    font-size: .95rem !important;
    font-weight: 950 !important;

    line-height: 1.4 !important;
}

.store-site .product-detail-wrapper .product-stock .out-of-stock {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 13px !important;

    background: #fff0f0 !important;
    border: 1px solid #efaaaa !important;
    border-radius: 10px !important;

    color: #c62828 !important;
    font-size: .95rem !important;
    font-weight: 950 !important;

    line-height: 1.4 !important;
}


/* ---------- ستاره‌ها ---------- */

.store-site .product-detail-wrapper .product-stars {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;

    margin: 5px 0 8px !important;
}

.store-site .product-detail-wrapper .product-stars .star {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #c7d0da !important;
    font-size: 1.65rem !important;
    line-height: 1 !important;

    cursor: pointer !important;
    user-select: none !important;

    transition:
        color .18s ease,
        transform .18s ease !important;
}


/* ⭐ کلاس واقعی که JS استفاده می‌کند */
.store-site .product-detail-wrapper .product-stars .star.selected {
    color: #f3a500 !important;
    transform: scale(1.08) !important;
}


/* هاور */
.store-site .product-detail-wrapper .product-stars .star:hover {
    color: #ffb300 !important;
    transform: scale(1.1) !important;
}


/* ---------- پیام ثبت امتیاز ---------- */

.store-site .product-detail-wrapper .rating-msg {
    min-height: 22px !important;

    margin: 2px 0 7px !important;

    color: #08783e !important;
    font-size: .88rem !important;
    font-weight: 850 !important;
}


/* ---------- دکمه افزودن به سبد ---------- */

.store-site .product-detail-wrapper #btn-add {
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;

    min-height: 45px !important;

    padding: 10px 18px !important;

    font-size: .95rem !important;
    font-weight: 950 !important;

    white-space: nowrap !important;
}


/* ---------- دکمه علاقه‌مندی ---------- */

.store-site .product-detail-wrapper #btn-favorite {
    flex: 0 0 auto !important;
}


/* ---------- بخش معرفی کامل ---------- */

.store-site .product-detail-wrapper .product-full-description {
    background: #ffffff !important;
}

.store-site .product-detail-wrapper .product-full-description p {
    font-size: .95rem !important;
    line-height: 2 !important;
}


/* ---------- دکمه ارسال نظر ---------- */

.store-site .product-detail-wrapper #review-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: max-content !important;
    min-width: 120px !important;

    padding: 10px 20px !important;

    background: linear-gradient(
        135deg,
        #1769aa,
        #0d4f85
    ) !important;

    border: 1px solid #0b4779 !important;
    border-radius: 10px !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: .95rem !important;
    font-weight: 950 !important;
    line-height: 1.5 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 12px rgba(13,79,133,.18) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}

.store-site .product-detail-wrapper #review-submit:hover {
    transform: translateY(-1px) !important;

    box-shadow:
        0 7px 16px rgba(13,79,133,.25) !important;
}


/* ---------- متن داخل textarea ---------- */

.store-site .product-detail-wrapper #review-text {
    font-family: inherit !important;
    font-size: .95rem !important;
    line-height: 1.9 !important;
}


/* ---------- موبایل ---------- */

@media (max-width: 600px) {

    .store-site .product-detail-wrapper .product-image-section .product-title-image {
        bottom: 1px !important;
        font-size: .95rem !important;
    }

    .store-site .product-detail-wrapper .product-info-section {
        padding: 11px !important;
    }

    .store-site .product-detail-wrapper .info-grid > div {
        font-size: .86rem !important;
    }

    .store-site .product-detail-wrapper .info-grid strong {
        font-size: .88rem !important;
    }

    .store-site .product-detail-wrapper .product-description {
        font-size: .88rem !important;
    }

    .store-site .product-detail-wrapper #btn-add {
        font-size: .9rem !important;
        padding: 9px 14px !important;
    }

    .store-site .product-detail-wrapper .product-stars .star {
        font-size: 1.5rem !important;
    }

}


/* ============================================================
   END FINAL PRODUCT DETAIL POLISH
   ============================================================ */



/* ============================================================
   PRODUCT DETAIL — UNIFIED WITH MAIN STORE PRODUCT CARD
   آخرین لایه نهایی — مرجع ظاهری: .store-product-card
   ============================================================ */

/* ---------- DETAIL IMAGE CARD ---------- */

.store-site .product-detail-wrapper .product-image-section {
    position: relative !important;

    width: 280px !important;
    max-width: 280px !important;

    height: 205px !important;
    min-height: 205px !important;

    flex: 0 0 205px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 18px !important;

    background:
        radial-gradient(
            circle at 50% 40%,
            #f9fbfd 0%,
            #e7edf3 58%,
            #d8e1ea 100%
        ) !important;

    border: 0 !important;
    border-bottom: 2px solid #a9bacb !important;
    border-radius: 0 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* دقیقاً همان منطق تصویر کارت اصلی */
.store-site .product-detail-wrapper
.product-image-section > #productImage,
.store-site .product-detail-wrapper
.product-image-section > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;

    object-fit: contain !important;

    border-radius: 14px !important;

    transform: none !important;

    transition:
        transform .3s ease,
        filter .3s ease !important;
}


/* همان Hover کارت اصلی */
.store-site .product-detail-wrapper
.product-image-section:hover > #productImage,
.store-site .product-detail-wrapper
.product-image-section:hover > img {
    transform: scale(1.045) !important;
}


/* Zoom قبلی مزاحم ظاهر یکپارچه نباشد */
.store-site .product-detail-wrapper .zoom-box {
    display: none !important;
}


/* ---------- PRODUCT TITLE ---------- */

.store-site .product-detail-wrapper
.product-image-section .product-title-image {
    position: absolute !important;

    right: 8px !important;
    left: 8px !important;
    bottom: 1px !important;

    max-width: calc(100% - 16px) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;

    color: #153f6a !important;

    font-family:
        Vazirmatn,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif !important;

    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.45 !important;

    text-align: center !important;

    text-shadow:
        0 1px 2px rgba(255,255,255,.9) !important;
}


/* ---------- RATING ---------- */

.store-site .product-detail-wrapper
.product-image-section .product-rating {
    position: absolute !important;

    top: 13px !important;
    left: 13px !important;

    display: flex !important;
    align-items: center !important;

    gap: 2px !important;

    margin: 0 !important;
    padding: 4px 7px !important;

    background: rgba(255,255,255,.90) !important;

    border: 1px solid #d5dde6 !important;
    border-radius: 10px !important;

    box-shadow:
        0 4px 10px rgba(40,57,75,.10) !important;

    z-index: 8 !important;
}


/* ---------- DETAIL INFO ---------- */

.store-site .product-detail-wrapper {
    background:
        linear-gradient(
            145deg,
            #eef2f6 0%,
            #e1e7ee 52%,
            #d5dee8 100%
        ) !important;

    border: 3px solid #5f7690 !important;
    border-radius: 22px !important;

    box-shadow:
        0 9px 24px rgba(30,45,62,.16),
        0 3px 8px rgba(30,45,62,.10) !important;
}


.store-site .product-detail-wrapper
.product-info-section {
    background: transparent !important;

    padding: 3px !important;

    border-radius: 0 !important;
}


/* اطلاعات محصول */
.store-site .product-detail-wrapper
.info-grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 9px !important;
}


.store-site .product-detail-wrapper
.info-grid > div {
    padding: 10px 11px !important;

    background: rgba(255,255,255,.92) !important;

    border: 1px solid #d5dde6 !important;
    border-radius: 10px !important;

    color: #31475c !important;

    font-size: .9rem !important;

    box-shadow:
        0 2px 6px rgba(40,57,75,.06) !important;
}


.store-site .product-detail-wrapper
.info-grid strong {
    color: #153f6a !important;

    font-size: .93rem !important;
}


/* توضیحات کوتاه */
.store-site .product-detail-wrapper
.product-description {
    margin: 10px 0 !important;
    padding: 10px 11px !important;

    background: rgba(255,255,255,.92) !important;

    border: 1px solid #d5dde6 !important;
    border-radius: 10px !important;

    color: #405568 !important;

    font-size: .92rem !important;
    line-height: 1.9 !important;
}


/* ---------- PRICE ---------- */

.store-site .product-detail-wrapper
.product-price {
    margin: 8px 0 !important;
    padding: 8px 10px !important;

    background:
        linear-gradient(
            135deg,
            #d9e2eb,
            #ccd7e2
        ) !important;

    border: 1px solid #aebdcb !important;
    border-radius: 11px !important;

    text-align: right !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        0 3px 8px rgba(40,57,75,.07) !important;
}


/* ---------- STARS ---------- */

.store-site .product-detail-wrapper
.product-stars {
    display: flex !important;
    align-items: center !important;

    gap: 3px !important;

    margin: 7px 0 !important;
}


.store-site .product-detail-wrapper
.product-stars .star {
    font-size: 1.65rem !important;

    color: #b8c1ca !important;

    cursor: pointer !important;

    transition:
        transform .15s ease,
        color .15s ease !important;
}


.store-site .product-detail-wrapper
.product-stars .star.selected {
    color: #f3a500 !important;
}


.store-site .product-detail-wrapper
.product-stars .star:hover {
    color: #e58b00 !important;

    transform: scale(1.08) !important;
}


/* ---------- STOCK ---------- */

.store-site .product-detail-wrapper
.product-stock {
    display: flex !important;
    align-items: center !important;

    margin: 7px 0 !important;

    font-size: .9rem !important;
}


.store-site .product-detail-wrapper
.product-stock .in-stock {
    padding: 5px 10px !important;

    background: #e4f8ec !important;

    color: #08783e !important;

    border: 1px solid #a8d9bb !important;
    border-radius: 999px !important;

    font-size: .95rem !important;
    font-weight: 900 !important;
}


.store-site .product-detail-wrapper
.product-stock .out-of-stock {
    padding: 5px 10px !important;

    background: #fff0f0 !important;

    color: #c62828 !important;

    border: 1px solid #e7a0a0 !important;
    border-radius: 999px !important;

    font-size: .95rem !important;
    font-weight: 900 !important;
}


/* ---------- CART ACTIONS ---------- */

.store-site .product-detail-wrapper
.cart-actions {
    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    width: 100% !important;

    margin-top: auto !important;
    padding: 0 !important;
}


/* تعداد — هماهنگ با کارت اصلی */
.store-site .product-detail-wrapper
.quantity-controls {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: 132px !important;
    min-width: 132px !important;

    min-height: 39px !important;

    padding: 4px !important;

    background:
        linear-gradient(
            135deg,
            #cbd6e1,
            #dce4ec
        ) !important;

    border: 2px solid #91a4b7 !important;
    border-radius: 13px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 5px 12px rgba(40,57,75,.10) !important;

    box-sizing: border-box !important;
}


.store-site .product-detail-wrapper
.quantity-controls > span {
    min-width: 36px !important;

    color: #20364d !important;

    font-size: 1rem !important;
    font-weight: 950 !important;

    text-align: center !important;
}


.store-site .product-detail-wrapper
.quantity-controls button {
    width: 34px !important;
    height: 34px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 950 !important;

    line-height: 1 !important;
}


/* Minus */
.store-site .product-detail-wrapper
.quantity-controls .btn-minus,
.store-site .product-detail-wrapper
.quantity-controls #btn-decrease {
    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffdcdc
        ) !important;

    color: #c62828 !important;

    box-shadow:
        0 5px 12px rgba(198,40,40,.18) !important;
}


/* Plus */
.store-site .product-detail-wrapper
.quantity-controls .btn-plus,
.store-site .product-detail-wrapper
.quantity-controls #btn-increase {
    background:
        linear-gradient(
            135deg,
            #e4f8ec,
            #c9efd8
        ) !important;

    color: #08783e !important;

    box-shadow:
        0 5px 12px rgba(8,120,62,.19) !important;
}


/* ---------- ADD TO CART ---------- */

.store-site .product-detail-wrapper
#btn-add {
    flex: 1 1 auto !important;

    width: auto !important;

    min-width: 0 !important;
    min-height: 45px !important;

    padding: 9px 14px !important;

    background:
        linear-gradient(
            135deg,
            #1557a6,
            #2478d5
        ) !important;

    color: #fff !important;

    border: 2px solid #124c91 !important;
    border-radius: 12px !important;

    box-shadow:
        0 6px 14px rgba(21,87,166,.22) !important;

    font-size: .78rem !important;
    font-weight: 900 !important;

    cursor: pointer !important;

    white-space: nowrap !important;
}


.store-site .product-detail-wrapper
#btn-add:hover:not(:disabled) {
    transform: translateY(-2px) !important;

    filter: brightness(1.06) !important;

    box-shadow:
        0 9px 18px rgba(21,87,166,.30) !important;
}


/* ---------- FAVORITE ---------- */

.store-site .product-detail-wrapper
#btn-favorite {
    flex: 0 0 auto !important;

    min-width: 45px !important;
    min-height: 45px !important;

    border-radius: 12px !important;
}


/* ============================================================
   FULL DESCRIPTION / REVIEWS
   این دو خارج از product-detail-wrapper هستند
   ============================================================ */

.store-site .product-full-description,
.store-site .product-reviews {
    width: min(1120px, calc(100% - 28px)) !important;

    margin: 0 auto 18px !important;

    padding: 18px !important;

    background:
        linear-gradient(
            145deg,
            #eef2f6,
            #e1e7ee
        ) !important;

    border: 3px solid #5f7690 !important;
    border-radius: 18px !important;

    box-shadow:
        0 8px 20px rgba(30,45,62,.12) !important;

    box-sizing: border-box !important;
}


/* دکمه ارسال نظر — selector درست */
.store-site .product-reviews #review-submit,
.store-site #review-submit {
    min-height: 42px !important;

    padding: 8px 18px !important;

    background:
        linear-gradient(
            135deg,
            #1557a6,
            #2478d5
        ) !important;

    color: #fff !important;

    border: 2px solid #124c91 !important;
    border-radius: 11px !important;

    font-weight: 900 !important;

    cursor: pointer !important;
}


/* ============================================================
   SIMILAR PRODUCTS
   ============================================================ */

.store-site .similar-products {
    width: min(1120px, calc(100% - 28px)) !important;

    margin: 0 auto 22px !important;
}


.store-site .similar-products .store-product-card {
    border-radius: 16px !important;
    overflow: hidden !important;
}


/* ============================================================
   RESPONSIVE — هماهنگ با کارت اصلی
   ============================================================ */

@media (max-width: 700px) {

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 100% !important;
        max-width: 100% !important;

        height: 160px !important;
        min-height: 160px !important;

        flex-basis: 160px !important;
    }

}


@media (max-width: 480px) {

    .store-site .product-detail-wrapper {
        width: calc(100% - 20px) !important;

        grid-template-columns: 1fr !important;

        gap: 12px !important;

        padding: 10px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section {
        width: 100% !important;
        max-width: 100% !important;

        height: 160px !important;
        min-height: 160px !important;

        flex-basis: 160px !important;
    }

    .store-site .product-detail-wrapper
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .store-site .product-detail-wrapper
    .cart-actions {
        flex-wrap: wrap !important;
    }

    .store-site .product-detail-wrapper
    .quantity-controls {
        flex: 1 1 132px !important;
    }

    .store-site .product-detail-wrapper
    #btn-add {
        flex: 1 1 150px !important;
    }

}


@media (max-width: 390px) {

    .store-site .product-detail-wrapper
    .product-image-section {
        height: 175px !important;
        min-height: 175px !important;

        flex-basis: 175px !important;
    }

}


/* ============================================================
   END — UNIFIED PRODUCT DETAIL
   ============================================================ */


/* ============================================================
   PRODUCT DETAIL — TWO COLUMN FINAL LAYOUT
   ============================================================ */

.store-site .product-detail-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 22px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}


/* RIGHT COLUMN */

.store-site .product-detail-wrapper .product-image-section {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    padding: 14px !important;
    box-sizing: border-box !important;

    overflow: visible !important;
}


/* IMAGE */

.store-site .product-detail-wrapper
.product-image-section > #productImage,
.store-site .product-detail-wrapper
.product-image-section > img {
    position: relative !important;

    width: 100% !important;
    height: 300px !important;

    max-width: 100% !important;
    max-height: 300px !important;

    margin: 0 !important;

    object-fit: contain !important;

    flex: 0 0 300px !important;

    transform: none !important;
}


/* PRODUCT TITLE */

.store-site .product-detail-wrapper
.product-image-section .product-title-image {
    position: static !important;

    width: 100% !important;
    max-width: none !important;

    min-height: 58px !important;

    margin: 10px 0 0 !important;
    padding: 8px 10px !important;

    box-sizing: border-box !important;

    text-align: right !important;

    font-size: 1.08rem !important;
    font-weight: 950 !important;
    line-height: 1.7 !important;

    color: #153f6a !important;
}


/* STARS UNDER TITLE */

.store-site .product-detail-wrapper
.product-image-section .product-stars {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 10px !important;

    box-sizing: border-box !important;

    direction: rtl !important;
}


/* STAR SIZE */

.store-site .product-detail-wrapper
.product-image-section .product-stars .star {
    font-size: 1.65rem !important;
}


/* RATING SUMMARY */

.store-site .product-detail-wrapper
.product-image-section .rating-summary {
    margin-right: 7px !important;

    color: #596b7d !important;

    font-size: .86rem !important;
    font-weight: 800 !important;
}


/* PRICE UNDER STARS */

.store-site .product-detail-wrapper
.product-image-section .product-price {
    width: 100% !important;

    margin: 5px 0 0 !important;

    box-sizing: border-box !important;

    text-align: right !important;
}


/* LEFT COLUMN */

.store-site .product-detail-wrapper .product-info-section {
    grid-column: 2 !important;

    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 8px !important;

    box-sizing: border-box !important;
}


/* PRODUCT INFORMATION */

.store-site .product-detail-wrapper .info-grid {
    width: 100% !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;
}


/* SHORT DESCRIPTION */

.store-site .product-detail-wrapper
.product-description {
    width: 100% !important;

    min-height: 125px !important;

    box-sizing: border-box !important;

    margin: 12px 0 !important;

    padding: 14px !important;

    line-height: 2 !important;

    text-align: right !important;
}


/* STOCK */

.store-site .product-detail-wrapper
.product-stock {
    width: 100% !important;

    margin: 8px 0 !important;
}


/* ACTIONS */

.store-site .product-detail-wrapper
.cart-actions {
    width: 100% !important;

    margin-top: 10px !important;
}


/* MOBILE */

@media (max-width: 768px) {

    .store-site .product-detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 10px !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section,
    .store-site .product-detail-wrapper
    .product-info-section {
        grid-column: 1 !important;
    }

    .store-site .product-detail-wrapper
    .product-image-section > #productImage,
    .store-site .product-detail-wrapper
    .product-image-section > img {
        height: 260px !important;
        max-height: 260px !important;
        flex-basis: 260px !important;
    }

}


/* PRODUCT DETAIL — CENTER PRODUCT TITLE */
.store-site .product-detail-wrapper
.product-image-section .product-title-image {
    text-align: center !important;
}

/* PRODUCT DETAIL — LARGER PRICE FONT */
.store-site .product-detail-wrapper
.product-image-section .product-price .price,
.store-site .product-detail-wrapper
.product-image-section .product-price .price-discounted {
    font-size: 1.35rem !important;
    font-weight: 950 !important;
}

.store-site .product-detail-wrapper
.product-image-section .product-price .price-original {
    font-size: 1rem !important;
}


/* PRODUCT DETAIL — ALIGN STOCK AND ACTIONS WITH RATING/PRICE */

.store-site .product-detail-wrapper .product-info-section {
    display: flex !important;
    flex-direction: column !important;
}

.store-site .product-detail-wrapper .product-info-section .product-stock {
    margin-top: auto !important;
}

.store-site .product-detail-wrapper .product-info-section .cart-actions {
    margin-top: 10px !important;
}


/* PRODUCT DETAIL — REMOVE PRICE/STOCK BORDERS */

.store-site .product-detail-wrapper .product-image-section .product-price {
    border: none !important;
}

.store-site .product-detail-wrapper .product-info-section .product-stock {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* PRODUCT DETAIL — REMOVE ALL STOCK BORDERS */

.store-site .product-detail-wrapper .product-stock,
.store-site .product-detail-wrapper .product-stock .in-stock,
.store-site .product-detail-wrapper .product-stock .out-of-stock {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* PRODUCT DETAIL — FILL AVAILABLE DESCRIPTION SPACE */

.store-site .product-detail-wrapper .product-info-section {
    display: flex !important;
    flex-direction: column !important;
}

.store-site .product-detail-wrapper .product-description {
    flex: 1 1 auto !important;
    min-height: 125px !important;
    margin-bottom: 12px !important;
}


/* PRODUCT DETAIL — FAVORITE BUTTON */

.store-site .product-detail-wrapper #btn-favorite {
    border: 1px solid #d6a6b0 !important;
    border-radius: 10px !important;
    background: #fff7f8 !important;
    color: #8a3d4d !important;
    font-weight: 800 !important;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

.store-site .product-detail-wrapper #btn-favorite:hover:not(:disabled) {
    background: #fff0f3 !important;
    color: #a52f48 !important;
    border-color: #c97889 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(165, 47, 72, .16) !important;
}

.store-site .product-detail-wrapper #btn-favorite:active:not(:disabled) {
    transform: translateY(0) !important;
}


/* STORE HOME — فاصله محتوا از ناوبری */
.store-site[data-page="store"] {
    padding-top: 110px !important;
}



/* ============================================================
   FINAL STORE NAVBAR HEIGHT — ALL STORE PAGES
   فقط کاهش ارتفاع Navbar؛ بدون تغییر رنگ و ساختار
   ============================================================ */

.store-site .fixed-navbar .top-row {
    min-height: 62px !important;
    height: 62px !important;
    padding: 7px 24px !important;
}

.store-site #systemNavigationLogo {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    padding: 4px !important;
    border-radius: 13px !important;
}

.store-site .fixed-navbar .bottom-row {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 20px !important;
}

.store-site .store-main-link {
    min-height: 38px !important;
    padding: 6px 13px !important;
}

.store-site #user-display {
    min-height: 38px !important;
    padding: 6px 13px !important;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .store-site .fixed-navbar .top-row {
        min-height: 58px !important;
        height: 58px !important;
        padding: 7px 15px !important;
    }

    .store-site #systemNavigationLogo {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    .store-site .fixed-navbar .bottom-row {
        min-height: 45px !important;
        height: 45px !important;
        padding: 0 12px !important;
    }

    .store-site .store-main-link {
        min-height: 36px !important;
        padding: 5px 10px !important;
    }

}


@media (max-width: 600px) {

    .store-site .fixed-navbar .top-row {
        min-height: 54px !important;
        height: 54px !important;
        padding: 6px 10px !important;
    }

    .store-site #systemNavigationLogo {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    .store-site .fixed-navbar .bottom-row {
        min-height: 43px !important;
        height: 43px !important;
        padding: 0 8px !important;
    }

    .store-site .store-main-link {
        min-height: 34px !important;
        padding: 5px 8px !important;
        border-radius: 9px !important;
    }

    .store-site #user-display {
        min-height: 34px !important;
        padding: 5px 9px !important;
    }

}


/* ============================================================
   FESTIVAL PAGE — SPACING & COMPACT HERO
   ============================================================ */

/* فاصله محتوا از Navbar */
.store-site[data-page="festival"] {
    padding-top: 105px !important;
}

/* بنر بالای جشنواره جمع‌وجورتر */
.store-site[data-page="festival"] #festival-banner {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding: 18px 20px !important;
}

/* عنوان */
.store-site[data-page="festival"] #festival-banner h1 {
    margin: 4px 0 !important;
    font-size: 2.2rem !important;
}

/* توضیحات */
.store-site[data-page="festival"] #festival-banner .subtitle {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    font-size: 1.15rem !important;
}

/* تخفیف */
.store-site[data-page="festival"] #festival-banner .discount {
    margin-top: 8px !important;
    padding: 7px 20px !important;
    font-size: 1.5rem !important;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .store-site[data-page="festival"] {
        padding-top: 98px !important;
    }

    .store-site[data-page="festival"] #festival-banner {
        margin-top: 14px !important;
        margin-bottom: 14px !important;
        padding: 14px 14px !important;
    }

    .store-site[data-page="festival"] #festival-banner h1 {
        font-size: 1.8rem !important;
    }

    .store-site[data-page="festival"] #festival-banner .subtitle {
        font-size: 1rem !important;
    }

    .store-site[data-page="festival"] #festival-banner .discount {
        font-size: 1.25rem !important;
        padding: 6px 16px !important;
    }

}


/* ============================================================
   STORE HOME — PREMIUM SEARCH & FILTER BAR
   ============================================================ */

.store-site .store-filters {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 24px !important;
    padding: 12px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    gap: 10px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.96),
            rgba(248,250,252,.96)
        ) !important;

    border: 1px solid rgba(15,23,42,.07) !important;
    border-radius: 18px !important;

    box-shadow:
        0 10px 30px rgba(15,23,42,.07),
        0 2px 8px rgba(15,23,42,.04) !important;

    box-sizing: border-box;
}


/* =========================
   SEARCH
   ========================= */

.store-site .store-filter-search {
    position: relative;
    min-width: 0;
}

.store-site .store-filter-search input {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    box-sizing: border-box !important;

    padding:
        0 46px 0 16px !important;

    border:
        1px solid rgba(15,23,42,.09) !important;

    border-radius: 13px !important;

    background: #fff !important;

    color: #1f2937 !important;

    font-family: inherit !important;
    font-size: .95rem !important;

    outline: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}

.store-site .store-filter-search input::placeholder {
    color: #9ca3af !important;
}

.store-site .store-filter-search input:focus {
    border-color: rgba(123,31,162,.45) !important;

    box-shadow:
        0 0 0 4px rgba(123,31,162,.08) !important;

    background: #fff !important;
}

.store-site .store-filter-icon {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b1fa2;

    font-size: 23px;
    font-weight: 700;

    pointer-events: none;

    z-index: 2;
}


/* =========================
   FILTER BUTTON
   ========================= */

.store-site .store-advanced-filter-btn {
    height: 48px !important;
    min-height: 48px !important;

    border: none !important;
    border-radius: 13px !important;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 16px !important;

    font-family: inherit !important;
    font-size: .92rem !important;
    font-weight: 700 !important;

    color: #fff !important;

    background:
        linear-gradient(
            135deg,
            #7b1fa2,
            #5e2390
        ) !important;

    box-shadow:
        0 6px 16px rgba(123,31,162,.22) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease !important;
}

.store-site .store-advanced-filter-btn:hover {
    transform: translateY(-1px);

    filter: brightness(1.04);

    box-shadow:
        0 9px 20px rgba(123,31,162,.28) !important;
}

.store-site .store-advanced-filter-btn:active {
    transform: translateY(0);
}

.store-site .store-advanced-filter-btn > span:first-child {
    font-size: 17px;
}

.store-site .store-filter-chevron {
    font-size: 17px;
    line-height: 1;

    transition:
        transform .2s ease;
}

.store-site .store-advanced-filter-btn[aria-expanded="true"]
.store-filter-chevron {
    transform: rotate(180deg);
}


/* =========================
   ADVANCED FILTER PANEL
   ========================= */

.store-site .store-advanced-filter-panel {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;

    padding: 15px;

    margin-top: 2px;

    background:
        rgba(248,250,252,.96);

    border:
        1px solid rgba(15,23,42,.07);

    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8);

    animation:
        storeFilterOpen .22s ease both;
}

.store-site .store-advanced-filter-panel[hidden] {
    display: none !important;
}

@keyframes storeFilterOpen {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   FILTER FIELDS
   ========================= */

.store-site .store-filter-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.store-site .store-filter-field label {
    padding: 0 4px;

    color: #475569;

    font-size: .78rem;
    font-weight: 700;
}

.store-site .store-filter-field select,
.store-site .store-filter-field input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    box-sizing: border-box !important;

    border:
        1px solid rgba(15,23,42,.10) !important;

    border-radius: 11px !important;

    background: #fff !important;

    color: #334155 !important;

    padding: 0 12px !important;

    font-family: inherit !important;
    font-size: .88rem !important;

    outline: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.store-site .store-filter-field select:focus,
.store-site .store-filter-field input:focus {
    border-color: rgba(123,31,162,.42) !important;

    box-shadow:
        0 0 0 3px rgba(123,31,162,.07) !important;
}


/* =========================
   CLEAR BUTTON
   ========================= */

.store-site .store-filter-actions {
    display: flex;
    align-items: flex-end;
}

.store-site .store-clear-filter {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    border: 1px solid rgba(220,38,38,.16) !important;

    border-radius: 11px !important;

    cursor: pointer;

    background:
        rgba(254,242,242,.9) !important;

    color: #dc2626 !important;

    font-family: inherit !important;
    font-size: .85rem !important;
    font-weight: 700 !important;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease !important;
}

.store-site .store-clear-filter:hover {
    background: #dc2626 !important;
    color: #fff !important;

    transform: translateY(-1px);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .store-site .store-filters {
        grid-template-columns: minmax(0, 1fr) 135px !important;
    }

    .store-site .store-advanced-filter-panel {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .store-site .store-filters {
        margin-bottom: 16px !important;
        padding: 9px !important;

        grid-template-columns:
            minmax(0, 1fr) 105px !important;

        gap: 8px !important;

        border-radius: 15px !important;
    }

    .store-site .store-filter-search input {
        height: 44px !important;
        min-height: 44px !important;

        padding-right: 42px !important;

        font-size: .86rem !important;
    }

    .store-site .store-advanced-filter-btn {
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 10px !important;

        font-size: .82rem !important;
    }

    .store-site .store-filter-icon {
        right: 12px;
        font-size: 21px;
    }

    .store-site .store-advanced-filter-panel {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;

        padding: 11px;

        border-radius: 12px;
    }

    .store-site .store-filter-field label {
        font-size: .73rem;
    }

    .store-site .store-filter-field select,
    .store-site .store-filter-field input,
    .store-site .store-clear-filter {
        height: 42px !important;
        min-height: 42px !important;

        font-size: .82rem !important;
    }

    .store-site .store-filter-actions {
        grid-column: 1 / -1;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .store-site .store-filters {
        grid-template-columns:
            minmax(0, 1fr) 94px !important;
    }

    .store-site .store-advanced-filter-panel {
        grid-template-columns: 1fr;
    }

    .store-site .store-filter-actions {
        grid-column: auto;
    }

}


/* ============================================================
   STORE HOME — COMPACT CLOSED FILTER BAR
   ============================================================ */

.store-site .store-filters {
    max-width: 1180px !important;
    margin: 0 auto 16px !important;
    padding: 6px !important;

    grid-template-columns: minmax(0, 1fr) 118px !important;
    gap: 6px !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}

.store-site .store-filter-search input {
    height: 42px !important;
    min-height: 42px !important;

    border-radius: 11px !important;

    border: 1px solid rgba(15,23,42,.08) !important;

    box-shadow:
        0 3px 12px rgba(15,23,42,.045) !important;
}

.store-site .store-advanced-filter-btn {
    height: 42px !important;
    min-height: 42px !important;

    border-radius: 11px !important;

    padding: 0 12px !important;

    box-shadow:
        0 4px 12px rgba(123,31,162,.17) !important;
}

.store-site .store-filter-icon {
    right: 13px;
    font-size: 21px;
}


/* وقتی فیلتر باز است، خود نوار دوباره حالت کارت بگیرد */
.store-site .store-filters:has(
    .store-advanced-filter-panel:not([hidden])
) {
    padding: 8px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.96),
            rgba(248,250,252,.96)
        ) !important;

    border:
        1px solid rgba(15,23,42,.07) !important;

    border-radius: 15px !important;

    box-shadow:
        0 8px 24px rgba(15,23,42,.055) !important;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .store-site .store-filters {
        max-width: none !important;

        margin: 0 0 12px !important;
        padding: 5px !important;

        grid-template-columns:
            minmax(0, 1fr) 98px !important;

        gap: 5px !important;
    }

    .store-site .store-filter-search input {
        height: 40px !important;
        min-height: 40px !important;

        border-radius: 10px !important;
    }

    .store-site .store-advanced-filter-btn {
        height: 40px !important;
        min-height: 40px !important;

        border-radius: 10px !important;

        padding: 0 9px !important;

        font-size: .80rem !important;
    }

    .store-site .store-filter-icon {
        right: 11px;
        font-size: 20px;
    }

}


/* ============================================================
   STORE HOME — REFINED SEARCH / FILTER BAR
   ============================================================ */

/* فاصله امن محتوای اصلی از Navbar */
.store-site:not([data-page="festival"]) {
    padding-top: 128px !important;
}


/* =========================
   COMPACT BAR
   ========================= */

.store-site .store-filters {
    max-width: 980px !important;
    margin: 0 auto 18px !important;
    padding: 5px !important;

    grid-template-columns:
        minmax(0, 1fr) 125px !important;

    gap: 8px !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* =========================
   SEARCH — PREMIUM
   ========================= */

.store-site .store-filter-search {
    position: relative;
    min-width: 0;
}

.store-site .store-filter-search input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    padding:
        0 45px 0 16px !important;

    border: 1px solid rgba(123,31,162,.12) !important;
    border-radius: 12px !important;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #faf9fc
        ) !important;

    color: #263238 !important;

    font-size: .90rem !important;
    font-weight: 500 !important;

    box-shadow:
        0 4px 14px rgba(15,23,42,.055),
        inset 0 1px 0 rgba(255,255,255,.95) !important;

    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease !important;
}

.store-site .store-filter-search input:hover {
    border-color:
        rgba(123,31,162,.20) !important;

    box-shadow:
        0 5px 17px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.store-site .store-filter-search input:focus {
    border-color:
        rgba(123,31,162,.42) !important;

    box-shadow:
        0 0 0 3px rgba(123,31,162,.07),
        0 6px 18px rgba(15,23,42,.07) !important;

    transform: translateY(-1px);
}

.store-site .store-filter-search input::placeholder {
    color: #a0a5ad !important;
    font-weight: 400 !important;
}


/* آیکون جستجو */
.store-site .store-filter-icon {
    right: 14px !important;

    width: 22px !important;
    height: 22px !important;

    color: #7b1fa2 !important;

    font-size: 21px !important;
    opacity: .88;

    transition:
        transform .22s ease,
        opacity .22s ease !important;
}

.store-site .store-filter-search:focus-within
.store-filter-icon {
    transform:
        translateY(-50%) scale(1.08);

    opacity: 1;
}


/* =========================
   FILTER BUTTON — PREMIUM
   ========================= */

.store-site .store-advanced-filter-btn {
    position: relative;

    height: 44px !important;
    min-height: 44px !important;

    padding: 0 13px !important;

    border: 1px solid
        rgba(123,31,162,.10) !important;

    border-radius: 12px !important;

    background:
        linear-gradient(
            135deg,
            #8125a8 0%,
            #6d2097 48%,
            #592080 100%
        ) !important;

    color: #fff !important;

    font-size: .86rem !important;
    font-weight: 700 !important;

    letter-spacing: -.1px;

    box-shadow:
        0 5px 14px rgba(109,32,151,.20),
        inset 0 1px 0 rgba(255,255,255,.16) !important;

    overflow: hidden;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease !important;
}

/* درخشش ظریف روی دکمه */
.store-site .store-advanced-filter-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -70%;

    width: 45%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.16),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left .55s ease;

    pointer-events: none;
}

.store-site .store-advanced-filter-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.04);

    box-shadow:
        0 8px 20px rgba(109,32,151,.27),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.store-site .store-advanced-filter-btn:hover::before {
    left: 125%;
}

.store-site .store-advanced-filter-btn:active {
    transform: translateY(0);

    box-shadow:
        0 4px 10px rgba(109,32,151,.20) !important;
}

.store-site .store-advanced-filter-btn > span:first-child {
    font-size: 16px !important;
}

.store-site .store-filter-chevron {
    font-size: 16px !important;
    opacity: .85;
}


/* =========================
   OPEN STATE
   ========================= */

.store-site .store-filters:has(
    .store-advanced-filter-panel:not([hidden])
) {
    max-width: 1180px !important;

    padding: 8px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.97),
            rgba(248,250,252,.97)
        ) !important;

    border:
        1px solid rgba(15,23,42,.07) !important;

    border-radius: 15px !important;

    box-shadow:
        0 8px 24px rgba(15,23,42,.055) !important;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .store-site:not([data-page="festival"]) {
        padding-top: 112px !important;
    }

    .store-site .store-filters {
        max-width: none !important;

        margin: 0 0 13px !important;
        padding: 4px !important;

        grid-template-columns:
            minmax(0, 1fr) 96px !important;

        gap: 6px !important;
    }

    .store-site .store-filter-search input {
        height: 41px !important;
        min-height: 41px !important;

        padding-right: 41px !important;

        border-radius: 10px !important;

        font-size: .83rem !important;
    }

    .store-site .store-advanced-filter-btn {
        height: 41px !important;
        min-height: 41px !important;

        padding: 0 8px !important;

        border-radius: 10px !important;

        font-size: .78rem !important;
    }

    .store-site .store-filter-icon {
        right: 11px !important;
        font-size: 19px !important;
    }

}


/* فاصله کمتر محتوای فروشگاه از Navbar */
.store-site:not([data-page="festival"]) {
    padding-top: 108px !important;
}

@media (max-width: 600px) {
    .store-site:not([data-page="festival"]) {
        padding-top: 96px !important;
    }
}


/* کاهش نهایی فاصله بالای فروشگاه */
.store-site:not([data-page="festival"]) {
    padding-top: 100px !important;
}

@media (max-width: 600px) {
    .store-site:not([data-page="festival"]) {
        padding-top: 90px !important;
    }
}


/* ============================================================
   STORE HOME — PRODUCT CARD STARS
   هماهنگ با ستاره صفحه جزئیات محصول
   ============================================================ */

.store-site .store-product-card .product-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    margin: 7px 0 !important;

    direction: rtl !important;
}

.store-site .store-product-card .product-rating svg {
    width: 1.65rem !important;
    height: 1.65rem !important;

    display: block !important;

    flex: 0 0 auto !important;

    transition:
        transform .15s ease,
        filter .15s ease !important;
}

/* رنگ ستاره‌های پر */
.store-site .store-product-card .product-rating svg path {
    fill: #f3a500 !important;
}

/* ستاره‌های خالی */
.store-site .store-product-card .product-rating svg[fill="#E0E0E0"] path {
    fill: #b8c1ca !important;
}

/* حالت Hover */
.store-site .store-product-card .product-rating svg:hover {
    transform: scale(1.08) !important;
}

/* جلوگیری از کش آمدن ستاره‌ها در کارت */
.store-site .store-product-card .product-rating svg {
    max-width: 1.65rem !important;
    max-height: 1.65rem !important;
}

@media (max-width: 600px) {

    .store-site .store-product-card .product-rating {
        gap: 2px !important;
        margin: 6px 0 !important;
    }

    .store-site .store-product-card .product-rating svg {
        width: 1.35rem !important;
        height: 1.35rem !important;

        max-width: 1.35rem !important;
        max-height: 1.35rem !important;
    }

}


/* ============================================================
   STORE HOME — SAME STARS AS PRODUCT DETAIL
   ============================================================ */

.store-site .store-product-card .product-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    direction: rtl !important;

    gap: 3px !important;

    margin: 7px 0 !important;
}

.store-site .store-product-card .product-rating .star {
    display: inline-block !important;

    width: auto !important;
    height: auto !important;

    font-size: 1.65rem !important;
    line-height: 1 !important;

    color: #b8c1ca !important;

    cursor: default !important;

    transition:
        transform .15s ease,
        color .15s ease !important;
}

.store-site .store-product-card .product-rating .star.selected {
    color: #f3a500 !important;
}

.store-site .store-product-card .product-rating .star.half {
    color: #f3a500 !important;
    opacity: .65 !important;
}

.store-site .store-product-card .product-rating .star:hover {
    color: #e58b00 !important;
    transform: scale(1.08) !important;
}

@media (max-width: 600px) {

    .store-site .store-product-card .product-rating {
        gap: 2px !important;
        margin: 6px 0 !important;
    }

    .store-site .store-product-card .product-rating .star {
        font-size: 1.35rem !important;
    }

}


/* ============================================================
   PRODUCT PAGE — REDUCE TOP SPACE
   ============================================================ */

.store-site[data-page="product"] {
    padding-top: 82px !important;
}

@media (max-width: 600px) {
    .store-site[data-page="product"] {
        padding-top: 76px !important;
    }
}


/* ============================================================
   PRODUCT PAGE — FINAL TOP SPACING
   کاهش فاصله محتوای محصول از Navbar
   ============================================================ */

.store-site[data-page="product"] #product-container {
    padding-top: 35px !important;
}

@media (max-width: 800px) {
    .store-site[data-page="product"] #product-container {
        padding-top: 30px !important;
    }
}

@media (max-width: 480px) {
    .store-site[data-page="product"] #product-container {
        padding-top: 26px !important;
    }
}


/* =========================================================
   CART PRODUCT IMAGE
   ========================================================= */

.store-site .cart-product-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 240px;
    direction: rtl;
}

.store-site .cart-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f8fa;
    border: 1px solid rgba(0, 0, 0, 0.07);
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.store-site .cart-product-image-link:hover {
    transform: translateY(-2px);
    border-color: rgba(123, 31, 162, 0.35);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.store-site .cart-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.store-site .cart-product-title-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color .18s ease;
}

.store-site .cart-product-title-link:hover {
    color: #7b1fa2;
}

.store-site .cart-product-info .cart-product-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.7;
}

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

    .store-site .cart-product-info {
        min-width: 190px;
        gap: 8px;
    }

    .store-site .cart-product-image-link {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }

    .store-site .cart-product-image {
        padding: 4px;
    }

}


/* ============================================================
   CART PAGE — PREMIUM REDESIGN
   فقط مخصوص صفحه سبد خرید
============================================================ */

/* ---------- PAGE ---------- */

.store-site[data-page="cart"] .cart-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 60px !important;
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */

.store-site[data-page="cart"] .cart-header {
    text-align: center;
    margin: 0 0 28px;
    padding: 26px 24px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.98),
        rgba(248,250,252,.96)
    );
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(15,23,42,.06);
}

.store-site[data-page="cart"] .cart-header h1 {
    margin: 0 0 7px;
    font-size: 2rem;
    font-weight: 900;
    color: #182230;
    letter-spacing: -.4px;
}

.store-site[data-page="cart"] .cart-header p {
    margin: 0;
    color: #718096;
    font-size: .95rem;
}

/* ---------- CART CONTAINER ---------- */

.store-site[data-page="cart"] #cartContainer {
    width: 100%;
}

/* ---------- TABLE WRAPPER ---------- */

.store-site[data-page="cart"] #cartContainer > div {
    width: 100%;
}

/* ---------- CART TABLE ---------- */

.store-site[data-page="cart"] #cartContainer table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

.store-site[data-page="cart"] #cartContainer thead th {
    background: #f4f6f8 !important;
    color: #64748b !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    padding: 13px 15px !important;
    border: 0 !important;
    white-space: nowrap;
}

.store-site[data-page="cart"] #cartContainer thead th:first-child {
    border-radius: 0 11px 11px 0 !important;
}

.store-site[data-page="cart"] #cartContainer thead th:last-child {
    border-radius: 11px 0 0 11px !important;
}

/* ---------- PRODUCT ROW ---------- */

.store-site[data-page="cart"] #cartContainer tbody tr {
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(15,23,42,.055);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.store-site[data-page="cart"] #cartContainer tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,23,42,.09);
}

.store-site[data-page="cart"] #cartContainer tbody td {
    padding: 16px 14px !important;
    border-top: 1px solid rgba(15,23,42,.06) !important;
    border-bottom: 1px solid rgba(15,23,42,.06) !important;
    background: #fff !important;
    vertical-align: middle !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:first-child {
    border-right: 1px solid rgba(15,23,42,.06) !important;
    border-radius: 0 14px 14px 0 !important;
    color: #94a3b8;
    font-weight: 800;
}

.store-site[data-page="cart"] #cartContainer tbody td:last-child {
    border-left: 1px solid rgba(15,23,42,.06) !important;
    border-radius: 14px 0 0 14px !important;
}

/* ---------- PRODUCT INFO ---------- */

.store-site[data-page="cart"] .cart-product-info {
    min-width: 280px !important;
    gap: 14px !important;
}

.store-site[data-page="cart"] .cart-product-image-link {
    flex-basis: 82px !important;
    width: 82px !important;
    height: 82px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(15,23,42,.07) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.store-site[data-page="cart"] .cart-product-image-link:hover {
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(123,31,162,.35) !important;
    box-shadow: 0 8px 20px rgba(123,31,162,.12) !important;
}

.store-site[data-page="cart"] .cart-product-image {
    padding: 6px !important;
}

.store-site[data-page="cart"] .cart-product-info .cart-product-name {
    gap: 5px !important;
}

.store-site[data-page="cart"] .cart-product-title-link {
    color: #202938 !important;
    font-size: .98rem;
    font-weight: 800 !important;
    line-height: 1.7;
}

.store-site[data-page="cart"] .cart-product-title-link:hover {
    color: #7b1fa2 !important;
}

/* ---------- PRICE ---------- */

.store-site[data-page="cart"] #cartContainer td {
    color: #334155;
    font-size: .92rem;
}

.store-site[data-page="cart"] #cartContainer td strong {
    color: #182230;
    font-weight: 900;
}

/* ---------- QUANTITY CONTROLS ---------- */

.store-site[data-page="cart"] #cartContainer button {
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        border-color .16s ease;
}

.store-site[data-page="cart"] #cartContainer button:hover {
    transform: translateY(-1px);
}

/* ---------- SUMMARY ---------- */

.store-site[data-page="cart"] .cart-summary {
    width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
}

.store-site[data-page="cart"] .cart-summary > div {
    background: linear-gradient(
        145deg,
        #ffffff,
        #f8fafc
    ) !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 10px 32px rgba(15,23,42,.07) !important;
}

/* ---------- SUMMARY TEXT ---------- */

.store-site[data-page="cart"] .cart-summary h3 {
    margin: 0 0 18px !important;
    color: #182230 !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

.store-site[data-page="cart"] .cart-summary hr {
    border: 0 !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
    margin: 15px 0 !important;
}

/* ---------- FINAL PRICE ---------- */

.store-site[data-page="cart"] .cart-summary .final-price,
.store-site[data-page="cart"] .cart-summary .total-payable,
.store-site[data-page="cart"] .cart-summary .payable {
    color: #7b1fa2 !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
}

/* ---------- DISCOUNT ---------- */

.store-site[data-page="cart"] .cart-summary .discount,
.store-site[data-page="cart"] .cart-summary .total-discount {
    color: #15945b !important;
    font-weight: 800 !important;
}

/* ---------- CHECKOUT ---------- */

.store-site[data-page="cart"] .cart-actions {
    width: 100%;
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.store-site[data-page="cart"] .checkout-btn {
    min-width: 280px;
    min-height: 52px;
    padding: 0 28px;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(
        135deg,
        #7b1fa2,
        #5e2390
    ) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(123,31,162,.22);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(123,31,162,.28);
    filter: brightness(1.04);
}

.store-site[data-page="cart"] .checkout-btn:active {
    transform: translateY(0);
}

/* ---------- EMPTY CART ---------- */

.store-site[data-page="cart"] .cart-empty-message {
    background: #fff !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 22px !important;
    padding: 55px 25px !important;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.store-site[data-page="cart"] .cart-empty-icon {
    font-size: 3.4rem !important;
    margin-bottom: 14px;
}

.store-site[data-page="cart"] .cart-empty-message h3 {
    margin: 0 0 8px;
    color: #182230;
    font-size: 1.3rem;
}

.store-site[data-page="cart"] .cart-empty-message p {
    color: #718096;
    margin-bottom: 22px;
}

.store-site[data-page="cart"] .continue-shopping-btn,
.store-site[data-page="cart"] .cart-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    background: #7b1fa2;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(123,31,162,.18);
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 700px) {

    .store-site[data-page="cart"] .cart-page {
        padding: 18px 12px 45px !important;
    }

    .store-site[data-page="cart"] .cart-header {
        padding: 20px 15px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .store-site[data-page="cart"] .cart-header h1 {
        font-size: 1.45rem;
    }

    .store-site[data-page="cart"] .cart-header p {
        font-size: .85rem;
    }

    /* تبدیل جدول به کارت */

    .store-site[data-page="cart"] #cartContainer {
        overflow: visible !important;
    }

    .store-site[data-page="cart"] #cartContainer table,
    .store-site[data-page="cart"] #cartContainer thead,
    .store-site[data-page="cart"] #cartContainer tbody,
    .store-site[data-page="cart"] #cartContainer tr,
    .store-site[data-page="cart"] #cartContainer td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .store-site[data-page="cart"] #cartContainer thead {
        display: none !important;
    }

    .store-site[data-page="cart"] #cartContainer table {
        border-spacing: 0 !important;
    }

    .store-site[data-page="cart"] #cartContainer tbody tr {
        margin-bottom: 12px;
        padding: 13px;
        border-radius: 16px !important;
        box-shadow: 0 7px 22px rgba(15,23,42,.07);
    }

    .store-site[data-page="cart"] #cartContainer tbody td {
        border: 0 !important;
        border-radius: 0 !important;
        padding: 7px 2px !important;
        min-height: auto;
    }

    .store-site[data-page="cart"] #cartContainer tbody td:first-child {
        display: none !important;
    }

    .store-site[data-page="cart"] .cart-product-info {
        min-width: 0 !important;
        width: 100%;
        gap: 11px !important;
    }

    .store-site[data-page="cart"] .cart-product-image-link {
        flex-basis: 70px !important;
        width: 70px !important;
        height: 70px !important;
        border-radius: 12px !important;
    }

    .store-site[data-page="cart"] .cart-product-title-link {
        font-size: .9rem;
    }

    .store-site[data-page="cart"] .cart-summary {
        margin-top: 18px;
    }

    .store-site[data-page="cart"] .cart-summary > div {
        padding: 18px !important;
        border-radius: 17px !important;
    }

    .store-site[data-page="cart"] .cart-actions {
        margin-top: 13px;
    }

    .store-site[data-page="cart"] .checkout-btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        border-radius: 13px !important;
    }
}

/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 420px) {

    .store-site[data-page="cart"] .cart-page {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .store-site[data-page="cart"] .cart-product-image-link {
        flex-basis: 62px !important;
        width: 62px !important;
        height: 62px !important;
    }

    .store-site[data-page="cart"] .cart-product-info {
        gap: 9px !important;
    }

    .store-site[data-page="cart"] .cart-summary > div {
        padding: 15px !important;
    }
}


   فروشگاهی / حرفه ای / کارت محور

/* ============================================================
   CART PAGE — LUXURY STYLE
   حفظ کامل چیدمان قبلی
============================================================ */

/* ---------- صفحه ---------- */

.store-site[data-page="cart"] {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(123,31,162,.045),
            transparent 42%
        ),
        #f6f7f9 !important;
}

.store-site[data-page="cart"] .cart-page {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 30px 24px 65px !important;
}


/* ============================================================
   HEADER
============================================================ */

.store-site[data-page="cart"] .cart-header {
    position: relative !important;
    overflow: hidden !important;

    margin-bottom: 26px !important;
    padding: 27px 25px !important;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fcfbfe 55%,
            #f7f5fa 100%
        ) !important;

    border: 1px solid rgba(123,31,162,.15) !important;
    border-radius: 20px !important;

    box-shadow:
        0 12px 32px rgba(25,18,35,.075),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.store-site[data-page="cart"] .cart-header::before {
    content: "" !important;
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    height: 3px !important;

    background:
        linear-gradient(
            90deg,
            #4f176f,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #4f176f
        ) !important;
}

.store-site[data-page="cart"] .cart-header::after {
    content: "" !important;
    position: absolute !important;

    width: 170px !important;
    height: 170px !important;

    left: -75px !important;
    top: -105px !important;

    border-radius: 50% !important;

    border: 1px solid rgba(123,31,162,.06) !important;

    box-shadow:
        0 0 0 22px rgba(123,31,162,.018),
        0 0 0 44px rgba(123,31,162,.012) !important;

    pointer-events: none !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    position: relative !important;
    z-index: 1 !important;

    margin: 0 0 7px !important;

    color: #24202a !important;

    font-size: 1.95rem !important;
    font-weight: 900 !important;

    letter-spacing: -.3px !important;
}

.store-site[data-page="cart"] .cart-header p {
    position: relative !important;
    z-index: 1 !important;

    margin: 0 !important;

    color: #85808d !important;

    font-size: .9rem !important;
}


/* ============================================================
   CART TABLE
============================================================ */

.store-site[data-page="cart"] #cartContainer {
    border: 1px solid rgba(123,31,162,.10) !important;
    border-radius: 20px !important;

    padding: 8px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(249,248,251,.96)
        ) !important;

    box-shadow:
        0 10px 30px rgba(25,18,35,.065),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.store-site[data-page="cart"] #cartContainer > div {
    border-radius: 14px !important;
}


/* ---------- Header جدول ---------- */

.store-site[data-page="cart"] #cartContainer thead th {
    padding: 15px 12px !important;

    background:
        linear-gradient(
            180deg,
            #f9f8fb,
            #f1eff4
        ) !important;

    border-top: 1px solid rgba(123,31,162,.07) !important;
    border-bottom: 1px solid rgba(123,31,162,.10) !important;

    color: #716a78 !important;

    font-size: .76rem !important;
    font-weight: 900 !important;

    letter-spacing: .1px !important;
}

.store-site[data-page="cart"] #cartContainer thead th:first-child {
    border-right: 1px solid rgba(123,31,162,.07) !important;
    border-radius: 0 12px 12px 0 !important;
}

.store-site[data-page="cart"] #cartContainer thead th:last-child {
    border-left: 1px solid rgba(123,31,162,.07) !important;
    border-radius: 12px 0 0 12px !important;
}


/* ============================================================
   ROWS
============================================================ */

.store-site[data-page="cart"] #cartContainer tbody tr {
    background: #ffffff !important;

    box-shadow:
        0 2px 8px rgba(25,18,35,.035) !important;

    transition:
        box-shadow .2s ease,
        transform .2s ease !important;
}

.store-site[data-page="cart"] #cartContainer tbody tr:hover {
    transform: translateY(-1px) !important;

    box-shadow:
        0 8px 20px rgba(25,18,35,.075),
        0 0 0 1px rgba(123,31,162,.08) !important;
}

.store-site[data-page="cart"] #cartContainer tbody td {
    padding: 16px 12px !important;

    background: #ffffff !important;

    border-top: 1px solid rgba(30,25,35,.055) !important;
    border-bottom: 1px solid rgba(30,25,35,.055) !important;

    color: #4d4754 !important;

    vertical-align: middle !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:first-child {
    border-right: 1px solid rgba(30,25,35,.055) !important;
    border-radius: 0 14px 14px 0 !important;

    color: #aaa3b0 !important;

    font-weight: 900 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:last-child {
    border-left: 1px solid rgba(30,25,35,.055) !important;
    border-radius: 14px 0 0 14px !important;
}


/* ============================================================
   PRODUCT IMAGE
============================================================ */

.store-site[data-page="cart"] .cart-product-info {
    gap: 14px !important;
}

.store-site[data-page="cart"] .cart-product-image-link {
    position: relative !important;

    flex: 0 0 78px !important;

    width: 78px !important;
    height: 78px !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f3f7
        ) !important;

    border: 1px solid rgba(123,31,162,.13) !important;

    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.85),
        0 5px 15px rgba(30,25,35,.075) !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.store-site[data-page="cart"] .cart-product-image-link:hover {
    transform: translateY(-2px) !important;

    border-color: rgba(123,31,162,.30) !important;

    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.9),
        0 9px 22px rgba(123,31,162,.14) !important;
}

.store-site[data-page="cart"] .cart-product-image {
    padding: 6px !important;
}


/* ============================================================
   PRODUCT TITLE
============================================================ */

.store-site[data-page="cart"] .cart-product-title-link {
    color: #29242e !important;

    font-size: .94rem !important;
    font-weight: 900 !important;

    line-height: 1.8 !important;

    text-decoration: none !important;

    transition: color .18s ease !important;
}

.store-site[data-page="cart"] .cart-product-title-link:hover {
    color: #7b1fa2 !important;
}

.store-site[data-page="cart"] .out-of-stock {
    padding: 4px 10px !important;

    border: 1px solid rgba(214,69,69,.16) !important;
    border-radius: 999px !important;

    background: #fff8f8 !important;

    color: #cf4747 !important;

    font-size: .68rem !important;
    font-weight: 900 !important;
}


/* ============================================================
   QUANTITY
============================================================ */

.store-site[data-page="cart"] .quantity-control {
    display: inline-flex !important;
    align-items: center !important;

    min-height: 42px !important;

    padding: 3px !important;
    gap: 3px !important;

    border: 1px solid rgba(123,31,162,.13) !important;
    border-radius: 12px !important;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f7f5f9
        ) !important;

    box-shadow:
        inset 0 1px 2px rgba(20,15,25,.035) !important;
}

.store-site[data-page="cart"] .quantity-control button {
    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;

    border: 1px solid transparent !important;
    border-radius: 9px !important;

    background: transparent !important;

    color: #6a247f !important;

    font-size: 1.2rem !important;
    font-weight: 900 !important;

    transition:
        background .16s ease,
        color .16s ease,
        border-color .16s ease,
        transform .16s ease !important;
}

.store-site[data-page="cart"] .quantity-control button:hover:not(:disabled) {
    transform: translateY(-1px) !important;

    border-color: rgba(123,31,162,.16) !important;

    background:
        linear-gradient(
            135deg,
            #7b1fa2,
            #5e2390
        ) !important;

    color: #ffffff !important;
}

.store-site[data-page="cart"] .quantity-control button:disabled {
    opacity: .30 !important;
}

.store-site[data-page="cart"] .qtyDisplay {
    min-width: 31px !important;

    color: #28232c !important;

    font-size: .9rem !important;
    font-weight: 900 !important;
}


/* ============================================================
   PRICE
============================================================ */

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(4) {
    color: #696271 !important;
    font-weight: 700 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(5) {
    color: #3f3945 !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(6) {
    color: #168858 !important;
    font-weight: 900 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(7) {
    color: #77717d !important;
    font-weight: 700 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(8) {
    color: #722091 !important;

    font-size: .95rem !important;
    font-weight: 950 !important;
}


/* ============================================================
   REMOVE
============================================================ */

.store-site[data-page="cart"] .removeBtn {
    position: relative !important;

    min-width: 64px !important;
    height: 36px !important;

    padding: 0 13px !important;

    border: 1px solid rgba(202,67,67,.20) !important;
    border-radius: 10px !important;

    background:
        linear-gradient(
            180deg,
            #fffafa,
            #fff5f5
        ) !important;

    color: #c84b4b !important;

    font-size: .74rem !important;
    font-weight: 900 !important;

    cursor: pointer !important;

    transition:
        all .18s ease !important;
}

.store-site[data-page="cart"] .removeBtn:hover {
    transform: translateY(-2px) !important;

    background:
        linear-gradient(
            135deg,
            #d85858,
            #bd3f3f
        ) !important;

    border-color: #c84b4b !important;

    color: #ffffff !important;

    box-shadow:
        0 7px 15px rgba(200,75,75,.20) !important;
}


/* ============================================================
   SUMMARY
============================================================ */

.store-site[data-page="cart"] .cart-summary {
    margin-top: 22px !important;
}

.store-site[data-page="cart"] .cart-summary-box {
    position: relative !important;
    overflow: hidden !important;

    padding: 23px 25px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf9fc 100%
        ) !important;

    border: 1px solid rgba(123,31,162,.15) !important;
    border-radius: 20px !important;

    box-shadow:
        0 10px 28px rgba(25,18,35,.07),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.store-site[data-page="cart"] .cart-summary-box::before {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    height: 3px !important;

    background:
        linear-gradient(
            90deg,
            #5e2390,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #5e2390
        ) !important;
}

.store-site[data-page="cart"] .summary-row {
    padding: 10px 0 !important;

    color: #77707e !important;

    font-size: .84rem !important;
}

.store-site[data-page="cart"] .summary-row strong {
    color: #39323f !important;

    font-size: .87rem !important;
    font-weight: 900 !important;
}

.store-site[data-page="cart"] .summary-row:nth-child(2) strong {
    color: #168858 !important;
}

.store-site[data-page="cart"] .summary-divider {
    height: 1px !important;

    margin: 9px 0 !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(123,31,162,.18),
            transparent
        ) !important;
}


/* ---------- Final total ---------- */

.store-site[data-page="cart"] .summary-row.final-total {
    position: relative !important;

    margin-top: 7px !important;
    padding: 16px 15px !important;

    border: 1px solid rgba(123,31,162,.17) !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            135deg,
            rgba(123,31,162,.055),
            rgba(166,92,197,.025)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8) !important;
}

.store-site[data-page="cart"] .summary-row.final-total span {
    color: #48414e !important;

    font-size: .88rem !important;
    font-weight: 900 !important;
}

.store-site[data-page="cart"] .summary-row.final-total strong {
    color: #70208f !important;

    font-size: 1.16rem !important;
    font-weight: 950 !important;
}


/* ============================================================
   CHECKOUT BUTTON
============================================================ */

.store-site[data-page="cart"] .cart-actions {
    margin-top: 14px !important;
}

.store-site[data-page="cart"] .checkout-btn {
    position: relative !important;
    overflow: hidden !important;

    width: 100% !important;
    min-height: 56px !important;

    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            #7b1fa2 0%,
            #6d208f 45%,
            #54206f 100%
        ) !important;

    color: #ffffff !important;

    font-size: .96rem !important;
    font-weight: 950 !important;

    letter-spacing: -.1px !important;

    cursor: pointer !important;

    box-shadow:
        0 10px 24px rgba(93,32,111,.26),
        inset 0 1px 0 rgba(255,255,255,.20),
        inset 0 -1px 0 rgba(0,0,0,.08) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

.store-site[data-page="cart"] .checkout-btn::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    right: -120% !important;

    width: 70% !important;
    height: 100% !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.20),
            transparent
        ) !important;

    transform: skewX(-22deg) !important;

    transition: right .55s ease !important;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    transform: translateY(-3px) !important;

    filter: brightness(1.07) !important;

    box-shadow:
        0 15px 31px rgba(93,32,111,.32),
        inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.store-site[data-page="cart"] .checkout-btn:hover::before {
    right: 140% !important;
}

.store-site[data-page="cart"] .checkout-btn:active {
    transform: translateY(-1px) !important;
}


/* ============================================================
   MOBILE — همان چیدمان قبلی
============================================================ */

@media (max-width: 900px) {

    .store-site[data-page="cart"] .cart-page {
        padding: 18px 11px 45px !important;
    }

    .store-site[data-page="cart"] .cart-header {
        padding: 21px 16px !important;
        margin-bottom: 17px !important;

        border-radius: 17px !important;
    }

    .store-site[data-page="cart"] .cart-header h1 {
        font-size: 1.48rem !important;
    }

    .store-site[data-page="cart"] #cartContainer {
        padding: 6px !important;
        border-radius: 17px !important;
    }

    .store-site[data-page="cart"] #cartContainer tbody tr {
        border: 1px solid rgba(123,31,162,.10) !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 17px rgba(25,18,35,.06) !important;
    }

    .store-site[data-page="cart"] #cartContainer tbody tr:hover {
        transform: none !important;
    }

    .store-site[data-page="cart"] .cart-product-image-link {
        flex-basis: 72px !important;
        width: 72px !important;
        height: 72px !important;
        border-radius: 13px !important;
    }

    .store-site[data-page="cart"] .cart-summary-box {
        padding: 18px !important;
        border-radius: 17px !important;
    }

    .store-site[data-page="cart"] .checkout-btn {
        min-height: 54px !important;
    }
}

@media (max-width: 420px) {

    .store-site[data-page="cart"] .cart-page {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .store-site[data-page="cart"] .cart-header {
        padding: 19px 12px !important;
    }

    .store-site[data-page="cart"] .cart-header h1 {
        font-size: 1.34rem !important;
    }

    .store-site[data-page="cart"] #cartContainer {
        padding: 4px !important;
    }

    .store-site[data-page="cart"] .cart-product-image-link {
        flex-basis: 64px !important;
        width: 64px !important;
        height: 64px !important;
    }

    .store-site[data-page="cart"] .cart-summary-box {
        padding: 15px !important;
    }

    .store-site[data-page="cart"] .summary-row.final-total {
        padding: 13px 10px !important;
    }
}


/* ============================================================
   CART — COLOR TOUCH
   فقط رنگ دیوها و دکمه‌ها
============================================================ */

/* باکس اصلی محصولات */
.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #f8f2fc,
        #f3f6fb
    ) !important;

    border-color: rgba(123,31,162,.18) !important;
}

/* ردیف‌های محصولات */
.store-site[data-page="cart"] #cartContainer tbody tr {
    background: linear-gradient(
        135deg,
        #ffffff,
        #fbf7fd
    ) !important;
}

/* باکس تصویر */
.store-site[data-page="cart"] .cart-product-image-link {
    background: linear-gradient(
        135deg,
        #f5eafd,
        #edf3ff
    ) !important;

    border-color: rgba(123,31,162,.22) !important;
}

/* کنترل تعداد */
.store-site[data-page="cart"] .quantity-control {
    background: linear-gradient(
        135deg,
        #f0e5f7,
        #e9eefb
    ) !important;

    border-color: rgba(123,31,162,.20) !important;
}

/* دکمه های + و - */
.store-site[data-page="cart"] .quantity-control button {
    background: linear-gradient(
        135deg,
        #ffffff,
        #eee4f5
    ) !important;

    border: 1px solid rgba(123,31,162,.15) !important;
    color: #70208f !important;
}

.store-site[data-page="cart"] .quantity-control button:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        #9b3fc0,
        #68209a
    ) !important;

    color: #ffffff !important;
}

/* دکمه حذف */
.store-site[data-page="cart"] .removeBtn {
    background: linear-gradient(
        135deg,
        #fff0f1,
        #ffe5e7
    ) !important;

    border-color: rgba(211,65,75,.25) !important;
    color: #c73645 !important;
}

.store-site[data-page="cart"] .removeBtn:hover {
    background: linear-gradient(
        135deg,
        #e65b67,
        #b92f3d
    ) !important;

    color: #ffffff !important;
}

/* باکس خلاصه */
.store-site[data-page="cart"] .cart-summary-box {
    background: linear-gradient(
        145deg,
        #faf5fd,
        #f0f4ff
    ) !important;

    border-color: rgba(123,31,162,.20) !important;
}

/* مبلغ قابل پرداخت */
.store-site[data-page="cart"] .summary-row.final-total {
    background: linear-gradient(
        135deg,
        #eee1f6,
        #e7edff
    ) !important;

    border-color: rgba(123,31,162,.22) !important;
}

/* دکمه پرداخت */
.store-site[data-page="cart"] .checkout-btn {
    background: linear-gradient(
        135deg,
        #9b3fc0,
        #7b1fa2 48%,
        #55206f
    ) !important;

    border-color: rgba(255,255,255,.28) !important;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    background: linear-gradient(
        135deg,
        #aa4dcc,
        #8624ad 48%,
        #64217f
    ) !important;
}

/* هدر سبد */
.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #ffffff,
        #f6edfa,
        #eef3ff
    ) !important;

    border-color: rgba(123,31,162,.18) !important;
}


/* ============================================================
   CART — DARK LUXURY COLOR
============================================================ */

/* هدر */
.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #30243a,
        #3b2948 52%,
        #252b3b
    ) !important;

    border-color: rgba(185,125,215,.28) !important;

    box-shadow:
        0 14px 35px rgba(35,20,45,.20),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #ffffff !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #d8cddd !important;
}


/* قاب اصلی محصولات */
.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #29232f,
        #30283a
    ) !important;

    border-color: rgba(185,125,215,.25) !important;

    box-shadow:
        0 14px 35px rgba(30,20,38,.18),
        inset 0 1px 0 rgba(255,255,255,.06) !important;
}


/* ردیف محصولات */
.store-site[data-page="cart"] #cartContainer tbody tr {
    background: linear-gradient(
        135deg,
        #3a3142,
        #332c3b
    ) !important;

    box-shadow:
        0 5px 16px rgba(20,15,25,.16),
        inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.store-site[data-page="cart"] #cartContainer tbody tr:hover {
    box-shadow:
        0 10px 25px rgba(20,15,25,.24),
        0 0 0 1px rgba(185,125,215,.22) !important;
}


/* سلول‌ها */
.store-site[data-page="cart"] #cartContainer tbody td {
    background: transparent !important;

    border-color: rgba(255,255,255,.075) !important;

    color: #ddd5e2 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:first-child {
    color: #a99eae !important;
}


/* سرستون */
.store-site[data-page="cart"] #cartContainer thead th {
    background: linear-gradient(
        180deg,
        #3c3244,
        #302936
    ) !important;

    border-color: rgba(255,255,255,.08) !important;

    color: #cfc2d5 !important;
}


/* تصویر محصول */
.store-site[data-page="cart"] .cart-product-image-link {
    background: linear-gradient(
        145deg,
        #4a3b50,
        #302a3d
    ) !important;

    border-color: rgba(190,130,220,.28) !important;

    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.055),
        0 7px 18px rgba(15,10,20,.20) !important;
}


/* نام محصول */
.store-site[data-page="cart"] .cart-product-title-link {
    color: #f4edf7 !important;
}

.store-site[data-page="cart"] .cart-product-title-link:hover {
    color: #d79bea !important;
}


/* کنترل تعداد */
.store-site[data-page="cart"] .quantity-control {
    background: linear-gradient(
        135deg,
        #30283a,
        #403249
    ) !important;

    border-color: rgba(190,130,220,.25) !important;
}

.store-site[data-page="cart"] .quantity-control button {
    background: linear-gradient(
        135deg,
        #574260,
        #46364f
    ) !important;

    border-color: rgba(255,255,255,.08) !important;

    color: #ead9f1 !important;
}

.store-site[data-page="cart"] .quantity-control button:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        #a44cc2,
        #70208f
    ) !important;

    color: #ffffff !important;
}

.store-site[data-page="cart"] .qtyDisplay {
    color: #ffffff !important;
}


/* قیمت‌ها */
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(4) {
    color: #c7bdcc !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(5) {
    color: #eee7f1 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(6) {
    color: #63d49b !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(7) {
    color: #bdb3c3 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(8) {
    color: #d998ef !important;
}


/* دکمه حذف */
.store-site[data-page="cart"] .removeBtn {
    background: linear-gradient(
        135deg,
        #512f38,
        #432830
    ) !important;

    border-color: rgba(239,110,120,.30) !important;

    color: #ff9da5 !important;
}

.store-site[data-page="cart"] .removeBtn:hover {
    background: linear-gradient(
        135deg,
        #d95763,
        #a92f3b
    ) !important;

    border-color: #ed737c !important;

    color: #ffffff !important;
}


/* ============================================================
   SUMMARY
============================================================ */

.store-site[data-page="cart"] .cart-summary-box {
    background: linear-gradient(
        145deg,
        #30263a,
        #292c3d
    ) !important;

    border-color: rgba(190,130,220,.28) !important;

    box-shadow:
        0 14px 32px rgba(25,17,32,.20),
        inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.store-site[data-page="cart"] .summary-row {
    color: #bfb4c5 !important;
}

.store-site[data-page="cart"] .summary-row strong {
    color: #f1eaf3 !important;
}

.store-site[data-page="cart"] .summary-row:nth-child(2) strong {
    color: #63d49b !important;
}

.store-site[data-page="cart"] .summary-divider {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(190,130,220,.28),
            transparent
        ) !important;
}


/* مبلغ نهایی */
.store-site[data-page="cart"] .summary-row.final-total {
    background: linear-gradient(
        135deg,
        #493452,
        #3b304d
    ) !important;

    border-color: rgba(202,145,228,.30) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055) !important;
}

.store-site[data-page="cart"] .summary-row.final-total span {
    color: #eee4f1 !important;
}

.store-site[data-page="cart"] .summary-row.final-total strong {
    color: #e0a0f0 !important;
}


/* دکمه پرداخت */
.store-site[data-page="cart"] .checkout-btn {
    background: linear-gradient(
        135deg,
        #a34cc2,
        #7b1fa2 48%,
        #511d68
    ) !important;

    border-color: rgba(231,186,244,.25) !important;

    box-shadow:
        0 12px 28px rgba(92,27,112,.38),
        inset 0 1px 0 rgba(255,255,255,.20),
        inset 0 -1px 0 rgba(0,0,0,.15) !important;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    background: linear-gradient(
        135deg,
        #b55bd2,
        #8b27ae 48%,
        #612078
    ) !important;

    box-shadow:
        0 17px 35px rgba(92,27,112,.45),
        inset 0 1px 0 rgba(255,255,255,.24) !important;
}


/* ============================================================
   CART — BALANCED LUXURY
   روشن‌تر از Dark Luxury / لوکس‌تر از حالت قبلی
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #f3eaf7,
        #eeeaf5,
        #e8edf6
    ) !important;
    border-color: rgba(123,31,162,.20) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #4d3657 !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #76677d !important;
}


/* باکس محصولات */
.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #eee5f2,
        #e8edf5
    ) !important;
    border-color: rgba(123,31,162,.20) !important;
}


/* ردیف محصولات */
.store-site[data-page="cart"] #cartContainer tbody tr {
    background: linear-gradient(
        135deg,
        #ffffff,
        #f7f2fa
    ) !important;

    box-shadow:
        0 6px 18px rgba(70,45,80,.10) !important;
}

.store-site[data-page="cart"] #cartContainer tbody tr:hover {
    box-shadow:
        0 9px 24px rgba(70,45,80,.15),
        0 0 0 1px rgba(123,31,162,.15) !important;
}


/* سرستون */
.store-site[data-page="cart"] #cartContainer thead th {
    background: linear-gradient(
        135deg,
        #e3d6e9,
        #e0e5ef
    ) !important;

    color: #5e5064 !important;
    border-color: rgba(123,31,162,.12) !important;
}


/* سلول‌ها */
.store-site[data-page="cart"] #cartContainer tbody td {
    color: #514957 !important;
    border-color: rgba(80,60,90,.08) !important;
}


/* تصویر محصول */
.store-site[data-page="cart"] .cart-product-image-link {
    background: linear-gradient(
        135deg,
        #eee1f5,
        #e4eaf7
    ) !important;

    border-color: rgba(123,31,162,.22) !important;

    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.55),
        0 6px 16px rgba(70,45,80,.10) !important;
}


/* نام محصول */
.store-site[data-page="cart"] .cart-product-title-link {
    color: #4f4057 !important;
}

.store-site[data-page="cart"] .cart-product-title-link:hover {
    color: #7b1fa2 !important;
}


/* کنترل تعداد */
.store-site[data-page="cart"] .quantity-control {
    background: linear-gradient(
        135deg,
        #eee5f3,
        #e5eaf5
    ) !important;

    border-color: rgba(123,31,162,.18) !important;
}

.store-site[data-page="cart"] .quantity-control button {
    background: linear-gradient(
        135deg,
        #ffffff,
        #eee5f3
    ) !important;

    color: #6c2985 !important;
    border-color: rgba(123,31,162,.15) !important;
}

.store-site[data-page="cart"] .quantity-control button:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        #a04bc0,
        #7b1fa2
    ) !important;

    color: #ffffff !important;
}

.store-site[data-page="cart"] .qtyDisplay {
    color: #4f4057 !important;
}


/* قیمت‌ها */
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(4) {
    color: #6c6170 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(5) {
    color: #453b49 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(6) {
    color: #269568 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(7) {
    color: #6e6472 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(8) {
    color: #812ca0 !important;
}


/* حذف */
.store-site[data-page="cart"] .removeBtn {
    background: linear-gradient(
        135deg,
        #fff0f1,
        #fbe4e7
    ) !important;

    border-color: rgba(200,55,69,.22) !important;
    color: #c33d4a !important;
}

.store-site[data-page="cart"] .removeBtn:hover {
    background: linear-gradient(
        135deg,
        #df5a66,
        #c13b48
    ) !important;

    color: #ffffff !important;
}


/* خلاصه */
.store-site[data-page="cart"] .cart-summary-box {
    background: linear-gradient(
        145deg,
        #eee5f3,
        #e8edf6
    ) !important;

    border-color: rgba(123,31,162,.20) !important;

    box-shadow:
        0 10px 26px rgba(70,45,80,.11) !important;
}

.store-site[data-page="cart"] .summary-row {
    color: #665b6c !important;
}

.store-site[data-page="cart"] .summary-row strong {
    color: #493d50 !important;
}


/* مبلغ نهایی */
.store-site[data-page="cart"] .summary-row.final-total {
    background: linear-gradient(
        135deg,
        #e3d3eb,
        #dde5f5
    ) !important;

    border-color: rgba(123,31,162,.22) !important;
}

.store-site[data-page="cart"] .summary-row.final-total span {
    color: #584b60 !important;
}

.store-site[data-page="cart"] .summary-row.final-total strong {
    color: #792994 !important;
}


/* دکمه پرداخت */
.store-site[data-page="cart"] .checkout-btn {
    background: linear-gradient(
        135deg,
        #a44fc1,
        #8428a5,
        #69227f
    ) !important;

    box-shadow:
        0 9px 22px rgba(105,34,127,.28),
        inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    background: linear-gradient(
        135deg,
        #b45bce,
        #9233b2,
        #74268c
    ) !important;

    box-shadow:
        0 13px 28px rgba(105,34,127,.34) !important;
}


/* ============================================================
   CART — SLIGHTLY DARKER + STRONG NUMBERS
============================================================ */

/* کمی تیره‌تر شدن باکس‌ها */
.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #e9ddec,
        #e5e5ef,
        #dfe5f0
    ) !important;
}

.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #e3d8e8,
        #e1e5ee
    ) !important;
}

.store-site[data-page="cart"] .cart-summary-box {
    background: linear-gradient(
        145deg,
        #e3d9e8,
        #e0e5ef
    ) !important;
}

.store-site[data-page="cart"] .summary-row.final-total {
    background: linear-gradient(
        135deg,
        #d9c7e2,
        #d8e0ef
    ) !important;
}


/* ============================================================
   اعداد جدول — درشت‌تر و پررنگ‌تر
============================================================ */

.store-site[data-page="cart"] #cartContainer tbody td {
    font-size: 1.02rem !important;
    font-weight: 600 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:first-child {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(3) {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
}

.store-site[data-page="cart"] #cartContainer tbody td:nth-child(4),
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(5),
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(6),
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(7),
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(8) {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
}


/* مبلغ نهایی هر ردیف */
.store-site[data-page="cart"] #cartContainer tbody td:nth-child(8) strong {
    font-size: 1.16rem !important;
    font-weight: 800 !important;
}


/* عدد تعداد */
.store-site[data-page="cart"] .qtyDisplay {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
}


/* اعداد خلاصه */
.store-site[data-page="cart"] .summary-row strong {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .summary-row.final-total strong {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}


/* دکمه‌ها کمی برجسته‌تر */
.store-site[data-page="cart"] .quantity-control button {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .removeBtn {
    font-size: .95rem !important;
    font-weight: 700 !important;
}

.store-site[data-page="cart"] .checkout-btn {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
}


/* ============================================================
   CART — DEEPER LUXURY COLORS
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #dfd0e5,
        #dcdce8,
        #d6deeb
    ) !important;
    border-color: rgba(105,65,125,.28) !important;
}

.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #d9cddd,
        #d7dce7
    ) !important;
    border-color: rgba(105,65,125,.26) !important;
}

.store-site[data-page="cart"] #cartContainer thead th {
    background: linear-gradient(
        135deg,
        #d0c1d7,
        #cfd5e1
    ) !important;
    color: #4b4051 !important;
}

.store-site[data-page="cart"] #cartContainer tbody tr {
    background: linear-gradient(
        135deg,
        #f7f3f8,
        #f1eff5
    ) !important;
}

.store-site[data-page="cart"] .cart-product-image-link {
    background: linear-gradient(
        135deg,
        #e3d3ea,
        #dce3f0
    ) !important;
    border-color: rgba(105,65,125,.28) !important;
}

.store-site[data-page="cart"] .quantity-control {
    background: linear-gradient(
        135deg,
        #ded2e4,
        #d8deea
    ) !important;
    border-color: rgba(105,65,125,.25) !important;
}

.store-site[data-page="cart"] .quantity-control button {
    background: linear-gradient(
        135deg,
        #f5f0f7,
        #e8e5ed
    ) !important;
    color: #5e2375 !important;
}

.store-site[data-page="cart"] .cart-summary-box {
    background: linear-gradient(
        145deg,
        #d9cddd,
        #d7dde8
    ) !important;
    border-color: rgba(105,65,125,.27) !important;
}

.store-site[data-page="cart"] .summary-row.final-total {
    background: linear-gradient(
        135deg,
        #cfc0d8,
        #ccd6e6
    ) !important;
    border-color: rgba(105,65,125,.30) !important;
}

.store-site[data-page="cart"] .summary-row.final-total strong {
    color: #69227f !important;
}

.store-site[data-page="cart"] .checkout-btn {
    background: linear-gradient(
        135deg,
        #943eb2,
        #762192,
        #5e1e72
    ) !important;

    box-shadow:
        0 10px 24px rgba(85,25,105,.34),
        inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.store-site[data-page="cart"] .checkout-btn:hover {
    background: linear-gradient(
        135deg,
        #a94cc7,
        #8428a5,
        #68207e
    ) !important;
}

.store-site[data-page="cart"] .removeBtn {
    background: linear-gradient(
        135deg,
        #f5dfe2,
        #efd5d9
    ) !important;
    color: #b73543 !important;
}

.store-site[data-page="cart"] .removeBtn:hover {
    background: linear-gradient(
        135deg,
        #d95763,
        #b83240
    ) !important;
    color: #fff !important;
}


/* فقط دیو اصلی سبد خرید */
.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #c8b8d0,
        #c5ccd9
    ) !important;

    border-color: rgba(90,55,110,.32) !important;

    box-shadow:
        0 14px 32px rgba(70,45,80,.16),
        inset 0 1px 0 rgba(255,255,255,.25) !important;
}


/* ============================================================
   CART CONTAINER — DARKER
============================================================ */

.store-site[data-page="cart"] #cartContainer {
    background: linear-gradient(
        135deg,
        #9b899f,
        #858e9f
    ) !important;

    border: 1px solid rgba(70,45,80,.45) !important;

    box-shadow:
        0 16px 38px rgba(45,30,55,.22),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}


/* ============================================================
   CART TABLE WRAPPER — DARKER LUXURY
============================================================ */

.store-site[data-page="cart"] #cartContainer > div {
    background: linear-gradient(
        135deg,
        #b5a3bd,
        #aab2c2
    ) !important;

    border: 1px solid rgba(75,50,85,.38) !important;

    box-shadow:
        0 12px 30px rgba(55,40,65,.18),
        inset 0 1px 0 rgba(255,255,255,.20) !important;
}


/* ============================================================
   CART HEADER — DARKER LUXURY
   سبد خرید / محصولات انتخاب‌شده شما
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #c3afca,
        #b8b9c9,
        #aeb9c9
    ) !important;

    border: 1px solid rgba(75,45,90,.38) !important;

    box-shadow:
        0 14px 32px rgba(65,45,75,.20),
        inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #3f3047 !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #5d5262 !important;
    font-weight: 600 !important;
}


/* ============================================================
   CART HEADER — DEEP LUXURY
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #8f7898,
        #817d91,
        #727e91
    ) !important;

    border: 1px solid rgba(55,35,65,.50) !important;

    box-shadow:
        0 16px 36px rgba(50,35,60,.28),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #eee7f1 !important;
    font-weight: 600 !important;
}


/* ============================================================
   CART HEADER — SLATE BLUE / PURPLE / GRAY
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #73758f,
        #686b86 50%,
        #626f86
    ) !important;

    border: 1px solid rgba(70,65,95,.45) !important;

    box-shadow:
        0 16px 36px rgba(55,55,80,.25),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #e4e5ed !important;
    font-weight: 600 !important;
}


/* ============================================================
   CART HEADER — BLUE / PURPLE LUXURY
============================================================ */

.store-site[data-page="cart"] .cart-header {
    background: linear-gradient(
        135deg,
        #5965a0,
        #63599d 48%,
        #536f9f
    ) !important;

    border: 1px solid rgba(65,55,120,.45) !important;

    box-shadow:
        0 16px 36px rgba(55,55,105,.28),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.store-site[data-page="cart"] .cart-header h1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.store-site[data-page="cart"] .cart-header p {
    color: #e9e8f7 !important;
    font-weight: 600 !important;
}


/* ============================================================
   CHECKOUT BUTTON — COMPACT & CENTERED
============================================================ */

.store-site[data-page="cart"] .cart-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.store-site[data-page="cart"] .checkout-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px 28px !important;
    white-space: nowrap !important;
}


/* ============================================================
   PAYMENT — MATCH CART LUXURY STYLE
   هماهنگ با استایل نهایی سبد خرید
============================================================ */

.store-site[data-page="payment"] main {
    width: 100% !important;
}

.store-site[data-page="payment"] .payment-section {
    position: relative !important;
    overflow: hidden !important;

    max-width: 1320px !important;
    margin: 30px auto 65px !important;
    padding: 27px 25px 30px !important;

    background:
        linear-gradient(
            135deg,
            #dfd0e5,
            #dcdce8,
            #d6deeb
        ) !important;

    border: 1px solid rgba(105,65,125,.28) !important;
    border-radius: 20px !important;

    box-shadow:
        0 14px 35px rgba(35,20,45,.16),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}


/* ============================================================
   PAYMENT HEADER
============================================================ */

.store-site[data-page="payment"] .payment-section > h1 {
    position: relative !important;
    z-index: 1 !important;

    margin: 0 0 24px !important;
    padding: 0 0 17px !important;

    color: #30243a !important;

    font-size: 1.85rem !important;
    font-weight: 900 !important;

    text-align: right !important;

    border-bottom: 1px solid rgba(105,65,125,.20) !important;
}


/* نوار ظریف بالای تیتر */

.store-site[data-page="payment"] .payment-section::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    height: 3px !important;

    background:
        linear-gradient(
            90deg,
            #5e2390,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #5e2390
        ) !important;
}


/* ============================================================
   PAYMENT DETAILS
============================================================ */

.store-site[data-page="payment"] .payment-details {
    position: relative !important;

    width: 100% !important;
    box-sizing: border-box !important;

    padding: 24px 25px !important;

    background:
        linear-gradient(
            145deg,
            #faf5fd,
            #f0f4ff
        ) !important;

    border: 1px solid rgba(123,31,162,.20) !important;
    border-radius: 20px !important;

    box-shadow:
        0 10px 28px rgba(25,18,35,.08),
        inset 0 1px 0 rgba(255,255,255,.80) !important;
}


/* ============================================================
   PAYMENT DETAILS — عمومی متن‌ها
============================================================ */

.store-site[data-page="payment"] .payment-details p {
    margin: 8px 0 !important;

    color: #5f5666 !important;

    font-size: .92rem !important;
    font-weight: 600 !important;

    line-height: 1.9 !important;
}


/* اعداد و مبالغ */

.store-site[data-page="payment"] .payment-details strong {
    color: #39323f !important;

    font-size: 1rem !important;
    font-weight: 900 !important;
}


/* ============================================================
   PAYMENT TABLE
   اگر جزئیات به صورت جدول ساخته شده باشد
============================================================ */

.store-site[data-page="payment"] .payment-details table {
    width: 100% !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    overflow: hidden !important;

    background: rgba(255,255,255,.58) !important;

    border: 1px solid rgba(123,31,162,.13) !important;
    border-radius: 14px !important;
}


.store-site[data-page="payment"] .payment-details thead th {
    padding: 13px 12px !important;

    background:
        linear-gradient(
            135deg,
            #d9c7e2,
            #d8e0ef
        ) !important;

    color: #3d3045 !important;

    font-size: .88rem !important;
    font-weight: 900 !important;

    border-bottom: 1px solid rgba(123,31,162,.16) !important;
}


.store-site[data-page="payment"] .payment-details tbody td {
    padding: 13px 12px !important;

    color: #504756 !important;

    font-size: .94rem !important;
    font-weight: 650 !important;

    background: rgba(255,255,255,.42) !important;

    border-bottom: 1px solid rgba(123,31,162,.08) !important;
}


.store-site[data-page="payment"] .payment-details tbody tr:last-child td {
    border-bottom: none !important;
}


/* ============================================================
   SUMMARY ROWS
============================================================ */

.store-site[data-page="payment"] .payment-details .summary-row,
.store-site[data-page="payment"] .payment-details .payment-row {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 20px !important;

    padding: 11px 0 !important;

    color: #77707e !important;

    font-size: .88rem !important;
}


.store-site[data-page="payment"] .payment-details .summary-row strong,
.store-site[data-page="payment"] .payment-details .payment-row strong {
    color: #39323f !important;

    font-size: 1.02rem !important;
    font-weight: 900 !important;
}


/* تخفیف */

.store-site[data-page="payment"] .payment-details .discount,
.store-site[data-page="payment"] .payment-details .total-discount {
    color: #168858 !important;
}


/* ============================================================
   DIVIDER
============================================================ */

.store-site[data-page="payment"] .payment-details hr {
    height: 1px !important;

    margin: 12px 0 !important;

    border: 0 !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(123,31,162,.24),
            transparent
        ) !important;
}


/* ============================================================
   مبلغ قابل پرداخت — مهم‌ترین بخش
============================================================ */

.store-site[data-page="payment"] .payment-details .final-total,
.store-site[data-page="payment"] .payment-details .total-payable,
.store-site[data-page="payment"] .payment-details .payable {
    position: relative !important;

    margin-top: 10px !important;
    padding: 17px 18px !important;

    background:
        linear-gradient(
            135deg,
            #d9c7e2,
            #d8e0ef
        ) !important;

    border: 1px solid rgba(123,31,162,.22) !important;
    border-radius: 14px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.60) !important;
}


.store-site[data-page="payment"] .payment-details .final-total span,
.store-site[data-page="payment"] .payment-details .total-payable span,
.store-site[data-page="payment"] .payment-details .payable span {
    color: #48414e !important;

    font-size: .95rem !important;
    font-weight: 900 !important;
}


.store-site[data-page="payment"] .payment-details .final-total strong,
.store-site[data-page="payment"] .payment-details .total-payable strong,
.store-site[data-page="payment"] .payment-details .payable strong {
    color: #70208f !important;

    font-size: 1.30rem !important;
    font-weight: 950 !important;
}


/* ============================================================
   PAYMENT ACTIONS
============================================================ */

.store-site[data-page="payment"] .payment-actions {
    display: flex !important;

    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;

    margin-top: 16px !important;
}


.store-site[data-page="payment"] #payBtn {
    position: relative !important;
    overflow: hidden !important;

    width: 100% !important;
    min-height: 56px !important;

    padding: 0 28px !important;

    border: 1px solid rgba(231,186,244,.25) !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            #a34cc2,
            #7b1fa2 48%,
            #511d68
        ) !important;

    color: #ffffff !important;

    font-size: 1.08rem !important;
    font-weight: 800 !important;

    cursor: pointer !important;

    box-shadow:
        0 12px 28px rgba(92,27,112,.38),
        inset 0 1px 0 rgba(255,255,255,.20),
        inset 0 -1px 0 rgba(0,0,0,.15) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}


/* افکت نور روی دکمه */

.store-site[data-page="payment"] #payBtn::before {
    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    right: -120% !important;

    width: 70% !important;
    height: 100% !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.20),
            transparent
        ) !important;

    transform: skewX(-22deg) !important;

    transition: right .55s ease !important;
}


.store-site[data-page="payment"] #payBtn:hover:not(:disabled) {
    transform: translateY(-3px) !important;

    filter: brightness(1.07) !important;

    box-shadow:
        0 17px 35px rgba(92,27,112,.45),
        inset 0 1px 0 rgba(255,255,255,.24) !important;
}


.store-site[data-page="payment"] #payBtn:hover:not(:disabled)::before {
    right: 140% !important;
}


.store-site[data-page="payment"] #payBtn:active:not(:disabled) {
    transform: translateY(-1px) !important;
}


.store-site[data-page="payment"] #payBtn:disabled {
    opacity: .55 !important;

    cursor: not-allowed !important;

    transform: none !important;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 900px) {

    .store-site[data-page="payment"] .payment-section {
        margin: 24px 16px 50px !important;
        padding: 23px 18px 25px !important;

        border-radius: 18px !important;
    }

    .store-site[data-page="payment"] .payment-section > h1 {
        font-size: 1.55rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 14px !important;
    }

    .store-site[data-page="payment"] .payment-details {
        padding: 18px 16px !important;
        border-radius: 17px !important;
    }

    .store-site[data-page="payment"] .payment-details table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .store-site[data-page="payment"] #payBtn {
        min-height: 54px !important;
        font-size: 1rem !important;
    }
}


@media (max-width: 600px) {

    .store-site[data-page="payment"] .payment-section {
        margin: 18px 10px 40px !important;
        padding: 20px 13px 20px !important;

        border-radius: 16px !important;
    }

    .store-site[data-page="payment"] .payment-section > h1 {
        font-size: 1.35rem !important;
    }

    .store-site[data-page="payment"] .payment-details {
        padding: 15px 13px !important;
        border-radius: 15px !important;
    }

    .store-site[data-page="payment"] .payment-details p {
        font-size: .84rem !important;
    }

    .store-site[data-page="payment"] .payment-details strong {
        font-size: .92rem !important;
    }

    .store-site[data-page="payment"] .payment-details .final-total,
    .store-site[data-page="payment"] .payment-details .total-payable,
    .store-site[data-page="payment"] .payment-details .payable {
        padding: 14px !important;
    }

    .store-site[data-page="payment"] .payment-details .final-total strong,
    .store-site[data-page="payment"] .payment-details .total-payable strong,
    .store-site[data-page="payment"] .payment-details .payable strong {
        font-size: 1.12rem !important;
    }

    .store-site[data-page="payment"] #payBtn {
        min-height: 52px !important;
        border-radius: 13px !important;
    }
}


/* ============================================================
   PAYMENT BUTTON — SAME SIZE AS CART CHECKOUT
============================================================ */

.store-site[data-page="payment"] .payment-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.store-site[data-page="payment"] #payBtn {
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    white-space: nowrap !important;
}


/* ============================================================
   CART + PAYMENT — UNIFIED NUMBER FONT
   فونت شماره ردیف و تعداد هماهنگ با سایر اعداد صفحه
============================================================ */

/* سبد خرید */
.store-site[data-page="cart"] .cart-container td,
.store-site[data-page="cart"] .cart-container td *,
.store-site[data-page="cart"] .cart-container .quantity,
.store-site[data-page="cart"] .cart-container .quantity *,
.store-site[data-page="cart"] .cart-container .cart-quantity,
.store-site[data-page="cart"] .cart-container .cart-quantity *,
.store-site[data-page="cart"] .cart-container .row-number,
.store-site[data-page="cart"] .cart-container .item-number {
    font-family: inherit !important;
}

/* پرداخت */
.store-site[data-page="payment"] .payment-details td,
.store-site[data-page="payment"] .payment-details td *,
.store-site[data-page="payment"] .payment-details .quantity,
.store-site[data-page="payment"] .payment-details .quantity *,
.store-site[data-page="payment"] .payment-details .row-number,
.store-site[data-page="payment"] .payment-details .item-number {
    font-family: inherit !important;
}


/* ============================================================
   PROFESSIONAL IRANIAN INVOICE
   فاکتور رسمی و استاندارد فروش کالا و خدمات
============================================================ */

.store-site[data-page="invoice"] {
    background: #f2f3f5 !important;
    color: #20242a !important;
    font-family: inherit !important;
}

.store-site[data-page="invoice"] main {
    width: 100% !important;
    padding: 5px 16px 20px !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #invoiceContainer {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
}

.store-site[data-page="invoice"] #invoiceWrapper {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 5px 30px 34px !important;
    margin: 0 auto !important;

    background: #ffffff !important;

    border: 1px solid #cfd3d8 !important;
    border-radius: 4px !important;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08) !important;
}

/* ------------------------------------------------------------
   سربرگ
------------------------------------------------------------ */

.store-site[data-page="invoice"] #invoiceHeader {
    position: relative !important;

    min-height: 92px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 150px 18px !important;
    margin-bottom: 16px !important;

    border-bottom: 2px solid #20252b !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #invoiceHeader h1 {
    margin: 0 !important;
    padding: 0 !important;

    color: #161a1f !important;

    font-size: 1.55rem !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;

    text-align: center !important;
    white-space: nowrap !important;
}

.store-site[data-page="invoice"] .logo-section {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    width: 120px !important;
    height: 78px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.store-site[data-page="invoice"] .invoice-logo {
    display: block !important;

    max-width: 110px !important;
    max-height: 72px !important;

    width: auto !important;
    height: auto !important;

    object-fit: contain !important;
}

/* ------------------------------------------------------------
   شماره و تاریخ فاکتور
------------------------------------------------------------ */

.store-site[data-page="invoice"] .invoice-info {
    position: absolute !important;

    top: 28px !important;
    left: 30px !important;
    right: auto !important;

    width: 190px !important;

    margin: 0 !important;
    padding: 10px 13px !important;

    background: #fafafa !important;

    border: 1px solid #cfd3d8 !important;
    border-radius: 3px !important;

    box-sizing: border-box !important;

    font-size: .82rem !important;
    line-height: 1.8 !important;
}

.store-site[data-page="invoice"] .invoice-info p {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;

    margin: 0 !important;
    padding: 3px 0 !important;
}

.store-site[data-page="invoice"] .invoice-info strong {
    color: #343a40 !important;
    font-weight: 800 !important;
}

.store-site[data-page="invoice"] .invoice-info span {
    color: #111 !important;
    font-weight: 800 !important;
    direction: rtl !important;
}

/* ------------------------------------------------------------
   بخش مشخصات فروشنده / خریدار
------------------------------------------------------------ */

.store-site[data-page="invoice"] .party-section {
    position: relative !important;

    margin: 14px 0 !important;
    padding: 0 !important;

    background: #fff !important;

    border: 1px solid #bfc4ca !important;
    border-radius: 3px !important;

    overflow: hidden !important;
}

.store-site[data-page="invoice"] .party-section > h3 {
    margin: 0 !important;
    padding: 8px 13px !important;

    background: #eef0f2 !important;

    color: #1f252b !important;

    border-bottom: 1px solid #bfc4ca !important;

    font-size: .92rem !important;
    font-weight: 900 !important;

    text-align: right !important;
}

.store-site[data-page="invoice"] .party-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.2fr !important;

    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.store-site[data-page="invoice"] .party-column {
    min-width: 0 !important;

    padding: 9px 12px !important;

    border-left: 1px solid #d4d7db !important;
}

.store-site[data-page="invoice"] .party-column:last-child {
    border-left: none !important;
}

.store-site[data-page="invoice"] .party-column p,
.store-site[data-page="invoice"] .full-row p {
    margin: 0 !important;
    padding: 4px 0 !important;

    color: #343a40 !important;

    font-size: .78rem !important;
    line-height: 1.8 !important;
}

.store-site[data-page="invoice"] .party-column strong,
.store-site[data-page="invoice"] .full-row strong {
    color: #20252b !important;
    font-weight: 800 !important;
}

.store-site[data-page="invoice"] .party-column span,
.store-site[data-page="invoice"] .full-row span {
    color: #333 !important;
    font-weight: 600 !important;
}

.store-site[data-page="invoice"] .full-row {
    padding: 0 12px !important;

    border-top: 1px solid #d4d7db !important;
}

/* ------------------------------------------------------------
   جدول کالا
------------------------------------------------------------ */

.store-site[data-page="invoice"] .items-section {
    overflow: visible !important;
}

.store-site[data-page="invoice"] .items-section .party-grid {
    display: block !important;
    overflow: visible !important;
}

.store-site[data-page="invoice"] .items-section table {
    width: 100% !important;

    margin: 0 !important;

    border-collapse: collapse !important;
    border-spacing: 0 !important;

    table-layout: fixed !important;

    font-size: .76rem !important;
}

.store-site[data-page="invoice"] .items-section th,
.store-site[data-page="invoice"] .items-section td {
    border: 1px solid #aeb4ba !important;

    padding: 8px 5px !important;

    color: #22272d !important;

    text-align: center !important;
    vertical-align: middle !important;

    line-height: 1.7 !important;
}

.store-site[data-page="invoice"] .items-section th {
    background: #e9ecef !important;

    color: #171b20 !important;

    font-size: .74rem !important;
    font-weight: 900 !important;
}

.store-site[data-page="invoice"] .items-section tbody td {
    background: #fff !important;

    font-weight: 600 !important;
}

.store-site[data-page="invoice"] .items-section tbody tr:last-child td {
    background: #f1f3f5 !important;

    font-weight: 900 !important;
}

/* عرض ستون‌ها */

.store-site[data-page="invoice"] .items-section th:nth-child(1),
.store-site[data-page="invoice"] .items-section td:nth-child(1) {
    width: 6% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(2),
.store-site[data-page="invoice"] .items-section td:nth-child(2) {
    width: 24% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(3),
.store-site[data-page="invoice"] .items-section td:nth-child(3) {
    width: 8% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(4),
.store-site[data-page="invoice"] .items-section td:nth-child(4) {
    width: 13% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(5),
.store-site[data-page="invoice"] .items-section td:nth-child(5) {
    width: 13% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(6),
.store-site[data-page="invoice"] .items-section td:nth-child(6) {
    width: 12% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(7),
.store-site[data-page="invoice"] .items-section td:nth-child(7) {
    width: 12% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(8),
.store-site[data-page="invoice"] .items-section td:nth-child(8) {
    width: 12% !important;
}

/* ------------------------------------------------------------
   مبلغ به حروف
------------------------------------------------------------ */

.store-site[data-page="invoice"] #invoiceWrapper > p {
    margin: 15px 0 0 !important;
    padding: 10px 12px !important;

    background: #fafafa !important;

    border: 1px solid #c7cbd0 !important;
    border-radius: 3px !important;

    color: #333 !important;

    font-size: .82rem !important;
    line-height: 1.9 !important;
}

.store-site[data-page="invoice"] #invoiceWrapper > p strong {
    color: #20252b !important;
    font-weight: 900 !important;
}

.store-site[data-page="invoice"] #amountInWords {
    color: #222 !important;
    font-weight: 700 !important;
}

/* ------------------------------------------------------------
   امضا و مهر
------------------------------------------------------------ */

.store-site[data-page="invoice"] #signature {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    gap: 40px !important;

    margin-top: 42px !important;
    padding-top: 10px !important;

    border-top: 1px solid #d0d4d8 !important;
}

.store-site[data-page="invoice"] #signature div {
    width: auto !important;
    min-height: 85px !important;

    padding-top: 8px !important;

    color: #22272d !important;

    font-size: .82rem !important;
    font-weight: 800 !important;

    text-align: center !important;
}

/* ------------------------------------------------------------
   دکمه‌ها
------------------------------------------------------------ */

.store-site[data-page="invoice"] .invoice-buttons-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 10px !important;

    margin: 18px auto 35px !important;
}

.store-site[data-page="invoice"] .invoice-buttons-wrapper button {
    min-width: 135px !important;

    padding: 10px 20px !important;

    border: 1px solid #343a40 !important;
    border-radius: 5px !important;

    background: #343a40 !important;
    color: #fff !important;

    font-family: inherit !important;
    font-size: .84rem !important;
    font-weight: 800 !important;

    cursor: pointer !important;

    transition:
        transform .15s ease,
        background .15s ease !important;
}

.store-site[data-page="invoice"] .invoice-buttons-wrapper button:hover {
    background: #171b20 !important;
    transform: translateY(-1px) !important;
}

/* ------------------------------------------------------------
   موبایل
------------------------------------------------------------ */

@media (max-width: 768px) {

    .store-site[data-page="invoice"] main {
        padding: 15px 8px !important;
    }

    .store-site[data-page="invoice"] #invoiceWrapper {
        padding: 20px 14px 25px !important;
    }

    .store-site[data-page="invoice"] #invoiceHeader {
        min-height: 145px !important;

        padding: 85px 5px 10px !important;

        justify-content: center !important;
    }

    .store-site[data-page="invoice"] #invoiceHeader h1 {
        font-size: 1.15rem !important;
        white-space: normal !important;
    }

    .store-site[data-page="invoice"] .logo-section {
        top: 8px !important;
        right: 50% !important;

        transform: translateX(50%) !important;
    }

    .store-site[data-page="invoice"] .invoice-info {
        position: static !important;

        width: 100% !important;

        margin: 10px 0 !important;
    }

    .store-site[data-page="invoice"] .party-grid {
        grid-template-columns: 1fr !important;
    }

    .store-site[data-page="invoice"] .party-column {
        border-left: none !important;
        border-bottom: 1px solid #d4d7db !important;
    }

    .store-site[data-page="invoice"] .party-column:last-child {
        border-bottom: none !important;
    }

    .store-site[data-page="invoice"] .items-section {
        overflow-x: auto !important;
    }

    .store-site[data-page="invoice"] .items-section table {
        min-width: 900px !important;
    }

    .store-site[data-page="invoice"] #signature {
        gap: 15px !important;
    }

    .store-site[data-page="invoice"] #signature div {
        min-height: 75px !important;
    }
}

/* ------------------------------------------------------------
   چاپ A4
------------------------------------------------------------ */

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        background: #fff !important;
    }

    .store-site[data-page="invoice"] {
        background: #fff !important;
    }

    .store-site[data-page="invoice"] main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .store-site[data-page="invoice"] #invoiceContainer {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .store-site[data-page="invoice"] #invoiceWrapper {
        width: 100% !important;

        margin: 0 !important;
        padding: 12px 15px 20px !important;

        border: 1px solid #777 !important;
        border-radius: 0 !important;

        box-shadow: none !important;
    }

    .store-site[data-page="invoice"] #invoiceHeader {
        min-height: 75px !important;
    }

    .store-site[data-page="invoice"] .invoice-info {
        top: 12px !important;
        left: 15px !important;
    }

    .store-site[data-page="invoice"] .party-section {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .store-site[data-page="invoice"] .items-section {
        overflow: visible !important;
    }

    .store-site[data-page="invoice"] .items-section table {
        width: 100% !important;
        min-width: 0 !important;

        font-size: 9px !important;
    }

    .store-site[data-page="invoice"] .items-section th,
    .store-site[data-page="invoice"] .items-section td {
        padding: 5px 3px !important;
    }

    .store-site[data-page="invoice"] #signature {
        margin-top: 35px !important;
    }

    .store-site[data-page="invoice"] .invoice-buttons-wrapper,
    .store-site[data-page="invoice"] footer,
    .store-site[data-page="invoice"] header {
        display: none !important;
    }
}



/* ============================================================
   FINAL FORMAL IRANIAN-STYLE INVOICE
   A4 LANDSCAPE
   ============================================================ */

.store-site[data-page="invoice"] {
    background: #f1f3f5 !important;
    direction: rtl !important;
    color: #111 !important;
    font-family: Tahoma, Arial, sans-serif !important;
}

.store-site[data-page="invoice"] main {
    width: 100% !important;
    margin: 0 !important;
    padding: 24px 18px !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #invoiceContainer {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #invoiceWrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid #777 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
    box-sizing: border-box !important;
}


/* ============================================================
   HEADER
   ============================================================ */

.store-site[data-page="invoice"] #invoiceHeader {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
    align-items: center !important;
    min-height: 78px !important;
    margin: 0 0 12px !important;
    padding: 8px 12px !important;
    border: 1px solid #555 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #invoiceHeader h1 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    color: #111 !important;
}

.store-site[data-page="invoice"] .logo-section {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
}

.store-site[data-page="invoice"] .invoice-logo {
    max-width: 100px !important;
    max-height: 58px !important;
    object-fit: contain !important;
}

.store-site[data-page="invoice"] .invoice-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
}

.store-site[data-page="invoice"] .invoice-info p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: .76rem !important;
    line-height: 1.5 !important;
    color: #222 !important;
}

.store-site[data-page="invoice"] .invoice-info strong {
    font-weight: 900 !important;
}

.store-site[data-page="invoice"] .invoice-info span {
    font-weight: 700 !important;
}


/* ============================================================
   SELLER / BUYER SECTION
   ============================================================ */

.store-site[data-page="invoice"] .party-section {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 1px solid #555 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] .party-section > h3 {
    margin: 0 !important;
    padding: 7px 10px !important;
    text-align: right !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    color: #111 !important;
    background: #e9ecef !important;
    border-bottom: 1px solid #555 !important;
    box-sizing: border-box !important;
}


/* ============================================================
   THREE ROW PARTY FORM
   ============================================================ */

.store-site[data-page="invoice"] .invoice-party-row {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] .party-row-1 {
    grid-template-columns: 1.5fr 1fr 1.25fr !important;
}

.store-site[data-page="invoice"] .party-row-2 {
    grid-template-columns: 1fr 1fr 1fr 1.15fr !important;
}

.store-site[data-page="invoice"] .party-row-3 {
    grid-template-columns: 4.2fr 1.4fr !important;
}

.store-site[data-page="invoice"] .invoice-party-row + .invoice-party-row {
    border-top: 1px solid #777 !important;
}


/* ============================================================
   PARTY CELLS
   ============================================================ */

.store-site[data-page="invoice"] .invoice-party-row .party-field {
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    border-left: 1px solid #999 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    text-align: right !important;
}

.store-site[data-page="invoice"] .invoice-party-row .party-field:last-child {
    border-left: none !important;
}

.store-site[data-page="invoice"] .invoice-party-row .party-field strong {
    flex: 0 0 auto !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: .70rem !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    white-space: nowrap !important;
}

.store-site[data-page="invoice"] .invoice-party-row .party-field span {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: .74rem !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
}


/* ============================================================
   ADDRESS + PHONE/FAX — SAME ROW
   ============================================================ */

.store-site[data-page="invoice"] .party-row-3 .address-field {
    justify-content: flex-start !important;
    text-align: right !important;
}

.store-site[data-page="invoice"] .party-row-3 .address-field span {
    text-align: right !important;
}

.store-site[data-page="invoice"] .party-row-3 .phone-field {
    justify-content: center !important;
    text-align: center !important;
}

.store-site[data-page="invoice"] .party-row-3 .phone-field strong,
.store-site[data-page="invoice"] .party-row-3 .phone-field span {
    text-align: center !important;
}


/* ============================================================
   PRODUCTS / SERVICES TABLE
   ============================================================ */

.store-site[data-page="invoice"] .items-section {
    margin-top: 10px !important;
}

.store-site[data-page="invoice"] .items-section .party-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] .items-section table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    direction: rtl !important;
    background: #fff !important;
}

.store-site[data-page="invoice"] .items-section th,
.store-site[data-page="invoice"] .items-section td {
    border: 1px solid #777 !important;
    padding: 6px 5px !important;
    vertical-align: middle !important;
    text-align: center !important;
    color: #111 !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] .items-section th {
    background: #e9ecef !important;
    font-size: .70rem !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
}

.store-site[data-page="invoice"] .items-section tbody td {
    min-height: 30px !important;
    font-size: .70rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.store-site[data-page="invoice"] .items-section tbody tr:last-child td {
    font-weight: 900 !important;
    background: #f4f5f6 !important;
}


/* COLUMN WIDTHS */

.store-site[data-page="invoice"] .items-section th:nth-child(1),
.store-site[data-page="invoice"] .items-section td:nth-child(1) {
    width: 5% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(2),
.store-site[data-page="invoice"] .items-section td:nth-child(2) {
    width: 24% !important;
    text-align: right !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(3),
.store-site[data-page="invoice"] .items-section td:nth-child(3) {
    width: 8% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(4),
.store-site[data-page="invoice"] .items-section td:nth-child(4) {
    width: 12% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(5),
.store-site[data-page="invoice"] .items-section td:nth-child(5) {
    width: 13% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(6),
.store-site[data-page="invoice"] .items-section td:nth-child(6) {
    width: 11% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(7),
.store-site[data-page="invoice"] .items-section td:nth-child(7) {
    width: 13% !important;
}

.store-site[data-page="invoice"] .items-section th:nth-child(8),
.store-site[data-page="invoice"] .items-section td:nth-child(8) {
    width: 14% !important;
}


/* ============================================================
   AMOUNT IN WORDS
   ============================================================ */

.store-site[data-page="invoice"] #invoiceWrapper > p {
    width: 100% !important;
    min-height: 38px !important;
    margin: 10px 0 0 !important;
    padding: 7px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #777 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    font-size: .75rem !important;
}

.store-site[data-page="invoice"] #invoiceWrapper > p strong {
    flex: 0 0 auto !important;
    font-weight: 900 !important;
}

.store-site[data-page="invoice"] #amountInWords {
    flex: 1 !important;
    font-weight: 700 !important;
    text-align: right !important;
}


/* ============================================================
   SIGNATURES
   ============================================================ */

.store-site[data-page="invoice"] #signature {
    width: 100% !important;
    min-height: 85px !important;
    margin-top: 10px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border: 1px solid #777 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #signature div {
    min-height: 85px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 10px !important;
    border-left: 1px solid #999 !important;
    font-size: .76rem !important;
    font-weight: 900 !important;
    color: #222 !important;
    box-sizing: border-box !important;
}

.store-site[data-page="invoice"] #signature div:last-child {
    border-left: none !important;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.store-site[data-page="invoice"] .invoice-buttons-wrapper {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 15px auto !important;
}

.store-site[data-page="invoice"] .invoice-buttons-wrapper button {
    min-width: 130px !important;
    padding: 9px 18px !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
    font-family: inherit !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .store-site[data-page="invoice"] main {
        padding: 8px 4px !important;
    }

    .store-site[data-page="invoice"] #invoiceWrapper {
        padding: 7px !important;
        overflow-x: auto !important;
    }

    .store-site[data-page="invoice"] #invoiceHeader {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 8px !important;
    }

    .store-site[data-page="invoice"] .logo-section,
    .store-site[data-page="invoice"] .invoice-info {
        justify-content: center !important;
        align-items: center !important;
    }

    .store-site[data-page="invoice"] .invoice-party-row {
        min-width: 760px !important;
    }

    .store-site[data-page="invoice"] .items-section {
        min-width: 900px !important;
    }

    .store-site[data-page="invoice"] #signature {
        min-width: 500px !important;
    }
}


/* ============================================================
   PRINT — A4 LANDSCAPE
   ============================================================ */

@media print {

    @page {
        size: A4 landscape !important;
        margin: 8mm !important;
    }

    html,
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .store-site[data-page="invoice"] {
        background: #fff !important;
    }

    .store-site[data-page="invoice"] main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .store-site[data-page="invoice"] #invoiceContainer {
        max-width: none !important;
        width: 100% !important;
    }

    .store-site[data-page="invoice"] #invoiceWrapper {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 4mm !important;
        border: 1px solid #555 !important;
        box-shadow: none !important;
    }

    .store-site[data-page="invoice"] .invoice-buttons-wrapper,
    .store-site[data-page="invoice"] footer,
    .store-site[data-page="invoice"] header {
        display: none !important;
    }

    .store-site[data-page="invoice"] .party-section,
    .store-site[data-page="invoice"] .items-section,
    .store-site[data-page="invoice"] #signature,
    .store-site[data-page="invoice"] #invoiceHeader {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .store-site[data-page="invoice"] .party-section {
        margin-bottom: 5px !important;
    }

    .store-site[data-page="invoice"] .party-section > h3 {
        padding: 4px 8px !important;
    }

    .store-site[data-page="invoice"] .invoice-party-row .party-field {
        min-height: 31px !important;
        padding: 3px 6px !important;
    }

    .store-site[data-page="invoice"] .invoice-party-row .party-field strong {
        font-size: .62rem !important;
    }

    .store-site[data-page="invoice"] .invoice-party-row .party-field span {
        font-size: .66rem !important;
    }

    .store-site[data-page="invoice"] .items-section th,
    .store-site[data-page="invoice"] .items-section td {
        padding: 4px !important;
    }

    .store-site[data-page="invoice"] .items-section th {
        font-size: .62rem !important;
    }

    .store-site[data-page="invoice"] .items-section tbody td {
        font-size: .62rem !important;
    }

    .store-site[data-page="invoice"] #invoiceWrapper > p {
        min-height: 28px !important;
        margin-top: 5px !important;
        padding: 4px 7px !important;
        font-size: .65rem !important;
    }

    .store-site[data-page="invoice"] #signature {
        min-height: 55px !important;
        margin-top: 5px !important;
    }

    .store-site[data-page="invoice"] #signature div {
        min-height: 55px !important;
        padding-top: 8px !important;
        font-size: .65rem !important;
    }
}


/* ============================================================
   END FINAL FORMAL INVOICE
   ============================================================ */


/* ============================================================
   CENTER INVOICE SECTION TITLES
   ============================================================ */

.store-site[data-page="invoice"] .party-section > h3 {
    text-align: center !important;
}


/* ============================================================
   INVOICE HEADER - CENTER LOGO & TITLE
   ============================================================ */

.store-site[data-page="invoice"] #invoiceHeader {
    grid-template-columns: 1fr 1fr 1fr !important;
}

.store-site[data-page="invoice"] #invoiceHeader .logo-section {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.store-site[data-page="invoice"] #invoiceHeader .invoice-logo {
    display: block !important;
    margin: 0 auto !important;
}

.store-site[data-page="invoice"] #invoiceHeader h1 {
    grid-column: 2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
}

.store-site[data-page="invoice"] #invoiceHeader .invoice-info {
    justify-content: center !important;
    align-items: flex-start !important;
}


/* ============================================================
   INVOICE INFO - CLEAN / NO BORDER / NO BACKGROUND
   ============================================================ */

.store-site[data-page="invoice"] #invoiceHeader .invoice-info {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.store-site[data-page="invoice"] #invoiceHeader .invoice-info p {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #111 !important;
}


/* ============================================================
   INVOICE NUMBER / DATE
   CLEAN TEXT - NO BOX / NO BACKGROUND
   ============================================================ */

.store-site[data-page="invoice"] > main .invoice-info,
.store-site[data-page="invoice"] #invoiceContainer .invoice-info {
    position: absolute !important;

    top: 28px !important;
    left: 30px !important;
    right: auto !important;

    width: auto !important;
    min-width: 190px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: none !important;
    border-width: 0 !important;
    border-color: transparent !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    outline: none !important;

    color: #111 !important;
}

.store-site[data-page="invoice"] #invoiceContainer .invoice-info p {
    background: transparent !important;
    background-color: transparent !important;

    border: none !important;
    box-shadow: none !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    color: #111 !important;
}

.store-site[data-page="invoice"] #invoiceContainer .invoice-info p:last-child {
    margin-bottom: 0 !important;
}

.store-site[data-page="invoice"] #invoiceContainer .invoice-info strong,
.store-site[data-page="invoice"] #invoiceContainer .invoice-info span {
    background: transparent !important;
    color: #111 !important;
}


/* ============================================================
   INVOICE PARTY LABELS - COLON
   ============================================================ */

.store-site[data-page="invoice"] .invoice-party-row .party-field strong::after {
    content: ":" !important;
    margin-right: 3px !important;
}


/* ============================================================
   فاکتور — حذف خطوط داخلی جدول مشخصات فروشنده و خریدار
   کادر بیرونی باقی می‌ماند
   ============================================================ */

.store-site[data-page="invoice"] .invoice-party-row {
    border-left: none !important;
    border-right: none !important;
}

.store-site[data-page="invoice"] .invoice-party-row .party-field {
    border-left: none !important;
    border-right: none !important;
}

/* فقط خط افقی بین ردیف‌های مشخصات باقی بماند */
.store-site[data-page="invoice"] .party-section .invoice-party-row {
    border-bottom: 1px solid #555 !important;
}

/* آخرین ردیف هر بخش خط پایین خودش را داشته باشد */
.store-site[data-page="invoice"] .party-section .invoice-party-row:last-child {
    border-bottom: 1px solid #555 !important;
}


/* ============================================================
   FINAL FIX — حذف کامل فضای اضافی بالای فاکتور
============================================================ */

html body.store-site[data-page="invoice"] {
    margin: 0 !important;
    padding: 0 !important;
}

html body.store-site[data-page="invoice"] main {
    margin: 0 !important;
    padding: 5px 16px 20px !important;
}

html body.store-site[data-page="invoice"] #invoiceContainer {
    margin: 0 auto !important;
    padding: 0 !important;
}

html body.store-site[data-page="invoice"] #invoiceWrapper {
    margin: 0 auto !important;
    padding-top: 14px !important;
}


/* ============================================================
   PURCHASE HISTORY — PREMIUM STORE PAGE
   فقط مخصوص صفحه سوابق خرید
   ============================================================ */

.store-site[data-page="history"] {
    background:
        radial-gradient(circle at 85% 0%, rgba(123, 31, 162, 0.055), transparent 28%),
        radial-gradient(circle at 10% 25%, rgba(33, 150, 243, 0.045), transparent 25%),
        #f7f8fc;
}

/* ---------- Main Container ---------- */

.store-site[data-page="history"] .history-container {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 60px;
}

/* ---------- Page Header ---------- */

.store-site[data-page="history"] .history-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 24px 28px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(30, 41, 59, 0.07);
    border-radius: 20px;
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.055),
        0 2px 8px rgba(15, 23, 42, 0.025);
}

.store-site[data-page="history"] .history-title-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #7b1fa2, #5e2390);
    color: #fff;
    font-size: 29px;
    box-shadow: 0 8px 20px rgba(123, 31, 162, 0.22);
}

.store-site[data-page="history"] .history-header h1 {
    margin: 0 0 6px;
    color: #202124;
    font-size: 25px;
    font-weight: 800;
}

.store-site[data-page="history"] .history-header p {
    margin: 0;
    color: #7a7f87;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- Filter Section ---------- */

.store-site[data-page="history"] .history-filter-section {
    position: relative;
    margin-bottom: 25px;
    padding: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(30, 41, 59, 0.07);
    border-radius: 20px;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.045),
        0 2px 7px rgba(15, 23, 42, 0.025);
}

.store-site[data-page="history"] .filter-toggle {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 17px;
    border: 1px solid #ececf2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fafafd);
    color: #30323a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.store-site[data-page="history"] .filter-toggle:hover {
    border-color: rgba(123, 31, 162, 0.25);
    box-shadow: 0 5px 16px rgba(123, 31, 162, 0.08);
}

.store-site[data-page="history"] .filter-arrow {
    margin-right: auto;
    color: #7b1fa2;
    transition: transform 0.2s ease;
}

.store-site[data-page="history"] .filters-row {
    display: none;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 16px;
    background: #fafafd;
    border: 1px solid #eeeef4;
}

.store-site[data-page="history"] .filter-field {
    min-width: 0;
}

.store-site[data-page="history"] .filter-field label {
    display: block;
    margin: 0 0 8px;
    color: #555a64;
    font-size: 12px;
    font-weight: 700;
}

.store-site[data-page="history"] .filter-field input {
    width: 100%;
    height: 45px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dedfe6;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #30323a;
    font-family: inherit;
    font-size: 13px;
    transition: 0.2s ease;
}

.store-site[data-page="history"] .filter-field input::placeholder {
    color: #a1a4ac;
}

.store-site[data-page="history"] .filter-field input:focus {
    border-color: #7b1fa2;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.09);
}

.store-site[data-page="history"] .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 3px;
}

.store-site[data-page="history"] .filter-btn {
    min-height: 43px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-site[data-page="history"] .apply-filter-btn {
    background: linear-gradient(135deg, #7b1fa2, #5e2390);
    color: #fff;
    box-shadow: 0 6px 16px rgba(123, 31, 162, 0.18);
}

.store-site[data-page="history"] .apply-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(123, 31, 162, 0.24);
}

.store-site[data-page="history"] .clear-filter-btn {
    background: #f0f1f5;
    color: #5e626c;
}

.store-site[data-page="history"] .clear-filter-btn:hover {
    background: #e7e8ed;
}

/* ---------- Excel Button ---------- */

.store-site[data-page="history"] .excel-btn {
    width: 45px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    padding: 0;
    border: 1px solid rgba(33, 115, 70, 0.18);
    border-radius: 11px;
    background: linear-gradient(135deg, #fff, #f4faf6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 115, 70, 0.08);
    transition: all 0.2s ease;
}

.store-site[data-page="history"] .excel-btn svg {
    width: 24px;
    height: 24px;
}

.store-site[data-page="history"] .excel-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 115, 70, 0.35);
    box-shadow: 0 8px 18px rgba(33, 115, 70, 0.15);
}

/* ---------- History Content ---------- */

.store-site[data-page="history"] .purchase-history-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(30, 41, 59, 0.07);
    border-radius: 20px;
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.05),
        0 2px 8px rgba(15, 23, 42, 0.025);
}

.store-site[data-page="history"] .purchase-history {
    width: 100%;
    overflow-x: auto;
}

/* ---------- Table ---------- */

.store-site[data-page="history"] .history-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
    direction: rtl;
    font-family: inherit;
}

.store-site[data-page="history"] .history-table thead th {
    height: 58px;
    padding: 0 14px;
    background: linear-gradient(180deg, #fafafd, #f5f5fa);
    border-bottom: 1px solid #e9e9ef;
    color: #555a64;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.store-site[data-page="history"] .history-table thead th:first-child {
    border-top-right-radius: 18px;
}

.store-site[data-page="history"] .history-table thead th:last-child {
    border-top-left-radius: 18px;
}

.store-site[data-page="history"] .history-table tbody td {
    height: 64px;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f4;
    color: #343741;
    background: #fff;
    font-size: 12.5px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.store-site[data-page="history"] .history-table tbody tr:last-child td {
    border-bottom: 0;
}

.store-site[data-page="history"] .history-table tbody tr:hover td {
    background: #faf8fc;
}

/* ---------- Invoice Number ---------- */

.store-site[data-page="history"] .history-table tbody td:nth-child(2) {
    color: #6b1c91;
    font-weight: 800;
}

/* ---------- Price ---------- */

.store-site[data-page="history"] .history-table tbody td:nth-child(4) {
    color: #202124;
    font-weight: 800;
}

/* ---------- View Invoice Button ---------- */

.store-site[data-page="history"] .history-table a,
.store-site[data-page="history"] .history-table button {
    font-family: inherit;
}

.store-site[data-page="history"] .history-table .invoice-btn,
.store-site[data-page="history"] .history-table .view-invoice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
    min-height: 35px;
    padding: 0 12px;
    border: 1px solid rgba(123, 31, 162, 0.15);
    border-radius: 9px;
    background: #faf7fc;
    color: #6d1b91;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-site[data-page="history"] .history-table .invoice-btn:hover,
.store-site[data-page="history"] .history-table .view-invoice-btn:hover {
    background: #7b1fa2;
    border-color: #7b1fa2;
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Loading ---------- */

.store-site[data-page="history"] .history-loading {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #777c86;
    font-size: 13px;
}

.store-site[data-page="history"] .loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #ececf2;
    border-top-color: #7b1fa2;
    border-radius: 50%;
    animation: historySpinner 0.8s linear infinite;
}

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

/* ---------- Empty State ---------- */

.store-site[data-page="history"] .purchase-history > p {
    margin: 0;
    padding: 70px 20px;
    text-align: center;
    color: #858993;
    font-size: 14px;
}

/* ---------- Persian Datepicker ---------- */

.store-site[data-page="history"] .datepicker-plot-area {
    font-family: inherit;
    border-radius: 14px !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14) !important;
    border: 1px solid #e8e8ef !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {

    .store-site[data-page="history"] .history-container {
        width: min(100% - 24px, 700px);
        padding: 25px 0 45px;
    }

    .store-site[data-page="history"] .history-header {
        padding: 20px;
        border-radius: 17px;
    }

    .store-site[data-page="history"] .history-title-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 25px;
    }

    .store-site[data-page="history"] .history-header h1 {
        font-size: 21px;
    }

    .store-site[data-page="history"] .history-header p {
        font-size: 12px;
    }

    .store-site[data-page="history"] .filters-row {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .store-site[data-page="history"] .history-container {
        width: calc(100% - 18px);
        padding-top: 18px;
    }

    .store-site[data-page="history"] .history-header {
        gap: 13px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .store-site[data-page="history"] .history-title-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 13px;
        font-size: 22px;
    }

    .store-site[data-page="history"] .history-header h1 {
        font-size: 18px;
    }

    .store-site[data-page="history"] .history-header p {
        font-size: 11px;
    }

    .store-site[data-page="history"] .history-filter-section {
        padding: 12px;
        border-radius: 16px;
    }

    .store-site[data-page="history"] .filters-row {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }

    .store-site[data-page="history"] .filter-actions {
        flex-wrap: wrap;
    }

    .store-site[data-page="history"] .excel-btn {
        margin-right: 0;
    }

    .store-site[data-page="history"] .purchase-history-section {
        border-radius: 16px;
    }

}

/* ============================================================
   HISTORY PAGE — UNIFIED CART / PAYMENT THEME
   همان زبان طراحی نهایی سبد خرید و پرداخت
   ============================================================ */

.store-site[data-page="history"] {
    --history-primary: #7b1fa2;
    --history-primary-dark: #5e2390;
    --history-primary-deep: #4f176f;
    --history-primary-light: #a65cc5;

    --history-blue: #d8e0ef;
    --history-purple-soft: #faf5fd;

    --history-border: rgba(123,31,162,.15);
    --history-text: #24202a;
    --history-muted: #716a78;

    --history-success: #168858;
    --history-danger: #b91c1c;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(123,31,162,.07),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 4%,
            rgba(90,110,160,.08),
            transparent 30%
        ),
        #f7f5fa;
}


/* ============================================================
   MAIN CONTAINER
============================================================ */

.store-site[data-page="history"] .history-container {
    width: min(1450px, calc(100% - 32px));
    margin: 30px auto 60px;
}


/* ============================================================
   HISTORY HEADER
   آبی / بنفش / خاکستری — هماهنگ با Cart
============================================================ */

.store-site[data-page="history"] .history-header {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 25px 28px;
    margin-bottom: 20px;

    border: 1px solid rgba(65,55,120,.35);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #5965a0,
            #63599d 48%,
            #536f9f
        );

    box-shadow:
        0 16px 36px rgba(55,55,105,.22),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.store-site[data-page="history"] .history-header::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #4f176f,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #4f176f
        );
}

.store-site[data-page="history"] .history-header::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    left: -85px;
    top: -105px;

    border-radius: 50%;

    background: rgba(255,255,255,.07);

    pointer-events: none;
}

.store-site[data-page="history"] .history-title-icon {
    position: relative;
    z-index: 1;

    width: 62px;
    height: 62px;
    flex: 0 0 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    font-size: 29px;

    background:
        linear-gradient(
            135deg,
            #7b1fa2,
            #a65cc5
        );

    border: 1px solid rgba(255,255,255,.20);

    box-shadow:
        0 10px 23px rgba(55,25,85,.28),
        inset 0 1px 0 rgba(255,255,255,.20);
}

.store-site[data-page="history"] .history-header > div:last-child {
    position: relative;
    z-index: 1;
}

.store-site[data-page="history"] .history-header h1 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 900;

    letter-spacing: -.4px;
}

.store-site[data-page="history"] .history-header p {
    margin: 0;

    color: #e9e8f7;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
}


/* ============================================================
   FILTER SECTION
   همان ساختار کارت Payment
============================================================ */

.store-site[data-page="history"] .history-filter-section {
    position: relative;
    overflow: hidden;

    margin-bottom: 20px;
    padding: 14px;

    border: 1px solid rgba(123,31,162,.18);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #dfd0e5,
            #dcdce8,
            #d6deeb
        );

    box-shadow:
        0 14px 35px rgba(35,20,45,.12),
        inset 0 1px 0 rgba(255,255,255,.55);
}

.store-site[data-page="history"] .history-filter-section::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #5e2390,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #5e2390
        );
}


/* ============================================================
   FILTER TOGGLE
============================================================ */

.store-site[data-page="history"] .filter-toggle {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 20px;

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 14px;

    cursor: pointer;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #a34cc2 0%,
            #7b1fa2 48%,
            #5e2390 100%
        );

    box-shadow:
        0 8px 20px rgba(92,27,112,.24),
        inset 0 1px 0 rgba(255,255,255,.20);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.store-site[data-page="history"] .filter-toggle::before {
    content: "";

    position: absolute;

    top: 0;
    right: -120%;

    width: 65%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.20),
            transparent
        );

    transform: skewX(-22deg);

    transition: right .55s ease;

    pointer-events: none;
}

.store-site[data-page="history"] .filter-toggle:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 12px 25px rgba(92,27,112,.31),
        inset 0 1px 0 rgba(255,255,255,.23);
}

.store-site[data-page="history"] .filter-toggle:hover::before {
    right: 140%;
}

.store-site[data-page="history"] .filter-toggle:active {
    transform: translateY(0);
}

.store-site[data-page="history"] .filter-arrow {
    font-size: 12px;
    opacity: .92;

    transition:
        transform .25s ease,
        opacity .2s ease;
}

.store-site[data-page="history"] .filter-arrow {
    font-size: 12px;
    opacity: .9;

    transition: transform .25s ease;
}


/* ============================================================
   FILTER GRID
============================================================ */

.store-site[data-page="history"] .filters-row {
    display: none;

    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 15px;

    margin-top: 14px;
    padding: 20px;

    border: 1px solid rgba(123,31,162,.16);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #faf5fd,
            #f0f4ff
        );

    box-shadow:
        0 9px 24px rgba(25,18,35,.06),
        inset 0 1px 0 rgba(255,255,255,.80);

    animation: historyFilterOpen .22s ease;
}

@keyframes historyFilterOpen {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.store-site[data-page="history"] .filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.store-site[data-page="history"] .filter-field label {
    color: #4d4754;

    font-size: 13px;
    font-weight: 900;
}

.store-site[data-page="history"] .filter-field input {
    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid rgba(123,31,162,.13);
    border-radius: 12px;

    outline: none;

    background: rgba(255,255,255,.78);

    color: #29242e;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.store-site[data-page="history"] .filter-field input::placeholder {
    color: #aaa3b0;
}

.store-site[data-page="history"] .filter-field input:hover {
    border-color: rgba(123,31,162,.22);
}

.store-site[data-page="history"] .filter-field input:focus {
    border-color: #7b1fa2;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(123,31,162,.09),
        0 5px 14px rgba(25,18,35,.05);
}


/* ============================================================
   FILTER ACTIONS
============================================================ */

.store-site[data-page="history"] .filter-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 10px;

    padding-top: 3px;
}

.store-site[data-page="history"] .filter-btn,
.store-site[data-page="history"] .excel-btn {
    min-height: 45px;

    border-radius: 12px;

    cursor: pointer;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.store-site[data-page="history"] .filter-btn {
    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.store-site[data-page="history"] .apply-filter-btn {
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.20);

    background:
        linear-gradient(
            135deg,
            #7b1fa2,
            #5e2390
        );

    box-shadow:
        0 8px 18px rgba(93,32,111,.22),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.store-site[data-page="history"] .clear-filter-btn {
    color: #4d4754;

    background: #f1eff4;

    border: 1px solid rgba(123,31,162,.10);

    box-shadow:
        0 5px 13px rgba(25,18,35,.045);
}

.store-site[data-page="history"] .excel-btn {
    width: 48px;
    padding: 0;

    margin-right: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f1f8f3;

    border: 1px solid #cfe5d7;

    box-shadow:
        0 6px 15px rgba(33,115,70,.10);
}

.store-site[data-page="history"] .excel-btn svg {
    width: 25px;
    height: 25px;
}

.store-site[data-page="history"] .filter-btn:hover,
.store-site[data-page="history"] .excel-btn:hover {
    transform: translateY(-2px);
}

.store-site[data-page="history"] .apply-filter-btn:hover {
    filter: brightness(1.06);

    box-shadow:
        0 12px 25px rgba(93,32,111,.30),
        inset 0 1px 0 rgba(255,255,255,.20);
}

.store-site[data-page="history"] .clear-filter-btn:hover {
    background: #ebe8ef;

    box-shadow:
        0 7px 16px rgba(25,18,35,.07);
}

.store-site[data-page="history"] .excel-btn:hover {
    background: #e8f5ec;

    box-shadow:
        0 9px 20px rgba(33,115,70,.16);
}


/* ============================================================
   HISTORY CARD
============================================================ */

.store-site[data-page="history"] .purchase-history-section {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(123,31,162,.15);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf9fc 100%
        );

    box-shadow:
        0 10px 28px rgba(25,18,35,.07),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.store-site[data-page="history"] .purchase-history-section::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #4f176f,
            #7b1fa2,
            #a65cc5,
            #7b1fa2,
            #4f176f
        );
}

.store-site[data-page="history"] .purchase-history {
    width: 100%;

    overflow-x: auto;

    scrollbar-width: thin;

    scrollbar-color:
        #c9c3d9
        transparent;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar {
    height: 8px;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar-track {
    background: #f7f5fa;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #c9c3d9;
}


/* ============================================================
   TABLE — CART / PAYMENT PREMIUM STYLE
   همان زبان طراحی نهایی سبد خرید و پرداخت
============================================================ */

.store-site[data-page="history"] .history-table {
    width: 100%;
    min-width: 1080px;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    color: #29242e;

    font-size: 13px;
}


/* ============================================================
   TABLE HEADER
============================================================ */

.store-site[data-page="history"] .history-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;

    height: 58px;

    padding: 0 14px;

    white-space: nowrap;

    color: #ffffff;

    text-align: center;

    font-size: 12px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #5965a0 0%,
            #63599d 48%,
            #536f9f 100%
        );

    border: 0;

    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,.13);
}

.store-site[data-page="history"] .history-table thead th:first-child {
    border-top-right-radius: 0;
}

.store-site[data-page="history"] .history-table thead th:last-child {
    border-top-left-radius: 0;
}


/* ============================================================
   TABLE BODY
============================================================ */

.store-site[data-page="history"] .history-table tbody tr {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fcfbfe 100%
        );

    transition:
        background .20s ease,
        box-shadow .20s ease,
        transform .20s ease;
}

.store-site[data-page="history"] .history-table tbody tr:nth-child(even) {
    background:
        linear-gradient(
            145deg,
            #faf5fd 0%,
            #f0f4ff 100%
        );
}

.store-site[data-page="history"] .history-table tbody tr:hover {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #f7effb 0%,
            #eef3ff 100%
        );

    box-shadow:
        inset 4px 0 0 #7b1fa2,
        0 5px 16px rgba(79,23,111,.06);
}


/* ============================================================
   CELLS
============================================================ */

.store-site[data-page="history"] .history-table tbody td {
    height: 64px;

    padding: 9px 13px;

    text-align: center;

    white-space: nowrap;

    color: #4d4754;

    font-size: 13px;
    font-weight: 650;

    border-bottom:
        1px solid rgba(123,31,162,.10);

    vertical-align: middle;

    transition:
        color .18s ease,
        background .18s ease;
}

.store-site[data-page="history"] .history-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   ROW NUMBER
============================================================ */

.store-site[data-page="history"] .history-table tbody td:first-child {
    width: 60px;

    color: #aaa3b0;

    font-size: 12px;
    font-weight: 850;
}


/* ============================================================
   INVOICE NUMBER
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(2) {
    color: #5e2390;

    font-size: 13px;
    font-weight: 950;
}


/* ============================================================
   DATE
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(3) {
    color: #716a78;

    font-size: 12.5px;
    font-weight: 750;
}


/* ============================================================
   TOTAL PRICE
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(4) {
    min-width: 150px;

    color: #39323f;

    font-size: 13px;
    font-weight: 950;

    font-variant-numeric: tabular-nums;
}


/* ============================================================
   ITEMS COUNT
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(5) {
    color: #4d4754;

    font-weight: 850;
}

.store-site[data-page="history"] .history-table tbody td:nth-child(5)::before {
    content: "";

    display: inline-block;
}


/* ============================================================
   BUYER / SELLER
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(6),
.store-site[data-page="history"] .history-table tbody td:nth-child(7) {
    color: #3f3945;

    font-size: 12.5px;
    font-weight: 700;
}


/* ============================================================
   STATUS BADGE
============================================================ */

.store-site[data-page="history"] .history-table tbody td:nth-child(8) {
    padding-left: 10px;
    padding-right: 10px;

    color: #4d4754;

    font-weight: 850;
}

.store-site[data-page="history"] .history-table tbody td:nth-child(8) {
    text-align: center;
}

.store-site[data-page="history"] .history-table tbody td:nth-child(8) {
    background: transparent;
}


/* پرداخت‌شده */

.store-site[data-page="history"] .history-table tbody td:nth-child(8):has(> *) {
    color: #168858;
}


/* ============================================================
   VIEW INVOICE
============================================================ */

.store-site[data-page="history"] .history-table tbody td:last-child {
    min-width: 125px;

    padding-left: 16px;
    padding-right: 16px;
}

.store-site[data-page="history"] .history-table tbody td:last-child button {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    min-width: 94px;
    height: 38px;

    padding: 0 16px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;

    cursor: pointer;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #a34cc2 0%,
            #7b1fa2 48%,
            #511d68 100%
        );

    box-shadow:
        0 7px 17px rgba(92,27,112,.22),
        inset 0 1px 0 rgba(255,255,255,.18);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.store-site[data-page="history"] .history-table tbody td:last-child button::before {
    content: "";

    position: absolute;

    top: 0;
    right: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );

    transform: skewX(-22deg);

    transition: right .55s ease;
}

.store-site[data-page="history"] .history-table tbody td:last-child button:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 11px 24px rgba(92,27,112,.30),
        inset 0 1px 0 rgba(255,255,255,.22);
}

.store-site[data-page="history"] .history-table tbody td:last-child button:hover::before {
    right: 140%;
}

.store-site[data-page="history"] .history-table tbody td:last-child button:active {
    transform: translateY(0);
}


/* ============================================================
   TABLE SCROLLBAR
============================================================ */

.store-site[data-page="history"] .purchase-history {
    scrollbar-width: thin;

    scrollbar-color:
        #c9c3d9
        transparent;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar {
    height: 8px;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar-track {
    background: #f7f5fa;
}

.store-site[data-page="history"] .purchase-history::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #c9c3d9,
            #aaa3b0
        );
}


/* ============================================================
   LOADING
============================================================ */

.store-site[data-page="history"] .history-loading {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;

    color: #85808d;

    font-size: 14px;
}

.store-site[data-page="history"] .history-loading p {
    margin: 0;
    font-weight: 750;
}

.store-site[data-page="history"] .loading-spinner {
    width: 42px;
    height: 42px;

    border: 4px solid #eeeaf1;

    border-top-color: #7b1fa2;

    border-radius: 50%;

    animation:
        historySpin .75s linear infinite;
}

@keyframes historySpin {

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   EMPTY / ERROR
============================================================ */

.store-site[data-page="history"] .purchase-history > p {
    min-height: 220px;

    margin: 0;
    padding: 35px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #85808d;

    font-size: 14px;
    font-weight: 700;
}

.store-site[data-page="history"] .purchase-history > p[style*="color:red"] {
    color: #b91c1c !important;

    background:
        linear-gradient(
            135deg,
            #fff7f7,
            #faf9fc
        );
}


/* ============================================================
   DATEPICKER
============================================================ */

.store-site[data-page="history"] .datepicker-plot-area {
    border: 1px solid rgba(123,31,162,.16) !important;

    border-radius: 15px !important;

    box-shadow:
        0 16px 35px rgba(35,20,45,.16) !important;

    overflow: hidden;
}

.store-site[data-page="history"] .datepicker-plot-area .table-days td.selected span {
    background: #7b1fa2 !important;
}

.store-site[data-page="history"] .datepicker-plot-area .table-days td span {
    border-radius: 8px !important;
}


/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1000px) {

    .store-site[data-page="history"] .filters-row {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .store-site[data-page="history"] .history-container {
        width: min(100% - 22px, 1450px);

        margin-top: 22px;
    }

}


/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 650px) {

    .store-site[data-page="history"] .history-container {
        width: calc(100% - 14px);

        margin: 15px auto 35px;
    }

    .store-site[data-page="history"] .history-header {
        padding: 20px 17px;

        gap: 13px;

        border-radius: 17px;
    }

    .store-site[data-page="history"] .history-title-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        border-radius: 14px;

        font-size: 25px;
    }

    .store-site[data-page="history"] .history-header h1 {
        font-size: 21px;
    }

    .store-site[data-page="history"] .history-header p {
        font-size: 12px;
    }

    .store-site[data-page="history"] .history-filter-section {
        padding: 9px;

        border-radius: 17px;
    }

    .store-site[data-page="history"] .filter-toggle {
        min-height: 50px;

        border-radius: 13px;

        font-size: 13px;
    }

    .store-site[data-page="history"] .filters-row {
        grid-template-columns: 1fr;

        padding: 14px;

        gap: 13px;

        border-radius: 14px;
    }

    .store-site[data-page="history"] .filter-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr auto;

        gap: 8px;
    }

    .store-site[data-page="history"] .filter-btn {
        width: 100%;

        padding: 0 9px;

        font-size: 11.5px;
    }

    .store-site[data-page="history"] .excel-btn {
        width: 44px;
    }

    .store-site[data-page="history"] .purchase-history-section {
        border-radius: 17px;
    }

    .store-site[data-page="history"] .history-table {
        min-width: 1000px;

        font-size: 12px;
    }

    .store-site[data-page="history"] .history-table thead th {
        height: 52px;

        font-size: 11px;
    }

    .store-site[data-page="history"] .history-table tbody td {
        height: 56px;

        padding: 7px 10px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 390px) {

    .store-site[data-page="history"] .filter-actions {
        grid-template-columns:
            1fr 1fr;
    }

    .store-site[data-page="history"] .excel-btn {
        grid-column: 1 / -1;

        width: 100%;
    }

}


/* ============================================================
   FINAL PRICE ALIGNMENT — STORE PRODUCT CARDS + FAVORITES
   + PRODUCT DETAIL
   ============================================================ */

/* صفحه اصلی فروشگاه + کارت‌های محصول + علاقه‌مندی‌ها */
.store-site #storeProductsContainer .product-card .price-info,
.store-site .store-product-card .price-info {
    text-align: center !important;
}

/* قیمت اصلی */
.store-site #storeProductsContainer .product-card .price-original,
.store-site .store-product-card .price-original {
    text-align: center !important;
}

/* قیمت نهایی / قیمت عادی */
.store-site #storeProductsContainer .product-card .price-discounted,
.store-site #storeProductsContainer .product-card .price,
.store-site .store-product-card .price-discounted,
.store-site .store-product-card .price {
    text-align: center !important;
}

/* صفحه جزئیات محصول */
.store-site .product-detail-wrapper .product-price {
    text-align: center !important;
}

.store-site .product-detail-wrapper .product-price .price-original,
.store-site .product-detail-wrapper .product-price .price-discounted,
.store-site .product-detail-wrapper .product-price .price {
    text-align: center !important;
}



/* ============================================================
   PRODUCT DETAIL — FINAL PRICE CENTER
   ============================================================ */

.store-site .product-detail-wrapper .product-image-section .product-price {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.store-site .product-detail-wrapper .product-image-section .product-price .price-original,
.store-site .product-detail-wrapper .product-image-section .product-price .price-discounted,
.store-site .product-detail-wrapper .product-image-section .product-price .price {
    display: block !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.store-site .product-detail-wrapper .product-image-section .product-price .price-original s {
    text-align: center !important;
}


/* ============================================================
   STORE PROFILE — PREMIUM THEME
   پروفایل کاربر فروشگاه
   ============================================================ */

.store-site .profile-section {
    width: min(920px, calc(100% - 32px));
    margin: 42px auto 55px;
    padding: 34px 38px 38px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,250,253,.98));
    border: 1px solid rgba(72,93,118,.13);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(25,45,70,.10), 0 4px 12px rgba(25,45,70,.05);
    box-sizing: border-box;
}

.store-site .profile-section h1 {
    position: relative;
    margin: 0 0 30px;
    padding: 0 0 18px;
    color: #26384d;
    font-size: 27px;
    font-weight: 900;
    text-align: center;
}

.store-site .profile-section h1::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 72px;
    height: 4px;
    transform: translateX(50%);
    background: linear-gradient(90deg, #1769d2, #7b1fa2);
    border-radius: 20px;
}

.store-site #profileForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
}

.store-site #profileForm label {
    display: block;
    margin: 12px 3px 7px;
    color: #44566b;
    font-size: 13px;
    font-weight: 800;
}

.store-site #profileForm input,
.store-site #profileForm textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #fff;
    color: #26384d;
    border: 1px solid #d3dce6;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 1px 2px rgba(30,50,70,.025), 0 2px 7px rgba(30,50,70,.035);
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.store-site #profileForm input {
    min-height: 46px;
}

.store-site #profileForm textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.8;
}

.store-site #profileForm input:focus,
.store-site #profileForm textarea:focus {
    border-color: rgba(23,105,210,.48);
    box-shadow: 0 0 0 4px rgba(23,105,210,.08), 0 5px 15px rgba(23,105,210,.07);
}

.store-site #profileForm #username {
    background: linear-gradient(135deg, #eef3f8, #e7edf4);
    color: #617184;
    border-color: #d2dce6;
    cursor: not-allowed;
}

.store-site #profileForm button[type="submit"] {
    grid-column: 1 / -1;
    width: min(360px, 100%);
    min-height: 50px;
    margin: 28px auto 0;
    padding: 12px 26px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #1769d2, #315bb8 48%, #7b1fa2);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(49,91,184,.20), 0 3px 8px rgba(123,31,162,.10);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.store-site #profileForm button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.035);
    box-shadow: 0 14px 28px rgba(49,91,184,.25), 0 5px 12px rgba(123,31,162,.13);
}

.store-site #profileForm button[type="submit"]:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .store-site .profile-section {
        width: calc(100% - 20px);
        margin: 22px auto 35px;
        padding: 25px 17px 28px;
        border-radius: 19px;
    }

    .store-site .profile-section h1 {
        margin-bottom: 23px;
        font-size: 23px;
    }

    .store-site #profileForm {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .store-site #profileForm label {
        margin-top: 13px;
    }

    .store-site #profileForm input,
    .store-site #profileForm textarea {
        font-size: 14px;
        border-radius: 11px;
    }

    .store-site #profileForm button[type="submit"] {
        width: 100%;
        margin-top: 25px;
    }
}

@media (max-width: 390px) {
    .store-site .profile-section {
        width: calc(100% - 14px);
        padding: 22px 13px 24px;
    }

    .store-site .profile-section h1 {
        font-size: 21px;
    }
}


/* ============================================================
   PROFILE CARD — LIGHT GRAY BACKGROUND
   ============================================================ */

.store-site .profile-section {
    background:
        linear-gradient(
            145deg,
            #f1f4f7,
            #e9edf2
        ) !important;
}



/* ============================================================
   MY PRODUCT ALERTS — PROFILE
   هشدارهای من — فقط داخل پروفایل فروشگاه
   ============================================================ */

.store-site .my-product-alerts {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(72, 93, 118, .14);
}

.store-site .my-product-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.store-site .my-product-alerts-header h2 {
    margin: 0;
    color: #26384d;
    font-size: 21px;
    font-weight: 900;
}

.store-site .my-product-alerts-header p {
    margin: 7px 0 0;
    color: #68788a;
    font-size: 12px;
    font-weight: 700;
}

.store-site .my-product-alerts-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9eef5;
    color: #4b6077;
    font-size: 12px;
    font-weight: 900;
}

.store-site .my-product-alerts-list {
    display: grid;
    gap: 13px;
}

.store-site .my-product-alert-card {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #d8e0e8;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(25, 45, 70, .06);
    box-sizing: border-box;
}

.store-site .my-product-alert-image-wrap {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f5f8;
}

.store-site .my-product-alert-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-site .my-product-alert-content {
    min-width: 0;
    flex: 1;
}

.store-site .my-product-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.store-site .my-product-alert-type {
    color: #40546a;
    font-size: 12px;
    font-weight: 900;
}

.store-site .my-product-alert-status {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.store-site .my-product-alert-card.is-active .my-product-alert-status {
    background: #e8f7ee;
    color: #217346;
}

.store-site .my-product-alert-card.is-triggered .my-product-alert-status {
    background: #fff4dc;
    color: #986814;
}

.store-site .my-product-alert-card.is-inactive .my-product-alert-status {
    background: #edf0f3;
    color: #697786;
}

.store-site .my-product-alert-title {
    margin: 9px 0 5px;
    color: #26384d;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
}

.store-site .my-product-alert-description {
    margin: 0;
    color: #657487;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.store-site .my-product-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 9px;
    color: #718094;
    font-size: 11px;
    font-weight: 700;
}

.store-site .my-product-alert-meta strong {
    color: #314b67;
    font-weight: 900;
}

.store-site .my-product-alert-action {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-top: 12px;
    padding: 0;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform .2s cubic-bezier(.2,.8,.2,1),
        filter .2s ease,
        opacity .2s ease;
}

.store-site .my-product-alert-bell-icon {
    width: 30px;
    height: 30px;
    display: block;
    overflow: visible;
    fill: rgba(170,175,185,.07);
    stroke: #9da4ae;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0 1px 1px rgba(0,0,0,.16));
    opacity: .72;
    transition:
        transform .2s ease,
        filter .2s ease,
        fill .2s ease,
        stroke .2s ease,
        opacity .2s ease;
}

.store-site .my-product-alert-action.is-active
.my-product-alert-bell-icon {
    fill: rgba(238,177,42,.20);
    stroke: #d28d08;
    opacity: 1;
    filter:
        drop-shadow(0 2px 2px rgba(105,70,0,.30))
        drop-shadow(0 0 6px rgba(224,158,22,.30));
}

.store-site .my-product-alert-action:hover {
    transform: translateY(-2px) scale(1.06);
}

.store-site .my-product-alert-action:hover
.my-product-alert-bell-icon {
    transform: scale(1.08);
}

.store-site .my-product-alert-action.is-active:hover
.my-product-alert-bell-icon {
    fill: rgba(245,188,57,.27);
    stroke: #b97800;
    filter:
        drop-shadow(0 3px 3px rgba(105,70,0,.36))
        drop-shadow(0 0 9px rgba(224,158,22,.36));
}

.store-site .my-product-alert-action:active {
    transform: translateY(0) scale(.92);
}

.store-site .my-product-alert-action:focus-visible {
    outline: 2px solid rgba(210,141,8,.45) !important;
    outline-offset: 3px;
    border-radius: 50%;
}

.store-site .my-product-alert-action:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.store-site .my-product-alert-action:disabled {
    opacity: .55;
    cursor: wait;
}

.store-site .my-product-alerts-state {
    padding: 20px;
    text-align: center;
    color: #718094;
    font-size: 13px;
    font-weight: 700;
}

.store-site .my-product-alerts-error {
    color: #a04444;
}

@media (max-width: 700px) {

    .store-site .my-product-alerts {
        margin-top: 28px;
        padding-top: 24px;
    }

    .store-site .my-product-alerts-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .store-site .my-product-alert-card {
        gap: 11px;
        padding: 12px;
    }

    .store-site .my-product-alert-image-wrap {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .store-site .my-product-alert-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .store-site .my-product-alert-title {
        font-size: 14px;
    }

    .store-site .my-product-alert-meta {
        flex-direction: column;
        gap: 4px;
    }

    .store-site .my-product-alert-action {
        width: 100%;
    }
}

/* ============================================================
   STORE SIGNUP — SAME AS PROFILE
   ثبت نام فروشگاه — هماهنگ دقیق با پروفایل
   ============================================================ */

.store-site .signup-section {
    width: min(920px, calc(100% - 32px));
    margin: 42px auto 55px;
    padding: 34px 38px 38px;

    background:
        linear-gradient(
            145deg,
            #f1f4f7,
            #e9edf2
        );

    border: 1px solid rgba(72, 93, 118, .13);
    border-radius: 24px;

    box-shadow:
        0 18px 45px rgba(25, 45, 70, .10),
        0 4px 12px rgba(25, 45, 70, .05);

    box-sizing: border-box;
}

.store-site .signup-section h1,
.store-site .signup-section h2 {
    position: relative;
    margin: 0 0 30px;
    padding: 0 0 18px;

    color: #26384d;
    font-size: 27px;
    font-weight: 900;
    text-align: center;
}

.store-site .signup-section h1::after,
.store-site .signup-section h2::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;

    width: 72px;
    height: 4px;

    transform: translateX(50%);

    background:
        linear-gradient(
            90deg,
            #1769d2,
            #7b1fa2
        );

    border-radius: 20px;
}

.store-site #signupForm {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 24px;
    row-gap: 8px;
}

.store-site #signupForm label {
    display: block;

    margin: 12px 3px 7px;

    color: #44566b;
    font-size: 13px;
    font-weight: 800;
}

.store-site #signupForm input {
    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    padding: 12px 14px;

    background: #ffffff;
    color: #26384d;

    border: 1px solid #d3dce6;
    border-radius: 12px;

    outline: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    box-shadow:
        inset 0 1px 2px rgba(30, 50, 70, .025),
        0 2px 7px rgba(30, 50, 70, .035);

    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.store-site #signupForm input:focus {
    border-color: rgba(23, 105, 210, .48);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(23, 105, 210, .08),
        0 5px 15px rgba(23, 105, 210, .07);
}

.store-site #signupForm #password,
.store-site #signupForm #confirmPassword {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fafbfe
        );
}

.store-site #signupForm #verificationCode {
    letter-spacing: 3px;
    text-align: center;
    font-weight: 800;
}

.store-site #signupForm #sendCodeBtn {
    align-self: end;

    min-height: 46px;

    margin-top: 12px;
    padding: 11px 20px;

    border: 1px solid rgba(23, 105, 210, .22);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #eef5ff,
            #e7edf8
        );

    color: #315bb8;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(30, 70, 120, .07);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.store-site #signupForm #sendCodeBtn:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #e8f1ff,
            #dde7f7
        );

    box-shadow:
        0 8px 18px rgba(30, 70, 120, .11);
}

.store-site #signupForm > button[type="submit"] {
    grid-column: 1 / -1;

    width: min(360px, 100%);
    min-height: 50px;

    margin: 28px auto 0;
    padding: 12px 26px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #1769d2,
            #315bb8 48%,
            #7b1fa2
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(49, 91, 184, .20),
        0 3px 8px rgba(123, 31, 162, .10);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.store-site #signupForm > button[type="submit"]:hover {
    transform: translateY(-2px);

    filter: brightness(1.035);

    box-shadow:
        0 14px 28px rgba(49, 91, 184, .25),
        0 5px 12px rgba(123, 31, 162, .13);
}

.store-site #signupForm > button[type="submit"]:active {
    transform: translateY(0);
}

@media (max-width: 700px) {

    .store-site .signup-section {
        width: calc(100% - 20px);

        margin: 22px auto 35px;

        padding: 25px 17px 28px;

        border-radius: 19px;
    }

    .store-site .signup-section h1,
    .store-site .signup-section h2 {
        margin-bottom: 23px;
        font-size: 23px;
    }

    .store-site #signupForm {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .store-site #signupForm label {
        margin-top: 13px;
    }

    .store-site #signupForm input {
        min-height: 45px;
        font-size: 14px;
        border-radius: 11px;
    }

    .store-site #signupForm #sendCodeBtn {
        width: 100%;
        margin-top: 14px;
    }

    .store-site #signupForm > button[type="submit"] {
        width: 100%;
        margin-top: 25px;
    }
}

@media (max-width: 390px) {

    .store-site .signup-section {
        width: calc(100% - 14px);
        padding: 22px 13px 24px;
    }

    .store-site .signup-section h1,
    .store-site .signup-section h2 {
        font-size: 21px;
    }
}


/* ============================================================
   SIGNUP MOBILE + VERIFICATION
   ============================================================ */

.store-site #signupForm .signup-mobile-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    align-items: center;
}

.store-site #signupForm .signup-mobile-row input {
    width: 100%;
}

.store-site #signupForm .signup-mobile-row #sendCodeBtn {
    width: 100%;
    margin: 0;
}

.store-site #signupForm #verificationCode {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 700px) {

    .store-site #signupForm .signup-mobile-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .store-site #signupForm .signup-mobile-row #sendCodeBtn {
        width: 100%;
        min-height: 46px;
    }

}


/* ============================================================
   SIGNUP — FORM LAYOUT FINAL
   چیدمان نهایی فرم ثبت نام
   ============================================================ */

.store-site #signupForm {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    column-gap: 18px !important;
    row-gap: 8px !important;
    align-items: center !important;
}

/* عنوان فیلدها */
.store-site #signupForm > label {
    grid-column: 1 !important;
    margin: 8px 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* ورودی‌های معمولی */
.store-site #signupForm > input {
    grid-column: 2 !important;
    margin: 8px 0 !important;
}

/* ردیف شماره موبایل */
.store-site #signupForm > label[for="mobile"] {
    grid-column: 1 !important;
}

.store-site #signupForm .signup-mobile-row {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 12px !important;
    align-items: center !important;
}

/* کد اعتبارسنجی */
.store-site #signupForm > label[for="verificationCode"] {
    grid-column: 1 !important;
}

.store-site #signupForm #verificationCode {
    grid-column: 2 !important;
    width: 100% !important;
    margin: 8px 0 !important;
}

/* دکمه ثبت نام */
.store-site #signupForm > button[type="submit"] {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .store-site #signupForm {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .store-site #signupForm > label {
        width: 100% !important;
        margin: 13px 0 7px !important;
        text-align: right !important;
    }

    .store-site #signupForm > input {
        width: 100% !important;
        margin: 0 !important;
    }

    .store-site #signupForm .signup-mobile-row {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .store-site #signupForm .signup-mobile-row input,
    .store-site #signupForm .signup-mobile-row #sendCodeBtn {
        width: 100% !important;
    }

    .store-site #signupForm #verificationCode {
        width: 100% !important;
        margin: 0 !important;
    }

    .store-site #signupForm > button[type="submit"] {
        width: 100% !important;
        margin-top: 25px !important;
    }
}

/* =========================================================
   STORE MESSAGES
   CLEAN PREMIUM THEME
   Customer + Admin
   ========================================================= */

:root {
    --sm-primary: #7b1fa2;
    --sm-primary-dark: #63308d;
    --sm-secondary: #426fa7;

    --sm-bg: #f5f6fa;
    --sm-panel: #ffffff;
    --sm-panel-soft: #fafbfe;

    --sm-text: #29242e;
    --sm-muted: #85808d;
    --sm-border: rgba(90, 70, 110, 0.10);

    --sm-shadow:
        0 18px 50px rgba(72, 45, 96, 0.10),
        0 4px 14px rgba(70, 80, 100, 0.06);

    --sm-gradient:
        linear-gradient(
            135deg,
            #7b1fa2 0%,
            #63308d 52%,
            #426fa7 100%
        );

    --sm-radius: 22px;
}


/* =========================================================
   PAGE
   ========================================================= */

.store-messages-page {
    width: 100%;
    height: calc(100dvh - 120px);
    min-height: 0;
    padding: 12px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            135deg,
            #f8f2fc 0%,
            #f3f6fb 50%,
            #f6f7f9 100%
        );

    overflow-x: hidden;
    overflow-y: auto;
}


/* =========================================================
   CUSTOMER CARD
   ========================================================= */

.store-messages-card {
    width: min(100%, 950px);
    height: calc(100dvh - 190px);
    min-height: 520px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    background: var(--sm-panel);
    border: 2px solid rgba(123, 31, 162, 0.22);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);

    overflow: hidden;
}


/* =========================================================
   COMMON HEADER
   ========================================================= */

.store-messages-header,
.store-admin-messages-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 21px 26px;

    color: #fff;
    background: var(--sm-gradient);
}

.store-messages-title,
.store-admin-messages-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.store-messages-subtitle,
.store-admin-messages-subtitle {
    margin-top: 5px;

    font-size: 14px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.84);
}

.store-messages-status {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.13);

    font-size: 13px;
    white-space: nowrap;
}

.store-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #d9f5e8;
    box-shadow:
        0 0 0 4px rgba(217, 245, 232, 0.12);
}


/* =========================================================
   CUSTOMER MESSAGES
   ========================================================= */

.store-messages-list {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 24px;

    background:
        linear-gradient(
            180deg,
            #fafbfe 0%,
            #f7f8fb 100%
        );

    scrollbar-width: thin;
}

.store-message-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 0 2px;
    padding: 0;
    box-sizing: border-box;
}

.store-message-row:last-child {
    margin-bottom: 0;
}

.store-message-row.customer-message {
    justify-content: flex-start;
}

.store-message-row.admin-message {
    justify-content: flex-end;
}

.store-message-bubble {
    display: block;
    width: max-content;
    max-width: min(72%, 620px);
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 1px 5px;
    box-sizing: border-box;
    border: 1.5px solid #d1c5da;
    border-radius: 8px;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.customer-message .store-message-bubble {
    background: #fff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 7px rgba(70, 70, 100, .04);
}

.admin-message .store-message-bubble {
    background: linear-gradient(135deg, #f1e5f8, #edf3fa);
    border-bottom-left-radius: 3px;
}

.store-message-sender {
    display: block;
    width: max-content;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #6d208f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.admin-message .store-message-sender {
    color: var(--sm-secondary);
}

.store-message-body {
    display: block;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--sm-text);
    font-size: 14px;
    line-height: 1.15;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.store-message-time {
    display: block;
    width: max-content;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--sm-muted);
    font-size: 8px;
    line-height: 1;
}


/* =========================================================
   CUSTOMER COMPOSER
   ========================================================= */

.store-message-composer {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;

    padding: 14px 18px;

    border-top: 2px solid #ddd3e5;

    background: #fff;
}

.store-message-composer textarea,
.store-admin-composer textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    max-height: 150px;

    box-sizing: border-box;

    padding: 10px 13px;

    resize: vertical;

    border: 1px solid #ddd7e5;
    border-radius: 14px;

    outline: none;

    background: #fcfcfe;
    color: var(--sm-text);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.store-message-composer textarea:focus,
.store-admin-composer textarea:focus {
    border-color: var(--sm-primary);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(123, 31, 162, 0.08);
}

.store-message-composer-bottom,
.store-admin-composer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: 9px;
}

#storeMessageCounter,
#storeAdminMessageCounter {
    color: var(--sm-muted);

    font-size: 13px;
}

.store-message-send {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;

    padding: 9px 18px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--sm-primary),
            var(--sm-secondary)
        );

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(91, 54, 130, 0.18);

    transition:
        transform .15s ease,
        filter .15s ease,
        opacity .15s ease;
}

.store-message-send:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.store-message-send:active {
    transform: translateY(0);
}

.store-message-send:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   CUSTOMER STATES
   ========================================================= */

.store-messages-loading,
.store-messages-empty,
.store-message-error {
    margin: auto;

    color: var(--sm-muted);

    text-align: center;
}

.store-messages-empty {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 35px;
}

.store-messages-empty-icon {
    margin-bottom: 4px;

    font-size: 42px;
}

.store-messages-empty strong {
    color: var(--sm-text);

    font-size: 14px;
}

.store-messages-empty span {
    font-size: 14px;
}

.store-message-error {
    padding: 30px;

    color: #b64d5b;
}


/* =========================================================
   MESSAGE CONTEXT MENU
   ========================================================= */

.store-context-menu {
    position: fixed;
    z-index: 99999;

    min-width: 150px;

    padding: 6px;

    background: #fff;

    border: 1.5px solid #cfc1d8;
    border-radius: 12px;

    box-shadow:
        0 14px 35px rgba(50, 35, 65, .18),
        0 3px 10px rgba(50, 35, 65, .08);

    direction: rtl;
}

.store-context-menu-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 11px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--sm-text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    text-align: right;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.store-context-menu-item:hover {
    background: #f4eef7;
    color: var(--sm-primary);
}

.store-context-menu-item.danger {
    color: #b43f50;
}

.store-context-menu-item.danger:hover {
    background: #fff0f2;
    color: #a52f40;
}

/* =========================================================
   ADMIN MAIN CARD
   ========================================================= */

.store-admin-messages-card {
    width: min(100%, 1250px);

    height: calc(100dvh - 155px);
    min-height: 0;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid rgba(123, 31, 162, 0.12);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    overflow: hidden;

}


/* =========================================================
   ADMIN LAYOUT
   ========================================================= */

.store-admin-messages-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;

    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);

    background: #fff;

}


/* =========================================================
   ADMIN CONVERSATIONS
   ========================================================= */

.store-admin-conversations {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    border-left: 2px solid #ddd3e5;

    background: #fff;
}

.store-admin-conversations-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 15px 16px;

    border-bottom: 1px solid var(--sm-border);

    background: #fff;
}

.store-admin-conversations-header strong {
    color: var(--sm-text);

    font-size: 14px;
}

.store-admin-refresh {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1.5px solid #d8cddd;
    border-radius: 10px;

    background: #faf8fc;

    color: var(--sm-primary);

    font-size: 19px;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.store-admin-refresh:hover {
    background: #f3eafa;
    transform: rotate(20deg);
}


/* =========================================================
   ADMIN SEARCH
   ========================================================= */

.store-admin-search {
    flex: 0 0 auto;

    padding: 10px 12px;

    border-bottom: 1px solid var(--sm-border);

    background: #fcfcfe;
}

.store-admin-search-box {
    position: relative;

    display: flex;
    align-items: center;
}

.store-admin-search-input {
    width: 100%;
    height: 38px;

    box-sizing: border-box;

    padding: 8px 38px 8px 34px;

    border: 1px solid #e0d9e6;
    border-radius: 11px;

    outline: none;

    background: #fff;
    color: var(--sm-text);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.store-admin-search-input:focus {
    border-color: var(--sm-primary);

    box-shadow:
        0 0 0 3px rgba(123, 31, 162, .07);
}

.store-admin-search-icon {
    position: absolute;
    right: 11px;

    color: #9a92a2;

    font-size: 14px;

    pointer-events: none;
}

.store-admin-search-clear {
    position: absolute;
    left: 8px;

    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #918898;

    font-size: 14px;

    cursor: pointer;
}

.store-admin-search-clear:hover {
    background: #f1edf4;
    color: var(--sm-primary);
}


/* =========================================================
   ADMIN CONVERSATION LIST
   ========================================================= */

.store-admin-conversations-list {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 7px;

    scrollbar-width: thin;
}

.store-admin-conversation-item {
    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 0;
    padding: 11px 10px;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 13px;

    background: transparent;

    color: inherit;

    text-align: right;
    font-family: inherit;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.store-admin-conversation-item:hover {
    background: #faf7fc;

    border-color: rgba(123, 31, 162, .08);
}

.store-admin-conversation-item.active {
    background:
        linear-gradient(
            135deg,
            #faf5fd,
            #f3f6fb
        );

    border-color:
        rgba(123, 31, 162, .13);
}

.store-admin-conversation-avatar {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f1e5f8,
            #edf3fa
        );

    font-size: 19px;
}

.store-admin-conversation-main {
    min-width: 0;
    flex: 1;
}

.store-admin-conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;
}

.store-admin-conversation-top strong {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--sm-text);

    font-size: 14px;
}

.store-admin-unread {
    flex: 0 0 auto;

    min-width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 999px;

    background: var(--sm-primary);

    color: #fff;

    font-size: 12px;
    font-weight: 800;
}

.store-admin-conversation-preview {
    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #77717f;

    font-size: 13px;
}

.store-admin-conversation-time {
    margin-top: 4px;

    color: #a19aa8;

    font-size: 9px;
}


/* =========================================================
   ADMIN CHAT
   FINAL CLEAN LAYOUT
   ========================================================= */

.store-admin-chat {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #fafbfe 0%,
            #f7f8fb 100%
        );

    border-right: 2px solid #ddd3e5;
}


/* =========================================================
   CHAT EMPTY STATE
   ========================================================= */

.store-admin-chat-empty {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 30px;

    color: var(--sm-muted);

    text-align: center;
}

.store-admin-chat-empty-icon {
    margin-bottom: 3px;
    font-size: 45px;
}

.store-admin-chat-empty strong {
    color: var(--sm-text);
    font-size: 15px;
}

.store-admin-chat-empty span {
    font-size: 14px;
}


/* =========================================================
   CHAT CONTENT
   ========================================================= */

#storeAdminChatContent {
    min-width: 0;
    min-height: 0;

    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* =========================================================
   CHAT HEADER
   ========================================================= */

.store-admin-chat-header {
    flex: 0 0 auto;
    min-width: 0;

    display: flex;
    align-items: center;

    padding: 12px 16px;

    border-bottom: 2px solid #ddd3e5;

    background: #fff;
}

.store-admin-chat-customer {
    min-width: 0;
    flex: 1 1 auto;

    display: flex;
    align-items: center;

    gap: 10px;
}

.store-admin-customer-avatar {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1.5px solid #d8cddd;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f1e5f8,
            #edf3fa
        );

    font-size: 19px;
}

.store-admin-chat-customer > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.store-admin-chat-header strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--sm-text);

    font-size: 14px;
    line-height: 1.5;
}

.store-admin-chat-header span {
    display: block;

    margin-top: 2px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--sm-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   MESSAGE LIST
   ========================================================= */

.store-admin-messages-list {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 16px 18px;
    box-sizing: border-box;

    scrollbar-width: thin;
}


/* =========================================================
   ADMIN MESSAGES
   ========================================================= */

.store-admin-message-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 0 2px;
    padding: 0;
    box-sizing: border-box;
}

.store-admin-message-row:last-child {
    margin-bottom: 0;
}

.store-admin-message-row.customer-message {
    justify-content: flex-start;
}

.store-admin-message-row.admin-message {
    justify-content: flex-end;
}

.store-admin-message-bubble {
    display: block;
    width: max-content;
    max-width: min(72%, 620px);
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 1px 5px;
    box-sizing: border-box;
    border: 1.5px solid #d1c5da;
    border-radius: 8px;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.store-admin-message-row.customer-message .store-admin-message-bubble {
    background: #fff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 7px rgba(70, 70, 100, .04);
}

.store-admin-message-row.admin-message .store-admin-message-bubble {
    background: linear-gradient(135deg, #f1e5f8, #edf3fa);
    border-bottom-left-radius: 3px;
}

.store-admin-message-sender {
    display: block;
    width: max-content;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--sm-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.store-admin-message-row.admin-message .store-admin-message-sender {
    color: var(--sm-secondary);
}

.store-admin-message-body {
    display: block;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--sm-text);
    font-size: 14px;
    line-height: 1.15;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* SHARED STORE MESSAGE STATUS */
.store-message-status {
    display: inline-block;
    margin-inline-start: 3px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
    vertical-align: baseline;
    white-space: nowrap;
    color: var(--sm-muted);
}

.store-message-status.is-read {
    color: #53a6e7;
}

.store-admin-message-time {
    display: block;
    width: max-content;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--sm-muted);
    font-size: 8px;
    line-height: 1;
}

@media (max-width: 900px) {
    .store-message-bubble,
    .store-admin-message-bubble {
        max-width: 78%;
    }
}

@media (max-width: 700px) {
    .store-admin-messages-list {
        padding: 12px;
    }

    .store-message-bubble,
    .store-admin-message-bubble {
        max-width: 84%;
    }
}

@media (max-width: 430px) {
    .store-admin-messages-list {
        padding: 9px;
    }

    .store-message-bubble,
    .store-admin-message-bubble {
        max-width: 90%;
    }
}


/* =========================================================
   MESSAGE SCROLLBAR
   ========================================================= */

.store-admin-messages-list::-webkit-scrollbar {
    width: 6px;
}

.store-admin-messages-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(110, 95, 125, .25);
}

.store-admin-messages-list::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================================
   ADMIN COMPOSER
   ========================================================= */

.store-admin-composer {
    flex: 0 0 auto;

    min-width: 0;
    width: 100%;

    box-sizing: border-box;

    padding: 11px 14px;

    border-top: 2px solid #ddd3e5;

    background: #fff;
}

.store-admin-composer textarea {
    display: block;

    width: 100%;
    min-width: 0;

    min-height: 60px;
    max-height: 125px;

    box-sizing: border-box;

    padding: 9px 11px;

    resize: vertical;

    border: 1.5px solid #d1c5da;
    border-radius: 11px;

    outline: none;

    background: #fcfcfe;
    color: var(--sm-text);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.store-admin-composer textarea:focus {
    border-color: var(--sm-primary);

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(123, 31, 162, .08);
}

.store-admin-composer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;
}

#storeAdminMessageCounter {
    color: var(--sm-muted);

    font-size: 12px;
}

.store-admin-composer .store-message-send {
    flex: 0 0 auto;

    min-height: 36px;

    padding: 7px 15px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--sm-primary),
            var(--sm-secondary)
        );

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(91, 54, 130, .16);
}

.store-admin-composer .store-message-send:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* =========================================================
   MESSAGE SCROLLBAR
   ========================================================= */

.store-admin-messages-list::-webkit-scrollbar {
    width: 6px;
}

.store-admin-messages-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(110, 95, 125, .25);
}

.store-admin-messages-list::-webkit-scrollbar-track {
    background: transparent;
}


/* =========================================================
   CHAT RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .store-admin-composer {
        padding: 9px;
    }

    .store-admin-composer textarea {
        min-height: 56px;
        max-height: 105px;

        padding: 8px 10px;

        font-size: 14px;
    }

    .store-admin-composer-bottom {
        gap: 7px;
        margin-top: 6px;
    }

    .store-admin-composer .store-message-send {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 13px;
    }

}

@media (max-width: 430px) {

    .store-admin-composer {
        padding: 8px;
    }

    .store-admin-composer textarea {
        min-height: 52px;
        max-height: 95px;
    }

}


/* =========================================================
   ADMIN STATES
   ========================================================= */

.store-admin-loading,
.store-admin-empty,
.store-admin-error,
.store-admin-no-messages {
    color: var(--sm-muted);

    text-align: center;

    font-size: 14px;
}

.store-admin-loading {
    padding: 18px;
}

.store-admin-empty {
    padding: 25px 15px;
}

.store-admin-error {
    padding: 25px;

    color: #b64d5b;
}

.store-admin-no-messages {
    padding: 35px 20px;
}


/* =========================================================
   SEARCH EMPTY
   ========================================================= */

.store-admin-search-empty {
    padding: 25px 15px;

    color: var(--sm-muted);

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */





/* =========================================================
   FORCE HIDDEN CHAT STATES
   ========================================================= */

#storeAdminChatContent[hidden],
#storeAdminChatEmpty[hidden] {
    display: none !important;
}


/* =========================================================
   STORE ADMIN SEARCH — FINAL FIX
   ========================================================= */

.store-admin-search-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.store-admin-search-icon {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.store-admin-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 42px !important;
    padding-left: 42px !important;
    font-size: 14px !important;
}

.store-admin-search-input::placeholder {
    font-size: 14px !important;
    opacity: .75;
}

.store-admin-search-clear {
    position: absolute !important;
    left: 10px !important;
    z-index: 2 !important;
}

/* ============================================================
   STORE INCOMING MESSAGE MODAL
   Completely isolated from main site
   ============================================================ */

.store-incoming-message-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
}

.store-incoming-message-modal.store-incoming-message-show {
    opacity: 1;
    pointer-events: auto;
}

.store-incoming-message-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 18, .68);
    backdrop-filter: blur(5px);
}

.store-incoming-message-box {
    width: min(460px, 100%);
    max-height: min(620px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #151a27;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow:
        0 25px 70px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.03);
    transform: translateY(18px) scale(.97);
    transition: transform .18s ease;
    direction: rtl;
}

.store-incoming-message-show
.store-incoming-message-box {
    transform: translateY(0) scale(1);
}

.store-incoming-message-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.store-incoming-message-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.store-incoming-message-icon {
    font-size: 20px;
}

.store-incoming-message-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.07);
    color: #d9dce5;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.store-incoming-message-close:hover {
    background: rgba(255,255,255,.13);
}

.store-incoming-message-content {
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
}

.store-incoming-message-sender {
    margin-bottom: 10px;
    color: #aeb6c8;
    font-size: 13px;
    font-weight: 600;
}

.store-incoming-message-body {
    color: #f4f6fb;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.store-incoming-message-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.store-incoming-message-actions button {
    flex: 1;
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.store-incoming-message-view {
    background: #6d5dfc;
    color: #fff;
}

.store-incoming-message-view:hover {
    filter: brightness(1.08);
}

.store-incoming-message-dismiss {
    background: rgba(255,255,255,.08);
    color: #dfe3ed;
}

.store-incoming-message-dismiss:hover {
    background: rgba(255,255,255,.13);
}

@media (max-width: 600px) {

    .store-incoming-message-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .store-incoming-message-box {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .store-incoming-message-content {
        padding: 16px;
    }

}



/* ============================================================
   STORE MESSAGES — FINAL MOBILE RESPONSIVE
   فقط صفحه پیام‌های فروشگاه
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

.store-messages-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* ============================================================
   CUSTOMER
   ============================================================ */

.store-messages-card {
    width: min(1200px, calc(100% - 24px)) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.store-messages-header,
.store-admin-messages-header {
    min-width: 0 !important;
}

.store-messages-title,
.store-messages-subtitle,
.store-admin-messages-title,
.store-admin-messages-subtitle {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

.store-messages-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

.store-message-composer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.store-message-composer textarea,
.store-admin-composer textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

.store-message-composer-bottom,
.store-admin-composer-bottom {
    min-width: 0 !important;
    max-width: 100% !important;
}

.store-message-send {
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ============================================================
   ADMIN
   ============================================================ */

.store-admin-messages-card {
    width: min(1400px, calc(100% - 24px)) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.store-admin-messages-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.store-admin-conversations,
.store-admin-chat {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.store-admin-conversations-list,
.store-admin-messages-list {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.store-admin-chat-content {
    min-width: 0 !important;
    max-width: 100% !important;
}

.store-admin-chat-header,
.store-admin-chat-customer {
    min-width: 0 !important;
    max-width: 100% !important;
}

.store-admin-chat-customer > div:last-child {
    min-width: 0 !important;
    max-width: 100% !important;
}

.store-admin-chat-header strong,
.store-admin-chat-header span {
    overflow-wrap: anywhere !important;
}

.store-admin-composer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}


/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .store-messages-page {
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    .store-messages-card,
    .store-admin-messages-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        border-radius: 14px !important;
    }


    /* ---------- CUSTOMER HEADER ---------- */

    .store-messages-header,
    .store-admin-messages-header {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .store-messages-header > div:first-child,
    .store-admin-messages-header > div:first-child {
        min-width: 0 !important;
        flex: 1 1 180px !important;
    }

    .store-messages-status {
        max-width: 100% !important;
        white-space: normal !important;
    }


    /* ---------- CUSTOMER COMPOSER ---------- */

    .store-message-composer {
        padding: 12px !important;
    }

    .store-message-composer-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .store-message-send {
        min-width: 0 !important;
        flex: 0 1 auto !important;
    }


    /* ========================================================
       ADMIN: تبدیل دو ستون به یک ستون
       ======================================================== */

    .store-admin-messages-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .store-admin-conversations {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }

    .store-admin-chat {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 420px !important;
        flex: 1 1 auto !important;
    }

    .store-admin-conversations-list {
        max-height: 280px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .store-admin-messages-list {
        min-height: 280px !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .store-admin-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .store-admin-search-input {
        min-width: 0 !important;
        width: 100% !important;
    }


    /* ---------- CHAT HEADER ---------- */

    .store-admin-chat-header {
        padding: 12px !important;
    }

    .store-admin-chat-customer {
        width: 100% !important;
        gap: 10px !important;
    }

    .store-admin-customer-avatar {
        flex: 0 0 auto !important;
    }


    /* ---------- ADMIN COMPOSER ---------- */

    .store-admin-composer {
        padding: 12px !important;
    }

    .store-admin-composer-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .store-messages-page {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .store-messages-card,
    .store-admin-messages-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px auto !important;
        border-radius: 12px !important;
    }


    .store-messages-header,
    .store-admin-messages-header {
        padding: 13px 11px !important;
        gap: 9px !important;
    }

    .store-messages-title,
    .store-admin-messages-title {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
    }

    .store-messages-subtitle,
    .store-admin-messages-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.7 !important;
    }

    .store-messages-status {
        width: 100% !important;
        font-size: 0.82rem !important;
    }


    /* ---------- CUSTOMER MESSAGES ---------- */

    .store-messages-list {
        padding: 8px !important;
    }

    .store-message-composer {
        padding: 9px !important;
    }

    .store-message-composer-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .store-message-composer-bottom > span {
        text-align: right !important;
        font-size: 0.75rem !important;
    }

    .store-message-send {
        width: 100% !important;
        min-height: 42px !important;
    }


    /* ---------- ADMIN ---------- */

    .store-admin-conversations-header {
        padding: 10px 11px !important;
    }

    .store-admin-conversations-header strong {
        font-size: 0.95rem !important;
    }

    .store-admin-refresh {
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .store-admin-search {
        padding: 8px !important;
    }

    .store-admin-conversations-list {
        max-height: 240px !important;
    }

    .store-admin-chat {
        min-height: 380px !important;
    }

    .store-admin-chat-header {
        padding: 10px !important;
    }

    .store-admin-messages-list {
        min-height: 240px !important;
        max-height: 48vh !important;
        padding: 8px !important;
    }

    .store-admin-composer {
        padding: 9px !important;
    }

    .store-admin-composer-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .store-admin-composer-bottom > span {
        text-align: right !important;
        font-size: 0.75rem !important;
    }

    .store-admin-composer .store-message-send {
        width: 100% !important;
        min-height: 42px !important;
    }

}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 360px) {

    .store-messages-title,
    .store-admin-messages-title {
        font-size: 1.05rem !important;
    }

    .store-messages-subtitle,
    .store-admin-messages-subtitle {
        font-size: 0.76rem !important;
    }

    .store-messages-header,
    .store-admin-messages-header {
        padding: 11px 9px !important;
    }

    .store-admin-chat {
        min-height: 350px !important;
    }

    .store-admin-messages-list {
        min-height: 220px !important;
    }

}


/* ============================================================
   PREVENT LONG MESSAGE CONTENT FROM BREAKING MOBILE WIDTH
   ============================================================ */

.store-messages-list *,
.store-admin-conversations-list *,
.store-admin-messages-list * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

</style>

/* =========================================================
   STORE MESSAGES — MOBILE CONVERSATION TOGGLE
   ========================================================= */

/* Desktop: toggle button is not needed */
.store-admin-toggle-conversations {
    display: none !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .store-admin-messages-layout {
        width: 100% !important;
        min-width: 0 !important;
    }


    /* Conversation list — normal mobile state */
    .store-admin-conversations {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }


    /* Chat */
    .store-admin-chat {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }


    /* Toggle button */
    .store-admin-toggle-conversations {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 12px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        background: rgba(255,255,255,.06);
        color: inherit;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        transition:
            background .2s ease,
            transform .2s ease;
    }


    .store-admin-toggle-conversations:active {
        transform: scale(.97);
    }


    /* Header layout */
    .store-admin-chat-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }


    .store-admin-chat-customer {
        min-width: 0;
        flex: 1 1 auto;
    }


    /* -----------------------------------------------------
       COLLAPSED STATE
       ----------------------------------------------------- */

    .store-admin-messages-card.mobile-conversation-collapsed
    .store-admin-conversations {
        display: none !important;
    }


    .store-admin-messages-card.mobile-conversation-collapsed
    .store-admin-chat {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }


    /* -----------------------------------------------------
       OPEN STATE
       ----------------------------------------------------- */

    .store-admin-messages-card.mobile-conversation-open
    .store-admin-conversations {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }


    /* Keep the conversation list scrollable */
    .store-admin-conversations-list {
        width: 100%;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }


    /* Prevent long customer data from breaking layout */
    .store-admin-chat-customer strong,
    .store-admin-chat-customer span {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .store-admin-toggle-conversations {
        min-height: 38px;
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 12px;
    }


    .store-admin-chat-header {
        gap: 7px;
    }


    .store-admin-chat-customer {
        gap: 8px;
    }

}


/* ---------------------------------------------------------
   VERY SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 360px) {

    .store-admin-toggle-conversations {
        padding: 6px 8px;
        font-size: 11px;
    }

}


/* =========================================================
   FINAL — CONVERSATION TOGGLE MOBILE ONLY
   ========================================================= */

/* DESKTOP / TABLET */
@media (min-width: 769px) {
    .store-admin-toggle-conversations {
        display: none !important;
        visibility: hidden !important;
    }
}

/* MOBILE ONLY */
@media (max-width: 768px) {
    .store-admin-toggle-conversations {
        display: inline-flex !important;
        visibility: visible !important;
    }
}


/* =========================================================
   STOCK FILTER — STORE
   ========================================================= */

.store-stock-filter-field {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.store-stock-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 600;
}

.store-stock-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #7b1fa2;
}

.store-stock-checkbox span {
    cursor: pointer;
}


/* =========================================================
   STOCK FILTER — FINAL SIZE FIX
   ========================================================= */

.store-stock-filter-field {
    min-width: 150px;
    white-space: nowrap;
}

.store-stock-checkbox {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 7px !important;
}

.store-stock-checkbox input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    flex: 0 0 14px !important;
    margin: 0 !important;
}

.store-stock-checkbox span {
    white-space: nowrap !important;
    display: inline-block;
}


/* ============================================================
   FINAL — GLOBAL STORE NAVBAR + FOOTER MOBILE
   فقط موبایل — دسکتاپ بدون تغییر
   ============================================================ */

@media (max-width: 600px) {

    /* ---------- NAVBAR ---------- */

    .store-site .fixed-navbar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .store-site .fixed-navbar .top-row {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 10px !important;
        gap: 8px !important;
    }

    .store-site .fixed-navbar .bottom-row {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 8px !important;
        overflow: visible !important;
    }

    .store-site .fixed-navbar .store-main-menu {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;

        overflow-x: auto !important;
        overflow-y: visible !important;

        scrollbar-width: none !important;
    }

    .store-site .fixed-navbar .store-main-menu::-webkit-scrollbar {
        display: none !important;
    }

    .store-site .store-main-link {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }


    /* ---------- FOOTER ---------- */

    .store-site .store-premium-footer {
        width: 100% !important;
        margin-top: 25px !important;
        box-sizing: border-box !important;
    }

    .store-site .store-footer-inner {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 15px 0 7px !important;
    }

    .store-site .store-footer-grid {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .store-site .store-footer-brand,
    .store-site .store-footer-column {
        width: 100% !important;
        min-width: 0 !important;
    }

    .store-site .store-footer-brand p {
        max-width: 100% !important;
    }

    .store-site .store-footer-column {
        align-items: flex-start !important;
    }

    .store-site .store-footer-column a {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .store-site .store-footer-bottom {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 12px !important;
        padding-top: 7px !important;
        line-height: 1.7 !important;
    }

}

/* ============================================================
   FINAL — PROFESSIONAL MOBILE STORE MENU
   موبایل: منوی جمع‌شونده
   دسکتاپ: بدون تغییر
   ============================================================ */

.store-mobile-menu-toggle {
    display: none;
}

@media (max-width: 600px) {

    .store-site .fixed-navbar .bottom-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 43px !important;
        height: 43px !important;
        padding: 4px 8px !important;
        box-sizing: border-box !important;
    }

    .store-site .store-mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        width: 72px !important;
        height: 35px !important;
        flex: 0 0 72px !important;

        border: 0 !important;
        border-radius: 10px !important;

        background: rgba(255,255,255,.16) !important;
        color: #fff !important;

        font-family: Tahoma, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;

        cursor: pointer !important;
    }

    .store-site .store-mobile-menu-toggle span:first-child {
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .store-site .fixed-navbar .store-main-menu {
        display: none !important;

        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 8px !important;
        left: 8px !important;

        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;

        padding: 8px !important;
        margin: 0 !important;

        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;

        overflow: visible !important;

        background: #fff !important;
        border: 1px solid rgba(36,59,99,.15) !important;
        border-radius: 14px !important;

        box-shadow: 0 12px 30px rgba(20,35,60,.18) !important;

        z-index: 100000 !important;
    }

    .store-site .fixed-navbar.store-mobile-menu-open .store-main-menu {
        display: flex !important;
    }

    .store-site .fixed-navbar .store-main-menu > li {
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    .store-site .fixed-navbar .store-main-menu .store-main-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-height: 40px !important;
        box-sizing: border-box !important;

        padding: 8px 12px !important;
        border-radius: 10px !important;

        white-space: nowrap !important;
    }

    .store-site .fixed-navbar .store-main-menu .store-main-link:hover {
        transform: none !important;
    }

    .store-site .fixed-navbar .store-main-menu .store-account-dropdown,
    .store-site .fixed-navbar .store-main-menu .store-category-dropdown {
        position: static !important;
    }
}

/* ============================================================
   FINAL — PROFESSIONAL COLLAPSIBLE STORE MOBILE NAV
   فقط موبایل
   ============================================================ */

@media (max-width: 600px) {

    .store-site .fixed-navbar .bottom-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 43px !important;
        height: 43px !important;
        padding: 4px 9px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .store-site .store-mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        width: 72px !important;
        height: 34px !important;
        min-width: 72px !important;

        padding: 0 10px !important;
        margin: 0 !important;

        border: 0 !important;
        border-radius: 10px !important;

        background: rgba(255,255,255,.16) !important;
        color: #fff !important;

        font-family: Tahoma, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;

        cursor: pointer !important;
    }

    .store-site .store-mobile-menu-icon {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .store-site .fixed-navbar .store-main-menu {
        display: none !important;

        position: absolute !important;
        top: calc(100% + 7px) !important;
        right: 9px !important;
        left: 9px !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;

        padding: 8px !important;
        margin: 0 !important;

        background: #fff !important;
        border: 1px solid rgba(36,59,99,.14) !important;
        border-radius: 14px !important;

        box-shadow: 0 12px 30px rgba(20,35,60,.18) !important;

        overflow: visible !important;
        z-index: 100000 !important;
    }

    .store-site .fixed-navbar.store-mobile-menu-open
    .store-main-menu {
        display: flex !important;
    }

    .store-site .fixed-navbar .store-main-menu > a,
    .store-site .fixed-navbar .store-main-menu > .store-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-main-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        min-height: 40px !important;
        box-sizing: border-box !important;

        padding: 8px 12px !important;
        border-radius: 10px !important;

        white-space: nowrap !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-dropdown-toggle {
        width: 100% !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-category-dropdown,
    .store-site .fixed-navbar .store-main-menu
    .store-account-dropdown {
        position: static !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-category-dropdown .store-mega-menu,
    .store-site .fixed-navbar .store-main-menu
    .store-account-dropdown .store-account-menu {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

}

/* ============================================================
   FINAL — MOBILE STORE MENU
   فقط تغییر چیدمان موبایل
   رنگ و تم از CSS فعلی فروشگاه
   ============================================================ */

@media (max-width: 600px) {

    .store-site .fixed-navbar .bottom-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .store-site .store-mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;

        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 60px !important;
        height: 34px !important;

        padding: 5px 10px !important;
        margin: 0 !important;

        /* هیچ رنگی تعیین نمی‌کنیم */
        font: inherit !important;
        color: inherit !important;
        background: inherit !important;
        border: inherit !important;
        border-radius: inherit !important;

        cursor: pointer !important;
    }

    .store-site .store-mobile-menu-icon {
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .store-site .fixed-navbar .store-main-menu {
        display: none !important;

        position: absolute !important;

        top: calc(100% + 5px) !important;
        right: 8px !important;
        left: 8px !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        flex-direction: column !important;
        align-items: stretch !important;

        padding: 7px !important;
        margin: 0 !important;

        overflow: visible !important;

        z-index: 100000 !important;
    }

    .store-site .fixed-navbar.store-mobile-menu-open
    .store-main-menu {
        display: flex !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-main-link {
        width: 100% !important;
        box-sizing: border-box !important;

        white-space: nowrap !important;
    }

    .store-site .fixed-navbar .store-main-menu > a,
    .store-site .fixed-navbar .store-main-menu > .store-dropdown {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    .store-site .fixed-navbar .store-main-menu
    .store-category-dropdown,
    .store-site .fixed-navbar .store-main-menu
    .store-account-dropdown {
        position: static !important;
    }

}

/* ============================================================
   FINAL — MOBILE NAV LINKS
   دقیقاً استفاده از رنگ و فونت لینک دسکتاپ
   ============================================================ */

@media (max-width: 600px) {

    /* خود لینک‌ها دقیقاً همان استایل اصلی دسکتاپ را نگه می‌دارند */
    .store-site .fixed-navbar .store-main-menu .store-main-link {
        font-family: inherit !important;
        color: inherit !important;
    }

    /* دکمه‌های dropdown هم همان ظاهر متن لینک‌های اصلی */
    .store-site .fixed-navbar .store-main-menu
    .store-dropdown-toggle {
        font-family: inherit !important;
        color: inherit !important;
    }

    /* متن منوی موبایل هم از رنگ و فونت خود ناوبری استفاده کند */
    .store-site .store-mobile-menu-toggle {
        font-family: inherit !important;
        color: inherit !important;
    }

}


/* ============================================================
   FINAL — COMPACT MOBILE FOOTER
   فقط چیدمان موبایل
   رنگ و تم فعلی بدون تغییر
   ============================================================ */

@media (max-width: 600px) {

    .store-site .store-footer-inner {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        padding: 10px 0 5px !important;
        box-sizing: border-box !important;
    }

    /* معرفی شرکت تمام عرض */
    .store-site .store-footer-brand {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* لینک‌ها دو ستونه */
    .store-site .store-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 18px !important;
        width: 100% !important;
    }

    .store-site .store-footer-column {
        width: 100% !important;
        min-width: 0 !important;
    }

    .store-site .store-footer-column a {
        display: block !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .store-site .store-footer-brand p {
        max-width: 100% !important;
    }

    .store-site .store-footer-bottom {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        line-height: 1.7 !important;
        overflow-wrap: anywhere !important;
    }
}


/* ============================================================
   FESTIVAL — FINAL RESPONSIVE LAYOUT
   Single source of truth for festival timer layout
   ============================================================ */

.store-site[data-page="festival"] #festival-banner {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    width: 95% !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
}

.store-site[data-page="festival"] #festival-header {
    display: none !important;
}

.store-site[data-page="festival"] #festival-timer-row {
    position: relative !important;
    z-index: 20 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;

    width: 100% !important;
    max-width: 95% !important;
    box-sizing: border-box !important;

    margin: 24px auto !important;
    padding: 0 !important;
    gap: 25px !important;

    clear: both !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    overflow: visible !important;
}

.store-site[data-page="festival"] #festival-timer {
    position: relative !important;
    z-index: 21 !important;

    width: 220px !important;
    height: 220px !important;
    flex: 0 0 220px !important;

    margin: 0 !important;
}

.store-site[data-page="festival"] #festival-footer {
    position: relative !important;
    z-index: 21 !important;

    box-sizing: border-box !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    .store-site[data-page="festival"] #festival-banner {
        display: block !important;
        position: relative !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 14px auto 20px !important;
        box-sizing: border-box !important;
    }

    .store-site[data-page="festival"] #festival-header {
        display: none !important;
    }

    .store-site[data-page="festival"] #festival-timer-row {
        display: flex !important;
        position: relative !important;
        z-index: 20 !important;

        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;

        margin: 20px auto 14px !important;
        padding: 0 !important;
        gap: 10px !important;

        clear: both !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;

        overflow: visible !important;
    }

    .store-site[data-page="festival"] #festival-timer {
        position: relative !important;

        width: 150px !important;
        height: 150px !important;
        max-width: none !important;
        max-height: none !important;

        flex: 0 0 150px !important;
        margin: 0 auto !important;
    }

    .store-site[data-page="festival"] #timer-bg,
    .store-site[data-page="festival"] #timer-progress {
        stroke-width: 11 !important;
    }

    .store-site[data-page="festival"] #festival-timer-text {
        width: 88% !important;
        max-width: 88% !important;

        font-size: 0.72rem !important;
        line-height: 1.5 !important;

        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .store-site[data-page="festival"] #festival-footer {
        width: calc(100% - 20px) !important;
        max-width: 600px !important;

        margin: 0 auto !important;
        padding: 8px 10px !important;

        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }
}


/* ---------- Very small phones ---------- */

@media (max-width: 380px) {

    .store-site[data-page="festival"] #festival-timer {
        width: 140px !important;
        height: 140px !important;
        flex: 0 0 140px !important;
    }

    .store-site[data-page="festival"] #timer-bg,
    .store-site[data-page="festival"] #timer-progress {
        stroke-width: 10 !important;
    }

    .store-site[data-page="festival"] #festival-timer-text {
        font-size: 0.65rem !important;
    }

    .store-site[data-page="festival"] #festival-footer {
        width: calc(100% - 14px) !important;
        font-size: 0.76rem !important;
    }
}




/* ============================================================
   FESTIVAL — FINAL DESKTOP TIMER STACK
   Timer + footer must stay vertically stacked
   ============================================================ */

.store-site[data-page="festival"] #festival-timer-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.store-site[data-page="festival"] #festival-footer {
    width: min(600px, calc(100% - 20px)) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

@media (max-width: 600px) {
    .store-site[data-page="festival"] #festival-timer-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
}


/* ============================================================
   PRODUCT IMAGE FIT - GLOBAL STORE
   تصاویر محصولات همیشه کامل و بدون کشیدگی/برش نمایش داده شوند
   ============================================================ */

.store-site .product-card .product-image-section img,
.store-site .product-card .img-wrapper img,
.store-site .similar-product-card img,
.store-site .store-product-card img,
.store-site .cart-product-image,
.store-site .product-title-image,
.store-site .product-image-placeholder img,
.store-site .product-gallery-main img,
.store-site .product-gallery-thumb img,
.store-site .product-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

/* کادرهای تصاویر محصول */
.store-site .product-card .product-image-section,
.store-site .product-card .img-wrapper,
.store-site .similar-product-card,
.store-site .cart-product-image-link {
    overflow: hidden;
}

/* تصاویر کارت محصول */
.store-site .product-card .product-image-section img,
.store-site .product-card .img-wrapper img,
.store-site .similar-product-card img {
    padding: 10px;
    box-sizing: border-box;
}

/* تصویر سبد خرید */
.store-site .cart-product-image {
    object-fit: contain !important;
}

/* تصویر اصلی صفحه محصول */
.store-site .product-title-image {
    object-fit: contain !important;
    object-position: center center !important;
}


/* ============================================================
   ADMIN PRODUCT GALLERY
   تصاویر گالری مدیریت محصول بدون برش و کشیدگی
   ============================================================ */

#productGalleryEditor .product-gallery-selected-media,
#productGalleryEditor .product-gallery-saved-media,
#productGalleryEditor .product-gallery-media-preview {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px;
    box-sizing: border-box;
}

#productGalleryEditor .product-gallery-selected-preview,
#productGalleryEditor .product-gallery-selected-media img,
#productGalleryEditor .product-gallery-selected-media video,
#productGalleryEditor .product-gallery-saved-media img,
#productGalleryEditor .product-gallery-saved-media video,
#productGalleryEditor .product-gallery-media-preview img,
#productGalleryEditor .product-gallery-media-preview video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

/* جلوگیری از بریدگی تصویر در کارت‌های گالری مدیریت */
#productGalleryEditor .product-gallery-selected-media img,
#productGalleryEditor .product-gallery-selected-media video {
    padding: 8px;
    box-sizing: border-box;
}



/* ============================================================
   PRE-PAYMENT CONFIRMATION
   پنل تأیید قبل از پرداخت
   ============================================================ */

.store-pre-payment-confirmation-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(15, 23, 42, 0.62);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    animation:
        storePrePaymentOverlayIn
        0.2s ease-out;
}


.store-pre-payment-confirmation-modal {
    width: min(
        680px,
        100%
    );

    max-height: min(
        760px,
        calc(100vh - 48px)
    );

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background:
        #ffffff;

    border:
        1px solid
        rgba(148, 163, 184, 0.28);

    border-radius:
        22px;

    box-shadow:
        0 24px 70px
        rgba(15, 23, 42, 0.30);

    animation:
        storePrePaymentModalIn
        0.24s ease-out;
}


.store-pre-payment-confirmation-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding:
        22px 24px 18px;

    border-bottom:
        1px solid
        rgba(148, 163, 184, 0.20);
}


.store-pre-payment-confirmation-icon {
    flex:
        0 0 48px;

    width:
        48px;

    height:
        48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius:
        14px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color:
        #ffffff;

    font-size:
        24px;

    font-weight:
        800;

    box-shadow:
        0 8px 20px
        rgba(79, 70, 229, 0.25);
}


.store-pre-payment-confirmation-header h2 {
    margin:
        0 0 5px;

    color:
        #172033;

    font-size:
        21px;

    font-weight:
        800;
}


.store-pre-payment-confirmation-header p {
    margin:
        0;

    color:
        #64748b;

    font-size:
        13px;

    line-height:
        1.8;
}


.store-pre-payment-confirmation-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding:
        14px 24px;

    background:
        #f8fafc;

    border-bottom:
        1px solid
        rgba(148, 163, 184, 0.16);
}


.store-pre-payment-confirmation-summary span {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        30px;

    padding:
        5px 11px;

    border-radius:
        999px;

    background:
        #eef2ff;

    color:
        #4338ca;

    font-size:
        12px;

    font-weight:
        700;
}


.store-pre-payment-confirmation-list {
    overflow-y:
        auto;

    padding:
        18px 24px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;
}


.store-pre-payment-confirmation-item {
    position:
        relative;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        13px;

    padding:
        15px;

    border:
        1px solid
        #e2e8f0;

    border-radius:
        15px;

    background:
        #ffffff;

    cursor:
        pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.store-pre-payment-confirmation-item:hover {
    border-color:
        #c7d2fe;

    background:
        #fafbff;

    box-shadow:
        0 5px 18px
        rgba(15, 23, 42, 0.06);
}


.store-pre-payment-confirmation-item.is-confirmed {
    border-color:
        #bbf7d0;

    background:
        #f0fdf4;
}


.store-pre-payment-confirmation-item
.is-required {
    border-right:
        3px solid
        #6366f1;
}


.store-pre-payment-confirmation-check {
    position:
        relative;

    flex:
        0 0 24px;

    width:
        24px;

    height:
        24px;

    margin-top:
        2px;
}


.store-pre-payment-confirmation-check input {
    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.store-pre-payment-confirmation-checkbox {
    width:
        24px;

    height:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        2px solid
        #cbd5e1;

    border-radius:
        7px;

    background:
        #ffffff;

    transition:
        all 0.18s ease;
}


.store-pre-payment-confirmation-check input:checked
+
.store-pre-payment-confirmation-checkbox {
    border-color:
        #4f46e5;

    background:
        #4f46e5;
}


.store-pre-payment-confirmation-check input:checked
+
.store-pre-payment-confirmation-checkbox::after {
    content:
        "✓";

    color:
        #ffffff;

    font-size:
        15px;

    font-weight:
        800;

    line-height:
        1;
}


.store-pre-payment-confirmation-check input:disabled
+
.store-pre-payment-confirmation-checkbox {
    border-color:
        #86efac;

    background:
        #22c55e;

    opacity:
        0.95;
}


.store-pre-payment-confirmation-content {
    min-width:
        0;

    flex:
        1;

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


.store-pre-payment-confirmation-number {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        28px;

    height:
        24px;

    border-radius:
        7px;

    background:
        #f1f5f9;

    color:
        #475569;

    font-size:
        11px;

    font-weight:
        800;
}


.store-pre-payment-confirmation-text {
    color:
        #1e293b;

    font-size:
        14px;

    line-height:
        2;

    white-space:
        pre-wrap;

    overflow-wrap:
        anywhere;
}


.store-pre-payment-confirmation-type {
    align-self:
        flex-start;

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        24px;

    padding:
        3px 9px;

    border-radius:
        999px;

    background:
        #f1f5f9;

    color:
        #64748b;

    font-size:
        11px;

    font-weight:
        700;
}


.store-pre-payment-confirmation-item.is-required
.store-pre-payment-confirmation-type {
    background:
        #eef2ff;

    color:
        #4338ca;
}


.store-pre-payment-confirmation-item.is-confirmed
.store-pre-payment-confirmation-type {
    background:
        #dcfce7;

    color:
        #15803d;
}


.store-pre-payment-confirmation-error {
    margin:
        0 24px 12px;

    padding:
        10px 13px;

    border:
        1px solid
        #fecaca;

    border-radius:
        10px;

    background:
        #fef2f2;

    color:
        #b91c1c;

    font-size:
        13px;

    line-height:
        1.8;
}


.store-pre-payment-confirmation-actions {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    padding:
        16px 24px 20px;

    border-top:
        1px solid
        rgba(148, 163, 184, 0.18);

    background:
        #ffffff;
}


.store-pre-payment-confirmation-actions button {
    min-height:
        46px;

    padding:
        0 20px;

    border:
        0;

    border-radius:
        12px;

    font-family:
        inherit;

    font-size:
        13px;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}


.store-pre-payment-confirmation-actions button:hover:not(:disabled) {
    transform:
        translateY(-1px);
}


.store-pre-payment-confirmation-actions button:disabled {
    cursor:
        not-allowed;

    opacity:
        0.55;
}


.store-pre-payment-confirmation-change {
    color:
        #475569;

    background:
        #f1f5f9;

    border:
        1px solid
        #e2e8f0 !important;
}


.store-pre-payment-confirmation-change:hover:not(:disabled) {
    background:
        #e2e8f0;
}


.store-pre-payment-confirmation-submit {
    flex:
        1;

    max-width:
        330px;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    box-shadow:
        0 8px 20px
        rgba(79, 70, 229, 0.22);
}


.store-pre-payment-confirmation-submit:hover:not(:disabled) {
    box-shadow:
        0 10px 25px
        rgba(79, 70, 229, 0.30);
}


@keyframes storePrePaymentOverlayIn {

    from {
        opacity:
            0;
    }

    to {
        opacity:
            1;
    }

}


@keyframes storePrePaymentModalIn {

    from {
        opacity:
            0;

        transform:
            translateY(14px)
            scale(0.985);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .store-pre-payment-confirmation-overlay {
        align-items:
            flex-end;

        padding:
            0;
    }


    .store-pre-payment-confirmation-modal {
        width:
            100%;

        max-height:
            calc(100vh - 18px);

        border-radius:
            22px 22px 0 0;
    }


    .store-pre-payment-confirmation-header {
        padding:
            18px 18px 15px;
    }


    .store-pre-payment-confirmation-icon {
        flex-basis:
            42px;

        width:
            42px;

        height:
            42px;

        border-radius:
            12px;

        font-size:
            21px;
    }


    .store-pre-payment-confirmation-header h2 {
        font-size:
            18px;
    }


    .store-pre-payment-confirmation-summary {
        padding:
            11px 18px;
    }


    .store-pre-payment-confirmation-list {
        padding:
            14px 18px;

        max-height:
            48vh;
    }


    .store-pre-payment-confirmation-item {
        padding:
            13px;
    }


    .store-pre-payment-confirmation-text {
        font-size:
            13px;

        line-height:
            1.9;
    }


    .store-pre-payment-confirmation-actions {
        padding:
            13px 18px 18px;

        flex-direction:
            column-reverse;

        align-items:
            stretch;
    }


    .store-pre-payment-confirmation-actions button {
        width:
            100%;

        max-width:
            none;
    }

}




/* ============================================================
   UNIFIED PRODUCT CARD ALIGNMENT
   STORE HOME + FESTIVAL + SIMILAR PRODUCTS
   ============================================================ */


/* ------------------------------------------------------------
   FIXED TITLE SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card h3,
.store-site .store-product-card .title {
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: hidden;
}


/* ------------------------------------------------------------
   FIXED PRODUCT CODE SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card .product-code {
    min-height: 25px !important;
    max-height: 25px !important;

    display: flex;
    align-items: center;

    overflow: hidden;
}


/* ------------------------------------------------------------
   FIXED RATING SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card .product-rating {
    min-height: 31px !important;
    max-height: 31px !important;

    display: flex;
    align-items: center;
}


/* ------------------------------------------------------------
   PRICE BOX
   The outer price box remains visible,
   but its internal vertical structure is fixed.
   ------------------------------------------------------------ */

.store-site .store-product-card .price-info {
    min-height: 78px !important;
    height: 78px !important;

    box-sizing: border-box;

    display: flex;
    align-items: stretch;
    justify-content: center;

    padding: 5px 10px !important;

    overflow: hidden;
}


/* ------------------------------------------------------------
   PRICE STACK
   Always exactly two vertical slots:
   1. original price
   2. final price
   ------------------------------------------------------------ */

.store-site .store-product-card .product-price-stack {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   ORIGINAL PRICE SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card .price-original-slot {
    width: 100%;
    height: 27px;
    min-height: 27px;
    max-height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   FINAL PRICE SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card .price-final-slot {
    width: 100%;
    height: 37px;
    min-height: 37px;
    max-height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/* Keep price text centered inside its fixed slot */

.store-site .store-product-card .price-original,
.store-site .store-product-card .price-discounted,
.store-site .store-product-card .price {
    margin: 0 !important;
}


/* ------------------------------------------------------------
   STOCK / STATUS SLOT
   IMPORTANT:
   "عدم موجودی" is TEXT ONLY.
   No border, no background, no pill.
   ------------------------------------------------------------ */

.store-site .store-product-card .stock-status-slot {
    width: 100%;

    height: 31px;
    min-height: 31px;
    max-height: 31px;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    overflow: hidden;
}


/* ------------------------------------------------------------
   OUT OF STOCK TEXT ONLY
   ------------------------------------------------------------ */

.store-site .store-product-card .stock-status-slot .out-of-stock {
    display: block;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    color: #b71c1c !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-size: .72rem;
    font-weight: 900;

    line-height: 1.4;

    text-align: center;
}


/* ------------------------------------------------------------
   FIXED CART SLOT
   ------------------------------------------------------------ */

.store-site .store-product-card .cart-actions,
.store-site .favorites-list .store-product-card .cart-actions {
    height: 53px !important;
    min-height: 53px !important;

    max-height: 53px !important;

    margin-top: 0 !important;
    margin-bottom: 14px !important;

    box-sizing: border-box;

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


/* ------------------------------------------------------------
   BUTTON / QUANTITY HEIGHT
   ------------------------------------------------------------ */

.store-site .store-product-card .cart-actions .btn-add-cart,
.store-site .store-product-card .cart-actions .quantity-controls,
.store-site .favorites-list .store-product-card .cart-actions .btn-add-cart,
.store-site .favorites-list .store-product-card .cart-actions .quantity-controls {
    height: 45px;
    min-height: 45px;
    max-height: 45px;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   QUANTITY BUTTONS
   ------------------------------------------------------------ */

.store-site .store-product-card .quantity-controls {
    overflow: hidden;
}


/* ------------------------------------------------------------
   CARD FLEX CONSISTENCY
   ------------------------------------------------------------ */

.store-site .store-product-card {
    box-sizing: border-box;
}


/* ============================================================
   END UNIFIED PRODUCT CARD ALIGNMENT
   ============================================================ */


/* ============================================================
   FINAL CARD SPACING + OUT OF STOCK STYLE FIX
   ============================================================ */


/* ------------------------------------------------------------
   CARD INTERNAL SPACING
   ------------------------------------------------------------ */

.store-site .store-product-card h3,
.store-site .store-product-card .title {
    margin-top: 7px !important;
    margin-bottom: 1px !important;

    min-height: 46px !important;
    max-height: 46px !important;

    line-height: 1.45 !important;
}


.store-site .store-product-card .product-code {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    min-height: 21px !important;
    max-height: 21px !important;

    line-height: 1.35 !important;
}


.store-site .store-product-card .product-rating {
    margin-top: 2px !important;
    margin-bottom: 2px !important;

    min-height: 25px !important;
    max-height: 25px !important;

    gap: 1px !important;
}


/* ------------------------------------------------------------
   PRICE BOX - COMPACT
   ------------------------------------------------------------ */

.store-site .store-product-card .price-info {
    margin-top: 3px !important;
    margin-bottom: 2px !important;

    min-height: 68px !important;
    height: 68px !important;
    max-height: 68px !important;

    padding-top: 3px !important;
    padding-bottom: 3px !important;
}


/* ------------------------------------------------------------
   PRICE STACK - LESS SPACE BETWEEN LINES
   ------------------------------------------------------------ */

.store-site .store-product-card .product-price-stack {
    justify-content: center !important;
}


.store-site .store-product-card .price-original-slot {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;

    line-height: 1.15 !important;
}


.store-site .store-product-card .price-final-slot {
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;

    line-height: 1.15 !important;
}


.store-site .store-product-card .price-original,
.store-site .store-product-card .price-discounted,
.store-site .store-product-card .price {
    line-height: 1.15 !important;
}


/* ------------------------------------------------------------
   STOCK SLOT - COMPACT
   ------------------------------------------------------------ */

.store-site .store-product-card .stock-status-slot {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.1 !important;
}


/* ------------------------------------------------------------
   عدم موجودی
   ABSOLUTELY NO BOX / BORDER / BACKGROUND
   ------------------------------------------------------------ */

.store-site .store-product-card .stock-status-slot .out-of-stock,
.store-site .store-product-card .out-of-stock,
.store-site .out-of-stock {
    display: inline !important;

    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    outline: none !important;

    color: #b71c1c !important;

    font-size: .70rem !important;
    font-weight: 800 !important;

    line-height: 1.1 !important;

    text-align: center !important;
}


/* ------------------------------------------------------------
   CART SLOT - COMPACT
   ------------------------------------------------------------ */

.store-site .store-product-card .cart-actions,
.store-site .favorites-list .store-product-card .cart-actions {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    margin-top: 1px !important;
    margin-bottom: 10px !important;
}


.store-site .store-product-card .cart-actions .btn-add-cart,
.store-site .store-product-card .cart-actions .quantity-controls,
.store-site .favorites-list .store-product-card .cart-actions .btn-add-cart,
.store-site .favorites-list .store-product-card .cart-actions .quantity-controls {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}


/* ------------------------------------------------------------
   IMAGE / TEXT GAP
   ------------------------------------------------------------ */

.store-site .store-product-card .product-image-section {
    margin-bottom: 0 !important;
}




/* ============================================================
   TIGHT PRICE -> STOCK GAP
   ============================================================ */

.store-site .store-product-card .price-info {
    margin-bottom: 0 !important;
    padding-bottom: 1px !important;
}


.store-site .store-product-card .price-final-slot {
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
}


.store-site .store-product-card .stock-status-slot {
    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;

    margin-top: 0 !important;
    padding-top: 0 !important;
}


.store-site .store-product-card .stock-status-slot .out-of-stock {
    line-height: 1 !important;
    transform: translateY(-1px);
}




/* ============================================================
   FINAL PRICE -> STOCK GAP FIX
   Remove unused vertical space inside price box
   ============================================================ */

.store-site .store-product-card .price-info {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    margin-top: 3px !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.store-site .store-product-card .product-price-stack {
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;

    justify-content: flex-start !important;

    box-sizing: border-box !important;
}


.store-site .store-product-card .price-original-slot {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
}


.store-site .store-product-card .price-final-slot {
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
}


.store-site .store-product-card .stock-status-slot {
    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}




/* ============================================================
   OUT OF STOCK TEXT - SLIGHTLY LARGER
   ============================================================ */

.store-site .store-product-card .stock-status-slot .out-of-stock,
.store-site .store-product-card .out-of-stock,
.store-site .out-of-stock {
    font-size: .78rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}




/* ============================================================
   STORE BRANCH DROPDOWN — VISIBILITY FIX
   فقط منوی انتخاب شعبه
   ============================================================ */

.store-site .store-branch-dropdown.open .store-branch-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.store-site .store-branch-dropdown:hover .store-branch-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}



/* ============================================================
   STORE BRANCH DROPDOWN — PROFESSIONAL STYLE
   ============================================================ */

.store-site .store-branch-dropdown {
    position: relative !important;
    z-index: 100000 !important;
}


/* خود منوی انتخاب شعبه */
.store-site .store-branch-dropdown .store-branch-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;

    min-width: 245px !important;
    width: max-content !important;
    max-width: 300px !important;

    padding: 10px !important;
    margin: 0 !important;

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 39, .98),
            rgba(13, 19, 30, .98)
        ) !important;

    border:
        1px solid rgba(255,255,255,.12) !important;

    border-radius: 16px !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35),
        0 5px 18px rgba(0,0,0,.20) !important;

    backdrop-filter: blur(14px);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-7px) scale(.98);

    transform-origin: top right;

    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .20s ease;

    z-index: 100001 !important;
}


/* باز شدن منو */
.store-site .store-branch-dropdown.open .store-branch-menu,
.store-site .store-branch-dropdown:hover .store-branch-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform:
        translateY(0) scale(1) !important;
}


/* لیست شعبه‌ها */
.store-site .store-branch-menu #storeBranchList {
    min-width: 220px !important;
}


/* هر شعبه */
.store-site .store-branch-menu .store-branch-option {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 44px !important;

    box-sizing: border-box !important;

    padding: 9px 13px !important;
    margin: 3px 0 !important;

    border-radius: 11px !important;

    color: rgba(255,255,255,.88) !important;

    background: transparent !important;

    font-family:
        Tahoma,
        Arial,
        sans-serif !important;

    font-size: 14px !important;
    font-weight: 500 !important;

    line-height: 1.5 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease !important;
}


/* Hover */
.store-site .store-branch-menu .store-branch-option:hover {
    color: #ffffff !important;

    background:
        linear-gradient(
            90deg,
            rgba(72,126,255,.20),
            rgba(72,126,255,.08)
        ) !important;

    transform:
        translateX(-2px) !important;
}


/* شعبه انتخاب‌شده */
.store-site .store-branch-menu .store-branch-option[style*="font-weight:700"] {
    color: #ffffff !important;

    background:
        linear-gradient(
            90deg,
            rgba(62,132,255,.30),
            rgba(62,132,255,.12)
        ) !important;

    border:
        1px solid rgba(90,150,255,.25) !important;

    box-shadow:
        inset 3px 0 0 rgba(100,165,255,.90) !important;
}


/* متن Loading */
.store-site .store-branch-menu #storeBranchList > div {
    color: rgba(255,255,255,.70) !important;

    font-size: 13px !important;

    padding:
        10px 13px !important;
}


/* فلش انتخاب شعبه */
.store-site .store-branch-dropdown .dropdown-arrow {
    transition:
        transform .20s ease !important;
}

.store-site .store-branch-dropdown.open .dropdown-arrow {
    transform:
        rotate(180deg) !important;
}



/* STORE BRANCH DROPDOWN — COMPACT WIDTH */

.store-site .store-branch-dropdown .store-branch-menu {
    min-width: 190px !important;
    width: 190px !important;
    max-width: 220px !important;
}

.store-site .store-branch-menu #storeBranchList {
    min-width: 0 !important;
    width: 100% !important;
}

.store-site .store-branch-menu .store-branch-option {
    width: 100% !important;
    box-sizing: border-box !important;
}



/* STORE BRANCH DROPDOWN — EXTRA COMPACT */

.store-site .store-branch-dropdown .store-branch-menu {
    min-width: 155px !important;
    width: 155px !important;
    max-width: 170px !important;
}

.store-site .store-branch-menu #storeBranchList {
    min-width: 0 !important;
    width: 100% !important;
}


/* ============================================================
   PRODUCT CARD - FIXED CART BUTTON POSITION
   ------------------------------------------------------------
   Reserve a fixed-height slot for stock status so the
   "انتخاب محصول" button stays perfectly aligned between cards.
   ============================================================ */

.store-site .store-product-card {
    display: flex;
    flex-direction: column;
}

.store-site .store-product-card .price-info {
    flex: 0 0 auto;
}

/* ثابت نگه داشتن فضای وضعیت موجودی */
.store-site .store-product-card .out-of-stock {
    min-height: 31px !important;
    box-sizing: border-box;
}

/* دکمه همیشه در پایین یک ارتفاع ثابت کارت قرار بگیرد */
.store-site .store-product-card .cart-actions {
    margin-top: auto !important;
    flex: 0 0 45px;
}


/* ============================================================
   MOBILE PRODUCT CARDS — COMPACT 2 COLUMN
   فقط کارت محصولات صفحه اصلی فروشگاه
   دسکتاپ بدون تغییر
   ============================================================ */

@media (max-width: 700px) {

    .store-site #storeProductsContainer,
    .store-site .store-products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            9px !important;
    }

    .store-site #storeProductsContainer .product-card,
    .store-site .store-products-grid .product-card {

        min-height:
            0 !important;

        height:
            auto !important;

        border-radius:
            13px !important;
    }

    .store-site #storeProductsContainer .product-image-section,
    .store-site .store-products-grid .product-image-section,
    .store-site #storeProductsContainer .img-wrapper,
    .store-site .store-products-grid .img-wrapper {

        height:
            125px !important;

        flex-basis:
            125px !important;
    }

    .store-site #storeProductsContainer .product-image-section img,
    .store-site .store-products-grid .product-image-section img,
    .store-site #storeProductsContainer .img-wrapper img,
    .store-site .store-products-grid .img-wrapper img {

        padding:
            7px !important;
    }

    .store-site #storeProductsContainer .product-card h3,
    .store-site .store-products-grid .product-card h3 {

        min-height:
            38px !important;

        max-height:
            38px !important;

        margin:
            7px 8px 3px !important;

        font-size:
            12px !important;

        line-height:
            1.6 !important;
    }

    /* کد کالا و امتیاز در موبایل نمایش داده نشوند */

    .store-site #storeProductsContainer .product-code,
    .store-site .store-products-grid .product-code,
    .store-site #storeProductsContainer .product-rating,
    .store-site .store-products-grid .product-rating {

        display:
            none !important;
    }

    .store-site #storeProductsContainer .price-info,
    .store-site .store-products-grid .price-info {

        min-height:
            0 !important;

        margin:
            4px 8px !important;

        line-height:
            1.25 !important;
    }

    .store-site #storeProductsContainer .price-discounted,
    .store-site .store-products-grid .price-discounted {

        font-size:
            13px !important;

        line-height:
            1.3 !important;
    }

    .store-site #storeProductsContainer .price,
    .store-site .store-products-grid .price,
    .store-site #storeProductsContainer .price-normal,
    .store-site .store-products-grid .price-normal,
    .store-site #storeProductsContainer .product-price,
    .store-site .store-products-grid .product-price {

        font-size:
            12px !important;

        line-height:
            1.3 !important;
    }

    .store-site #storeProductsContainer .price-original,
    .store-site .store-products-grid .price-original {

        font-size:
            9px !important;

        line-height:
            1.2 !important;
    }

    .store-site #storeProductsContainer .cart-actions,
    .store-site .store-products-grid .cart-actions {

        margin:
            5px 7px 7px !important;

        padding:
            6px !important;
    }

    .store-site #storeProductsContainer .btn-add-cart,
    .store-site .store-products-grid .btn-add-cart {

        min-height:
            34px !important;

        font-size:
            10px !important;

        border-radius:
            9px !important;
    }
}


/* حتی موبایل‌های خیلی باریک هم دو ستون بماند */

@media (max-width: 380px) {

    .store-site #storeProductsContainer,
    .store-site .store-products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            7px !important;
    }

    .store-site #storeProductsContainer .product-image-section,
    .store-site .store-products-grid .product-image-section,
    .store-site #storeProductsContainer .img-wrapper,
    .store-site .store-products-grid .img-wrapper {

        height:
            110px !important;

        flex-basis:
            110px !important;
    }

    .store-site #storeProductsContainer .product-card h3,
    .store-site .store-products-grid .product-card h3 {

        min-height:
            34px !important;

        max-height:
            34px !important;

        margin:
            6px 6px 2px !important;

        font-size:
            11px !important;
    }

    .store-site #storeProductsContainer .price-info,
    .store-site .store-products-grid .price-info {

        margin:
            3px 6px !important;
    }

    .store-site #storeProductsContainer .price,
    .store-site .store-products-grid .price,
    .store-site #storeProductsContainer .price-normal,
    .store-site .store-products-grid .price-normal,
    .store-site #storeProductsContainer .product-price,
    .store-site .store-products-grid .product-price {

        font-size:
            11px !important;
    }

    .store-site #storeProductsContainer .price-discounted,
    .store-site .store-products-grid .price-discounted {

        font-size:
            12px !important;
    }

    .store-site #storeProductsContainer .cart-actions,
    .store-site .store-products-grid .cart-actions {

        margin:
            4px 5px 6px !important;

        padding:
            5px !important;
    }

    .store-site #storeProductsContainer .btn-add-cart,
    .store-site .store-products-grid .btn-add-cart {

        min-height:
            32px !important;

        font-size:
            9px !important;
    }
}


/* ============================================================
   FINAL MOBILE STORE PRODUCT CARDS
   دو ستون واقعی + کارت فشرده
   فقط موبایل
   ============================================================ */

@media (max-width: 700px) {

    .store-site #storeProductsContainer,
    .store-site .store-products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            9px !important;
    }


    /* کارت واقعی فروشگاه */

    .store-site #storeProductsContainer .store-product-card,
    .store-site .store-products-grid .store-product-card {

        min-height:
            0 !important;

        height:
            auto !important;

        border-width:
            2px !important;

        border-radius:
            14px !important;

        box-shadow:
            0 4px 12px rgba(30,45,62,.12) !important;
    }


    /* نوار بالای کارت */

    .store-site #storeProductsContainer .store-product-card::before,
    .store-site .store-products-grid .store-product-card::before {

        height:
            4px !important;
    }


    /* تصویر */

    .store-site #storeProductsContainer .store-product-card .product-image-section,
    .store-site .store-products-grid .store-product-card .product-image-section {

        height:
            125px !important;
    }


    .store-site #storeProductsContainer .store-product-card .product-image-section img,
    .store-site .store-products-grid .store-product-card .product-image-section img {

        padding:
            7px !important;
    }


    /* تخفیف */

    .store-site #storeProductsContainer .store-product-card .discount-badge,
    .store-site .store-products-grid .store-product-card .discount-badge {

        top:
            7px !important;

        right:
            7px !important;

        min-width:
            40px !important;

        min-height:
            23px !important;

        padding:
            3px 6px !important;

        border-width:
            1px !important;

        font-size:
            .62rem !important;
    }


    /* عنوان */

    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin:
            6px 8px 2px !important;

        min-height:
            35px !important;

        max-height:
            35px !important;

        font-size:
            11.5px !important;

        line-height:
            1.52 !important;
    }


    /* کد کالا مخفی */

    .store-site #storeProductsContainer .store-product-card .product-code,
    .store-site .store-products-grid .store-product-card .product-code {

        display:
            none !important;
    }


    /* امتیاز مخفی */

    .store-site #storeProductsContainer .store-product-card .product-rating,
    .store-site .store-products-grid .store-product-card .product-rating {

        display:
            none !important;
    }


    /* باکس قیمت */

    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin:
            3px 7px 5px !important;

        padding:
            5px 7px !important;

        min-height:
            0 !important;

        border-radius:
            8px !important;

        line-height:
            1.2 !important;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.45),
            0 2px 5px rgba(40,57,75,.06) !important;
    }


    /* قیمت نهایی */

    .store-site #storeProductsContainer .store-product-card .price,
    .store-site #storeProductsContainer .store-product-card .price-discounted,
    .store-site .store-products-grid .store-product-card .price,
    .store-site .store-products-grid .store-product-card .price-discounted {

        font-size:
            12px !important;

        line-height:
            1.25 !important;
    }


    /* قیمت قبلی */

    .store-site #storeProductsContainer .store-product-card .price-original,
    .store-site .store-products-grid .store-product-card .price-original {

        font-size:
            8.5px !important;

        line-height:
            1.15 !important;
    }


    /* واحد قیمت */

    .store-site #storeProductsContainer .store-product-card .price-unit,
    .store-site .store-products-grid .store-product-card .price-unit {

        display:
            inline-block;

        margin-right:
            3px;

        font-size:
            .68em !important;

        font-weight:
            700 !important;

        white-space:
            nowrap;
    }


    /* دکمه‌ها */

    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin:
            4px 7px 7px !important;

        padding:
            5px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            34px !important;

        border-radius:
            8px !important;

        font-size:
            9.5px !important;
    }


    .store-site #storeProductsContainer .store-product-card .quantity-controls,
    .store-site .store-products-grid .store-product-card .quantity-controls {

        height:
            34px !important;

        border-radius:
            8px !important;
    }


    .store-site #storeProductsContainer .store-product-card .quantity-controls button,
    .store-site .store-products-grid .store-product-card .quantity-controls button {

        width:
            32px !important;

        flex-basis:
            32px !important;

        font-size:
            16px !important;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   همچنان دو ستون
   ============================================================ */

@media (max-width: 380px) {

    .store-site #storeProductsContainer,
    .store-site .store-products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            7px !important;
    }


    .store-site #storeProductsContainer .store-product-card .product-image-section,
    .store-site .store-products-grid .store-product-card .product-image-section {

        height:
            110px !important;
    }


    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin:
            5px 6px 2px !important;

        min-height:
            32px !important;

        max-height:
            32px !important;

        font-size:
            10.5px !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin:
            3px 5px 4px !important;

        padding:
            4px 5px !important;
    }


    .store-site #storeProductsContainer .store-product-card .price,
    .store-site #storeProductsContainer .store-product-card .price-discounted,
    .store-site .store-products-grid .store-product-card .price,
    .store-site .store-products-grid .store-product-card .price-discounted {

        font-size:
            11px !important;
    }


    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin:
            3px 5px 5px !important;

        padding:
            4px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            32px !important;

        font-size:
            9px !important;
    }
}


/* ============================================================
   MOBILE PRODUCT CARD — REDUCE INTERNAL VERTICAL SPACING
   فقط موبایل
   ============================================================ */

@media (max-width: 700px) {

    /* عنوان */
    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin-top:
            3px !important;

        margin-bottom:
            1px !important;
    }


    /* باکس قیمت */
    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin-top:
            2px !important;

        margin-bottom:
            3px !important;

        padding-top:
            3px !important;

        padding-bottom:
            3px !important;
    }


    /* قیمت قبلی و نهایی */
    .store-site #storeProductsContainer .store-product-card .price-original,
    .store-site .store-products-grid .store-product-card .price-original {

        line-height:
            1.05 !important;

        margin-bottom:
            0 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-discounted,
    .store-site #storeProductsContainer .store-product-card .price,
    .store-site .store-products-grid .store-product-card .price-discounted,
    .store-site .store-products-grid .store-product-card .price {

        line-height:
            1.1 !important;
    }


    /* فاصله بخش سبد خرید */
    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            2px !important;

        margin-bottom:
            5px !important;

        padding-top:
            3px !important;

        padding-bottom:
            3px !important;
    }


    /* دکمه */
    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            32px !important;
    }
}


/* موبایل خیلی باریک */
@media (max-width: 380px) {

    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin-top:
            2px !important;

        margin-bottom:
            0 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin-top:
            1px !important;

        margin-bottom:
            2px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;
    }


    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            1px !important;

        margin-bottom:
            4px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;
    }
}


/* ============================================================
   MOBILE PRODUCT CARDS — TIGHTER SPACING + ALIGNED ACTIONS
   ============================================================ */

@media (max-width: 700px) {

    /* فاصله عنوان از تصویر */
    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin-top:
            1px !important;

        margin-bottom:
            0 !important;

        min-height:
            32px !important;

        max-height:
            32px !important;

        line-height:
            1.35 !important;
    }


    /* قیمت — فشرده‌تر */
    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin-top:
            1px !important;

        margin-bottom:
            2px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;

        line-height:
            1 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-original,
    .store-site .store-products-grid .store-product-card .price-original {

        line-height:
            1 !important;

        margin:
            0 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price,
    .store-site #storeProductsContainer .store-product-card .price-discounted,
    .store-site .store-products-grid .store-product-card .price,
    .store-site .store-products-grid .store-product-card .price-discounted {

        line-height:
            1 !important;
    }


    /* --------------------------------------------------------
       عدم موجودی
       فضای کنترل‌شده و ثابت
       -------------------------------------------------------- */

    .store-site #storeProductsContainer .store-product-card .out-of-stock,
    .store-site .store-products-grid .store-product-card .out-of-stock {

        margin-top:
            1px !important;

        margin-bottom:
            1px !important;

        padding-top:
            3px !important;

        padding-bottom:
            3px !important;

        min-height:
            25px !important;

        box-sizing:
            border-box !important;

        line-height:
            1.2 !important;

        font-size:
            9px !important;
    }


    /* --------------------------------------------------------
       مهم:
       دکمه همیشه به پایین کارت بچسبد
       -------------------------------------------------------- */

    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            auto !important;

        margin-right:
            5px !important;

        margin-left:
            5px !important;

        margin-bottom:
            4px !important;

        padding-top:
            3px !important;

        padding-bottom:
            3px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            31px !important;

        height:
            31px !important;

        line-height:
            1 !important;

        font-size:
            9px !important;
    }


    .store-site #storeProductsContainer .store-product-card .quantity-controls,
    .store-site .store-products-grid .store-product-card .quantity-controls {

        height:
            31px !important;

        min-height:
            31px !important;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin-top:
            1px !important;

        min-height:
            29px !important;

        max-height:
            29px !important;

        line-height:
            1.3 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin-top:
            1px !important;

        margin-bottom:
            1px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;
    }


    .store-site #storeProductsContainer .store-product-card .out-of-stock,
    .store-site .store-products-grid .store-product-card .out-of-stock {

        min-height:
            23px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;

        font-size:
            8px !important;
    }


    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            auto !important;

        margin-bottom:
            3px !important;

        padding-top:
            2px !important;

        padding-bottom:
            2px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            29px !important;

        height:
            29px !important;

        font-size:
            8.5px !important;
    }
}


/* ============================================================
   MOBILE PRODUCT CARDS — EXTRA TIGHT SPACING
   ============================================================ */

@media (max-width: 700px) {

    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        margin:
            0 6px !important;

        min-height:
            29px !important;

        max-height:
            29px !important;

        line-height:
            1.25 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin:
            0 5px 1px !important;

        padding:
            1px 5px !important;

        line-height:
            1 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-original,
    .store-site .store-products-grid .store-product-card .price-original {

        margin:
            0 !important;

        line-height:
            1 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price,
    .store-site #storeProductsContainer .store-product-card .price-discounted,
    .store-site .store-products-grid .store-product-card .price,
    .store-site .store-products-grid .store-product-card .price-discounted {

        line-height:
            1 !important;
    }


    /* عدم موجودی: ارتفاع ثابت */
    .store-site #storeProductsContainer .store-product-card .out-of-stock,
    .store-site .store-products-grid .store-product-card .out-of-stock {

        min-height:
            23px !important;

        height:
            23px !important;

        box-sizing:
            border-box !important;

        margin:
            0 5px 1px !important;

        padding:
            2px 4px !important;

        line-height:
            1.1 !important;

        font-size:
            8.5px !important;

        overflow:
            hidden !important;
    }


    /* دکمه همیشه پایین کارت */
    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            auto !important;

        margin-right:
            5px !important;

        margin-left:
            5px !important;

        margin-bottom:
            3px !important;

        padding:
            2px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        min-height:
            29px !important;

        height:
            29px !important;

        line-height:
            1 !important;

        font-size:
            8.5px !important;
    }


    .store-site #storeProductsContainer .store-product-card .quantity-controls,
    .store-site .store-products-grid .store-product-card .quantity-controls {

        height:
            29px !important;

        min-height:
            29px !important;
    }
}


@media (max-width: 380px) {

    .store-site #storeProductsContainer .store-product-card h3,
    .store-site #storeProductsContainer .store-product-card .title,
    .store-site .store-products-grid .store-product-card h3,
    .store-site .store-products-grid .store-product-card .title {

        min-height:
            27px !important;

        max-height:
            27px !important;

        margin:
            0 5px !important;

        font-size:
            10px !important;

        line-height:
            1.2 !important;
    }


    .store-site #storeProductsContainer .store-product-card .price-info,
    .store-site .store-products-grid .store-product-card .price-info {

        margin:
            0 4px 1px !important;

        padding:
            1px 4px !important;
    }


    .store-site #storeProductsContainer .store-product-card .out-of-stock,
    .store-site .store-products-grid .store-product-card .out-of-stock {

        height:
            21px !important;

        min-height:
            21px !important;

        margin:
            0 4px 1px !important;

        padding:
            1px 3px !important;

        font-size:
            8px !important;
    }


    .store-site #storeProductsContainer .store-product-card .cart-actions,
    .store-site .store-products-grid .store-product-card .cart-actions {

        margin-top:
            auto !important;

        margin-bottom:
            2px !important;

        padding:
            1px !important;
    }


    .store-site #storeProductsContainer .store-product-card .btn-add-cart,
    .store-site .store-products-grid .store-product-card .btn-add-cart {

        height:
            28px !important;

        min-height:
            28px !important;

        font-size:
            8px !important;
    }
}


/* ------------------------------------------------------------
   STORE HOME SMART SECTIONS — MOBILE HORIZONTAL SCROLL
   فقط روی کانتینر Smart Sectionها
   کارت‌ها و استایل داخلی آنها دست‌نخورده می‌مانند.
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .store-site .store-home-section
    .store-home-products {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px !important;
        padding: 2px 2px 12px !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .store-site .store-home-section
    .store-home-products > .store-product-card {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        min-width: 0 !important;
        scroll-snap-align: start;
    }

    .store-site .store-home-section
    .store-home-products::-webkit-scrollbar {
        height: 5px;
    }

    .store-site .store-home-section
    .store-home-products::-webkit-scrollbar-thumb {
        border-radius: 999px;
    }
}

/* ============================================================
   STORE HOME SMART SECTIONS — PREMIUM BLUE / PURPLE
   Outer sections only — product cards untouched
   ============================================================ */

.store-site #storeHomeSections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 28px 0 32px;
}

/* ============================================================
   BASE OUTER CARD
   ============================================================ */

.store-site #storeHomeSections .store-home-section {
    position: relative;
    padding: 23px 23px 21px;
    border: 1px solid rgba(69, 82, 130, 0.18);
    border-radius: 26px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(250, 251, 255, 0.98) 0%,
            rgba(241, 243, 251, 0.98) 52%,
            rgba(232, 235, 246, 0.98) 100%
        );

    box-shadow:
        0 18px 42px rgba(42, 52, 86, 0.10),
        0 4px 12px rgba(42, 52, 86, 0.06);
}

/* رنگ بالای Section */
.store-site #storeHomeSections .store-home-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 4px;
    border-radius: 0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #416fb4 25%,
            #6650ae 72%,
            transparent
        );
}

/* هاله بسیار ظریف داخل قاب */
.store-site #storeHomeSections .store-home-section::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(103, 80, 181, 0.075),
            transparent 68%
        );
    pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.store-site #storeHomeSections .store-home-section-header {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 20px;
    padding: 1px 2px 17px;

    border-bottom: 1px solid rgba(68, 78, 112, 0.11);
}

.store-site #storeHomeSections .store-home-section-header > div {
    min-width: 0;
}

/* ============================================================
   KICKER
   ============================================================ */

.store-site #storeHomeSections .store-home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
    padding: 7px 12px;

    border: 1px solid rgba(78, 91, 161, 0.16);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(62, 112, 188, 0.12),
            rgba(105, 75, 180, 0.13)
        );

    color: #555d9e;

    font-size: 11px;
    font-weight: 850;
    line-height: 1;

    box-shadow:
        0 3px 9px rgba(63, 78, 139, 0.05);
}

.store-site #storeHomeSections .store-home-section-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #3d79bd,
            #7653b5
        );

    box-shadow:
        0 0 0 3px rgba(80, 101, 181, 0.10);
}

/* ============================================================
   TITLE
   ============================================================ */

.store-site #storeHomeSections .store-home-section-header h2 {
    margin: 0;

    font-size: 27px;
    line-height: 1.35;

    font-weight: 950;
    letter-spacing: -0.7px;

    color: #273650;

    text-shadow:
        0 1px 0 rgba(255,255,255,0.8);
}

/* underline */
.store-site #storeHomeSections .store-home-section-header h2::after {
    content: "";
    display: block;

    width: 48px;
    height: 4px;

    margin-top: 8px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #3d78bd,
            #6951b3
        );

    box-shadow:
        0 2px 6px rgba(82, 86, 173, 0.20);
}

/* ============================================================
   DESCRIPTION
   ============================================================ */

.store-site #storeHomeSections .store-home-section-header p {
    margin: 7px 0 0;

    color: #737f94;

    font-size: 12px;
    line-height: 1.8;
    font-weight: 500;
}

/* ============================================================
   MORE BUTTON
   ============================================================ */

.store-site #storeHomeSections .store-home-section-more {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 41px;
    padding: 0 17px;

    border: 1px solid rgba(69, 93, 150, 0.22);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.98),
            rgba(239,242,250,0.98)
        );

    color: #50658d;

    font-size: 12px;
    font-weight: 850;

    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(51, 67, 103, 0.07);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.store-site #storeHomeSections .store-home-section-more:hover {
    transform: translateY(-2px);

    color: #574da0;

    border-color: rgba(92, 78, 170, 0.34);

    box-shadow:
        0 9px 20px rgba(55, 66, 108, 0.13);
}

/* ============================================================
   SPECIAL OFFERS
   آبی سلطنتی + بنفش
   ============================================================ */

.store-site #storeSpecialOffersSection {
    border-color: rgba(73, 82, 164, 0.28) !important;

    background:
        linear-gradient(
            135deg,
            #f4f7ff 0%,
            #edf0ff 48%,
            #e7e7fa 100%
        ) !important;

    box-shadow:
        0 20px 44px rgba(71, 76, 153, 0.13),
        0 5px 14px rgba(71, 76, 153, 0.07) !important;
}

.store-site #storeSpecialOffersSection::before {
    height: 5px !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            #3978be 20%,
            #6550b6 58%,
            #8052b5 80%,
            transparent
        ) !important;
}

.store-site #storeSpecialOffersSection::after {
    background:
        radial-gradient(
            circle,
            rgba(106, 76, 190, 0.13),
            transparent 68%
        );
}

.store-site #storeSpecialOffersSection
.store-home-section-kicker {
    color: #56569f;

    border-color: rgba(85, 82, 169, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(58, 116, 190, 0.13),
            rgba(112, 77, 185, 0.15)
        );
}

/* عنوان ویژه‌تر */
.store-site #storeSpecialOffersSection
.store-home-section-header h2 {
    font-size: 29px;
    letter-spacing: -0.9px;

    color: #292f5b;
}

.store-site #storeSpecialOffersSection
.store-home-section-header h2::after {
    width: 64px;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #3678bd,
            #6b4db6
        );
}

/* ============================================================
   PERSONALIZED
   آبی + بنفش نرم
   ============================================================ */

.store-site #storePersonalizedSection {
    border-color: rgba(65, 104, 173, 0.24) !important;

    background:
        linear-gradient(
            135deg,
            #f3f8ff 0%,
            #edf2fb 48%,
            #eceafa 100%
        ) !important;
}

.store-site #storePersonalizedSection::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #3979bb 28%,
            #6556ad 68%,
            transparent
        ) !important;
}

.store-site #storePersonalizedSection
.store-home-section-kicker {
    color: #506a9d;

    background:
        linear-gradient(
            135deg,
            rgba(57, 119, 190, 0.12),
            rgba(103, 83, 174, 0.10)
        );
}

/* ============================================================
   TOP RATED
   بنفش آبی عمیق
   ============================================================ */

.store-site #storeTopRatedSection {
    border-color: rgba(91, 80, 158, 0.23) !important;

    background:
        linear-gradient(
            135deg,
            #f7f6ff 0%,
            #f0f0fb 50%,
            #e9edf8 100%
        ) !important;
}

.store-site #storeTopRatedSection::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #5570b1 25%,
            #7152ae 70%,
            transparent
        ) !important;
}

.store-site #storeTopRatedSection
.store-home-section-kicker {
    color: #645d99;

    background:
        linear-gradient(
            135deg,
            rgba(78, 105, 176, 0.10),
            rgba(112, 80, 174, 0.12)
        );
}

/* ============================================================
   CATEGORY SECTIONS
   خاکستری آبی + بنفش بسیار ملایم
   ============================================================ */

.store-site #storeCategorySections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.store-site #storeCategorySections
.store-home-category-section {
    border-color: rgba(74, 97, 133, 0.20);

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef2f7 54%,
            #e9edf5 100%
        );
}

.store-site #storeCategorySections
.store-home-category-section::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #5278aa 28%,
            #7562a9 70%,
            transparent
        );
}

.store-site #storeCategorySections
.store-home-section-kicker {
    color: #5c6e8a;

    background:
        linear-gradient(
            135deg,
            rgba(75, 113, 169, 0.10),
            rgba(105, 90, 158, 0.08)
        );
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .store-site #storeHomeSections {
        gap: 17px;
        margin: 19px 0 23px;
    }

    .store-site #storeHomeSections
    .store-home-section {
        padding: 17px 14px 15px;
        border-radius: 20px;
    }

    .store-site #storeHomeSections
    .store-home-section::before {
        right: 18px;
        left: 18px;
        height: 3px;
    }

    .store-site #storeHomeSections
    .store-home-section-header {
        align-items: flex-start;
        gap: 11px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .store-site #storeHomeSections
    .store-home-section-kicker {
        margin-bottom: 6px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .store-site #storeHomeSections
    .store-home-section-header h2,
    .store-site #storeSpecialOffersSection
    .store-home-section-header h2 {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .store-site #storeHomeSections
    .store-home-section-header h2::after {
        width: 35px;
        height: 3px;
        margin-top: 6px;
    }

    .store-site #storeSpecialOffersSection
    .store-home-section-header h2::after {
        width: 46px;
        height: 4px;
    }

    .store-site #storeHomeSections
    .store-home-section-header p {
        margin-top: 5px;
        font-size: 10.5px;
    }

    .store-site #storeHomeSections
    .store-home-section-more {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 10px;
    }

    .store-site #storeCategorySections {
        gap: 17px;
    }
}


/* ============================================================
   SMART SECTIONS — DEEP BLUE / PURPLE OUTER FRAMES
   فقط قاب بیرونی و Header
   Product Cards untouched
   ============================================================ */

/* قاب پایه */
.store-site #storeHomeSections .store-home-section {
    border-color: rgba(120, 130, 175, 0.32) !important;

    background:
        linear-gradient(
            135deg,
            #263f68 0%,
            #344c7c 46%,
            #4b427b 100%
        ) !important;

    box-shadow:
        0 18px 42px rgba(28, 39, 73, 0.24),
        0 5px 14px rgba(28, 39, 73, 0.15) !important;
}

/* هاله داخل قاب */
.store-site #storeHomeSections .store-home-section::after {
    background:
        radial-gradient(
            circle,
            rgba(142, 119, 219, 0.16),
            transparent 68%
        ) !important;
}

/* خط بالایی */
.store-site #storeHomeSections .store-home-section::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #73a8e2 25%,
            #a18ae0 70%,
            transparent
        ) !important;
}

/* Header */
.store-site #storeHomeSections .store-home-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Kicker */
.store-site #storeHomeSections .store-home-section-kicker {
    color: #eef3ff !important;

    border-color: rgba(255, 255, 255, 0.18) !important;

    background:
        linear-gradient(
            135deg,
            rgba(108, 166, 225, 0.22),
            rgba(143, 116, 215, 0.24)
        ) !important;

    box-shadow:
        0 4px 12px rgba(10, 20, 45, 0.12);
}

.store-site #storeHomeSections .store-home-section-kicker::before {
    background:
        linear-gradient(
            135deg,
            #82b8ea,
            #b39ae8
        ) !important;

    box-shadow:
        0 0 0 3px rgba(155, 178, 232, 0.12) !important;
}

/* عنوان */
.store-site #storeHomeSections .store-home-section-header h2 {
    color: #ffffff !important;

    text-shadow:
        0 2px 7px rgba(12, 20, 42, 0.25);
}

.store-site #storeHomeSections .store-home-section-header h2::after {
    background:
        linear-gradient(
            90deg,
            #72ace5,
            #a78de1
        ) !important;

    box-shadow:
        0 2px 8px rgba(119, 144, 220, 0.35);
}

/* توضیح */
.store-site #storeHomeSections .store-home-section-header p {
    color: rgba(238, 243, 255, 0.76) !important;
}

/* مشاهده همه */
.store-site #storeHomeSections .store-home-section-more {
    border-color: rgba(255, 255, 255, 0.20) !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.08)
        ) !important;

    color: #f3f6ff !important;

    box-shadow:
        0 5px 15px rgba(10, 20, 45, 0.13);
}

.store-site #storeHomeSections .store-home-section-more:hover {
    border-color: rgba(255, 255, 255, 0.38) !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.23),
            rgba(255,255,255,0.12)
        ) !important;

    color: #ffffff !important;
}

/* ============================================================
   فروش ویژه — آبی سلطنتی + بنفش
   ============================================================ */

.store-site #storeSpecialOffersSection {
    background:
        linear-gradient(
            135deg,
            #214d86 0%,
            #315f9a 42%,
            #5b4388 100%
        ) !important;

    border-color: rgba(124, 165, 220, 0.42) !important;
}

.store-site #storeSpecialOffersSection::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #8bc0f0 22%,
            #b69ae9 72%,
            transparent
        ) !important;
}

.store-site #storeSpecialOffersSection::after {
    background:
        radial-gradient(
            circle,
            rgba(171, 143, 234, 0.20),
            transparent 68%
        ) !important;
}

.store-site #storeSpecialOffersSection
.store-home-section-header h2 {
    font-size: 30px;
    letter-spacing: -0.9px;
}

/* ============================================================
   پیشنهادهای شما — بنفش + آبی
   ============================================================ */

.store-site #storePersonalizedSection {
    background:
        linear-gradient(
            135deg,
            #423b7e 0%,
            #514789 45%,
            #315d91 100%
        ) !important;

    border-color: rgba(146, 132, 216, 0.38) !important;
}

.store-site #storePersonalizedSection::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #a997e8 25%,
            #7eafe0 72%,
            transparent
        ) !important;
}

/* ============================================================
   پربازدیدترین‌ها — آبی نفتی + بنفش
   ============================================================ */

.store-site #storeTopRatedSection {
    background:
        linear-gradient(
            135deg,
            #293f68 0%,
            #344e79 48%,
            #55467e 100%
        ) !important;

    border-color: rgba(126, 143, 192, 0.36) !important;
}

.store-site #storeTopRatedSection::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #7daee0 28%,
            #a391dc 70%,
            transparent
        ) !important;
}

/* ============================================================
   دسته‌بندی‌ها — خاکستری آبی تیره
   ============================================================ */

.store-site #storeCategorySections
.store-home-category-section {
    background:
        linear-gradient(
            135deg,
            #394b66 0%,
            #465a77 50%,
            #55506f 100%
        ) !important;

    border-color: rgba(145, 157, 190, 0.30) !important;
}

.store-site #storeCategorySections
.store-home-category-section::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            #83a9d3 28%,
            #9c8dce 70%,
            transparent
        ) !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .store-site #storeHomeSections
    .store-home-section-header h2,
    .store-site #storeSpecialOffersSection
    .store-home-section-header h2 {
        font-size: 21px;
    }

    .store-site #storeSpecialOffersSection
    .store-home-section-header h2 {
        font-size: 22px;
    }
}


/* ============================================================
   STORE PAGE — DARKER NEUTRAL GRAY BACKGROUND
   ============================================================ */

.store-site {
    background:
        linear-gradient(
            135deg,
            #d1d5dc 0%,
            #c7ccd4 48%,
            #bec4cd 100%
        ) !important;
}

.store-site body {
    background:
        linear-gradient(
            135deg,
            #d1d5dc 0%,
            #c7ccd4 48%,
            #bec4cd 100%
        ) !important;
}


/* ============================================================
   STORE HOME — DESKTOP ONE ROW
   فقط نمایش کارت‌های ردیف اول
   کارت‌ها و طراحی داخلی دست‌نخورده
   ============================================================ */

@media (min-width: 701px) {

    .store-site #storeHomeSections
    .store-home-section
    .store-home-products {
        overflow: hidden !important;
    }

    .store-site #storeHomeSections
    .store-home-section
    .store-home-products
    > .store-product-card[hidden] {
        display: none !important;
    }

}



/* ============================================================
   STORE HOME SECTIONS
   DESKTOP: ONE ROW + SHOW ALL
   فقط کنترل نمایش تعداد کارت‌ها
   بدون تغییر طراحی داخلی کارت
   ============================================================ */

@media (min-width: 701px) {

    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products
    > .store-product-card {
        display: none;
    }


    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products
    > .store-product-card:nth-child(-n + 5) {
        display: flex;
    }


    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products {
        overflow: hidden;
    }


    .store-site
    #storeHomeSections
    .store-home-section.store-home-section-expanded
    .store-home-products {
        overflow: visible;
    }


    .store-site
    #storeHomeSections
    .store-home-section.store-home-section-expanded
    .store-home-products
    > .store-product-card {
        display: flex;
    }

}


/* ============================================================
   MOBILE
   اسکرول افقی فعلی حفظ شود
   ============================================================ */

@media (max-width: 700px) {

    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }


    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products
    > .store-product-card {
        display: none !important;
    }


    .store-site
    #storeHomeSections
    .store-home-section
    .store-home-products
    > .store-product-card:nth-child(-n + 5) {
        display: flex !important;
    }


    .store-site
    #storeHomeSections
    .store-home-section.store-home-section-expanded
    .store-home-products
    > .store-product-card {
        display: flex !important;
    }

}


/* ============================================================
   STORE HOME ADVERTISING SLIDESHOW FRONTEND
   ============================================================ */

.store-home-banner-slider {
    position: relative;
    width: 100%;
    height: 285px;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 22px;
    isolation: isolate;
    box-shadow: 0 12px 35px rgba(30, 45, 90, 0.14);
    background: linear-gradient(
        135deg,
        #243b6b,
        #5a3f88
    );
}

.store-home-banner-slider[hidden] {
    display: none !important;
}

.store-home-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.store-home-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateX(100%);
    background:
        linear-gradient(
            100deg,
            var(--banner-bg-1, #243b6b),
            var(--banner-bg-2, #5a3f88)
        );
}

.store-home-banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 31, 65, 0.78) 0%,
            rgba(35, 49, 96, 0.48) 42%,
            rgba(35, 49, 96, 0.10) 100%
        ),
        var(--banner-image) center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.store-home-banner-slide.is-active {
    transform: translateX(0);
}

.store-home-banner-content {
    position: relative;
    z-index: 2;
    width: min(62%, 720px);
    padding: 35px 48px;
    color: #fff;
    direction: rtl;
    text-align: right;
}

.store-home-banner-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 800;
}

.store-home-banner-content p {
    margin: 0 0 20px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.9;
}

.store-home-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 22px;
    border-radius: 12px;
    background: #fff;
    color: #243b6b !important;
    text-decoration: none !important;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.store-home-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.store-home-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.88);
    color: #243b6b;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.store-home-banner-arrow:hover {
    background: #fff;
}

.store-home-banner-prev {
    left: 18px;
}

.store-home-banner-next {
    right: 18px;
}

.store-home-banner-dots {
    position: absolute;
    z-index: 6;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
}

.store-home-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.store-home-banner-dot.is-active {
    width: 24px;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 900px) {

    .store-home-banner-slider {
        height: 188px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .store-home-banner-content {
        width: 78%;
        padding: 22px 24px;
    }

    .store-home-banner-content h2 {
        margin-bottom: 5px;
        font-size: 21px;
    }

    .store-home-banner-content p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-home-banner-button {
        min-height: 34px;
        padding: 6px 14px;
        border-radius: 9px;
        font-size: 12px;
    }

    .store-home-banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .store-home-banner-prev {
        left: 10px;
    }

    .store-home-banner-next {
        right: 10px;
    }

    .store-home-banner-dots {
        bottom: 9px;
    }
}

@media (max-width: 520px) {

    .store-home-banner-slider {
        height: 170px;
        border-radius: 14px;
    }

    .store-home-banner-content {
        width: 82%;
        padding: 18px 20px;
    }

    .store-home-banner-content h2 {
        font-size: 18px;
    }

    .store-home-banner-content p {
        font-size: 11px;
    }
}

/* STORE HOME ADVERTISING SLIDESHOW FRONTEND */

.store-home-banner-slider {
    position: relative;
    width: 100%;
    height: 285px;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 22px;
    isolation: isolate;
    box-shadow: 0 12px 35px rgba(30, 45, 90, 0.14);
    background: linear-gradient(135deg, #243b6b, #5a3f88);
}

.store-home-banner-slider[hidden] {
    display: none !important;
}

.store-home-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.store-home-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateX(100%);
    background: linear-gradient(
        100deg,
        var(--banner-bg-1, #243b6b),
        var(--banner-bg-2, #5a3f88)
    );
}

.store-home-banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 31, 65, 0.78) 0%,
            rgba(35, 49, 96, 0.48) 42%,
            rgba(35, 49, 96, 0.10) 100%
        ),
        var(--banner-image) center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.store-home-banner-slide.is-active {
    transform: translateX(0);
}

.store-home-banner-content {
    position: relative;
    z-index: 2;
    width: min(62%, 720px);
    padding: 35px 48px;
    color: #fff;
    direction: rtl;
    text-align: right;
}

.store-home-banner-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 800;
}

.store-home-banner-content p {
    margin: 0 0 20px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.9;
}

.store-home-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 22px;
    border-radius: 12px;
    background: #fff;
    color: #243b6b !important;
    text-decoration: none !important;
    font-weight: 800;
}

.store-home-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.88);
    color: #243b6b;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.store-home-banner-prev {
    left: 18px;
}

.store-home-banner-next {
    right: 18px;
}

.store-home-banner-dots {
    position: absolute;
    z-index: 6;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
}

.store-home-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

.store-home-banner-dot.is-active {
    width: 24px;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 900px) {
    .store-home-banner-slider {
        height: 188px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .store-home-banner-content {
        width: 78%;
        padding: 22px 24px;
    }

    .store-home-banner-content h2 {
        margin-bottom: 5px;
        font-size: 21px;
    }

    .store-home-banner-content p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.7;
    }

    .store-home-banner-button {
        min-height: 34px;
        padding: 6px 14px;
        border-radius: 9px;
        font-size: 12px;
    }

    .store-home-banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .store-home-banner-prev {
        left: 10px;
    }

    .store-home-banner-next {
        right: 10px;
    }

    .store-home-banner-dots {
        bottom: 9px;
    }
}

@media (max-width: 520px) {
    .store-home-banner-slider {
        height: 170px;
        border-radius: 14px;
    }

    .store-home-banner-content {
        width: 82%;
        padding: 18px 20px;
    }

    .store-home-banner-content h2 {
        font-size: 18px;
    }

    .store-home-banner-content p {
        font-size: 11px;
    }
}



/* ============================================================
   STORE HOME BANNER REAL IMAGE LAYER
   ============================================================ */

.store-home-banner-slide {
    isolation: isolate;
}

.store-home-banner-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}

.store-home-banner-slide::before {
    z-index: 1 !important;
    background:
        linear-gradient(
            90deg,
            rgba(20, 31, 65, 0.78) 0%,
            rgba(35, 49, 96, 0.42) 42%,
            rgba(35, 49, 96, 0.08) 100%
        ) !important;
    pointer-events: none;
}

.store-home-banner-content {
    z-index: 2;
}

.store-home-banner-arrow {
    z-index: 5;
}

.store-home-banner-dots {
    z-index: 6;
}

/* ============================================================
   STORE HOME BANNER - FINAL IMAGE MODE
   تصویر نهایی بدون هیچ لایه رنگی روی خودش نمایش داده می‌شود.
   ============================================================ */

.store-home-banner-slide.has-image::before {
    background: none !important;
    opacity: 0 !important;
}

/* ============================================================
   STORE HOME BANNER - NO FORCED DARK OVERLAY
   ============================================================ */

/*
 * هیچ overlay یا گرادیان اجباری روی بنر وجود نداشته باشد.
 *
 * رنگ خود بنر فقط از:
 * --banner-bg-1
 * --banner-bg-2
 *
 * می‌آید و در حالت تصویر، خود تصویر مرجع اصلی است.
 */

.store-home-banner-slide::before {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/*
 * تصویر نهایی تمام سطح اسلاید را می‌پوشاند.
 */

.store-home-banner-slide.has-image {
    background: transparent !important;
}

.store-home-banner-slide.has-image::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ============================================================
   MAIN SYSTEM FOOTER
   Same visual language as Store Footer
   ============================================================ */

.main-system-footer {
    width: 100%;
    margin-top: 60px;

    background:
        linear-gradient(
            180deg,
            rgba(15,20,28,.98),
            rgba(10,14,20,1)
        );

    border-top: 1px solid rgba(255,255,255,.08);

    box-sizing: border-box;

    color: #fff;

    font-family: Tahoma, Arial, sans-serif;
}

.main-system-footer-inner {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    padding: 32px 0 20px;

    box-sizing: border-box;
}

.main-system-footer
.shared-footer-managed-text {

    width: 100%;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 12px 55px;

    padding: 18px 0 4px;

    box-sizing: border-box;

    border-top: 1px solid rgba(255,255,255,.08);

    text-align: center;
}

.main-system-footer
.shared-footer-managed-text span {

    display: inline-block;

    margin: 0;
    padding: 0;

    font-family: Tahoma, Arial, sans-serif !important;

    font-size: 14px !important;

    font-weight: 500 !important;

    line-height: 1.9 !important;

    color: rgba(255,255,255,.70) !important;

    white-space: nowrap;
}


/* Keep Main Footer at bottom when page content is short,
   without changing the layout of the body globally. */

body:has(.main-system-footer) {
    min-height: 100vh;
}

body:has(.main-system-footer) .main-system-footer {
    margin-top: auto;
}


@media (max-width: 700px) {

    .main-system-footer-inner {
        width: calc(100% - 28px);

        padding: 28px 0 18px;
    }

    .main-system-footer
    .shared-footer-managed-text {

        gap: 6px;

        padding-top: 14px;
    }

    .main-system-footer
    .shared-footer-managed-text span {

        font-size: 13px !important;

        white-space: normal;
    }
}

/* ============================================================
   MAIN FOOTER - SAME VISUAL STYLE AS STORE FOOTER
   Only managed footer information is displayed.
   ============================================================ */

.main-system-footer {
    width: 100%;
    margin-top: 60px;
    background:
        linear-gradient(
            180deg,
            rgba(15,20,28,.98),
            rgba(10,14,20,1)
        );
    border-top: 1px solid rgba(255,255,255,.08);
}

.main-system-footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 20px;
}

.main-system-footer .main-footer-bottom {
    width: 100%;
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    color: rgba(255,255,255,.45) !important;
}

.main-system-footer .shared-footer-managed-text {
    width: 100%;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    color: rgba(255,255,255,.45) !important;
}

.main-system-footer .shared-footer-managed-text span {
    display: inline-block !important;
    margin: 0 7px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
    color: rgba(255,255,255,.45) !important;
}

@media (max-width: 700px) {
    .main-system-footer-inner {
        width: calc(100% - 30px);
        padding: 35px 0 18px;
    }

    .main-system-footer .shared-footer-managed-text span {
        display: block !important;
        margin: 2px 0 !important;
    }
}


/* =========================================================
   STORE PRODUCT NOTIFICATIONS
   Separate from store messages
========================================================= */

.store-site .store-product-notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.store-site .store-product-notification-button {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    min-width: 44px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-site .store-product-notification-bell {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform .2s ease,
        filter .2s ease;
}

.store-site .store-product-notification-bell svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-site .store-product-notification-button:hover
.store-product-notification-bell {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 4px 7px rgba(25,101,190,.28));
}

.store-site .store-product-notification-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #e53935;
    color: #fff;
    font: 700 10px/17px Tahoma, sans-serif;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 7px rgba(229,57,53,.35);
}

.store-site .store-product-notification-badge.is-visible {
    display: inline-flex;
}

.store-site .store-product-notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10050;
    width: min(390px, calc(100vw - 28px));
    max-height: min(520px, calc(100vh - 120px));
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(25,101,190,.12);
    border-radius: 18px;
    box-shadow:
        0 18px 50px rgba(24,52,91,.20),
        0 5px 15px rgba(24,52,91,.10);
    backdrop-filter: blur(14px);
}

.store-site .store-product-notifications-panel.is-open {
    display: flex;
    animation: storeProductNotificationsIn .18s ease-out;
}

@keyframes storeProductNotificationsIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.store-site .store-product-notifications-head {
    min-height: 54px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(25,101,190,.09);
}

.store-site .store-product-notifications-head strong {
    font-size: 15px;
    color: #17345d;
}

.store-site .store-product-notifications-head button {
    border: 0;
    background: transparent;
    color: #1976d2;
    cursor: pointer;
    font: 600 12px Tahoma, sans-serif;
    padding: 5px;
}

.store-site .store-product-notifications-list {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.store-site .store-product-notification-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(25,101,190,.07);
    background: transparent;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    text-align: right;
    direction: rtl;
    cursor: pointer;
    font-family: inherit;
    transition:
        background .18s ease,
        transform .18s ease;
}

.store-site .store-product-notification-item:hover {
    background: rgba(25,101,190,.045);
}

.store-site .store-product-notification-item.is-unread {
    background:
        linear-gradient(
            90deg,
            rgba(25,101,190,.065),
            rgba(255,255,255,0)
        );
}

.store-site .store-product-notification-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25,101,190,.09);
    color: #1976d2;
}

.store-site .store-product-notification-icon.price_drop {
    background: rgba(245,158,11,.12);
    color: #d88900;
}

.store-site .store-product-notification-icon.back_in_stock {
    background: rgba(16,185,129,.12);
    color: #059669;
}

.store-site .store-product-notification-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-site .store-product-notification-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-site .store-product-notification-content strong {
    color: #17345d;
    font-size: 13px;
    line-height: 1.5;
}

.store-site .store-product-notification-content span {
    color: #53657d;
    font-size: 12px;
    line-height: 1.7;
}

.store-site .store-product-notification-content small {
    color: #98a5b5;
    font-size: 10px;
}

.store-site .store-product-notification-unread-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 4px rgba(229,57,53,.09);
}

.store-site .store-product-notifications-status {
    min-height: 100px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #7a899d;
    font-size: 12px;
    text-align: center;
}

.store-site .store-product-notifications-status.is-error {
    color: #c62828;
}

.store-site .store-product-notifications-empty-icon {
    font-size: 28px;
    opacity: .55;
}

@media (max-width: 700px) {
    .store-site .store-product-notifications-panel {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 95px);
        border-radius: 16px;
    }
}


@media (max-width: 600px) {
  .store-home-section-more { display: none !important; }
}



/* CREDIT PAYMENT BUTTON — TEST ONLY */
.store-site[data-page="payment"] .payment-actions {
    gap: 12px !important;
}

.store-site[data-page="payment"] #payBtn,
.store-site[data-page="payment"] #payWithCreditBtn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    border-radius: 15px !important;
    font: inherit !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform .2s ease, filter .2s ease,
                box-shadow .2s ease !important;
}

.store-site[data-page="payment"] #payWithCreditBtn {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(191,219,254,.6) !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 20px rgba(37,99,235,.28),
                inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.store-site[data-page="payment"] #payWithCreditBtn::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: -120% !important;
    width: 70% !important;
    height: 100% !important;
    background: linear-gradient(110deg, transparent,
                rgba(255,255,255,.22), transparent) !important;
    transform: skewX(-18deg) !important;
    transition: right .55s ease !important;
    pointer-events: none !important;
}

.store-site[data-page="payment"] #payWithCreditBtn:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    filter: brightness(1.07) !important;
    box-shadow: 0 17px 35px rgba(37,99,235,.38),
                inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.store-site[data-page="payment"] #payWithCreditBtn:hover:not(:disabled)::before {
    right: 140% !important;
}

.store-site[data-page="payment"] #payWithCreditBtn:active:not(:disabled) {
    transform: translateY(-1px) !important;
}

.store-site[data-page="payment"] #payWithCreditBtn:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

@media (max-width: 600px) {
    .store-site[data-page="payment"] #payBtn,
    .store-site[data-page="payment"] #payWithCreditBtn {
        min-height: 54px !important;
        padding-inline: 10px !important;
        font-size: 1rem !important;
    }
}


/* FINAL PAYMENT BUTTON ALIGNMENT */
.store-site[data-page="payment"] .payment-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 560px !important;
    margin: 16px auto 0 !important;
    box-sizing: border-box !important;
}

.store-site[data-page="payment"] #payBtn,
.store-site[data-page="payment"] #payWithCreditBtn {
    flex: 0 1 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: 260px !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 420px) {
    .store-site[data-page="payment"] .payment-actions {
        gap: 8px !important;
    }

    .store-site[data-page="payment"] #payBtn,
    .store-site[data-page="payment"] #payWithCreditBtn {
        flex-basis: calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        padding-inline: 8px !important;
        font-size: .95rem !important;
    }
}

/* FINAL FIX: compact desktop product cards without resizing images */
@media (min-width: 701px) {
  .store-site .store-product-card h3 {
    min-height: 38px !important;
    max-height: 38px !important;
    height: 38px !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
  }

  .store-site .store-product-card .product-code {
    min-height: 18px !important;
    max-height: 18px !important;
    height: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .store-site .store-product-card .product-rating {
    min-height: 20px !important;
    max-height: 20px !important;
    height: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .store-site .store-product-card .price-info {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 2px 8px !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    box-sizing: border-box !important;
  }

  .store-site .store-product-card .product-price-stack {
    height: 100% !important;
    min-height: 0 !important;
  }

  .store-site .store-product-card .price-original-slot {
    height: 18px !important;
    min-height: 18px !important;
  }

  .store-site .store-product-card .price-final-slot {
    height: 25px !important;
    min-height: 25px !important;
  }

  .store-site .store-product-card .stock-status-slot,
  .store-site .store-product-card .out-of-stock {
    min-height: 19px !important;
    height: 19px !important;
  }

  .store-site .store-product-card .cart-actions {
    margin-top: auto !important;
    margin-bottom: 5px !important;
    flex: 0 0 45px !important;
    min-height: 45px !important;
  }
}


/* EXTRA COMPACT PRODUCT CARD */
@media (min-width: 701px) {
  .store-site .store-product-card {
    row-gap: 0 !important;
    padding-bottom: 4px !important;
  }

  .store-site .store-product-card h3 {
    margin-block: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.4 !important;
  }

  .store-site .store-product-card .product-code {
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    line-height: 14px !important;
  }

  .store-site .store-product-card .product-rating {
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    line-height: 17px !important;
  }

  .store-site .store-product-card .price-info {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    margin: 0 !important;
    padding: 0 5px !important;
  }

  .store-site .store-product-card .price-original-slot {
    height: 15px !important;
    min-height: 15px !important;
    line-height: 15px !important;
  }

  .store-site .store-product-card .price-final-slot {
    height: 24px !important;
    min-height: 24px !important;
    line-height: 24px !important;
  }

  .store-site .store-product-card .cart-actions {
    margin-top: auto !important;
    margin-bottom: 2px !important;
  }
}

/* MOBILE: COMPACT PRODUCT CARDS */
@media (max-width: 700px) {
  .store-site #storeProductsContainer .store-product-card,
  .store-site .store-products-grid .store-product-card,
  .store-site #storeProductsContainer .product-card,
  .store-site .store-products-grid .product-card {
    row-gap: 0 !important;
    padding-bottom: 3px !important;
  }

  .store-site #storeProductsContainer .store-product-card h3,
  .store-site .store-products-grid .store-product-card h3,
  .store-site #storeProductsContainer .product-card h3,
  .store-site .store-products-grid .product-card h3 {
    margin-top: 2px !important;
    margin-bottom: 1px !important;
    min-height: 27px !important;
    max-height: 34px !important;
    height: auto !important;
    line-height: 1.35 !important;
  }

  .store-site #storeProductsContainer .product-code,
  .store-site .store-products-grid .product-code {
    margin-block: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
  }

  .store-site #storeProductsContainer .product-rating,
  .store-site .store-products-grid .product-rating {
    margin-block: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
  }

  .store-site #storeProductsContainer .price-info,
  .store-site .store-products-grid .price-info {
    min-height: 0 !important;
    height: auto !important;
    padding: 1px 4px !important;
    margin-block: 1px !important;
  }

  .store-site #storeProductsContainer .cart-actions,
  .store-site .store-products-grid .cart-actions {
    margin-top: auto !important;
    margin-bottom: 2px !important;
  }
}

/* MOBILE: EXTRA SMALL SPACING REDUCTION */
@media (max-width: 700px) {
  .store-site #storeProductsContainer .store-product-card,
  .store-site .store-products-grid .store-product-card,
  .store-site #storeProductsContainer .product-card,
  .store-site .store-products-grid .product-card {
    padding-top: 3px !important;
    padding-bottom: 1px !important;
  }

  .store-site #storeProductsContainer .store-product-card h3,
  .store-site .store-products-grid .store-product-card h3,
  .store-site #storeProductsContainer .product-card h3,
  .store-site .store-products-grid .product-card h3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
  }

  .store-site #storeProductsContainer .price-info,
  .store-site .store-products-grid .price-info {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .store-site #storeProductsContainer .cart-actions,
  .store-site .store-products-grid .cart-actions {
    margin-bottom: 1px !important;
  }
}


/* Dual-handle store price range slider */
.store-site .store-price-range-field {
    min-width: 0;
}

.store-site .store-price-values {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    direction: rtl;
}

.store-site .store-price-values strong {
    color: #6b21a8;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.store-site .store-price-slider {
    position: relative;
    height: 30px;
    margin: 7px 8px 2px;
    direction: ltr;
}

.store-site .store-price-slider-track {
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
}

.store-site .store-price-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    direction: ltr;
}

.store-site .store-price-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
}

.store-site .store-price-slider input[type="range"]::-moz-range-track {
    height: 5px;
    background: transparent;
}

.store-site .store-price-slider input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6.5px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #7b1fa2;
    box-shadow: 0 1px 5px rgba(45, 20, 65, .28);
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
}

.store-site .store-price-slider input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #7b1fa2;
    box-shadow: 0 1px 5px rgba(45, 20, 65, .28);
    cursor: grab;
    pointer-events: auto;
}

.store-site .store-price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(123, 31, 162, .16);
}

@media (max-width: 700px) {
    .store-site .store-price-slider {
        margin-left: 5px;
        margin-right: 5px;
    }
}

