:root {
    /* =========================================
       EBACK BRAND COLORS
       ========================================= */

    --primary: #F2B93F;
    --primary-dark: #DFA52F;
    --primary-light: #FFF3D2;
    --primary-soft: #FFF9EC;
    --primary-rgb: 242, 185, 63;
    --btn-on-primary: #071A43;

    --secondary: #071A43;
    --secondary-light: #102A59;
    --secondary-soft: #EEF2F8;

    --text: #111C32;
    --text-soft: #667085;
    --muted: #98A2B3;

    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --border: #E7EAF0;

    --danger: #E05252;
    --warning: #E6A52F;

    --sidebar-width: 270px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow-sm:
        0 3px 14px rgba(7, 26, 67, .05);

    --shadow-md:
        0 12px 35px rgba(7, 26, 67, .09);

    --transition: .22s ease;
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 100;
	src: url('IRANSansXFaNum-Thin.woff') format('woff'),   
	url('IRANSansXFaNum-Thin.woff2') format('woff2');		
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 200;
	src: url('IRANSansXFaNum-UltraLight.woff') format('woff'),   
	url('IRANSansXFaNum-UltraLight.woff2') format('woff2');	
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 300;
	src: url('IRANSansXFaNum-Light.woff') format('woff'),   
	url('IRANSansXFaNum-Light.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 500;
	src: url('IRANSansXFaNum-Medium.woff') format('woff'),   
	url('IRANSansXFaNum-Medium.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 600;
	src: url('IRANSansXFaNum-DemiBold.woff') format('woff'),   
	url('IRANSansXFaNum-DemiBold.woff2') format('woff2');	 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 800;
	src: url('IRANSansXFaNum-ExtraBold.woff') format('woff'),   
	url('IRANSansXFaNum-ExtraBold.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 900;
	src: url('IRANSansXFaNum-Black.woff') format('woff'),   
	url('IRANSansXFaNum-Black.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 950;
	src: url('IRANSansXFaNum-ExtraBlack.woff') format('woff'),   
	url('IRANSansXFaNum-ExtraBlack.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 1000;
	src: url('IRANSansXFaNum-Heavy.woff') format('woff'),   
	url('IRANSansXFaNum-Heavy.woff2') format('woff2');		 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: bold;
	src: url('IRANSansXFaNum-Bold.woff') format('woff'),   
	url('IRANSansXFaNum-Bold.woff2') format('woff2');	 
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: normal;
	src: url('IRANSansXFaNum-Regular.woff') format('woff'),   
	url('IRANSansXFaNum-Regular.woff2') format('woff2');	
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-family:
        IRANSansX,
        IRANSans,
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

/* =========================================================
   APP LAYOUT
   ========================================================= */

.store-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.store-main {
    flex: 1 0 auto;
    min-height: 0;
    margin-right: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.store-main > .site-footer {
    margin-top: auto;
}

.store-content {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 40px;
    flex: 1 0 auto;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.store-sidebar {
    position: fixed;
    z-index: 1000;

    top: 0;
    right: 0;

    width: var(--sidebar-width);
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 20px 16px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdfc 100%
        );

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

    box-shadow:
        -8px 0 35px rgba(15, 35, 30, .04);
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-logo {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: grid;
    place-items: center;

    overflow: hidden;
    padding: 4px;

    border-radius: 9px;

    background: var(--primary-light);
    color: var(--secondary);
}

.sidebar-logo img,
.store-logo {
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 6px;
}

.store-logo-fallback {
    font-size: 22px;
    font-weight: 900;
	color: var(--secondary);
}

/* لوگو فروشگاه + تیک طلایی تایید (فقط وقتی ادمین ایبک بعد از
   بررسی مجوز فروشگاه، تاییدش کرده باشد نمایش داده می‌شود) */
.store-logo-wrap {
    position: relative;

    display: inline-flex;

    width: 100%;
    height: 100%;
}

.store-verified-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 2;

    width: 15px;
    height: 15px;

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

    border-radius: 50%;
    border: 2px solid #fff;

    background: linear-gradient(145deg, #ffe28a, #d8a51a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.store-verified-badge svg {
    width: 9px;
    height: 9px;

    fill: none;
    stroke: #7a5200;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-brand-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-brand-info strong {
    overflow: hidden;

    font-size: 14px;

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

.sidebar-brand-info small {
    color: var(--muted);
    font-size: 11px;
}

.sidebar-close {
    display: none;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 12px;

    background: var(--bg);
    color: var(--text);

    font-size: 24px;
}

.sidebar-divider {
    height: 1px;

    margin: 22px 0 18px;

    background: var(--border);
}

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

/* آکاردئون محصولات / مقالات در سایدبار */
.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-group > summary.sidebar-link {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.sidebar-group > summary.sidebar-link::-webkit-details-marker {
    display: none;
}

.sidebar-group > summary.sidebar-link::marker {
    display: none;
    content: "";
}

.sidebar-group > summary.sidebar-link::after {
    content: "";
    margin-inline-start: auto;
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.65;
    flex-shrink: 0;
}

.sidebar-group[open] > summary.sidebar-link::after {
    transform: rotate(-135deg);
    opacity: 1;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 8px 0;
    padding-inline-start: 50px;
}

.sidebar-sublink {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #5D6678;
    opacity: 0.9;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.sidebar-sublink:hover {
    background: var(--primary-soft, #f5f6f8);
    color: var(--secondary, #0a1915);
    opacity: 1;
}

.sidebar-link {
    position: relative;

    min-height: 50px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 12px;

    border-radius: 14px;

    color: #5D6678;

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

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.sidebar-link:hover {
    color: var(--secondary);
    background: var(--primary-soft);
    transform: translateX(-2px);
}

.sidebar-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: #F5F6F8;
}

.sidebar-link:hover .sidebar-icon {
    background: var(--primary-light);
}

.sidebar-cart-link {
    color: var(--secondary);
}

.sidebar-cart-link .sidebar-icon {
    background: var(--primary-light);
    color: var(--secondary);
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-contact,
.sidebar-address {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px;

    border-radius: 14px;

    background: var(--primary-soft);
}

.sidebar-contact-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #fff;

    color: var(--primary);
}

.sidebar-contact span:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-contact small {
    color: var(--muted);
    font-size: 10px;
}

.sidebar-contact strong {
    font-size: 12px;
}

.sidebar-address {
    color: var(--text-soft);
    font-size: 11px;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.store-topbar {
    display: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    padding: 42px;

    margin-bottom: 32px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(var(--primary-rgb), .22),
            transparent 30%
        ),
        linear-gradient(135deg, var(--primary-soft), #FFFFFF);

    border: 1px solid rgba(var(--primary-rgb), .15);
}

.hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -60px;
    bottom: -90px;

    border-radius: 50%;

    background: rgba(var(--primary-rgb), .10);
}

.hero h1 {
    position: relative;
    z-index: 1;

    margin: 0 0 8px;

    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.4;

    font-weight: 900;
}

.hero-sub {
    position: relative;
    z-index: 1;

    max-width: 700px;

    margin: 0;

    color: var(--text-soft);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin: 0 0 42px;
}

.section > h1 {
    margin: 0 0 22px;

    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
}

.section > h2 {
    margin: 0 0 20px;

    font-size: 22px;
    font-weight: 900;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0;

    font-size: 22px;
}

.section-head a {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.section-head a:hover {
    text-decoration: underline;
}


/* =========================================================
   MODERN PRODUCT CARDS
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 20px;
}

.product-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #fff;

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

    border-radius: 21px;

    box-shadow:
        0 5px 20px rgba(20, 40, 35, .045);

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

.product-card:hover {
    transform: translateY(-6px);

    border-color: rgba(var(--primary-rgb), .35);

    box-shadow:
        0 18px 42px rgba(7, 26, 67, .10);
}

.product-card-link {
    display: block;
}

.product-card-img {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f5f8f7,
            #edf3f1
        );
}

.product-card-img::before {
    content: "";

    position: absolute;

    z-index: 1;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.02) 0%,
            transparent 45%,
            rgba(0,0,0,.08) 100%
        );

    pointer-events: none;
}

.product-card-img img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

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

.product-card:hover
.product-card-img img {
    transform: scale(1.07);
}

/* ---------------------------------------------------------
   Badge ها
   --------------------------------------------------------- */

.product-card-badges {
    position: absolute;

    z-index: 3;

    top: 12px;
    right: 12px;
    left: 12px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 8px;

    pointer-events: none;
}

.product-badge {
    display: inline-flex;

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

    min-height: 27px;

    padding: 3px 9px;

    border-radius: 9px;

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

    backdrop-filter: blur(8px);
}

.product-badge-discount {
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: var(--btn-on-primary, #071A43);

    box-shadow:
        0 6px 18px rgba(var(--primary-rgb), .25);
}

.product-image-count {
    display: inline-flex;

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

    min-height: 27px;

    padding: 3px 9px;

    border-radius: 9px;

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

    color: #4e5b57;

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

    backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------
   Hover action
   --------------------------------------------------------- */

.product-card-view {
    position: absolute;

    z-index: 4;

    left: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    gap: 5px;

    padding: 7px 11px;

    border-radius: 10px;

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

    color: var(--secondary);

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

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity .25s ease,
        transform .25s ease;

    backdrop-filter: blur(8px);
}

.product-card:hover
.product-card-view {
    opacity: 1;
background: #FFF;
    transform: translateY(0);
}

.product-card-view span {
    font-size: 13px;

    transition:
        transform .2s ease;
}

.product-card:hover
.product-card-view span {
    transform: translateX(-3px);
}

/* ---------------------------------------------------------
   Card body
   --------------------------------------------------------- */

.product-card-body {
    padding: 15px 15px 16px;
}

.product-title {
    min-height: 52px;

    margin: 0 0 12px;

    display: -webkit-box;

    overflow: hidden;

    color: var(--text);

    font-size: 14px;

    line-height: 1.85;

    font-weight: 800;

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

/* ---------------------------------------------------------
   Price
   --------------------------------------------------------- */

.product-price-row {
    min-height: 32px;

    display: flex;

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

    gap: 8px;
}

.product-price-main {
    display: flex;

    align-items: baseline;

    gap: 4px;

    min-width: 0;
}

.product-price-main .price-new {
    color: var(--secondary);

    font-size: 15px;

    font-weight: 900;

    white-space: nowrap;
}

.product-price-main .price-unit {
    color: var(--text-soft);

    font-size: 9px;
}

.product-price-row .price-old {
    color: #a1aaa7;

    font-size: 10px;

    text-decoration: line-through;

    white-space: nowrap;
}

/* ---------------------------------------------------------
   تعداد و دکمه سبد روی کارت محصول
   --------------------------------------------------------- */

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-card-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.product-card-qty {
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
}

.product-card-qty button {
    width: 34px;
    font-size: 18px;
    cursor: pointer;
}

.product-card-qty input {
    width: 34px;
    font-size: 13px;
}

.product-card-cart-btn {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 11px;
    white-space: nowrap;
}

.product-card-cart-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .product-card-actions {
        flex-wrap: wrap;
    }

    .product-card-cart-btn {
        flex: 1 1 100%;
    }
}


/* =========================================================
   MODERN ARTICLE CARDS
   ========================================================= */

.article-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(245px, 1fr)
        );

    gap: 20px;
}

.article-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #fff;

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

    border-radius: 21px;

    box-shadow:
        0 5px 20px rgba(20, 40, 35, .045);

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

.article-card:hover {
    transform: translateY(-6px);

    border-color: rgba(var(--primary-rgb), .30);

    box-shadow:
        0 18px 42px rgba(7, 26, 67, .10);
}

.article-card-link {
    display: block;
}

.article-card-img {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eaf6f2,
            #f4f8f7
        );
}

.article-card-img img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

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

.article-card:hover
.article-card-img img {
    transform: scale(1.06);
}

.article-card-placeholder {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    background:
        radial-gradient(
            circle at center,
            rgba(1,112,92,.12),
            transparent 60%
        );

    color: var(--primary);

    font-size: 42px;
}

.article-card-read {
    position: absolute;

    z-index: 3;

    left: 12px;
    bottom: 12px;

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 7px 11px;

    border-radius: 10px;

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

    color: var(--primary);

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

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity .25s ease,
        transform .25s ease;

    backdrop-filter: blur(8px);
}

.article-card:hover
.article-card-read {
    opacity: 1;

    transform: translateY(0);
}

.article-card-body {
    padding: 15px 16px 18px;
}

.article-card-meta {
    display: flex;

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

    gap: 10px;

    margin-bottom: 8px;
}

.article-card-date {
    color: var(--muted);

    font-size: 10px;
}

.article-card-type {
    padding: 3px 8px;

    border-radius: 7px;

    background: var(--primary-light);
    color: var(--secondary);

    font-size: 9px;
    font-weight: 800;
}

.article-card h3 {
    min-height: 51px;

    margin: 0 0 7px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.8;

    font-weight: 800;

    display: -webkit-box;

    overflow: hidden;

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

.article-card-excerpt {
    min-height: 44px;

    margin: 0;

    color: var(--text-soft);

    font-size: 11px;

    line-height: 2;

    display: -webkit-box;

    overflow: hidden;

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


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

@media (max-width: 760px) {

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

        gap: 10px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card-badges {
        top: 8px;
        right: 8px;
        left: 8px;
    }

    .product-badge,
    .product-image-count {
        min-height: 23px;

        padding: 2px 7px;

        border-radius: 7px;

        font-size: 8px;
    }

    .product-card-view {
        display: none;
    }

    .product-card-body {
        padding: 10px 10px 12px;
    }

    .product-title {
        min-height: 43px;

        margin-bottom: 8px;

        font-size: 11px;

        line-height: 1.9;
    }

    .product-price-row {
        display: block;
    }

    .product-price-main .price-new {
        font-size: 12px;
    }

    .product-price-main .price-unit {
        font-size: 8px;
    }

    .product-price-row .price-old {
        display: block;

        margin-top: 2px;

        font-size: 9px;
    }

    .article-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .article-card {
        display: block;

        border-radius: 17px;
    }

    .article-card-body {
        padding: 12px 13px 15px;
    }

    .article-card h3 {
        font-size: 13px;
    }

    .article-card-excerpt {
        font-size: 10px;
    }

    .article-card-read {
        opacity: 1;

        transform: none;

        font-size: 9px;

        padding: 6px 9px;
    }
}

/* =========================================================
   SEARCH BOX + RESULT COUNT (محصولات / مقالات)
   ========================================================= */

.search-box {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 18px;
    max-width: 520px;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input[type="text"]::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.search-box input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18);
}

.search-box button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .28);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.search-box button:hover {
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .35);
    transform: translateY(-1px);
}

.search-box button:active {
    transform: translateY(0);
}

.result-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    border: 1px solid rgba(7, 26, 67, .08);
}

.result-count::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25);
}

/* فاصله بین سرچ و تب‌های دسته‌بندی */

/* فاصله عنوان صفحه محصولات/مقالات با باکس جستجو */
.section > h1 + .search-box {
    margin-top: 4px;
}

.section > h1 {
    margin-bottom: 16px;
}

.search-box + .cat-nav {
    margin-top: 4px;
}

.cat-nav + .result-count {
    margin-top: -6px;
}

@media (max-width: 760px) {
    .search-box {
        max-width: 100%;
        margin-bottom: 14px;
    }

    .search-box input[type="text"],
    .search-box button {
        min-height: 44px;
        border-radius: 12px;
    }

    .search-box button {
        padding: 0 16px;
        font-size: 12px;
    }

    .result-count {
        margin-bottom: 14px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* =========================================================
   CATEGORY NAV
   ========================================================= */

.cat-nav {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 25px;

    padding-bottom: 4px;

    overflow-x: auto;

    scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
    display: none;
}

.cat-nav a {
    flex: 0 0 auto;

    padding: 8px 15px;

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

    border-radius: 999px;

    background: var(--surface);

    color: var(--text-soft);

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

    transition: all var(--transition);
}

.cat-nav a:hover,
.cat-nav a.active {
    border-color: var(--primary);

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

    color: var(--secondary);

    box-shadow:
        0 5px 15px rgba(var(--primary-rgb), .18);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 45px;

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

    padding: 0 19px;

    border: 0;

    border-radius: 13px;

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

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #071A43,
            #102A59
        );

    color: #fff;

    box-shadow:
        0 8px 20px rgba(7, 26, 67, .18);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #102A59,
            #071A43
        );
}

.btn-outline {
    background: var(--surface);

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

    color: var(--text);
}

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

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.product-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 32px;

    padding: 25px;

    margin-bottom: 40px;

    background: var(--surface);

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

    border-radius: 25px;

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

.gallery {
    min-width: 0;
}

.gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: #f5f7f6;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

.gallery-thumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 9px;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 2px 0;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumbs img {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    opacity: .75;
    transition: border-color .15s, opacity .15s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.is-active {
    border-color: var(--primary);
    opacity: 1;
}

@media (max-width: 760px) {
    .gallery-thumbs img {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }
}

.product-info h1 {
    margin: 0 0 12px;

    font-size: clamp(23px, 3vw, 34px);

    line-height: 1.5;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;
}

.item-meta span {
    padding: 6px 10px;

    border-radius: 999px;

    background: var(--bg);

    color: var(--text-soft);

    font-size: 11px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;

    margin-bottom: 24px;
}

.price-box .price-new {
    font-size: 25px;
}

.feature-table {
    width: 100%;

    margin-bottom: 22px;

    border-collapse: separate;

    border-spacing: 0;

    overflow: hidden;

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

    border-radius: 14px;
}

.feature-table th,
.feature-table td {
    padding: 10px 12px;

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

    text-align: right;

    font-size: 12px;
}

.feature-table tr:last-child th,
.feature-table tr:last-child td {
    border-bottom: 0;
}

.feature-table th {
    width: 35%;

    background: var(--bg);

    color: var(--text-soft);
}

.product-desc {
    color: var(--text-soft);

    margin-bottom: 25px;
}

.buy-actions {
    display: flex;
    align-items: stretch;

    gap: 10px;

    flex-wrap: wrap;
}

.qty-box {
    display: flex;
    align-items: center;

    overflow: hidden;

    height: 45px;

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

    border-radius: 13px;

    background: var(--surface);
}

.qty-box button {
    width: 42px;
    height: 100%;

    border: 0;

    background: transparent;

    color: var(--primary);

    font-size: 21px;
}

.qty-box input {
    width: 42px;

    border: 0;

    outline: 0;

    text-align: center;

    background: transparent;

    font-weight: 800;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;

    margin-bottom: 16px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;

    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* firefox */
}
.breadcrumb::-webkit-scrollbar {
    display: none; /* chrome/safari */
}
.breadcrumb a,
.breadcrumb span,
.breadcrumb {
    flex-shrink: 0;
}
.breadcrumb a {
    color: var(--primary);
    white-space: nowrap;
}

/* =========================================================
   ARTICLE DETAIL
   ========================================================= */

.article-detail {
    max-width: 950px;

    margin: 0 auto 40px;

    padding: clamp(20px, 4vw, 45px);

    background: var(--surface);

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

    border-radius: 25px;

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

.article-cover {
    width: 100%;

    max-height: 520px;

    object-fit: cover;

    display: block;

    margin-bottom: 28px;

    border-radius: 18px;
}

.article-detail h1 {
    margin: 0 0 15px;

    font-size: clamp(25px, 4vw, 38px);

    line-height: 1.5;
}

.article-body {
    color: #394743;

    font-size: 16px;

    line-height: 2.2;
}

.article-body h2,
.article-body h3 {
    color: var(--text);

    margin-top: 32px;
}

.article-body img {
    max-width: 100%;
    height: auto;

    border-radius: 15px;
}

.article-body table {
    width: 100%;

    border-collapse: collapse;

    margin: 25px 0;
}

.article-body th,
.article-body td {
    padding: 10px;

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

/* =========================================================
   COMMENTS
   ========================================================= */

.comments {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-bottom: 20px;
}

.comment {
    padding: 17px;

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

    border-radius: 15px;

    background: var(--surface);
}

.comment p {
    margin: 8px 0 0;

    color: var(--text-soft);
}

.comment-reply {
    margin-top: 12px;

    padding: 12px;

    border-radius: 12px;

    background: var(--primary-soft);
}

.comment-reply p {
    margin-bottom: 0;
}

.comment-form {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;

    padding: 13px 14px;

    outline: none;

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

    border-radius: 13px;

    background: #fbfcfc;

    color: var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.comment-form textarea {
    min-height: 120px;

    resize: vertical;

    grid-column: 1 / -1;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: rgba(var(--primary-rgb), .65);

    box-shadow:
        0 0 0 4px rgba(var(--primary-rgb), .12);
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.faq-item {
    padding: 0 18px;

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

    border-radius: 15px;

    background: var(--surface);
}

.faq-item summary {
    padding: 17px 0;

    cursor: pointer;

    font-weight: 800;
}

.faq-item p {
    margin: 0;

    padding: 0 0 17px;

    color: var(--text-soft);
}

/* =========================================================
   LINKS
   ========================================================= */

.link-list {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );

    gap: 10px;
}

.link-chip {
    padding: 13px 15px;

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

    border-radius: 13px;

    background: var(--surface);

    color: var(--text-soft);

    font-size: 13px;

    transition: all var(--transition);
}

.link-chip:hover {
    color: var(--primary);

    border-color: rgba(1, 112, 92, .25);

    background: var(--primary-soft);

    transform: translateY(-2px);
}

/* =========================================================
   BANNER — پایه؛ جزئیات ریسپانسیو در بخش HOME SLIDER + BANNERS پایین فایل
   ========================================================= */

.banner-slot {
    display: grid;
    gap: 0;
}

/* =========================================================
   EMPTY
   ========================================================= */

.empty-state {
    padding: 60px 20px;

    text-align: center;

    background: var(--surface);

    border: 1px dashed #d8e2de;

    border-radius: 20px;

    color: var(--muted);
}

.empty-state .ico {
    margin-bottom: 10px;

    font-size: 42px;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    position: fixed;
    z-index: 3000;

    inset: 0;

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

    padding: 20px;

    background: rgba(13, 28, 24, .55);

    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-box {
    position: relative;

    width: min(560px, 100%);

    max-height: 90vh;

    overflow: auto;

    padding: 28px;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .2);
}

.modal-close {
    position: absolute;

    top: 12px;
    left: 12px;

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 10px;

    background: var(--bg);

    font-size: 22px;
}

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

#cartBox {
    min-height: 200px;

    padding: 25px;

    background: var(--surface);

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

    border-radius: 20px;
}

.skeleton {
    color: var(--muted);
}

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

.site-footer {
    padding: 36px 0 20px;

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

    background: #fff;
}

@media (max-width: 760px) {
    .site-footer {
        padding: 28px 0 16px;
    }
}

.footer-main {
    width: min(1380px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

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

    gap: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}

.footer-logo {
    width: 45px;
    height: 45px;

    overflow: hidden;
    padding: 4px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary-light);
    color: var(--secondary);

    font-weight: 900;
}

.footer-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 5px;
}

.footer-brand div:last-child {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 14px;
}

.footer-brand span {
    color: var(--muted);

    font-size: 11px;
}

.footer-about p {
    max-width: 400px;

    color: var(--muted);

    font-size: 12px;
}

.footer-phone {
    display: inline-block;

    margin: 5px 0 15px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.footer-socials a {
    padding: 7px 11px;

    border-radius: 9px;

    background: var(--bg);

    color: var(--text-soft);

    font-size: 11px;
}

.footer-socials a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.footer-links {
    display: grid;

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

    gap: 25px;
}

.footer-link-col h4 {
    margin: 0 0 10px;

    font-size: 13px;
}

.footer-link-col ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.footer-link-col li {
    margin-bottom: 6px;
}

.footer-link-col a {
    color: var(--muted);

    font-size: 11px;
}

.footer-link-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    width: min(1380px, calc(100% - 40px));

    margin: 30px auto 0;

    padding-top: 18px;

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

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

    gap: 15px;

    color: var(--muted);

    font-size: 11px;
}

.footer-bottom a {
    color: var(--secondary);

    font-weight: 700;
}

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

.mobile-menu-btn {
    display: none;
}

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

@media (max-width: 1000px) {

    :root {
        --sidebar-width: 240px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    body {
        font-size: 14px;
    }

    .store-sidebar {
        transform: translateX(105%);

        transition:
            transform .28s ease;

        box-shadow:
            -20px 0 50px rgba(0, 0, 0, .12);
    }

    .store-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 999;

        inset: 0;

        background: rgba(10, 25, 21, .5);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity .25s ease,
            visibility .25s ease;
    }

    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .store-main {
        margin-right: 0;
    }

    .store-topbar {
        position: sticky;
        z-index: 900;

        top: 0;

        height: 64px;

        padding: 0 16px;

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

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

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

        backdrop-filter: blur(14px);
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;

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

        gap: 5px;

        border: 0;
        border-radius: 12px;

        background: var(--primary-light);
    }

    .mobile-menu-btn span {
        width: 19px;
        height: 2px;

        border-radius: 3px;

        background: var(--secondary);
    }

    .mobile-brand {
        max-width: 65%;

        display: flex;
        align-items: center;
        gap: 8px;

        font-size: 13px;
        font-weight: 800;
    }

    .mobile-brand-logo {
        width: 34px;
        height: 34px;

        overflow: hidden;
        padding: 3px;

        display: grid;
        place-items: center;

        border-radius: 7px;

        background: var(--primary-light);
    }

    .mobile-brand-logo img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        border-radius: 4px;
    }

    .mobile-brand-logo .store-verified-badge {
        top: -2px;
        right: -2px;

        width: 12px;
        height: 12px;

        border-width: 1.5px;
    }

    .mobile-brand-logo .store-verified-badge svg {
        width: 7px;
        height: 7px;
    }

    .topbar-cart {
        position: relative;

        width: 42px;
        height: 42px;

        display: grid;
        place-items: center;

        border-radius: 12px;

        background: var(--primary-light);
    color: var(--secondary);
    }

    .topbar-cart svg {
        width: 21px;
        height: 21px;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .topbar-cart .cart-count {
        position: absolute;

        top: -3px;
        right: -3px;
    }

    .store-content {
        width: min(100% - 24px, 1380px);

        padding-top: 0; /* چسبیده به منوی موبایل */
    }

    .banner-slot {
        /* تمام‌عرض از بخش HOME SLIDER + BANNERS */
    }

    .hero {
        padding: 28px 22px;

        border-radius: 22px;
    }

    .section {
        margin-bottom: 32px;
    }

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

        gap: 11px;
    }

    .article-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card h3 {
        margin: 11px 11px 5px;

        font-size: 12px;
    }

    .product-card-price {
        padding: 0 11px 12px;

        display: block;
    }

    .price-old {
        display: block;
        margin-bottom: 2px;
    }

    .price-new {
        font-size: 12px;
    }

    .product-detail {
        padding: 14px;

        gap: 22px;

        border-radius: 20px;
    }

    .product-info h1 {
        font-size: 23px;
    }

    .buy-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .qty-box {
        width: 100%;

        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form textarea {
        grid-column: auto;
    }

    .footer-main {
        width: min(100% - 24px, 1380px);

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-bottom {
        width: min(100% - 24px, 1380px);

        flex-direction: column;

        align-items: flex-start;
    }

}

@media (max-width: 430px) {

    .product-grid {
        gap: 8px;
    }

    .product-card h3 {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 23px;
    }

    .section-head h2 {
        font-size: 19px;
    }

}

.sidebar-logo,
.mobile-brand-logo,
.footer-logo {
    background: #fff;
    border: 1px solid #F0F1F3;
}

/* =========================================================
   EBACK MODERN CART
   فقط مخصوص صفحه سبد خرید
   ========================================================= */

#cartBox {
    width: 100%;
    min-height: 220px;
    padding: 0;

    background: transparent;
    border: 0;
}


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

#cartBox .cart-table {
    width: 100%;

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

    direction: rtl;
}


/* Header */

#cartBox .cart-table thead th {
    padding: 0 15px 8px;

    border: 0;

    color: var(--muted);

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

    text-align: right;
}


/* Rows */

#cartBox .cart-table tbody tr {
    transition:
        transform var(--transition);
}


/* Cells */

#cartBox .cart-table tbody td {
    padding: 15px;

    background: #fff;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: var(--text);

    font-size: 12px;

    vertical-align: middle;

    transition:
        background var(--transition),
        border-color var(--transition);
}


/* First cell */

#cartBox .cart-table tbody td:first-child {
    border-right: 1px solid var(--border);

    border-radius: 0 15px 15px 0;
}


/* Last cell */

#cartBox .cart-table tbody td:last-child {
    border-left: 1px solid var(--border);

    border-radius: 15px 0 0 15px;
}


/* Hover */

#cartBox .cart-table tbody tr:hover td {
    background: #FFFDF7;

    border-color: rgba(var(--primary-rgb), .25);
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

#cartBox .cart-table tbody td:first-child a {
    display: inline-block;

    max-width: 330px;

    color: var(--secondary);

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

    line-height: 1.9;

    transition:
        color var(--transition);
}

#cartBox .cart-table tbody td:first-child a:hover {
    color: var(--primary-dark);
}


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

#cartBox .cart-table tbody td:nth-child(2),
#cartBox .cart-table tbody td:nth-child(4) {
    color: var(--secondary);

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

    white-space: nowrap;
}


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

#cartBox .cart-table tbody td:nth-child(3) {
    color: var(--secondary);

    font-weight: 900;

    text-align: center;
}


/* =========================================================
   DELETE
   ========================================================= */

#cartBox .cart-table .btn-danger {
    min-height: 34px;

    padding: 5px 12px;

    border: 1px solid rgba(224, 82, 82, .16);
    border-radius: 10px;

    background: #FFF7F7;

    color: var(--danger);

    font-family: inherit;

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

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

#cartBox .cart-table .btn-danger:hover {
    background: var(--danger);

    color: #fff;

    transform: translateY(-1px);
}


/* =========================================================
   CART BOTTOM AREA
   ========================================================= */

#cartBox .coupon-row {
    display: flex;

    align-items: center;

    width: min(100%, 430px);

    gap: 7px;

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

    background: #fff;

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

    border-radius: 14px;

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


/* Coupon input */

#cartBox .coupon-row input {
    flex: 1;

    min-width: 0;

    height: 40px;

    padding: 0 12px;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 11px;
}

#cartBox .coupon-row input::placeholder {
    color: var(--muted);
}


/* Coupon button */

#cartBox .coupon-row .btn-outline {
    flex: 0 0 auto;

    min-height: 40px;

    padding: 0 15px;

    border: 0;

    border-radius: 10px;

    background: var(--secondary);

    color: #fff;

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

#cartBox .coupon-row .btn-outline:hover {
    background: var(--secondary-light);

    color: #fff;
}


/* Coupon message */

#cartBox #cartCouponMsg {
    margin-top: 7px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   CART CHECKOUT FORM
   ========================================================= */

.cart-checkout-box {
    margin-top: 22px;
    padding: 18px 16px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(16, 24, 40, 0.06));
}

.cart-checkout-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
}

.cart-checkout-hint {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-soft);
}

.cart-checkout-fields {
    display: grid;
    gap: 12px;
}

@media (min-width: 560px) {
    .cart-checkout-fields {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

.cart-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
}

.cart-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 46px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.cart-input::placeholder {
    color: #98A2B3 !important;
    -webkit-text-fill-color: #98A2B3 !important;
    font-weight: 500;
    opacity: 1;
}

.cart-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.cart-input-ltr {
    direction: ltr;
    text-align: left;
    letter-spacing: 0.03em;
}

.cart-checkout-btn {
    margin-top: 16px;
    width: 100%;
    min-height: 48px;
    font-weight: 800;
}

.btn-gold-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #1a1200 !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.btn-gold-back:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.45);
    transform: translateY(-1px);
    color: #1a1200 !important;
}

.order-success .bank-account-item {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text);
}




/* =========================================================
   SUMMARY
   ========================================================= */

#cartBox .cart-summary {
    width: min(100%, 440px);

    margin: 20px 0 0 auto;

    padding: 19px;

    background:
        linear-gradient(
            145deg,
            var(--secondary),
            var(--secondary-light)
        );

    border-radius: 19px;

    color: #fff;

    box-shadow:
        0 14px 35px rgba(7, 26, 67, .13);
}


/* Summary rows */

#cartBox .cart-summary-row {
    display: flex;

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

    gap: 20px;

    padding: 9px 0;

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

    font-size: 11px;
}

#cartBox .cart-summary-row span:last-child {
    color: #fff;

    font-weight: 800;

    white-space: nowrap;
}


/* Total */

#cartBox .cart-summary-row.total {
    margin-top: 7px;

    padding-top: 14px;

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

    color: #fff;

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

#cartBox .cart-summary-row.total span:last-child {
    color: var(--primary);

    font-size: 17px;
    font-weight: 900;
}


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

#cartBox > .muted {
    width: min(100%, 700px);

    margin: 20px 0 12px;

    padding: 12px 14px;

    background: var(--primary-soft);

    border: 1px solid rgba(var(--primary-rgb), .20);

    border-radius: 12px;

    color: #76633A;

    font-size: 10px;

    line-height: 2;
}


/* =========================================================
   PAYMENT BUTTON
   ========================================================= */

#cartBox > .btn-primary {
    min-height: 46px;

    padding: 0 22px;

    border: 0;

    border-radius: 13px;

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

    color: var(--secondary);

    font-family: inherit;

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

    box-shadow:
        0 8px 22px rgba(var(--primary-rgb), .20);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

#cartBox > .btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(var(--primary-rgb), .28);
}


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

#cartBox .empty-state {
    min-height: 350px;

    display: flex;

    flex-direction: column;

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

    padding: 40px 20px;

    background: #fff;

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

    border-radius: 20px;

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

    text-align: center;
}


/* Empty icon */

#cartBox .empty-state .ico {
    width: 75px;
    height: 75px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 22px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 32px;
}


/* Empty text */

#cartBox .empty-state .muted {
    color: var(--muted);

    font-size: 12px;
}

/* پیام کد تخفیف فقط وقتی محتوا دارد نمایش داده شود */
#cartBox #cartCouponMsg:empty {
    display: none !important;
}

#cartBox #cartCouponMsg {
    margin-top: 8px;
    padding: 0;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

/* =====================================================
   CART TABLE - MOBILE STACKED
   ===================================================== */

@media (max-width: 760px) {

    #cartBox {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        overflow: visible;
    }

    /* جدول دیگر حالت جدولی نداشته باشد */
    #cartBox .cart-table,
    #cartBox .cart-table thead,
    #cartBox .cart-table tbody,
    #cartBox .cart-table tr,
    #cartBox .cart-table th,
    #cartBox .cart-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* مخفی کردن عنوان ستون‌ها */
    #cartBox .cart-table thead {
        display: none;
    }

    /* هر محصول یک باکس جدا */
    #cartBox .cart-table tbody tr {
        margin: 0 0 12px;
        padding: 14px;
        background: #fff;

        border: 1px solid var(--border);
        border-radius: 16px;

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

        overflow: hidden;
    }

    /* تمام سلول‌ها */
    #cartBox .cart-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 9px 0;

        border: 0 !important;
        border-bottom: 1px solid var(--border) !important;

        border-radius: 0 !important;

        background: transparent !important;

        font-size: 11px;

        overflow: hidden;
    }

    /* آخرین آیتم خط نداشته باشد */
    #cartBox .cart-table tbody td:last-child {
        border-bottom: 0 !important;
        padding-bottom: 2px;
    }

    /* -----------------------------------------
       عنوان محصول
       ----------------------------------------- */

    #cartBox .cart-table tbody td:first-child {
        display: block;
        padding-top: 2px;
        padding-bottom: 11px;
    }

    #cartBox .cart-table tbody td:first-child::before {
        content: "محصول";

        display: block;

        margin-bottom: 5px;

        color: var(--muted);

        font-size: 9px;
        font-weight: 700;
    }

    #cartBox .cart-table tbody td:first-child a {
        display: block;

        width: 100%;
        max-width: 100%;

        color: var(--secondary);

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

        line-height: 1.9;

        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* -----------------------------------------
       قیمت
       ----------------------------------------- */

    #cartBox .cart-table tbody td:nth-child(2)::before {
        content: "قیمت";

        flex: 0 0 auto;

        color: var(--muted);

        font-size: 9px;
        font-weight: 700;
    }

    #cartBox .cart-table tbody td:nth-child(2) {
        color: var(--secondary);

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

        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* -----------------------------------------
       تعداد
       ----------------------------------------- */

    #cartBox .cart-table tbody td:nth-child(3)::before {
        content: "تعداد";

        flex: 0 0 auto;

        color: var(--muted);

        font-size: 9px;
        font-weight: 700;
    }

    #cartBox .cart-table tbody td:nth-child(3) {
        text-align: right;

        color: var(--secondary);

        font-size: 11px;
        font-weight: 900;
    }

    /* -----------------------------------------
       جمع
       ----------------------------------------- */

    #cartBox .cart-table tbody td:nth-child(4)::before {
        content: "جمع";

        flex: 0 0 auto;

        color: var(--muted);

        font-size: 9px;
        font-weight: 700;
    }

    #cartBox .cart-table tbody td:nth-child(4) {
        color: var(--secondary);

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

        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* -----------------------------------------
       دکمه حذف
       ----------------------------------------- */

    #cartBox .cart-table tbody td:last-child {
        display: flex;

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

        padding-top: 11px;
    }

    #cartBox .cart-table tbody td:last-child::before {
        content: "عملیات";

        color: var(--muted);

        font-size: 9px;
        font-weight: 700;
    }

    #cartBox .cart-table .btn-danger {
        display: inline-flex;

        width: auto;
        min-width: 65px;
        max-width: 100%;

        height: 34px;
        min-height: 34px;

        padding: 0 12px;

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

        border-radius: 9px;

        font-size: 9px;

        white-space: nowrap;

        box-sizing: border-box;
    }

    /* -----------------------------------------
       جلوگیری کامل از اسکرول افقی
       ----------------------------------------- */

    #cartBox,
    #cartBox .cart-table,
    #cartBox .cart-table tbody,
    #cartBox .cart-table tbody tr,
    #cartBox .cart-table tbody td {
        overflow-x: hidden;
    }

    /* -----------------------------------------
       COUPON
       ----------------------------------------- */

    #cartBox .coupon-row {
        width: 100%;
        max-width: 100%;

        display: flex;
        align-items: center;

        box-sizing: border-box;

        margin: 16px auto 0;
        padding: 4px;

        gap: 5px;

        overflow: hidden;

        border: 1px solid var(--border);
        border-radius: 13px;

        background: #fff;

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

    #cartBox .coupon-row input {
        display: block;

        flex: 1 1 auto;

        width: auto;
        min-width: 0;
        max-width: 100%;

        height: 40px;

        margin: 0;
        padding: 0 10px;

        box-sizing: border-box;

        border: 0;
        outline: 0;

        background: transparent;

        color: var(--text);

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

        font-size: 10px;
    }

    #cartBox .coupon-row input::placeholder {
        color: var(--muted);
        opacity: 1;
    }

    #cartBox .coupon-row button,
    #cartBox .coupon-row .btn,
    #cartBox .coupon-row .btn-outline {
        flex: 0 0 auto;

        width: auto;

        min-width: 68px;
        max-width: 90px;

        height: 40px;
        min-height: 40px;

        margin: 0;
        padding: 0 10px;

        box-sizing: border-box;

        border-radius: 10px;

        white-space: nowrap;

        font-size: 9px;
        font-weight: 800;
    }

    /* پیام تخفیف */
    #cartBox #cartCouponMsg {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 7px auto 0;
        padding: 0 4px;

        overflow-wrap: anywhere;

        font-size: 9px;
        line-height: 1.9;
    }

    #cartBox #cartCouponMsg:empty {
        display: none !important;
    }

    /* -----------------------------------------
       SUMMARY
       ----------------------------------------- */

    #cartBox .cart-summary {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 14px auto 0;

        padding: 15px;

        border-radius: 16px;
    }

    /* -----------------------------------------
       INFO
       ----------------------------------------- */

    #cartBox > .muted {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 12px auto 0;

        overflow-wrap: anywhere;
    }

    /* -----------------------------------------
       PAYMENT
       ----------------------------------------- */

    #cartBox > .btn-primary {
        display: flex;

        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 10px auto 0;
    }

    /* -----------------------------------------
       EMPTY CART
       ----------------------------------------- */

    #cartBox .empty-state {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 0 auto;
    }
}













/* =========================================================
   PRODUCT MOBILE STICKY BUY BAR
   قیمت فیکس در نوار پایین (ستونی اگر دو قیمت) + تعداد + افزودن
   ========================================================= */

@media (max-width: 760px) {

    /* فقط در صفحه جزئیات محصول (نوار چسبان خرید) فضای پایین لازم است */
    body:has(.product-detail) {
        padding-bottom: 88px;
    }

    /* نوار پایین */
    .product-detail .buy-actions {
        position: fixed;
        z-index: 2000;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 68px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        padding-right: 12px;
        padding-left: calc(42% + 16px); /* جا برای قیمت */
        box-sizing: border-box;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 30px rgba(7, 26, 67, .12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-wrap: nowrap;
    }

    /* قیمت فیکس — چپ نوار؛ دو قیمت زیر هم تا به‌هم نریزد */
    .product-detail .price-box {
        position: fixed !important;
        z-index: 2001 !important;
        left: 10px !important;
        bottom: 10px !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        padding: 6px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 2px !important;
        width: auto !important;
        max-width: 40% !important;
        min-height: 48px !important;
        height: auto !important;
        max-height: 52px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
        border-radius: 13px !important;
        box-shadow: 0 5px 18px rgba(7, 26, 67, .10) !important;
        overflow: hidden !important;
    }

    .product-detail .price-box .price-new {
        font-size: 13px !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        color: var(--secondary) !important;
    }

    .product-detail .price-box .price-old {
        font-size: 10px !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
        color: var(--muted) !important;
        text-decoration: line-through !important;
    }

    .product-detail .buy-actions .qty-box {
        flex: 0 0 auto;
        width: 100px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        border: 1px solid var(--border);
        border-radius: 13px;
        background: #fff;
    }

    .product-detail .buy-actions .qty-box button {
        width: 32px;
        height: 100%;
        flex: 0 0 32px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--primary-dark);
        font-size: 20px;
    }

    .product-detail .buy-actions .qty-box input {
        width: 34px;
        height: 100%;
        flex: 1;
        min-width: 0;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        text-align: center;
        font-size: 13px;
        font-weight: 900;
        color: var(--secondary);
    }

    .product-detail .buy-actions > .btn-primary {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 48px;
        min-height: 48px;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
        border-radius: 13px;
        font-size: 11px;
        white-space: nowrap;
    }

    .product-detail .buy-actions > .btn-outline {
        display: none;
    }

    .product-detail .external-buy-btn,
    .external-buy-btn {
    border: 1px solid rgba(var(--primary-rgb), .45);
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .15);
}
    .product-detail .external-buy-btn:hover,
    .external-buy-btn:hover {
        background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%) !important;
        color: #071A43 !important;
        border-color: var(--primary-dark) !important;
    }

    .product-detail,
    .product-detail .product-info,
    .product-detail .buy-actions {
        max-width: 100%;
        min-width: 0;
    }

    /* اشتراک‌گذاری پیش‌فرض چپ؛ فقط صفحه محصول راست */
    #ebShareBtn {
        left: 14px !important;
        right: auto !important;
        bottom: 90px !important;
    }
    #ebShareMenu,
    #ebShareToast {
        left: 14px !important;
        right: auto !important;
        bottom: 150px !important;
    }
    body:has(.product-detail) #ebShareBtn {
        left: auto !important;
        right: 14px !important;
        bottom: 90px !important;
    }
    body:has(.product-detail) #ebShareMenu,
    body:has(.product-detail) #ebShareToast {
        left: auto !important;
        right: 14px !important;
        bottom: 150px !important;
    }

    /* ——— محصول بدون قیمت: دکمه «تماس بگیرید» تمام‌عرض و فیکس پایین ——— */
    body:has(.buy-actions-call-only) {
        padding-bottom: 84px;
    }

    .product-detail .buy-actions.buy-actions-call-only {
        position: fixed;
        z-index: 2000;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: stretch;
        gap: 0;
        padding: 10px 14px;
        padding-left: 14px !important; /* بدون جا برای قیمت */
        box-sizing: border-box;
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 30px rgba(7, 26, 67, .14);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    /* باکس «تماس بگیرید» زیر ویژگی‌ها فیکس پایین نشود */
    .product-detail:has(.buy-actions-call-only) .price-box.price-box-call {
        position: static !important;
        max-width: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        left: auto !important;
        bottom: auto !important;
    }

    .product-detail .buy-actions-call-only > .btn-call-fixed,
    .product-detail .buy-actions-call-only > .btn-primary {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        justify-content: center !important;
        gap: 10px !important;
        white-space: nowrap;
    }
}

/* دسکتاپ: دکمه تماس عریض داخل باکس خرید */
.product-detail .buy-actions.buy-actions-call-only {
    width: 100%;
}
.product-detail .buy-actions-call-only > .btn-call-fixed,
.product-detail .buy-actions-call-only > .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    font-weight: 800;
    gap: 10px;
}

/* باکس «تماس بگیرید» زیر ویژگی‌ها — وسط‌چین، شبیه external-buy-btn */
.product-detail .price-box.price-box-call {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 4px 0 8px;
    text-align: center;
}
.product-detail .price-box-call .call-price-btn,
.product-detail .price-box-call .external-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.product-detail .price-box-call .call-price-btn b {
    font-weight: 900;
    letter-spacing: 0.3px;
}

/* دکمه طلایی ملایم در دسکتاپ هم */
.external-buy-btn {
    border: 1px solid rgba(var(--primary-rgb), .45);
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .15);
}
.external-buy-btn:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #071A43;
    border-color: var(--primary-dark);
}

/* نشانگر تعداد سبد خرید — عدد داخل کادر با پس‌زمینه */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--btn-on-primary, #071A43);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .45);
    border: 2px solid #fff;
}
.cart-count.hidden {
    display: none !important;
}
.sidebar-cart-link .cart-count {
    margin-inline-start: 6px;
}
.topbar-cart .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 5px;
}

/* =========================================================
   HOME SLIDER + BANNERS — تمام‌عرض مثل فوتر + فاصله یکنواخت
   ========================================================= */

/* بنر / اسلایدر — ابعاد منعطف (حداقل ۱۰۰۰×۳۰۰)
   تمام‌عرض، بدون کراپ اجباری قدیمی ۲۰۰۰×۴۱۶
   موبایل: چسبیده به لبه؛ دسکتاپ: عرض ناحیه محتوا */
.home-slider,
.banner-slot {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* موبایل: تمام‌عرض صفحه */
@media (max-width: 760px) {
  .home-slider,
  .banner-slot {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* تبلت و دسکتاپ: تمام‌عرض ناحیه اصلی (کنار سایدبار) */
@media (min-width: 761px) {
  .home-slider,
  .banner-slot {
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    margin-left: calc(50% - 50vw + var(--sidebar-width) / 2);
    margin-right: calc(50% - 50vw + var(--sidebar-width) / 2);
    border-radius: 0;
  }
}

.home-slider {
  margin-top: 0 !important;
  margin-bottom: 14px;
  background: #f0f0f1;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  direction: ltr;
}

/* فاصله مساوی بین توضیحات و بنر هدر */
.hero {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* وقتی اسلایدر نیست، فاصله از نوار بالا / لبه محتوا */
.store-content > .hero:first-child {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .store-content > .hero:first-child {
    margin-top: 14px;
  }
}

.banner-slot {
  margin-top: 0;
  margin-bottom: 14px;
  text-align: center;
  display: grid;
  gap: 8px;
}

/* بنر فوتر: بدون فاصله اضافه — چسبیده به خط بالای فوتر */
.banner-slot.banner-footer {
  margin-bottom: 0 !important;
}

/* اسلایدر: نمایش کامل تصویر بدون زوم/کراپ
   نسبت از خود تصویر؛ object-fit: contain */
.home-slider-track {
  position: relative;
  width: 100%;
  height: auto;
  background: #f0f0f1;
  overflow: hidden;
  line-height: 0;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  pointer-events: none;
}
/* اسلاید اول ارتفاع کانتینر را مشخص می‌کند */
.home-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.home-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}
.home-slide a {
  display: block;
  width: 100%;
  line-height: 0;
}

.home-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #424750;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.home-slider-btn:hover { background: #fff; }
.home-slider-prev { left: 12px; }
.home-slider-next { right: 12px; }

.home-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.home-slider-dot {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  pointer-events: auto;
  transition: width .2s, background .2s, opacity .2s;
  opacity: .55;
}
.home-slider-dot.is-active {
  width: 24px;
  background: #fff;
  opacity: 1;
  transform: none;
}

/* بنرهای ثابت: عرض کامل، ارتفاع طبیعی — بدون زوم و کراپ */
.banner-slot > a,
.banner-slot > img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
}
.banner-slot img,
.banner-slot a img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

/* ردیف عنوان + عکس پروفایل */
.hero-heading-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-heading-row h1 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.hero-heading-row .store-profile-photo {
  flex: 0 0 auto;
}
.hero-heading-row .store-profile-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px; /* گوشه‌های کمی گرد */
  border: 1px solid var(--st-border, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: #fff;
  display: block;
}

.store-description-box {
  margin-top: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}
.store-description-body {
  min-width: 0;
}
.store-description-box .store-description-content {
  overflow: hidden;
  transition: max-height 0.35s ease;
  line-height: 1.7;
  text-align: justify;
}

.store-description-box.is-collapsed .store-description-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  max-height: 1.7em;
  text-align: right; /* در حالت جمع‌شده justify روی یک خط خوانا نیست */
}

.store-description-box:not(.is-collapsed) .store-description-content {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  text-align: justify;
}

.store-desc-toggle {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary, #2563eb);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.store-desc-toggle:hover {
  text-decoration: underline;
}

.store-desc-toggle[hidden] {
  display: none !important;
}

/* موبایل: عکس پروفایل چپ، عنوان راست، توضیحات زیر با justify */
@media (max-width: 760px) {
  .hero-heading-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  /* RTL: order کمتر = سمت راست → عنوان راست، عکس چپ */
  .hero-heading-row h1 {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 84px) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .hero-heading-row .store-profile-photo {
    order: 2 !important;
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .hero-heading-row .store-profile-photo img {
    display: block !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid var(--st-border, #e2e8f0) !important;
  }
  .hero .store-description-box,
  .store-description-box {
    width: 100% !important;
    max-width: none !important;
    margin-top: 12px !important;
    text-align: justify !important;
  }
  .store-description-box .store-description-content {
    text-align: justify !important;
  }
  .store-description-box.is-collapsed .store-description-content {
    text-align: right !important;
  }
}

/* تبلت و بالاتر: فاصله عمودی + دکمه‌های اسلایدر */
@media (min-width: 768px) {
  .home-slider {
    margin-bottom: 20px;
  }
  .hero {
    margin-bottom: 20px;
  }
  .banner-slot {
    margin-bottom: 20px;
  }
  .home-slider-btn {
    display: flex;
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1024px) {
  .home-slider {
    margin-bottom: 24px;
  }
  .hero {
    margin-bottom: 24px;
  }
  .banner-slot {
    margin-bottom: 24px;
  }
  .home-slider-btn {
    display: flex;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .home-slider-prev { left: 16px; }
  .home-slider-next { right: 16px; }
  .home-slider-dots { bottom: 14px; }
}


/* =========================================================
   EBACK STOREFRONT — SIDEBAR / FOOTER POLISH
   ========================================================= */

.store-sidebar {
    overflow: hidden;
}

.sidebar-scroll {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d8dde5 transparent;
    padding-bottom: 4px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #d8dde5;
    border-radius: 99px;
}

.sidebar-after-cart {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-extra-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-extra-links:empty {
    display: none;
}

/* کارت تماس دقیقاً بعد از سبد خرید در موبایل */
.sidebar-after-cart .sidebar-contact {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #f2e3b5;
    box-shadow: 0 7px 18px rgba(7, 26, 67, .05);
}

.sidebar-official-badge {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 1px;
    padding: 12px 14px;
    border: 1px solid #b8e6c8;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    box-shadow: 0 7px 18px rgba(22, 101, 52, .08);
}

.sidebar-official-icon {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #4ade80, #16a34a);
    box-shadow: 0 3px 10px rgba(22, 163, 74, .28);
}

.sidebar-official-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-official-badge span:not(.sidebar-official-icon) {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
}

.sidebar-official-badge small {
    color: #15803d;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 600;
}

/* خبرنامه جدید */
.footer-newsletter {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e9edf2;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb),.18), transparent 42%),
        linear-gradient(145deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 30px rgba(7, 26, 67, .07);
}

.footer-newsletter-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.footer-newsletter-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--secondary);
}

.footer-newsletter-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-newsletter-head h4 {
    margin: 0 0 3px;
    font-size: 14px;
    color: var(--secondary);
}

.footer-newsletter-head p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.footer-newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0;
}

.newsletter-input-wrap {
    direction: ltr;
    min-width: 0;
    flex: 1 1 auto;
    height: 46px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.newsletter-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.14);
}

.newsletter-prefix {
    order: 0;
    height: 100%;
    padding: 0 10px;
    display: grid;
    place-items: center;
    border-right: 1px solid #edf0f4;
    border-left: 0;
    color: var(--muted);
    font-size: 11px;
    direction: ltr;
}

.footer-newsletter-form input {
    order: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    direction: ltr;
    text-align: left;
}

.footer-newsletter-form button {
    min-width: 82px;
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    background: var(--secondary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(7,26,67,.16);
}

.footer-newsletter-form button:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

.footer-newsletter-form button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.footer-newsletter-note {
    display: block;
    margin-top: 9px;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.8;
}

.footer-verified {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding: 10px 12px;
    border: 1px solid #f0d88b;
    border-radius: 13px;
    background: linear-gradient(180deg, #fffaf0, #fffdf8);
    color: #805d08;
    font-size: 10px;
    line-height: 1.8;
    font-weight: 700;
}

.footer-verified-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe28a, #d8a51a);
    box-shadow: 0 2px 7px rgba(216,165,26,.28);
}

.footer-verified-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #725000;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links {
    align-content: start;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 34px 28px;
}

.footer-link-col {
    min-width: 0;
}

.footer-link-col h4 {
    position: relative;
    padding-bottom: 9px;
}

.footer-link-col h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 10px;
    background: var(--primary);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    padding: 18px 16px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 4px;
}

.footer-badges a,
.footer-badges img {
    display: inline-block;
    max-height: 64px;
    max-width: 120px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.footer-badges iframe {
    max-width: 100%;
    border: 0;
}

.footer-bottom {
    position: relative;
    padding-left: 92px;
    padding-right: 0;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .store-sidebar {
        width: min(88vw, 360px);
        height: 100dvh;
        max-height: 100dvh;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .sidebar-scroll {
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-after-cart {
        margin-top: 12px;
        padding-top: 0;
    }

    .sidebar-after-cart .sidebar-contact {
        min-height: 62px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-link-col h4 {
        margin-bottom: 9px;
    }

    .footer-newsletter {
        padding: 16px;
        border-radius: 18px;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .newsletter-input-wrap,
    .footer-newsletter-form button {
        width: 100%;
        min-width: 0;
    }

    .footer-newsletter-form button {
        height: 44px;
    }

    .footer-bottom {
        padding-left: 82px;
        padding-right: 0;
        align-items: flex-start;
    }
}

@media (min-width: 761px) {
    .footer-main {
        grid-template-columns: minmax(300px, .9fr) minmax(0, 2.1fr);
    }
}

@media (max-width: 380px) {
    .store-sidebar {
        width: 92vw;
    }

    .footer-newsletter-head p {
        font-size: 9px;
    }
}


/* =========================================================
   INSTALL WEB APP — سایدبار + مودال آموزش
   ========================================================= */

.sidebar-install-app {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(1, 112, 92, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf8 0%, #f0fdf4 100%);
  color: var(--text, #0c244b);
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  box-shadow: 0 4px 14px rgba(1, 112, 92, .08);
}
.sidebar-install-app:hover {
  transform: translateY(-1px);
  border-color: rgba(1, 112, 92, .35);
  box-shadow: 0 8px 20px rgba(1, 112, 92, .12);
}
.sidebar-install-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #01705c;
  color: #fff;
}
.sidebar-install-icon svg {
  width: 20px;
  height: 20px;
}
.sidebar-install-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-install-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #0c244b;
}
.sidebar-install-text small {
  font-size: 11px;
  color: #64748b;
}

.install-app-modal {
  width: min(440px, 100%);
}
.install-app-head {
  text-align: center;
  margin-bottom: 18px;
  padding-top: 6px;
}
.install-app-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ecfdf8;
  color: #01705c;
}
.install-app-badge svg {
  width: 28px;
  height: 28px;
}
.install-app-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0c244b;
}
.install-app-head .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.install-app-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f5f9;
}
.install-app-tabs-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 420px) {
  .install-app-tabs-3 {
    grid-template-columns: 1fr;
  }
  .install-tab {
    padding: 9px 10px;
    font-size: 13px;
  }
}
.install-tab {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: background .15s, color .15s, box-shadow .15s;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.install-tab.is-active {
  background: #fff;
  color: #01705c;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.install-pane {
  display: none;
}
.install-pane.is-active {
  display: block;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.install-steps .step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #01705c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.install-steps strong {
  display: block;
  font-size: 13.5px;
  color: #0c244b;
  margin-bottom: 4px;
}
.install-steps p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #64748b;
}
.install-steps em {
  font-style: normal;
  color: #01705c;
  font-weight: 600;
}
.install-hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.7;
}
.install-hint em {
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 760px) {
  .sidebar-install-app {
    margin-top: 8px;
  }
}


/* =========================================================
   REPORT VIOLATION — آیکون پلیس + مودال فرم
   ========================================================= */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse; /* سبد چپ‌ترین، گزارش کنار آن */
}

.topbar-report {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.topbar-report:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}
.topbar-report svg {
  width: 21px;
  height: 21px;
}

.store-report-modal {
  width: min(460px, 100%);
}
.store-report-head {
  text-align: center;
  margin-bottom: 16px;
  padding-top: 4px;
}
.store-report-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fef2f2;
  color: #b91c1c;
}
.store-report-badge svg { width: 28px; height: 28px; }
.store-report-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0c244b;
}
.store-report-head .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.store-report-form {
  display: grid;
  gap: 12px;
}
.store-report-form label {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}
.store-report-form .req { color: #dc2626; }
.store-report-form input,
.store-report-form select,
.store-report-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: #0c244b;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.store-report-form input:focus,
.store-report-form select:focus,
.store-report-form textarea:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .18);
}
.store-report-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}
.sr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .sr-row { grid-template-columns: 1fr; }
}
.sr-alert {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.sr-alert.show { display: block; }
.sr-alert.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.sr-alert.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.sr-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.sidebar-report-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(185, 28, 28, .15);
  border-radius: 14px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  color: #0c244b;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.sidebar-report-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, .1);
}
.sidebar-report-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #b91c1c;
  color: #fff;
}
.sidebar-report-icon svg { width: 20px; height: 20px; }
.sidebar-report-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-report-text strong { font-size: 13px; font-weight: 700; color: #0c244b; }
.sidebar-report-text small { font-size: 11px; color: #64748b; }


/* =========================================================
   SEARCH — ذره‌بین تاپ‌بار + مودال جستجو
   ========================================================= */
.topbar-search {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.topbar-search:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}
.topbar-search svg {
  width: 21px;
  height: 21px;
}
.store-search-modal {
  width: min(420px, 100%);
}
.store-search-head {
  text-align: center;
  margin-bottom: 14px;
}
.store-search-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.store-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.store-search-input-wrap .store-search-ico {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}
.store-search-input-wrap input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.store-search-input-wrap input:focus {
  border-color: var(--st-primary, #e0622b);
  box-shadow: 0 0 0 3px rgba(224, 98, 43, 0.15);
}
.store-search-submit {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}


/* =========================================================
   CART / ORDER SUCCESS — UX بهبود یافته
   ========================================================= */

.cart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-continue-shopping {
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.cart-page-body {
  padding-bottom: 96px;
}

.cart-checkout-box {
  position: relative;
}

.cart-checkout-btn-gold,
button.cart-checkout-btn-gold {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  min-height: 56px;
  padding: 16px 20px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%) !important;
  color: #071A43 !important;
  box-shadow: 0 -6px 24px rgba(11, 26, 74, .14);
  text-align: center;
}

.cart-checkout-btn-gold:disabled {
  opacity: .7;
  filter: grayscale(.2);
}

@media (min-width: 901px) {
  .cart-checkout-btn-gold,
  button.cart-checkout-btn-gold {
    left: 0;
    right: var(--sidebar-width, 280px);
    width: auto !important;
  }
}

.order-success {
  padding: 8px 0 24px;
  max-width: 720px;
  margin: 0 auto;
}

.order-success-head {
  text-align: center;
  margin-bottom: 18px;
}

.order-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #0F9F6E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.order-summary-card,
.order-pay-section,
.order-receipt-section,
.order-socials {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  margin-bottom: 14px;
}

.order-summary-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.order-total {
  color: var(--primary-dark);
  font-size: 1.1em;
}

.bank-account-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #eef2f8;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-soft) 0%, #F7F9FC 100%);
}

.bank-account-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #eef2f8;
  font-size: 13.5px;
}

.bank-account-row:last-child {
  border-bottom: 0;
}

.bank-account-row .muted {
  min-width: 90px;
  color: #98A2B3;
}

.bank-account-val {
  font-family: monospace;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.btn-copy-field {
  border: 1px solid var(--primary);
  background: var(--primary-soft);
  color: #071A43;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-copy-field:hover {
  background: var(--primary);
}

.bank-contact-link {
  color: #0B1A4A;
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
}

.bank-contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.order-socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0B1A4A;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.order-social-btn:hover {
  background: #1E3470;
  color: #fff !important;
}


/* =========================================================
   ORDER SUCCESS — تیتر طلایی، لینک زیرخط، picker دوربین، دکمه فیکس
   ========================================================= */

.order-section-title {
  margin: 0 0 8px;
  color: var(--primary-dark) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.bank-contact-link {
  color: #0B1A4A !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  direction: ltr;
}

.bank-contact-link:hover {
  color: var(--primary-dark) !important;
}

.order-social-btn {
  background: #4B5563 !important;
  color: #fff !important;
}

.order-social-btn:hover {
  background: #374151 !important;
  color: #fff !important;
}

.order-receipt-picker {
  margin: 12px 0 8px;
}

.order-receipt-picker-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  border: 2px dashed var(--primary);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-soft) 100%);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.order-receipt-picker-label:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(201, 146, 26, .15);
  background: var(--primary-soft);
}

.order-receipt-camera-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #071A43;
}

.order-receipt-picker-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1A4A;
  line-height: 1.7;
  max-width: 280px;
}

.order-receipt-filename {
  margin-top: 8px;
  font-size: 12.5px;
  text-align: center;
  word-break: break-all;
}

.order-receipt-preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
  display: block;
}

.order-receipt-limit-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #78350F;
  font-size: 13.5px;
  line-height: 1.85;
}

.order-success-actions {
  margin-top: 20px;
  margin-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.order-receipt-fixed-active {
  padding-bottom: 72px;
}

.order-receipt-fixed-btn,
button.order-receipt-fixed-btn {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 960;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  min-height: 56px;
  padding: 16px 20px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%) !important;
  color: #071A43 !important;
  box-shadow: 0 -6px 24px rgba(11, 26, 74, .14);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.order-receipt-fixed-btn:disabled {
  opacity: .75;
}

@media (min-width: 901px) {
  .order-receipt-fixed-btn,
  button.order-receipt-fixed-btn {
    left: 0;
    right: var(--sidebar-width, 280px);
    width: auto !important;
  }
}


.order-receipt-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-receipt-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px dashed var(--primary);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-soft) 100%);
  cursor: pointer;
  font-family: inherit;
  color: #0B1A4A;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.order-receipt-picker-btn:hover {
  border-color: var(--primary-dark);
  background: var(--primary-soft);
  box-shadow: 0 4px 14px rgba(201, 146, 26, .12);
}

.order-receipt-picker-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #071A43;
}

.order-receipt-picker-btn-text {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.order-receipt-picker-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .order-receipt-picker-actions {
    grid-template-columns: 1fr;
  }
}


.order-receipt-picker-pulse {
  animation: orderReceiptPulse 1.4s ease;
  border-radius: 16px;
}

@keyframes orderReceiptPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 178, 58, 0); }
  30% { box-shadow: 0 0 0 6px rgba(232, 178, 58, 0.45); }
  60% { box-shadow: 0 0 0 3px rgba(232, 178, 58, 0.25); }
}

.order-receipt-section {
  scroll-margin-bottom: 90px;
  scroll-margin-top: 16px;
}


/* ---- Order success layout stability ---- */
.order-success {
  padding: 8px 0 100px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.order-success * {
  box-sizing: border-box;
}
.order-success-head h2 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
  color: var(--text);
}
.order-summary-card,
.order-pay-section,
.order-receipt-section,
.order-socials {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E7EAF0);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 14px;
}
.order-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}
.bank-account-card {
  background: var(--primary-soft);
  border: 1px solid rgba(var(--primary-rgb), .25);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.bank-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13.5px;
}
.bank-account-val {
  font-weight: 700;
  word-break: break-all;
}
.order-socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-section-title {
  margin: 0 0 8px;
  color: var(--primary-dark) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.mobile-brand {
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
}
.mobile-brand-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.mobile-brand-logo {
  flex-shrink: 0;
}

.btn-primary,
.search-box button,
.cat-nav a.active,
.product-badge-discount {
  color: var(--btn-on-primary, var(--secondary)) !important;
}
.external-buy-btn:hover {
  color: var(--btn-on-primary, var(--secondary)) !important;
}
.cart-checkout-btn-gold,
button.cart-checkout-btn-gold,
.order-receipt-fixed-btn {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%) !important;
  color: var(--btn-on-primary, #071A43) !important;
}
.order-receipt-picker-label,
.order-receipt-picker-btn {
  border-color: var(--primary) !important;
  background: linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-light) 100%) !important;
}
.order-receipt-camera-icon,
.order-receipt-picker-btn-icon {
  background: var(--primary) !important;
  color: var(--btn-on-primary, #071A43) !important;
}
.footer-newsletter {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), .18), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #fbfcfe 100%) !important;
}
.hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), .22), transparent 30%),
    linear-gradient(135deg, var(--primary-soft), #FFFFFF) !important;
  border-color: rgba(var(--primary-rgb), .15) !important;
}
.hero::after {
  background: rgba(var(--primary-rgb), .10) !important;
}


/* ===== Article rating (like / dislike) ===== */
.article-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--primary-soft, #f0f4ff);
  border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.12);
}
.article-rating-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #071A43);
}
.article-rating-actions {
  display: flex;
  gap: 10px;
}
.article-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: var(--text, #071A43);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.article-rate-btn:hover:not(:disabled) {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
}
.article-rate-btn:disabled {
  opacity: .7;
  cursor: default;
}
.article-rate-btn.voted {
  border-color: var(--primary, #2563eb);
  background: var(--primary, #2563eb);
  color: var(--btn-on-primary, #fff);
}
.article-rate-like.voted {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.article-rate-dislike.voted {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.article-rate-count {
  min-width: 1.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}



/* ===== Catalog download page ===== */
.catalog-page {
  max-width: 720px;
  margin: 12px auto 40px;
  padding: 0 4px;
}
.catalog-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 55%, #eef3fb 100%);
  border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 28px 24px 26px;
}
.catalog-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 37, 99, 235), 0.22), transparent 70%);
  pointer-events: none;
}
.catalog-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.catalog-hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  flex: none;
}
.catalog-hero-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary, #2563eb);
  background: var(--primary-soft, #eef2ff);
}
.catalog-hero-text h1 {
  margin: 6px 0 8px;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--text, #0f172a);
}
.catalog-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary, #2563eb);
  background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}
.catalog-lead {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
  font-size: 14px;
}
.catalog-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 18px;
  position: relative;
  z-index: 1;
}
.catalog-meta-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 12px 12px;
}
.catalog-meta-item small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
}
.catalog-meta-item strong {
  display: block;
  font-size: 13px;
  color: var(--text, #0f172a);
  margin-top: 2px;
}
.catalog-meta-icon {
  font-size: 18px;
  line-height: 1;
}
.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.catalog-download-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 20px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb, 37, 99, 235), 0.28);
}
.catalog-view-btn {
  border-radius: 14px !important;
  padding: 12px 18px !important;
}
.catalog-tips {
  margin: 0;
  padding: 14px 18px 14px 0;
  list-style: none;
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 1;
}
.catalog-tips li {
  position: relative;
  padding: 6px 16px 6px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.catalog-tips li::before {
  content: "✓";
  color: var(--primary, #2563eb);
  font-weight: 700;
  margin-left: 8px;
}
@media (max-width: 640px) {
  .catalog-hero {
    flex-direction: column;
    text-align: center;
  }
  .catalog-meta {
    grid-template-columns: 1fr;
  }
  .catalog-actions {
    flex-direction: column;
  }
  .catalog-download-btn,
  .catalog-view-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ===== Store-wide announcement bar ===== */
.store-announce {
  margin: 16px 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e8 0%, #fff3d6 50%, #ffefc9 100%);
  border: 1px solid rgba(242, 185, 63, 0.45);
  box-shadow: 0 8px 24px rgba(180, 120, 20, 0.08);
  overflow: hidden;
  animation: storeAnnounceIn .28s ease-out;
}
.store-announce.is-hidden {
  display: none;
}
@keyframes storeAnnounceIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.store-announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
}
.store-announce-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 185, 63, 0.22);
  color: #b45309;
}
.store-announce-text {
  flex: 1;
  margin: 0;
  padding-top: 6px;
  font-size: 14px;
  line-height: 1.85;
  color: #78350f;
  white-space: pre-wrap;
  word-break: break-word;
}
.store-announce-close {
  flex: none;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.65);
  color: #92400e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
}
.store-announce-close:hover {
  background: #fff;
  transform: scale(1.05);
}
@media (max-width: 640px) {
  .store-announce-inner {
    gap: 10px;
    padding: 11px 12px;
  }
  .store-announce-text {
    font-size: 13px;
  }
}



/* ===== Public price list page ===== */
.price-list-section {
  max-width: 900px;
  margin: 0 auto;
}
.price-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.price-list-head h1 {
  margin: 0;
  font-size: 1.4rem;
}
.price-list-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.price-list-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.price-list-public-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-list-public-table th,
.price-list-public-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: right;
}
.price-list-public-table th {
  background: #f8fafc;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.price-list-public-table tr:last-child td {
  border-bottom: none;
}
.price-list-public-table .pl-num {
  width: 48px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.price-list-public-table .pl-title-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.price-list-public-table .pl-title-link:hover {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}
.price-list-public-table .pl-price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text, #0f172a);
  direction: rtl;
  text-align: left;
}
.price-list-public-table .pl-amount {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  margin-left: 6px;
}
.price-list-public-table .pl-unit {
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
}
.price-list-print-footer {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  .price-list-section,
  .price-list-section * {
    visibility: visible;
  }
  .price-list-section {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12mm;
  }
  .no-print,
  .store-sidebar,
  .store-topbar,
  .sidebar-overlay,
  .page-footer,
  footer,
  #ebShareBtn,
  #ebShareMenu,
  #ebShareOverlay,
  .store-announce {
    display: none !important;
    visibility: hidden !important;
  }
  .price-list-table-wrap {
    border: none;
    overflow: visible;
  }
  .price-list-public-table th,
  .price-list-public-table td {
    border-bottom: 1px solid #ccc;
    padding: 8px 6px;
  }
  .price-list-print-footer {
    display: flex !important;
    visibility: visible !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #999;
    font-size: 11px;
    color: #333;
  }
  .price-list-print-url {
    direction: ltr;
    unicode-bidi: isolate;
  }
  .price-list-head h1 {
    font-size: 16pt;
  }
}



/* ===== Compact sidebar tools ===== */
.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.sidebar-tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sidebar-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .15s, border-color .15s, transform .1s;
}
.sidebar-tool:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}
.sidebar-tool-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  line-height: 1;
}
.sidebar-tool-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-tool-call {
  direction: ltr;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}
.sidebar-tool-verified {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.25);
  color: #92400e;
}
.sidebar-tool-verified:hover {
  border-color: rgba(217, 119, 6, 0.4);
}
.sidebar-tool-report {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.12);
  color: #991b1b;
}
.sidebar-tool-install {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.15);
  color: #166534;
}

/* Hide legacy bulky blocks if any remain */
.sidebar-after-cart .sidebar-contact,
.sidebar-official-badge,
.sidebar-report-btn,
.sidebar-install-app {
  /* kept for safety; new markup uses .sidebar-tool */
}

/* Verified badge explanation modal */
.verified-badge-modal {
  max-width: 420px;
  padding: 22px 20px 18px;
  border-radius: 20px;
}
.verified-modal-hero {
  text-align: center;
  margin-bottom: 14px;
}
.verified-modal-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}
.verified-modal-hero h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #0f172a;
}
.verified-modal-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #64748b;
}
.verified-modal-list {
  margin: 0 0 16px;
  padding: 12px 14px 12px 0;
  list-style: none;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #eef2f7;
}
.verified-modal-list li {
  position: relative;
  padding: 7px 16px 7px 0;
  font-size: 13px;
  line-height: 1.75;
  color: #334155;
}
.verified-modal-list li::before {
  content: "✓";
  color: #d97706;
  font-weight: 800;
  margin-left: 8px;
}
.verified-modal-ok {
  width: 100%;
  justify-content: center;
  border-radius: 12px !important;
}



/* =========================================================
   HIGHLIGHTS (Instagram-like)
   ========================================================= */

.hl-row-section {
    padding: 8px 0 4px;
}

.hl-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.hl-row::-webkit-scrollbar {
    height: 4px;
}

.hl-circle {
    flex: 0 0 auto;
    width: 78px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: center;
}

.hl-circle-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), #f97316, #ec4899);
}

.hl-circle-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #f1f5f9;
}

.hl-circle-label {
    display: block;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
}

/* Viewer overlay */
.hl-viewer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .94);
    color: #fff;
}

.hl-viewer.hidden {
    display: none;
}

.hl-viewer-inner {
    position: relative;
    width: min(420px, 100%);
    height: min(760px, 100%);
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #111;
}

.hl-progress {
    display: flex;
    gap: 4px;
    padding: 10px 12px 6px;
}

.hl-progress span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
}

.hl-progress span i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.hl-progress span.done i {
    width: 100%;
}

.hl-viewer-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 10px;
}

.hl-viewer-top img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hl-viewer-top strong {
    flex: 1;
    font-size: 14px;
    font-weight: 800;
}

.hl-viewer-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.hl-viewer-media {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background: #000;
}

.hl-viewer-media img,
.hl-viewer-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hl-viewer-caption {
    padding: 12px 16px 20px;
    font-size: 13px;
    line-height: 1.7;
    min-height: 48px;
}

.hl-tap-zones {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.hl-tap-zones button {
    flex: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
}


.hl-views {
    font-size: 11px;
    font-weight: 700;
    opacity: .85;
    white-space: nowrap;
    margin-inline-start: auto;
    margin-inline-end: 6px;
}

.hl-viewer-actions {
    display: flex;
    gap: 10px;
    padding: 0 14px 18px;
}

.hl-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.hl-action-btn:hover {
    background: rgba(255,255,255,.2);
}

.hl-call-btn {
    background: rgba(34, 197, 94, .25);
}

.hl-call-btn:hover {
    background: rgba(34, 197, 94, .4);
}

.hl-action-btn.hidden {
    display: none;
}


/* نظرات برتر */
.featured-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.featured-review-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.featured-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.featured-review-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb, 37, 99, 235), .12);
    color: var(--primary, #2563eb);
    font-size: 11px;
    font-weight: 800;
}
.featured-review-item {
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #0f172a);
    text-decoration: none;
}
.featured-review-item:hover { color: var(--primary, #2563eb); }
.featured-review-text {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text, #334155);
}
.featured-review-author {
    font-size: 12px;
    color: var(--text-soft, #94a3b8);
    font-weight: 700;
}
.featured-review-reply {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 12.5px;
    line-height: 1.8;
}
.featured-review-reply strong { display: block; margin-bottom: 4px; font-size: 12px; }
.featured-review-reply p { margin: 0; }


/* لیست قیمت — تفکیک دسته‌بندی */
.price-list-category-block {
    margin: 0 0 28px;
}
.price-list-category-title {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 37, 99, 235), .12), rgba(var(--primary-rgb, 37, 99, 235), .04));
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), .18);
    color: var(--text, #0f172a);
    font-size: 16px;
    font-weight: 900;
}
@media print {
  .price-list-category-title {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .price-list-category-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* =========================================================
   صفحه خانه: باکس پروفایل جمع‌وجور + منوی فیکس پایین
   ========================================================= */
.hero.hero-compact {
  padding: 14px 16px !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  border-radius: 16px !important;
}
.hero.hero-compact .hero-heading-row {
  gap: 10px !important;
}
.hero.hero-compact .hero-heading-row h1 {
  font-size: clamp(18px, 2.4vw, 26px) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.hero.hero-compact .store-profile-photo img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
}
.hero.hero-compact .store-description-box {
  margin-top: 8px !important;
}
.hero.hero-compact .store-description-box .store-description-content {
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.hero.hero-compact .store-desc-toggle {
  margin-top: 4px !important;
  font-size: 0.85rem !important;
}
@media (max-width: 760px) {
  .hero.hero-compact {
    padding: 12px 12px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    border-radius: 14px !important;
  }
  .hero.hero-compact .hero-heading-row h1 {
    font-size: 1.05rem !important;
    max-width: calc(100% - 64px) !important;
  }
  .hero.hero-compact .hero-heading-row .store-profile-photo,
  .hero.hero-compact .hero-heading-row .store-profile-photo img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}

/* منوی فیکس پایین — فقط موبایل / تبلت کوچک (نه دسکتاپ) */
.home-bottom-nav {
  display: none;
}

@media (max-width: 760px) {
  .home-bottom-nav {
    position: fixed;
    z-index: 1900;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: 60px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 -6px 24px rgba(7, 26, 67, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
  }
}
.home-bottom-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 4px;
  color: var(--secondary, #071A43);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  transition: background .15s, color .15s;
}
.home-bottom-nav-item:hover,
.home-bottom-nav-item:focus-visible {
  background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
  color: var(--primary, #2563eb);
  outline: none;
}
.home-bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: inherit;
}
.home-bottom-nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.home-bottom-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

/* فضای پایین صفحه برای منوی فیکس — فقط موبایل */
@media (max-width: 760px) {
  body:has(.home-bottom-nav) {
    padding-bottom: 72px;
  }
  body:has(.home-bottom-nav) #ebShareBtn {
    bottom: 86px !important;
  }
  body:has(.home-bottom-nav) #ebShareMenu,
  body:has(.home-bottom-nav) #ebShareToast {
    bottom: 146px !important;
  }
}

/* سایدبار بالای منوی فیکس پایین صفحه خانه */
.sidebar-overlay {
  z-index: 2050 !important;
}
.store-sidebar {
  z-index: 2100 !important;
}
/* وقتی سایدبار باز است، منوی فیکس زیر آن بماند */
body:has(.store-sidebar.open) .home-bottom-nav {
  z-index: 1800 !important;
}

/* چهار آیتم در منوی پایین — متن کمی کوچک‌تر */
.home-bottom-nav-item {
  font-size: 10.5px;
  padding: 5px 2px;
}
.home-bottom-nav-label {
  font-size: 10.5px;
}

/* دکمه «منو» در نوار پایین — ظاهر یکسان با لینک‌ها */
button.home-bottom-nav-item {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   بنر / اسلایدر — تضمین نمایش کامل بدون زوم و کراپ
   (صفحه خانه، پروفایل و همه صفحاتی که banner-slot دارند)
   ============================================================ */
.home-slider-track {
  max-height: none !important;
  aspect-ratio: auto !important;
  height: auto !important;
  overflow: hidden;
  line-height: 0;
}
.home-slide.is-active {
  position: relative !important;
  inset: auto !important;
}
.home-slide:not(.is-active) {
  position: absolute !important;
  inset: 0 !important;
}
.home-slide img,
.home-slide a img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}
.banner-slot img,
.banner-slot a img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}
.banner-slot > a {
  overflow: visible !important;
  line-height: 0;
}

/* لینک نویسنده مقاله → صفحه پروفایل */
.article-author-link {
  color: var(--primary, #0f766e);
  font-weight: 700;
  text-decoration: none;
}
.article-author-link:hover {
  text-decoration: underline;
}
.item-meta .article-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
