/* ===== فرانت‌اند اسپایسی ===== */
@font-face {
    font-family: 'IRANYekan';
    src: url('../fonts/iranyekan/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/iranyekan/IRANYekanXVF.woff') format('woff');
    font-weight: 100 900; font-display: swap;
}

:root {
    --primary: #054af4;
    --primary-2: #0a3fd0;
    --primary-soft: #e8efff;
    --accent: #ffb020;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --success: #16a34a;
    --success-soft: #ecfdf5;
    --ink: #0f172a;
    --ink-2: #475569;
    --muted: #94a3b8;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --border: #e6eaf2;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
    --shadow: 0 6px 24px rgb(15 23 42 / .08);
    --shadow-lg: 0 18px 50px rgb(5 74 244 / .16);
    --container: 1200px;
    /* لیکوئید گلس */
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-brd: rgba(255, 255, 255, 0.55);
    --glass-blur: blur(20px) saturate(180%);
    --glass-blur-strong: blur(24px) saturate(190%);
    --glass-shadow: 0 20px 50px rgb(15 23 42 / .18), inset 0 1px 0 rgb(255 255 255 / .6);
}

/* آیکون‌های SVG پک Bold — رنگ از currentColor والد */
.i, svg.i { display: inline-block; vertical-align: middle; flex-shrink: 0; }
:where(svg.i:not([width])) { width: 1em; height: 1em; }
svg.i.caret { width: 16px; height: 16px; }
svg.i.drawer-nav-ic { width: 25px; height: 25px; opacity: .72; color: var(--primary); }
.drawer-nav a:hover svg.i.drawer-nav-ic { opacity: 1; }

/* اندازهٔ آیکون‌های هدر */
.header {
    --hi-search: 20px;
    --hi-action: 24px;
    --hi-caret: 16px;
    --hi-menu: 32px;
}

/* پنل شیشه‌ای (گلسمورفیسم) — پایهٔ همهٔ طراحی‌ها */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd);
    box-shadow: 0 8px 32px rgb(15 23 42 / .12), inset 0 1px 0 rgb(255 255 255 / .55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'IRANYekan', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.9;
    font-size: 15px;
    overflow-x: visible;
}
/* آیتم‌های گرید بتوانند کوچک شوند (رفع سرریز موبایل) */
.product-top > *, .review-layout > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== هدر شیشه‌ای تک‌ردیفه (چپ→راست: لوگو، جستجو، منو، حساب/سبد) ===== */
/* blur روی ::before تا dropdownها بتوانند محتوای صفحه را بلور کنند (نه فقط لایهٔ هدر) */
.header {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    overflow: visible;
}
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-brd);
    box-shadow: 0 4px 24px rgb(15 23 42 / .06);
}
.header.glass {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}
.header-main { position: relative; display: flex; align-items: center; gap: 22px; min-height: 92px; direction: ltr; overflow: visible; }
.logo { flex-shrink: 0; display: flex; align-items: center; padding-block: 5px; }
.logo img { height: 86px; width: auto; display: block; }   /* لوگو دسکتاپ */
.main-nav { margin-left: auto; }   /* منو + حساب/سبد به سمت راست */

/* جستجو */
.search { position: relative; flex: 1; max-width: 440px; }
.search input {
    width: 100%; height: 44px; border: 1.5px solid var(--border); border-radius: 12px;
    padding: 0 48px 0 14px; font-family: inherit; font-size: 14px; background: var(--bg); transition: .18s;
}
.search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.search button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: none; border-radius: 9px;
    background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.header .search button svg, .header .search button .i { width: var(--hi-search); height: var(--hi-search); }
/* نتایج زندهٔ جستجو */
.search-results {
    position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff;
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 6px; display: none; max-height: 420px; overflow-y: auto; z-index: 120; direction: rtl;
}
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: .12s; }
.sr-item:hover { background: var(--primary-soft); }
.sr-thumb { width: 46px; height: 46px; border-radius: 9px; background: var(--bg); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.sr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sr-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.6; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sr-badge { font-size: 10px; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.sr-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sr-price { font-size: 12px; color: var(--primary); font-weight: 700; }
.sr-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.sr-item--category .sr-thumb,
.sr-item--blog .sr-thumb { background: rgba(5,74,244,.06); }

.search-extra-title { font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.search-extra-links { display: flex; flex-wrap: wrap; gap: 8px; }
.search-extra-links a { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 99px; }
.search-extra-links a:hover { background: rgba(5,74,244,.14); }

/* منوی اصلی */
.main-nav { display: flex; align-items: center; gap: 4px; direction: rtl; overflow: visible; }
.nav-item { position: relative; overflow: visible; }
.nav-item > a {
    display: inline-flex; align-items: center; gap: 4px; padding: 9px 15px; border-radius: 10px;
    font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; transition: .15s;
}
.nav-item > a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-item .caret { transition: transform .2s; }
.has-mega:hover .caret { transform: rotate(180deg); }

/* زیرمنوی فروشگاه (مگا) — لیکوئید گلس روی محتوای صفحه */
.mega {
    position: absolute; top: calc(100% + 12px); inset-inline-start: 0; width: min(920px, calc(100vw - 48px));
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-brd); border-radius: 18px; box-shadow: var(--glass-shadow);
    display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 130;
    isolation: isolate;
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega::before { content: ''; position: absolute; top: -12px; inset-inline: 0; height: 12px; }
.mega-cats {
    background: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    padding: 20px; border-inline-start: 1px solid var(--glass-brd);
}
.mega-cats h4, .mega-products h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.mega-cats ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega-cats ul a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: .12s; }
.mega-cats ul a:hover,
.mega-cats ul a.is-active { background: #fff; color: var(--primary); }
.mega-cats ul a span { font-size: 11px; color: var(--muted); background: #fff; border-radius: 99px; padding: 1px 8px; }
.mega-all { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.mega-products { padding: 20px; max-height: 620px; overflow-y: auto; min-width: 0; }
.mega-prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mega-prod { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; border: 1px solid var(--border); transition: .15s; }
.mega-prod:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.mp-thumb { width: 62px; height: 62px; border-radius: 10px; background: transparent; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; margin-top: 2px; }
.mp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mp-info { min-width: 0; }
.mp-name { font-size: 12px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-rating { display: flex; align-items: center; margin-top: 3px; }
.mp-price { font-size: 11.5px; color: var(--primary); font-weight: 700; margin-top: 3px; }
.mega-prod-grid.is-loading { min-height: 200px; display: grid; place-items: center; }
.mega-prod-grid.is-loading::after { content: 'در حال بارگذاری…'; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }

/* حساب و سبد */
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 11px;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
    font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.primary:hover { background: var(--primary-2); color: #fff; }
.header .icon-btn svg, .header .icon-btn .i { width: var(--hi-action); height: var(--hi-action); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; line-height: 0; }
.header .menu-toggle svg, .header .menu-toggle .i { width: var(--hi-menu); height: var(--hi-menu); display: block; }

.header .nav-item svg.i.caret, .header .nav-item .caret { width: var(--hi-caret); height: var(--hi-caret); }

/* نشان تعداد سبد */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #3a2a00; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* ===== مینی‌سبد (دسکتاپ: هاور) — لیکوئید گلس روی محتوای صفحه ===== */
.has-cart { position: relative; overflow: visible; }
.mini-cart {
    position: absolute; top: calc(100% + 12px); inset-inline-start: 0; width: 320px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-brd); box-shadow: var(--glass-shadow);
    border-radius: 18px; padding: 16px; z-index: 130; direction: rtl;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
    isolation: isolate;
}
.mini-cart.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
}
.has-cart:hover .mini-cart { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-cart::before { content: ''; position: absolute; top: -12px; inset-inline: 0; height: 12px; }
.mc-empty { text-align: center; padding: 14px 6px 6px; color: var(--ink-2); }
.mc-empty svg.i, .mc-empty svg, .mc-empty .i { width: 66px; height: 66px; opacity: .4; margin-bottom: 8px; }
.mc-empty p { font-size: 13.5px; margin-bottom: 12px; }
.mc-shop { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.mc-items { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.mc-item { display: flex; gap: 10px; align-items: flex-start; }
.mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-thumb { width: 92px; height: 92px; border-radius: 9px; background: rgba(255,255,255,.5); overflow: hidden; flex-shrink: 0; }
.mc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mc-name { font-size: 12.5px; font-weight: 600; }
.mc-meta { font-size: 11.5px; color: var(--ink-2); }
.mc-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--glass-brd); font-size: 13px; }
.mc-total b { color: var(--primary); font-size: 15px; }
.mc-actions { display: flex; gap: 8px; }
.mc-btn { flex: 1; text-align: center; padding: 11px; border-radius: 11px; font-size: 13px; font-weight: 700; transition: .15s; }
.mc-btn.light { background: rgba(255,255,255,.6); border: 1.5px solid var(--glass-brd); color: var(--ink); }
.mc-btn.light:hover { border-color: var(--primary); color: var(--primary); }
.mc-btn.primary { background: var(--primary); color: #fff; }
.mc-btn.primary:hover { background: var(--primary-2); }

/* ===== کشوها (منوی موبایل + سبد موبایل) لیکوئید گلس ===== */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadeIn .2s; }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; width: min(86vw, 340px);
    background: rgba(255,255,255,0.78); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: 0 0 60px rgb(15 23 42 / .25); padding: 18px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 14px;
}
.drawer-panel.from-start { inset-inline-start: 0; border-inline-end: 1px solid var(--glass-brd); animation: slideStart .28s cubic-bezier(.2,.8,.2,1); }
.drawer-panel.from-end { inset-inline-end: 0; border-inline-start: 1px solid var(--glass-brd); animation: slideEnd .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slideStart { from { transform: translateX(var(--sx, 100%)); } to { transform: none; } }
@keyframes slideEnd { from { transform: translateX(var(--ex, -100%)); } to { transform: none; } }
html[dir=rtl] .from-start { --sx: 100%; } html[dir=rtl] .from-end { --ex: -100%; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* سرِ کشو: لوگو وسط‌چین افقی، دکمهٔ بستن گوشه */
.drawer-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 66px; }
.drawer-logo { height: 90px; width: auto; margin: 0 auto; display: block; }
.drawer-close { position: absolute; top: 50%; inset-inline-start: 0; transform: translateY(-50%); background: rgba(255,255,255,.5); border: 1px solid var(--glass-brd); width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.cart-panel .drawer-head { justify-content: space-between; flex-shrink: 0; }
.cart-panel .drawer-close { position: static; transform: none; }
.cart-panel.drawer-panel {
    overflow: hidden;
    padding: clamp(0.75rem, 3vw, 1.125rem);
    padding-bottom: clamp(0.65rem, 2.5vh, 1rem);
    gap: clamp(0.45rem, 2vw, 0.875rem);
}
.cart-panel #cartDrawerBody {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cart-panel .mc-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1.5vh, 0.65rem);
}
.cart-panel .mc-items {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    gap: clamp(0.45rem, 2vw, 0.65rem);
}
.cart-panel .mc-total {
    flex-shrink: 0;
    margin-top: clamp(0.25rem, 1vh, 0.5rem);
    padding: clamp(0.45rem, 1.8vh, 0.75rem) 0;
    font-size: clamp(0.78rem, 3.2vw, 0.875rem);
}
.cart-panel .mc-total b { font-size: clamp(0.9rem, 3.8vw, 1rem); }
.cart-panel .mc-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 3vh, 1rem) 0;
}
.cart-panel .mc-actions {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: clamp(0.35rem, 1.2vh, 0.55rem);
    margin-bottom: 5vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    gap: clamp(0.35rem, 1.8vw, 0.5rem);
}
.cart-panel .mc-btn {
    padding: clamp(0.62rem, 2.6vw, 0.78rem) clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.76rem, 3.1vw, 0.875rem);
    border-radius: clamp(0.55rem, 2.5vw, 0.75rem);
}

/* تب‌های منوی موبایل */
.drawer-tabs { display: flex; gap: 6px; background: rgba(255,255,255,.4); border: 1px solid var(--glass-brd); border-radius: 12px; padding: 4px; }
.drawer-tab { flex: 1; padding: 10px; border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 900; color: var(--ink-2); cursor: pointer; border-radius: 9px; transition: .15s; }
.drawer-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgb(5 74 244 / .3); }
.drawer-pane { display: none; }
.drawer-pane.active { display: block; }
.drawer-search { position: relative; }
.drawer-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.drawer-search input { width: 100%; height: 44px; border: 1.5px solid var(--glass-brd); border-radius: 12px; padding: 0 40px 0 14px; font-family: inherit; font-size: 14px; background: rgba(255,255,255,.55); }
.drawer-search input:focus { outline: none; border-color: var(--primary); }
.drawer-search-results { margin-top: 8px; display: none; background: rgba(255,255,255,.55); border: 1px solid var(--glass-brd); border-radius: 12px; padding: 6px; }
.drawer-search-results.open { display: block; }
/* هنگام جستجو، تب‌ها و محتوای منو مخفی و فقط نتایج نمایش داده شوند */
.drawer-panel.searching .drawer-tabs,
.drawer-panel.searching .drawer-pane { display: none; }
.drawer-nav { display: flex; flex-direction: column; gap: 3px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; font-size: 15px; font-weight: 900; color: var(--ink); transition: .12s; }
.drawer-nav a:hover { background: rgba(5,74,244,.08); color: var(--primary); }
.drawer-section-title { font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin: 4px 0 8px; }
.drawer-cats { display: flex; flex-direction: column; gap: 2px; }
.drawer-cats a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 900; color: var(--ink-2); }
.drawer-cats a:hover { background: rgba(255,255,255,.55); color: var(--primary); }
.drawer-cats a span { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.7); border-radius: 99px; padding: 1px 8px; }

/* ===== هیروی صفحه اصلی ===== */
.hx {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 64px) 0 clamp(44px, 5vw, 56px);
    color: #fff;
    background: linear-gradient(145deg, #050d1f 0%, #0a1a4a 38%, #0536a8 100%);
}
.hx__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 15% 20%, rgb(5 74 244 / .45) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 85% 15%, rgb(255 176 32 / .18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 70% 85%, rgb(99 102 241 / .22) 0%, transparent 70%);
}
.hx__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: radial-gradient(rgb(255 255 255 / .14) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hx__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
}
.hx__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}
.hx__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(14px, 2vw, 20px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgb(5 74 244 / .42);
    border: 1px solid rgb(255 255 255 / .28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hx__pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}
.hx__title {
    margin: 0 0 clamp(14px, 2vw, 18px);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.hx__title em {
    font-style: normal;
    background: linear-gradient(135deg, #fff 30%, #ffd24d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hx__title-sub {
    display: block;
    margin-top: .12em;
    color: rgb(255 255 255 / .92);
}
.hx__lead {
    margin: 0 0 clamp(22px, 3vw, 28px);
    max-width: 42ch;
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.8;
    color: rgb(255 255 255 / .72);
}
.hx__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(24px, 3vw, 32px);
}
.hx__btn { min-width: 148px; justify-content: center; }
.hx__btn--ghost {
    background: rgb(255 255 255 / .08);
    color: #fff;
    border: 1.5px solid rgb(255 255 255 / .22);
}
.hx__btn--ghost:hover {
    background: rgb(255 255 255 / .14);
    border-color: rgb(255 255 255 / .35);
}
.hx__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 3vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: rgb(255 255 255 / .6);
}
.hx__stats strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.hx__visual {
    position: relative;
    min-height: clamp(320px, 38vw, 400px);
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.hx__glow {
    position: absolute;
    inset: 4% 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(5 74 244 / .35) 0%, transparent 68%);
    filter: blur(24px);
    animation: hxPulse 6s ease-in-out infinite;
}
@keyframes hxPulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
.hx__bento {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 500px;
    min-height: clamp(280px, 34vw, 360px);
    margin-inline: auto;
    padding: 0;
    list-style: none;
}
.hx__tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(10px, 1.4vw, 14px);
    min-height: 0;
    padding: clamp(14px, 2vw, 18px);
    border-radius: 18px;
    border: 1px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .12);
    transition: transform .22s ease, border-color .22s ease;
}
.hx__tile::before {
    content: '';
    position: absolute;
    width: 55%;
    height: 55%;
    bottom: -18%;
    inset-inline-end: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(255 255 255 / .1) 0%, transparent 68%);
    pointer-events: none;
}
.hx__tile:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / .28); }
.hx__tile-bg {
    position: absolute;
    inset: auto;
    bottom: -10%;
    inset-inline-start: -8%;
    color: #fff;
    opacity: .16;
    pointer-events: none;
    line-height: 0;
}
.hx__tile-bg svg { width: 72px; height: 72px; }
.hx__tile-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.hx__tile-ic {
    display: grid;
    place-items: center;
    width: clamp(38px, 4vw, 44px);
    height: clamp(38px, 4vw, 44px);
    border-radius: 12px;
    background: rgb(255 255 255 / .14);
    color: #fff;
    flex-shrink: 0;
}
.hx__tile-ic svg { width: clamp(20px, 2.2vw, 22px); height: clamp(20px, 2.2vw, 22px); }
.hx__tile-lbl {
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 700;
    line-height: 1.35;
    color: rgb(255 255 255 / .94);
}
.hx__tile-note {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(10px, 1.1vw, 11px);
    font-weight: 500;
    line-height: 1.5;
    color: rgb(255 255 255 / .62);
}
.hx__tile-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    gap: 6px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}
.hx__tile--ai .hx__tile-tags,
.hx__tile--music .hx__tile-tags {
    align-content: center;
    margin-top: 0;
}
.hx__tile--ai .hx__tile-note,
.hx__tile--music .hx__tile-note {
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: 4px;
}
.hx__tile--ai .hx__tile-tags li,
.hx__tile--music .hx__tile-tags li {
    padding: 6px 11px;
    font-size: clamp(10px, 1.1vw, 11px);
}
.hx__tile-tags li {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: clamp(9px, 1vw, 10px);
    font-weight: 600;
    line-height: 1.2;
    color: rgb(255 255 255 / .88);
    background: rgb(255 255 255 / .13);
    border: 1px solid rgb(255 255 255 / .12);
    white-space: nowrap;
}
.hx__tile--ai {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
    background: linear-gradient(145deg, rgb(99 102 241 / .35), rgb(5 74 244 / .2));
}
.hx__tile--ai .hx__tile-bg svg { width: 130px; height: 130px; }
.hx__tile--ai .hx__tile-ic { width: 46px; height: 46px; }
.hx__tile--ai .hx__tile-ic svg { width: 24px; height: 24px; }
.hx__tile--ai .hx__tile-lbl { font-size: clamp(13px, 1.5vw, 15px); }
.hx__tile--music {
    grid-column: 4 / span 3;
    grid-row: 1 / span 2;
    background: linear-gradient(145deg, rgb(34 197 94 / .28), rgb(5 74 244 / .12));
}
.hx__tile--music .hx__tile-bg svg { width: 130px; height: 130px; }
.hx__tile--music .hx__tile-ic { width: 46px; height: 46px; }
.hx__tile--music .hx__tile-ic svg { width: 24px; height: 24px; }
.hx__tile--music .hx__tile-lbl { font-size: clamp(13px, 1.5vw, 15px); }
.hx__tile--video {
    grid-column: 1 / span 2;
    grid-row: 3 / span 2;
    background: linear-gradient(145deg, rgb(239 68 68 / .25), rgb(5 74 244 / .1));
}
.hx__tile--design {
    grid-column: 3 / span 2;
    grid-row: 3 / span 2;
    background: linear-gradient(145deg, rgb(236 72 153 / .25), rgb(5 74 244 / .1));
}
.hx__tile--pay {
    grid-column: 5 / span 2;
    grid-row: 3 / span 2;
    background: linear-gradient(145deg, rgb(255 176 32 / .32), rgb(5 74 244 / .12));
}
@media (prefers-reduced-motion: reduce) {
    .hx__glow { animation: none; }
    .hx__tile:hover { transform: none; }
}

/* دکمه‌های عمومی */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: 13px;
    font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    border: none; transition: .18s;
}
.btn svg { width: 21px; height: 21px; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.btn-ghost { background: rgb(255 255 255 / .12); color: #fff; border: 1.5px solid rgb(255 255 255 / .35); }
.btn-ghost:hover { background: rgb(255 255 255 / .2); }

/* ===== نوار مزایا ===== */
.pk {
    position: relative;
    z-index: 5;
    margin-top: clamp(-56px, -5vw, -36px);
    padding-bottom: clamp(12px, 2vw, 20px);
}
.pk__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 14px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.pk__item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 14px);
    min-width: 0;
    padding: clamp(14px, 2vw, 18px) clamp(14px, 1.8vw, 18px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pk__item:hover {
    transform: translateY(-2px);
    border-color: rgb(5 74 244 / .2);
    box-shadow: var(--shadow);
}
.pk__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(42px, 5vw, 48px);
    height: clamp(42px, 5vw, 48px);
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}
.pk__icon svg { width: clamp(22px, 2.8vw, 24px); height: clamp(22px, 2.8vw, 24px); }
.pk__icon--bolt { color: #059669; background: #ecfdf5; }
.pk__icon--card { color: #2563eb; background: #eff6ff; }
.pk__icon--shield { color: #7c3aed; background: #f5f3ff; }
.pk__icon--chat { color: #ea580c; background: #fff7ed; }
.pk__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pk__body strong {
    font-size: clamp(13px, 1.5vw, 14px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.pk__body span {
    font-size: clamp(11px, 1.25vw, 12px);
    line-height: 1.45;
    color: var(--ink-2);
}
@media (max-width: 480px) {
    .pk { margin-top: clamp(-36px, -8vw, -24px); }
    .pk__grid { grid-template-columns: 1fr; gap: 8px; }
    .pk__item { padding: 12px 14px; }
}

/* ===== بخش‌ها ===== */
section.block { padding-block: 46px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.block-head h2 { font-size: 24px; font-weight: 700; position: relative; padding-inline-start: 15px; }
.block-head h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--primary); }
.block-head a { color: var(--primary); font-size: 13.5px; font-weight: 600; }

/* ===== دسته‌بندی‌های صفحه اصلی ===== */
.hc {
    padding-block: clamp(36px, 5vw, 52px);
    background: var(--surface-2, #f8fafc);
}
.hc__wrap { position: relative; }
.hc__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(20px, 3vw, 28px);
    flex-wrap: wrap;
}
.hc__intro { min-width: 0; max-width: 52ch; }
.hc__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgb(5 74 244 / .08);
    border: 1px solid rgb(5 74 244 / .12);
}
.hc__title {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hc__lead {
    margin: 0;
    font-size: clamp(13px, 1.4vw, 14.5px);
    line-height: 1.7;
    color: var(--ink-2);
}
.hc__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.hc__all:hover {
    border-color: rgb(5 74 244 / .28);
    box-shadow: 0 8px 20px rgb(5 74 244 / .1);
}
.hc__all-ic {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgb(5 74 244 / .08);
    transition: background .18s ease;
}
.hc__all:hover .hc__all-ic { background: rgb(5 74 244 / .14); }
.hc__all-ic svg { width: 14px; height: 14px; }
.hc__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 14px);
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}
.hc__card {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 14px);
    min-width: 0;
    padding: clamp(12px, 1.6vw, 14px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hc__card:hover {
    border-color: rgb(5 74 244 / .22);
    box-shadow: 0 10px 28px rgb(5 74 244 / .08);
}
.hc__card--feat {
    background: linear-gradient(180deg, #fff 0%, rgb(239 246 255 / .85) 100%);
    border-color: rgb(5 74 244 / .12);
}
.hc__thumb {
    flex-shrink: 0;
    width: clamp(72px, 9vw, 96px);
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--primary);
}
.hc__card--feat .hc__thumb {
    width: clamp(84px, 10vw, 112px);
    border-radius: 14px;
}
.hc__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hc__thumb svg { width: 32px; height: 32px; }
.hc__thumb--1 { background: #eef2ff; color: #4338ca; }
.hc__thumb--2 { background: #fdf2f8; color: #db2777; }
.hc__thumb--3 { background: #eff6ff; color: #2563eb; }
.hc__thumb--4 { background: #fffbeb; color: #d97706; }
.hc__thumb--5 { background: #ecfdf5; color: #059669; }
.hc__thumb--6 { background: #f5f3ff; color: #7c3aed; }
.hc__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hc__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(13px, 1.35vw, 14.5px);
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink);
}
.hc__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hc__count {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgb(5 74 244 / .08);
    border: 1px solid rgb(5 74 244 / .1);
}
.hc__go {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-2, #f1f5f9);
    border: 1px solid var(--border);
    opacity: 0;
    transition: opacity .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.hc__card:hover .hc__go {
    opacity: 1;
    color: var(--primary);
    background: rgb(5 74 244 / .08);
    border-color: rgb(5 74 244 / .14);
}
.hc__go svg { width: 14px; height: 14px; }
@media (max-width: 1024px) {
    .hc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hc__head { align-items: stretch; }
    .hc__all { width: 100%; justify-content: center; }
    .hc__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .hc__card {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .hc__card--feat { padding: 0; }
    .hc__thumb,
    .hc__card--feat .hc__thumb {
        width: 100%;
        max-width: none;
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }
    .hc__body {
        padding: 10px 12px 12px;
        gap: 6px;
        text-align: center;
        align-items: center;
    }
    .hc__meta {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    .hc__go {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hc__card:hover { box-shadow: var(--shadow-sm); }
}

/* ===== آخرین مطالب — صفحه اصلی ===== */
.hb { padding-top: 0; }
.hb__grid { margin-top: 0; }

/* دسته‌بندی‌ها (legacy — سایر صفحات) */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 12px; text-align: center;
    transition: .18s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .cat-img { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-img svg { width: 38px; height: 38px; color: var(--primary); }
.cat-card b { font-size: 13.5px; display: block; }
.cat-card span { font-size: 11.5px; color: var(--muted); }

/* محصولات */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.prod-grid > * { min-width: 0; }
.prod-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: .18s;
    display: flex; flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
}
.prod-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prod-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    padding: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    min-height: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.prod-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -o-object-fit: contain;
    object-position: center;
}
.prod-thumb .ph { color: var(--muted); flex-shrink: 0; }
.prod-thumb .ph svg { width: 46px; height: 46px; }
.prod-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { font-size: 15px; font-weight: 700; line-height: 1.7; min-height: 3em; }
.prod-cat { font-size: 11px; color: var(--primary); font-weight: 600; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.prod-price .unit { font-size: 11px; color: var(--ink-2); font-weight: 400; }
.prod-price .from { font-size: 11px; color: var(--ink-2); font-weight: 400; }
.prod-buy {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; transition: .18s;
}
.prod-card:hover .prod-buy { background: var(--primary); color: #fff; }
.prod-buy svg { width: 21px; height: 21px; }

/* بنر ارزی */
.cta-band {
    background: linear-gradient(120deg, #0a3fd0, #054af4);
    border-radius: 22px; color: #fff; padding: 34px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-band h3 { font-size: 24px; margin-bottom: 6px; }
.cta-band p { color: #dbe7ff; font-size: 14px; }

/* ===== فوتر (مطابق سایت اصلی — آبی تیره + کولاژ) ===== */
.footer { background: #020f40; background-size: cover; background-position: center; color: #cdd8f5; margin-top: 50px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; padding-block: 50px 40px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 13.5px; color: #b9c6ee; transition: .15s; }
.footer ul a:hover { color: #fff; padding-inline-start: 5px; }
.f-trust .badges { display: flex; gap: 12px; }
.f-trust .badge-box { background: #fff; border-radius: 12px; padding: 7px; display: inline-block; }
.f-trust .badge-box img { height: 92px; width: auto; border-radius: 6px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 12.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.fb-links a { display: inline-flex; align-items: center; gap: 6px; color: #b9c6ee; transition: .15s; }
.fb-links a:hover { color: #fff; }
.fb-links .fb-ic { width: 17px; height: 17px; opacity: .85; }
.fb-copy { color: #8ea2d8; }

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .header {
        --hi-action: 27px;
        --hi-menu: 27px;
    }
    .hx {
        padding: clamp(24px, 5vw, 36px) 0 clamp(32px, 5vw, 44px);
    }
    .hx__inner {
        grid-template-columns: 1fr;
        gap: clamp(24px, 5vw, 32px);
    }
    .hx__content {
        align-items: center;
        text-align: center;
    }
    .hx__lead { max-width: 36ch; }
    .hx__actions { justify-content: center; }
    .hx__stats { justify-content: center; }
    .hx__visual {
        min-height: auto;
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }
    .hx__bento {
        width: 100%;
        min-height: 300px;
        gap: 10px;
    }
    .hx__tile-note { display: none; }
    .hx__tile--ai .hx__tile-tags,
    .hx__tile--music .hx__tile-tags { align-content: flex-end; }
    .pk { margin-top: clamp(-44px, -6vw, -28px); }
    .pk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pk__item { align-items: flex-start; }
    .hc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* هدر موبایل: سبد چپ | لوگو وسط | منو راست — همه در یک ردیف */
    .header-main { display: grid; grid-template-columns: 1fr auto 1fr; grid-auto-rows: 1fr; min-height: 88px; gap: 6px; align-items: center; }
    .has-cart { grid-area: 1 / 1; justify-self: start; align-self: center; }
    .logo { grid-area: 1 / 2; justify-self: center; align-self: center; }
    .logo img { height: 90px; }
    .menu-toggle { grid-area: 1 / 3; justify-self: end; align-self: center; display: inline-grid; }
    .search, .main-nav, .account-btn { display: none; }
    .mini-cart { display: none; }
    .cart-btn .label { display: none; }
    /* دکمه‌های یکسان سبد و منو */
    .header .header-mob-btn {
        width: 44px; height: 44px; padding: 0; margin: 0;
        display: inline-grid; place-items: center;
        border-radius: 12px; border: 1.5px solid var(--border);
        background: var(--surface); color: var(--ink);
        box-shadow: var(--shadow-sm);
        transition: border-color .15s, color .15s, box-shadow .15s;
    }
    .header .header-mob-btn:hover { border-color: var(--primary); color: var(--primary); }
    .header .cart-btn.header-mob-btn.primary { background: var(--surface); color: var(--ink); border-color: var(--border); }
    .header .cart-btn.header-mob-btn.primary:hover { background: var(--surface); color: var(--primary); border-color: var(--primary); }
    .header .menu-toggle.header-mob-btn { border: 1.5px solid var(--border); background: var(--surface); }
    .header .header-mob-btn svg, .header .header-mob-btn .i { width: var(--hi-action); height: var(--hi-action); }
    .header .menu-toggle.header-mob-btn svg, .header .menu-toggle.header-mob-btn .i { width: var(--hi-menu); height: var(--hi-menu); }
}
@media (max-width: 560px) {
    .hx__title { font-size: clamp(28px, 8vw, 34px); }
    .hx__actions { flex-direction: column; width: 100%; }
    .hx__btn { width: 100%; min-width: 0; }
    .hx__bento { gap: 8px; min-height: 280px; }
    .hx__tile { padding: 11px; border-radius: 14px; }
    .hx__tile-bg svg { width: 56px; height: 56px; }
    .hx__tile--ai .hx__tile-bg svg,
    .hx__tile--music .hx__tile-bg svg { width: 96px; height: 96px; }
    .hx__tile-tags { gap: 5px; }
    .hx__tile-tags li { font-size: 8px; padding: 3px 6px; }
    .hx__tile-ic { width: 34px; height: 34px; }
    .hx__tile--ai .hx__tile-ic,
    .hx__tile--music .hx__tile-ic { width: 38px; height: 38px; }
    .hx__tile-ic svg { width: 18px; height: 18px; }
    .hx__tile-lbl { font-size: 11px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
    .f-trust { grid-column: 1 / -1; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .fb-links { justify-content: center; gap: 14px; }
    .search input { font-size: 13px; }
}

/* ===== صفحهٔ محصول (مطابق spaicy.ir) ===== */
.breadcrumb { font-size: 12.5px; color: var(--ink-2); padding-block: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted); }

/* کانتینر محصول: راست = تصویر (استیکی) ، چپ = محتوا (اسکرول) */
.product-top { display: grid; grid-template-columns: 390px 1fr; gap: 40px; align-items: start; }

/* گالری (چسبان با فاصلهٔ ۷۰px) — تصویر بی‌پس‌زمینه + بندانگشتی بزرگ */
.gallery { position: sticky; top: 120px; order: -1; align-self: start; }
/* تصویر بزرگ به‌صورت عمودی وسطِ ستون بندانگشتی‌ها */
.gallery .gwrap { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumbs button {
    width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--border);
    background: transparent; padding: 5px; cursor: pointer; overflow: hidden; transition: .15s;
}
.gallery .thumbs button.active { border-color: #0066ff; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-stage {
    position: relative;
    overflow: visible;
    width: 303px;
    justify-self: center;
}
.gallery .main {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    height: 303px;
    min-height: 303px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: visible;
}
.product-color-halo {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    inset: -32% -28%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .45s ease;
    filter: blur(48px) saturate(1.1);
    will-change: opacity, background;
}
.product-color-halo.is-ready { opacity: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.gallery .disc-badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: #0066ff; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
/* نوار تماس زیر گالری */
.mobile-contact { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.gallery-contact { margin-top: 16px; width: 100%; display: flex; justify-content: center; }
.gallery-contact .q {
    font-size: 14px;
    font-weight: 900;
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
    white-space: nowrap;
}
/* دسکتاپ: متن سوال + ۳ دکمه در یک ردیف — وسط کانتینر */
.gallery .gallery-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}
.gallery .gallery-contact .q {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
}
.gallery .gallery-contact .btns {
    flex: 0 0 auto;
    width: auto;
    --support-sq: 35px;
    --support-gap: 6px;
}
.gallery-contact .btns {
    --support-gap: 6px;
    --support-sq: calc((100% - (3 * var(--support-gap))) / 4);
    display: flex;
    gap: var(--support-gap);
    width: 100%;
    align-items: center;
}
.gallery-contact .support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
    color: var(--ink-2);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
    overflow: visible;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
.gallery-contact .support-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(15 23 42 / .08);
}
.gallery-contact .support-btn:active { transform: translateY(0); }
.gallery-contact .support-btn svg { display: block; flex-shrink: 0; overflow: visible; }
.gallery-contact .support-btn--wa,
.gallery-contact .support-btn--tg {
    flex: 0 0 var(--support-sq);
    width: var(--support-sq);
    height: var(--support-sq);
    padding: 8px;
}
.gallery-contact .support-btn--wa svg,
.gallery-contact .support-btn--tg svg { width: 17px; height: 17px; }
.gallery-contact .support-btn--wa { color: #25D366; }
.gallery-contact .support-btn--wa:hover { border-color: rgba(37, 211, 102, .45); color: #25D366; background: rgba(37, 211, 102, .08); }
.gallery-contact .support-btn--tg { color: #229ED9; }
.gallery-contact .support-btn--tg:hover { border-color: rgba(34, 158, 217, .45); color: #229ED9; background: rgba(34, 158, 217, .08); }
.gallery-contact .support-btn--splus {
    flex: 0 0 calc((var(--support-sq) * 2) + var(--support-gap));
    width: calc((var(--support-sq) * 2) + var(--support-gap));
    height: var(--support-sq);
    padding: 7px 10px;
}
.gallery-contact .support-logo-splus {
    display: block;
    width: auto;
    max-width: 100%;
    height: 17px;
    object-fit: contain;
}
.gallery-contact .support-btn--splus:hover { border-color: rgba(25, 111, 240, .4); background: rgba(25, 111, 240, .06); }

/* خلاصهٔ محصول */
.product-info { text-align: center; }
.product-info .cat { color: #0066ff; font-size: 13px; font-weight: 600; }
.product-info h1 { font-size: 30px; font-weight: 900; line-height: 1.5; margin: 8px 0 10px; }
.rating-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; color: var(--ink-2); }
.stars { color: #EABE12; letter-spacing: 2px; font-size: 16px; }
/* لیست ویژگی‌ها راست‌چین اما بلوک وسط */
.feature-list { list-style: none; display: inline-block; text-align: right; margin: 0 auto 18px; }
.feature-list li { position: relative; padding-inline-end: 16px; font-size: 14px; line-height: 2.1; color: var(--ink); }
.feature-list li::before { content: '•'; position: absolute; inset-inline-end: 0; color: #0066ff; font-weight: 700; }
.product-info form, .product-info .short, .product-info .product-meta, .product-info .long-desc { text-align: right; }

/* توضیحات بلند داخل ستون اطلاعات */
.long-desc { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.desc-collapse { position: relative; max-height: 460px; overflow: hidden; transition: max-height .4s ease; }
.desc-collapse.open { max-height: none; }
.desc-collapse:not(.open)::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.desc-more { display: block; width: 100%; margin-top: 14px; background: #f8f8f8; border: 2px dashed #aaa; border-radius: 10px; padding: 12px; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.desc-more:hover { background: #eef; border-color: #666; }
.section-title { font-size: 20px; font-weight: 700; margin: 24px 0 14px; position: relative; padding-inline-start: 13px; }
.section-title:first-child { margin-top: 0; }
.section-title::before { content: ''; position: absolute; inset-inline-start: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 3px; background: #0066ff; }
.product-info .short { color: var(--ink-2); font-size: 14.5px; line-height: 2.1; margin-bottom: 22px; }
.product-info .short ul { padding-inline-start: 20px; }
.product-info .short-desc { margin-bottom: 22px; line-height: 2; }
.long-desc .prose img { max-width: 100%; height: auto; }

.field-block { margin-bottom: 24px; }
.field-block.wapf-hidden { display: none; }
.product-fields-body .renewal-subs-block.wapf-hidden { display: none !important; }
.field-block.tthidden { display: none; }
.field-block > label.flabel { display: block; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.field-block .fdesc { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 8px; line-height: 1.9; }
.field-required { color: #e11d48; }

/* ===== کارت‌های انتخاب — دقیقاً مطابق spaicy.ir ===== */
.spaicy-variations-pro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 4px 0 8px; align-items: start; }
.spaicy-variations-pro.one-col { grid-template-columns: 1fr; }
.spaicy-card {
    position: relative; display: flex; flex-direction: column;
    padding: 14px 16px; border-radius: 10px;
    background: #fdfdfd; border: 2px solid #e8f0fe; cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1); min-height: 104px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04); box-sizing: border-box; overflow: hidden;
}
.spaicy-card:hover { border-color: #0066ff; box-shadow: 0 6px 20px rgba(0,102,255,.15); transform: translateY(-2px); }
.spaicy-card.selected { border-color: #0066ff; background: #f8fbff; box-shadow: 0 8px 24px rgba(0,102,255,.2); transform: translateY(-3px); z-index: 5; }
.spaicy-card.out-of-stock { opacity: .55; cursor: not-allowed; filter: grayscale(.8); background: #fafafa; }
.spaicy-card input { position: absolute; opacity: 0; pointer-events: none; }
/* دایرهٔ انتخاب — سمت چپ کارت */
.spaicy-card::after {
    content: ""; position: absolute; top: 12px; inset-inline-end: 12px;
    width: 17px; height: 17px; border: 2px solid #ccc; background: #fff; border-radius: 50%; transition: .3s;
}
.spaicy-card.selected::after { border-color: #0066ff; background: #0066ff; box-shadow: 0 0 0 4px rgba(0,102,255,.18); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(0,102,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(0,102,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,102,255,0); } }
/* عنوان کارت + لوگو در یک ردیف — متن ریزتر و شیک‌تر برای فیلدهای محصول */
.card-head { display: flex; align-items: center; gap: 10px; padding-inline-end: 24px; margin-bottom: 8px; }
.card-head .main-feature-value { font-size: 13px; }
.spaicy-card .spaicy-desc { font-size: 10.5px; text-align: center; }
.spaicy-card .spaicy-price .addon { font-size: 11px; }
.spaicy-card .cimg { width: 32px; height: 32px; }
.spaicy-main-title { padding: 5px 5px 0 24px; margin-bottom: 8px; line-height: 1.6; word-break: break-word; }
.card-head .spaicy-main-title { padding: 0; margin: 0; }
.spaicy-main-title .attr-label { font-size: 11.5px; color: #999; font-weight: 500; }
.spaicy-main-title .main-feature-value { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.spaicy-tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.feature-tag { background: #f0f0f0; color: #555; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 8px; border: 1px solid #e0e0e0; white-space: nowrap; }
/* قیمت سمت چپ */
.spaicy-price { font-weight: 700; font-size: 17px; color: #0066ff; text-align: end; margin-top: auto; line-height: 1.3; }
.spaicy-price .unit { font-size: 11px; color: #7aa0ff; font-weight: 500; }
.spaicy-price .addon { font-size: 13px; }
.spaicy-price del { color: #e57373; font-size: 12px; opacity: .8; margin-inline-start: 6px; }
/* وضعیت موجودی سمت راست */
.spaicy-stock-status { position: absolute; bottom: 12px; inset-inline-start: 14px; font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 8px; }
.spaicy-stock-status.in-stock { background: #dcfce7; color: #166534; }
.spaicy-stock-status.out-of-stock { background: #ffebee; color: #b91c1c; }
.spaicy-card.selected .spaicy-stock-status { opacity: .6; }

.spaicy-variation-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.6;
    color: #2c3e50;
    transition: all 0.4s ease;
    text-align: justify;
}
.spaicy-card.selected .spaicy-variation-description:not(:empty) {
    max-height: 180px;
    padding: 12px 16px 28px 16px !important;
    margin: 8px -16px 8px -16px !important;
    opacity: 1;
    overflow-y: auto;
}

.spaicy-desc { font-size: 12px; color: #2c3e50; margin-top: 8px; line-height: 1.8; text-align: center; }
.spaicy-card .cimg { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.spaicy-show-more-btn {
    grid-column: 1 / -1; width: 100%; padding: 12px 24px; background: #f8f8f8;
    border: 2px dashed #aaa; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: .3s; color: var(--ink-2);
}
.spaicy-show-more-btn:hover { background: #eef; border-color: #666; transform: translateY(-2px); }
.spaicy-card.hidden { display: none; }

/* فیلدهای متنی */
.finput { width: 100%; height: 46px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: inherit; font-size: 14px; background: var(--bg); }
.finput:focus { outline: none; border-color: #0066ff; background: #fff; box-shadow: 0 0 0 4px rgba(0,102,255,.12); }
textarea.finput { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
select.finput { cursor: pointer; }

/* جعبهٔ قیمت و خرید */
.buybox {
    background: linear-gradient(180deg, #f8fbff, #fff); border: 2px solid #e8f0fe; border-radius: 16px;
    padding: 18px 22px; margin-top: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.buybox .total .lbl { font-size: 12px; color: var(--ink-2); }
.buybox .total .amt { font-size: 26px; font-weight: 800; color: #0066ff; }
.buybox .total .amt .unit { font-size: 13px; color: #7aa0ff; font-weight: 500; }
.buybox .btn { padding: 15px 34px; background: #0066ff; color: #fff; font-size: 15.5px; }
.buybox .btn:hover { background: #0052d6; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,102,255,.3); }
.buybox .btn:disabled { background: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* پاپ‌آپ فیلدهای تکمیلی محصول */
.product-fields-modal {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: .25s ease;
}
.product-fields-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.product-fields-backdrop {
    position: absolute; inset: 0; background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.product-fields-dialog {
    position: relative; width: min(520px, 100%); max-height: min(88vh, 680px);
    background: #fff; border-radius: 22px; box-shadow: 0 28px 70px rgba(15, 23, 42, .32);
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(226, 232, 240, .9);
    transform: translateY(16px) scale(.97); transition: transform .25s ease;
}
.product-fields-modal.open .product-fields-dialog { transform: translateY(0) scale(1); }
.product-fields-close {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
    width: 34px; height: 34px; border: none; border-radius: 50%; background: #f1f5f9;
    font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.product-fields-close:hover { background: #e2e8f0; color: var(--ink); }
.product-fields-head {
    text-align: center; padding: 28px 19px 10px;
}
.product-fields-icon {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, #e8f1ff, #f0f7ff); color: #0066ff;
    display: grid; place-items: center;
}
.product-fields-icon svg { width: 28px; height: 28px; }
.product-fields-head h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.product-fields-sub { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.product-fields-body {
    padding: 8px 22px 20px; overflow-y: auto; flex: 1; text-align: center;
}
.product-fields-body .field-block {
    margin-bottom: 20px; max-width: 340px; margin-inline: auto;
}
.product-fields-body .field-block:last-child { margin-bottom: 0; }
.product-fields-body .field-block > label.flabel {
    text-align: center; font-size: 14px; margin-bottom: 10px;
}
.product-fields-body .field-block .fdesc { text-align: center; }
.product-fields-body .field-block .finput,
.product-fields-body .field-block select.finput,
.product-fields-body .field-block textarea.finput {
    width: 100%; max-width: 320px; margin-inline: auto; display: block; text-align: center;
}
.product-fields-body .field-block textarea.finput { text-align: start; }
.product-fields-body .spaicy-variations-pro {
    justify-items: center; max-width: 340px; margin-inline: auto;
}
.product-fields-body .field-block:has(.product-field-picker--rows) {
    max-width: 320px;
}
.product-fields-body .product-field-picker--rows {
    width: 100%;
    max-width: 320px;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
    margin-inline: auto;
}
.product-field-picker--rows { grid-template-columns: 1fr; gap: 10px; }
.product-addon-card--popup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "media content"
        "price price";
    gap: 5px 7px;
    align-items: stretch;
    min-height: 71px;
    padding: 8px 10px 6px;
    text-align: start;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    box-sizing: border-box;
}
.product-addon-card--popup::after {
    top: 7px;
    inset-inline-start: auto;
    inset-inline-end: 8px;
    transform: none;
}
.product-addon-card--popup.selected::after {
    transform: none;
}
.product-addon-card__content {
    grid-area: content;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-inline-end: 18px;
    padding-inline-start: 2px;
    align-self: center;
}
.product-addon-card__media {
    grid-area: media;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 76px;
    align-self: stretch;
    min-height: 100%;
}
.product-addon-card__thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8f0fe;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.product-addon-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-addon-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}
.product-addon-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.product-addon-card__tags .feature-tag {
    font-size: 9px;
    padding: 1px 6px;
    margin: 0;
}
.product-addon-card__desc {
    font-size: 10px;
    color: var(--ink-2);
    line-height: 1.4;
}
.product-addon-card__price {
    grid-area: price;
    margin-top: 0;
    font-size: 11px;
    font-weight: 700;
    text-align: end;
    align-self: end;
    line-height: 1.2;
}
.product-addon-card__stock {
    position: static;
    font-size: 8px;
    padding: 1px 6px;
    white-space: nowrap;
    margin-top: auto;
    align-self: center;
}
.product-field-picker .spaicy-card { cursor: pointer; }
.product-fields-foot {
    padding: 16px 19px 22px; border-top: 1px solid var(--border); background: #fafbfc;
}
.product-fields-foot .btn {
    width: 100%; max-width: 340px; margin-inline: auto; display: flex;
    padding: 13px 18px; font-size: 14px; font-weight: 800;
    border-radius: 12px; border: none; cursor: pointer; transition: .15s;
    align-items: center; justify-content: center; text-align: center;
}
.product-fields-foot .btn { background: #0066ff; color: #fff; }
.product-fields-foot .btn:hover { background: #0052d6; box-shadow: 0 8px 22px rgba(0,102,255,.28); }

.product-fields-body .field-block.renewal-legacy-hidden { display: none !important; }

.renewal-subs-block { max-width: 340px; margin-inline: auto; text-align: center; }
.renewal-subs-message { padding: 8px 0 4px; }
.renewal-subs-message p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.renewal-subs-hint { font-size: 12px !important; color: #94a3b8 !important; }
.renewal-subs-login-btn {
    display: inline-flex; width: 100%; max-width: 320px; justify-content: center;
    padding: 12px 16px; font-size: 14px; font-weight: 800; text-decoration: none;
}
.renewal-subs-list.spaicy-variations-pro {
    max-width: 340px; margin-inline: auto; gap: 12px; justify-items: stretch;
}
.renewal-sub-card.spaicy-card {
    display: flex; flex-direction: column; align-items: stretch; text-align: start;
    padding: 14px 16px 16px; min-height: auto; cursor: pointer;
}
.renewal-sub-card.spaicy-card input[type=radio] {
    position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.renewal-sub-card.spaicy-card::after {
    top: 16px; inset-inline-end: 14px; width: 18px; height: 18px;
}
.renewal-sub-inner { width: 100%; padding-inline-end: 28px; }
.renewal-sub-card .card-head { margin-bottom: 10px; align-items: flex-start; }
.renewal-sub-card .cimg { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; }
.renewal-sub-head-text { flex: 1; min-width: 0; text-align: start; }
.renewal-sub-title { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.55; margin-bottom: 4px; }
.renewal-sub-remaining { font-size: 12px; line-height: 1.6; }
.renewal-sub-meta { display: grid; gap: 8px; margin-top: 2px; }
.renewal-sub-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
    font-size: 12px;
}
.renewal-sub-chip-label { color: #64748b; font-weight: 600; white-space: nowrap; }
.renewal-sub-chip b { color: var(--ink); font-weight: 700; font-size: 12.5px; }
.renewal-sub-card.selected {
    border-color: #0066ff; background: linear-gradient(180deg, #f8fbff, #fff);
    box-shadow: 0 10px 28px rgba(0, 102, 255, .12);
}

@media (max-width: 900px) {
    .product-fields-modal { padding: 10px; align-items: center; justify-content: center; }
    .product-fields-dialog {
        width: 100%; max-height: min(88vh, 680px); border-radius: 18px;
    }
    .product-fields-close { display: none; }
    .product-fields-head { padding: 22px 15px 10px; }
    .product-fields-body { padding-inline: 18px; }
    .product-fields-foot { padding: 12px 18px 16px; }
    .product-fields-foot .btn { max-width: none; padding: 12px 14px; font-size: 13.5px; }
    .renewal-subs-block { max-width: none; }
}
body.fields-modal-open { overflow: hidden; }

/* متای محصول */
.product-meta { margin-top: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.product-meta b { color: var(--ink); }

/* تب‌های پایین */
.ptabs2 { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.ptab2 { background: none; border: none; padding: 13px 24px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ptab2.active { color: #0066ff; border-bottom-color: #0066ff; }
.ppane2 { display: none; }
.ppane2.active { display: block; }
.prose { font-size: 14.5px; line-height: 2.2; color: #2d2d2d; }
.prose img { border-radius: 12px; margin: 10px 0; max-width: 100%; height: auto; }
.prose .r1_iframe_embed,
.prose .wp-block-embed__wrapper {
    position: relative; overflow: hidden; width: 100%; height: auto;
    padding-top: 56.25%; margin: 16px 0; border-radius: 12px;
}
.prose .r1_iframe_embed iframe,
.prose .wp-block-embed__wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.prose iframe {
    display: block; width: 100%; max-width: 100%; min-height: 240px;
    aspect-ratio: 16 / 9; border: 0; border-radius: 12px; margin: 16px 0;
}
.prose video {
    display: block; width: 100%; max-width: 100%; height: auto;
    border-radius: 12px; margin: 16px 0;
}
/* توضیحات محصول: ویدئو مثل GIF — بی‌صدا، لوپ، بدون کنترل و بدون تعامل موس */
.long-desc .prose video,
.long-desc .prose .rich-video--gif {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    cursor: default;
    background: #000;
}
.long-desc .prose video::-webkit-media-controls,
.long-desc .prose video::-webkit-media-controls-enclosure,
.long-desc .prose video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}
.long-desc .prose video::-moz-media-controls {
    display: none !important;
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--ink); margin: 20px 0 10px; text-align: right; }
.prose h2 { font-weight: 800; }
.prose h3 { font-weight: 700; }
.prose h4, .prose h5, .prose h6 { font-weight: 600; }
.prose p, .prose li, .prose blockquote, .prose td, .prose th, .prose dd, .prose figcaption,
.prose span, .prose div, .prose label, .prose strong, .prose b, .prose em, .prose i {
    font-weight: 600;
}
.prose p, .prose li, .prose blockquote, .prose td, .prose dd {
    text-align: justify;
    text-justify: inter-word;
}
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose a { color: #0066ff; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px 12px; }

/* جمع‌شوندهٔ توضیحات */
.prose-collapse { position: relative; max-height: 420px; overflow: hidden; transition: max-height .4s ease; }
.prose-collapse.open { max-height: none; }
.prose-collapse:not(.open)::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); }
.prose-more { display: block; margin: 14px auto 0; background: #f8f8f8; border: 2px dashed #aaa; border-radius: 10px; padding: 11px 24px; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.prose-more:hover { background: #eef; border-color: #666; }

/* ===== کانتینر نظرات: راست = نظرات ، چپ = تصویر+میانگین (استیکی) ===== */
.review-layout { display: grid; grid-template-columns: 1fr 44%; gap: 40px; align-items: start; padding-top: 30px; }
.rl-media { position: sticky; top: 120px; text-align: center; }
/* تصویر هم‌اندازهٔ تصویر بزرگ بالا، وسط‌چین (فاصلهٔ برابر از دو کناره) */
.rl-media .main { position: relative; background: transparent; width: 303px; height: 303px; margin: 0 auto; display: grid; place-items: center; overflow: visible; }
.rl-media .main img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
/* ستارهٔ میانگین بدون پس‌زمینه — فقط ستاره */
.rl-media .avg-box { margin-top: 18px; background: none; border: none; padding: 0; }
.rl-media .avg-box .stars { color: #EABE12; font-size: 30px; letter-spacing: 4px; }
.rl-title { font-size: 22px; font-weight: 700; margin-bottom: 18px; }

/* ===== بخش دیدگاه‌ها ===== */
.reviews-summary { display: flex; align-items: center; gap: 22px; background: var(--surface); border: 2px solid #e8f0fe; border-radius: 14px; padding: 20px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.reviews-summary .big { text-align: center; }
.reviews-summary .big .num { font-size: 40px; font-weight: 800; color: #0066ff; line-height: 1; }
.reviews-summary .big .stars { font-size: 18px; }
.reviews-summary .meta { font-size: 13px; color: var(--ink-2); }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { background: var(--surface); border: 2px solid #e8f0fe; border-radius: 12px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: #0066ff; display: grid; place-items: center; font-weight: 700; }
.review-head .author { font-weight: 700; font-size: 15px; }
.review-head .verified { color: #166534; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.review-head .date { font-size: 12px; color: var(--ink-2); margin-inline-start: auto; }
.review-purchase { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.review-purchase__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    line-height: 1.4;
}
.review-item .rstars { color: #EABE12; font-size: 14px; letter-spacing: 1px; margin-bottom: 6px; }
.review-item .rbody { font-size: 14px; line-height: 1.9; color: #2d2d2d; white-space: pre-line; }
.review-item.rev-hidden { display: none; }
.reviews-more { display: block; width: 100%; margin-top: 14px; background: #f8f8f8; border: 2px dashed #aaa; border-radius: 10px; padding: 12px; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: .2s; }
.reviews-more:hover { background: #eef; border-color: #666; }

/* محصولات مرتبط — کاروسل افقی (باکس‌های جمع‌وجورتر) */
.related-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.related-carousel::-webkit-scrollbar { height: 7px; }
.related-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.related-carousel .prod-card { flex: 0 0 176px; scroll-snap-align: start; }
.related-carousel .prod-thumb { padding: 10px; }
.related-carousel .prod-body { padding: 10px 12px 12px; gap: 6px; }
.related-carousel .prod-body h3 { font-size: 14px; min-height: 2.9em; line-height: 1.6; }
.related-carousel .prod-cat { font-size: 10px; }
.related-carousel .prod-price { font-size: 12.5px; }
.related-carousel .prod-price .from { font-size: 10px; }
.related-carousel .prod-buy { width: 34px; height: 34px; border-radius: 9px; }
.related-carousel .prod-buy svg { width: 18px; height: 18px; }
.carousel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: .15s; }
.carousel-nav button:hover { border-color: #0066ff; color: #0066ff; }
.carousel-nav svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
    .product-top, .review-layout { grid-template-columns: 1fr; gap: 26px; }
    .product-top { max-width: 100%; overflow-x: clip; }
    .gallery { position: static; width: 100%; max-width: 100%; overflow-x: clip; }
    .gallery .gwrap { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
    .gallery-stage {
        width: 100%;
        max-width: min(340px, 100%);
        margin: 0 auto;
        overflow: hidden;
        isolation: isolate;
    }
    .gallery .main {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        overflow: hidden;
    }
    .gallery .main .product-color-halo {
        display: none !important;
    }
    .gallery .thumbs { display: none; }
    /* موبایل: کانتینر نظرات بدون سکشن تصویر و ستاره */
    .review-layout .rl-media { display: none; }
    .product-info { text-align: center; }
    /* موبایل: کارت‌های انتخاب تک‌ستونه تا سرریز نشود */
    .spaicy-variations-pro { grid-template-columns: 1fr; }
    /* موبایل: «سوال دارید؟» زیر توضیحات بلند نمایش داده شود */
    .gallery .gallery-contact { display: none; }
    .mobile-contact {
        display: flex;
        margin-top: 24px;
    }
    .mobile-contact .btns { width: auto; max-width: 100%; }
    .mobile-contact .q { white-space: normal; }
}
@media (max-width: 480px) {
    .spaicy-variations-pro { grid-template-columns: 1fr; }
    .product-info h1 { font-size: 24px; }
}


/* ===== صفحهٔ دسته‌بندی ===== */
/* کانتینر هدر: پدینگ بیرونی نصف (۲۰px → ۱۰px) */
.cat-wide { padding-inline: 10px; }
/* توضیحات ۶۰٪ (col1 راست) ، تصویر ۴۰٪ (col2 چپ) — پدینگ داخلی نصف (۲۶px → ۱۳px) */
.cat-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: center; border-radius: 22px; padding: 13px; margin-top: 6px; }
.cat-hero.no-img { grid-template-columns: 1fr; }
.cat-hero-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: rgba(255,255,255,.4); }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-text h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.cat-count { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.cat-desc { font-size: 14px; line-height: 2; color: var(--ink-2); max-height: 96px; overflow: hidden; position: relative; transition: max-height .4s; }
.cat-desc.open { max-height: 2000px; }
.cat-desc:not(.open)::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 42px; background: linear-gradient(transparent, rgba(255,255,255,.85)); }
.cat-more { margin-top: 10px; background: rgba(255,255,255,.6); border: 1.5px solid var(--glass-brd); border-radius: 10px; padding: 8px 18px; font-family: inherit; font-weight: 700; font-size: 13px; color: var(--primary); cursor: pointer; }
.cat-more:hover { background: #fff; }

.subcats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.subcat { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; transition: .15s; }
.subcat:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.subcat img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.ct-count { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ct-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ct-sort select { height: 40px; border: 1.5px solid var(--border); border-radius: 11px; padding: 0 12px; font-family: inherit; font-size: 13.5px; background: var(--surface); cursor: pointer; }
.cat-empty { text-align: center; padding: 60px 20px; border-radius: 18px; color: var(--ink-2); }
.cat-empty p { margin-top: 10px; }

/* سلول محصول در شبکه (برای نمایش گام‌به‌گام) */
.cat-prod-cell { display: flex; min-width: 0; max-width: 100%; }
.cat-prod-cell > .prod-card { width: 100%; min-width: 0; }

/* دکمهٔ مشاهدهٔ بیشتر */
.load-more { display: block; margin: 30px auto 0; background: var(--primary); color: #fff; border: none; border-radius: 13px; padding: 14px 40px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: .18s; box-shadow: 0 8px 22px rgb(5 74 244 / .25); }
.load-more:hover { background: var(--primary-2); transform: translateY(-2px); }
.load-more:disabled { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 700px) {
    .cat-hero { grid-template-columns: 1fr; gap: 18px; }
    .cat-hero-img { max-width: 300px; margin: 0 auto; }
    .cat-hero-text h1 { font-size: 23px; }
}
/* موبایل: کارت محصول جمع‌وجورتر (ارتفاع کمتر) */
@media (max-width: 560px) {
    .prod-thumb { aspect-ratio: 1 / 1; padding: 5px; }
    .prod-body { padding: 9px 11px 11px; gap: 5px; }
    .prod-body h3 { font-size: 13.5px; min-height: 2.6em; line-height: 1.5; }
    .prod-cat { font-size: 10px; }
    .prod-price { font-size: 12px; }
    .prod-buy { width: 34px; height: 34px; }
    .prod-buy svg { width: 18px; height: 18px; }
}

/* ===== فروشگاه و وبلاگ ===== */
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 20px; padding: 22px 26px; margin-top: 10px; flex-wrap: wrap; }
.store-head h1 { font-size: 26px; font-weight: 700; }
.store-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.store-search { position: relative; flex: 1; max-width: 340px; min-width: 220px; }
.store-search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.store-search input { width: 100%; height: 46px; border: 1.5px solid var(--glass-brd); border-radius: 13px; padding: 0 44px 0 14px; font-family: inherit; font-size: 14px; background: rgba(255,255,255,.6); }
.store-search input:focus { outline: none; border-color: var(--primary); background: #fff; }

/* ===== لندینگ فروشگاه ===== */
.store-page { padding-bottom: clamp(32px, 6vw, 64px); }

.store-hero { padding: clamp(8px, 2vw, 16px) 0 clamp(28px, 5vw, 48px); }
.store-page-title {
    text-align: center; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800;
    color: var(--ink); margin: 0 0 8px; line-height: 1.65;
    letter-spacing: -.02em;
}
.store-page-lead {
    text-align: center; font-size: clamp(13px, 1.6vw, 15px); color: var(--ink-2);
    margin: 0 auto 24px; max-width: 540px; line-height: 1.9;
}

/* اسلایدر بنر */
.store-banner-slider { margin-bottom: 4px; }
.store-slider-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.store-banner-viewport { container-type: inline-size; direction: ltr; }
.store-banner-track { display: flex; gap: clamp(10px, 1.5vw, 16px); will-change: transform; width: max-content; direction: ltr; }
.store-banner-slide { flex: none; width: calc((100cqw - clamp(10px, 1.5vw, 16px)) / 2); display: block; border-radius: clamp(14px, 2vw, 20px); overflow: hidden; }
.store-banner-slide img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.store-slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.store-slider-dot {
    width: 7px; height: 7px; padding: 0; border: none; border-radius: 99px;
    background: #cbd5e1; cursor: pointer; transition: .25s;
}
.store-slider-dot.is-active { width: 22px; background: var(--primary); }
.store-slider-dot:hover { background: var(--primary); opacity: .7; }

.store-perks {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
    margin-top: 20px;
}
.store-perks span {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 99px; padding: 8px 14px;
}
.store-perks svg { width: 16px; height: 16px; color: var(--primary); }

/* بخش‌ها */
.store-section { padding: clamp(28px, 5vw, 52px) 0; }
.store-section:nth-child(even) { background: linear-gradient(180deg, transparent, rgb(5 74 244 / .025) 40%, transparent); }
.store-section--feature + .store-section--feature { padding-top: 0; }

/* زیگزاگ */
.store-zigzag {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 48px); align-items: center;
}
.store-zigzag.is-reverse { direction: ltr; }
.store-zigzag.is-reverse > * { direction: rtl; }
.store-zigzag--feature { grid-template-columns: 1fr 1fr; }

.store-eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 700; color: #c2410c;
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 99px;
    padding: 5px 12px; margin-bottom: 14px; line-height: 1.5;
}
.store-zigzag__title {
    font-size: clamp(21px, 2.6vw, 32px); font-weight: 800; line-height: 1.55;
    margin-bottom: 12px; letter-spacing: -.02em;
}
.store-zigzag__desc {
    font-size: clamp(13.5px, 1.5vw, 15px); color: var(--ink-2);
    line-height: 1.95; margin-bottom: 22px; max-width: 480px;
}
.store-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 148px; padding: 12px 24px; border-radius: 13px;
    background: #7c3aed; color: #fff; font-weight: 700; font-size: 14px;
    transition: .18s;
}
.store-cta-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.store-cta-btn--orange { background: linear-gradient(135deg, #f76707, #e8590c); }
.store-cta-btn--outline { background: var(--primary); }
.store-cta-btn--outline:hover { background: var(--primary-2); }

.store-feature-banner { display: block; border-radius: clamp(14px, 2vw, 20px); overflow: hidden; }
.store-feature-banner img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.store-feature-banner:hover img { transform: scale(1.02); }

/* کاروسل محصول */
.store-zigzag__carousel { min-width: 0; }
.store-prod-viewport {
    container-type: inline-size; direction: ltr;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
}
.store-prod-track { display: flex; gap: clamp(10px, 1.2vw, 14px); will-change: transform; width: max-content; direction: ltr; }
.store-prod-slide { flex: none; width: calc((100cqw - 28px) / 3); min-width: 0; }

/* کارت کاروسل — فقط عکس؛ متن با هاور */
.store-cr-card { display: block; background: none; box-shadow: none; border: none; border-radius: 0; }
.store-cr-card__img {
    position: relative; aspect-ratio: 1; overflow: hidden; background: none;
    border-radius: 0; box-shadow: none;
}
.store-cr-card__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: none; transition: none;
}
.store-cr-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: none; }
.store-cr-card__overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 12px 14px; color: #fff; box-shadow: none;
    background: linear-gradient(to top, rgb(15 23 42 / .9) 0%, rgb(15 23 42 / .45) 42%, transparent 72%);
    opacity: 0; transition: opacity .22s ease;
    pointer-events: none;
}
.store-cr-card:hover .store-cr-card__overlay,
.store-cr-card:focus-visible .store-cr-card__overlay { opacity: 1; }
.store-cr-card__overlay h3 {
    font-size: clamp(12px, 1.3vw, 13.5px); font-weight: 700; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.store-cr-card__price { margin-top: 6px; font-size: 12px; font-weight: 700; color: #93c5fd; }
.store-cr-card__price .from { font-size: 10px; opacity: .85; }

@media (hover: none) {
    .store-cr-card:active .store-cr-card__overlay { opacity: 1; }
}

@media (max-width: 1024px) {
    .store-banner-slide { width: 100cqw; }
    .store-prod-slide { width: calc((100cqw - 14px) / 2); }
}

@media (max-width: 768px) {
    .store-zigzag, .store-zigzag--feature { grid-template-columns: 1fr; gap: 22px; }
    .store-zigzag.is-reverse { direction: rtl; }
    .store-zigzag__content {
        display: flex; flex-direction: column; align-items: center; text-align: center;
    }
    .store-zigzag__desc { max-width: none; }
    .store-zigzag__content .store-cta-btn { margin-inline: auto; width: auto; min-width: 148px; }
    .store-zigzag--feature .store-zigzag__media { order: -1; }
    .store-zigzag.is-reverse .store-zigzag__media { order: -1; }
    .store-prod-slide { width: 100cqw; }
    .store-prod-track { gap: 0; }
    .store-slider-viewport:not(.store-prod-viewport) { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 480px) {
    .store-perks span { font-size: 11.5px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .store-banner-track, .store-prod-track { transition: none !important; }
    .store-feature-banner:hover img { transform: none; }
}

/* چیپ‌های فیلتر دسته */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 16px rgb(5 74 244 / .3); }
.chip span { font-size: 11px; opacity: .8; background: rgba(255,255,255,.25); border-radius: 99px; padding: 1px 7px; }
.chip:not(.active) span { background: var(--bg); }

/* شبکهٔ وبلاگ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.bc-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.blog-card:hover .bc-thumb img { transform: scale(1.05); }
.bc-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.bc-ph svg { width: 48px; height: 48px; }
.bc-cat { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(5,74,244,.92); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bc-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.7; min-height: 3.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-excerpt { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.bc-read { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ===== نوشتهٔ تک ===== */
.blog-post-wrap { margin-bottom: clamp(28px, 4vw, 48px); }
.blog-post-body { display: block; }
.blog-post-body.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(280px, 33%);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}
.blog-post-main { min-width: 0; }
.post { max-width: none; margin: 0; }
.post-head { text-align: start; margin-bottom: 22px; }
.post-cat {
    display: inline-flex; align-items: center;
    color: var(--primary); font-size: 13px; font-weight: 700;
    padding: 4px 12px; border-radius: 99px;
    background: var(--primary-soft); text-decoration: none;
}
.post-cat:hover { background: rgba(5, 74, 244, .14); }
.post-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; line-height: 1.55; margin: 0; }
.post-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    margin-top: 14px; font-size: 13px; color: var(--ink-2);
}
.post-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta__comments { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.post-meta__comments:hover { color: var(--primary); }
.post-cover { border-radius: 20px; overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow); }
.post-cover img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { font-size: 15.5px; line-height: 2.3; text-align: right; }
.post-content h2 { font-size: 22px; font-weight: 800; margin: 26px 0 12px; scroll-margin-top: 95px; text-align: right; }
.post-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; scroll-margin-top: 95px; text-align: right; }
.post-content h4 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; scroll-margin-top: 95px; text-align: right; }
.post-content h5 { font-size: 15px; font-weight: 500; margin: 16px 0 8px; scroll-margin-top: 95px; text-align: right; }
.post-content h6 { font-size: 14px; font-weight: 500; margin: 14px 0 8px; scroll-margin-top: 95px; text-align: right; }
.post-content p, .post-content li, .post-content blockquote { text-align: right; }
.post-content img { border-radius: 14px; margin: 16px auto; }
.post-content ul, .post-content ol { padding-inline-start: 24px; margin: 10px 0; }
.post-content a { color: var(--primary); }
.post-content blockquote { border-inline-start: 4px solid var(--primary); background: var(--primary-soft); padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 14px 0; display: block; overflow-x: auto; }
.post-content td, .post-content th { border: 1px solid var(--border); padding: 9px 12px; }

.blog-post-toc {
    position: sticky; top: 120px;
    border-radius: var(--radius);
    padding: 18px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}
.blog-post-toc > b { display: block; font-size: 14px; margin-bottom: 12px; color: var(--ink); font-weight: 800; }
.blog-post-toc a {
    display: block; padding: 7px 10px; margin-bottom: 2px;
    font-size: 13px; color: var(--ink-2); text-decoration: none;
    border-radius: 10px; border-right: 2px solid transparent;
    transition: all .15s;
}
.blog-post-toc__link--h3 { padding-inline-start: 18px; font-size: 12.5px; }
.blog-post-toc__link--h4 { padding-inline-start: 30px; font-size: 12px; }
.blog-post-toc__link--h5 { padding-inline-start: 42px; font-size: 11.5px; color: var(--muted); }
.blog-post-toc a:hover { background: rgba(5, 74, 244, .06); color: var(--primary); }
.blog-post-toc a.active { background: rgba(5, 74, 244, .09); color: var(--primary); border-right-color: var(--primary); font-weight: 700; }
.blog-post-toc__link--h5.active { color: var(--primary); }

.blog-related-wrap { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(24px, 4vw, 48px); }
.blog-related-wrap .block { padding-top: 0; }

/* ===== نظرات وبلاگ ===== */
.bcmt {
    margin-top: clamp(28px, 4vw, 40px);
    padding-top: clamp(24px, 3vw, 32px);
    border-top: 1px solid var(--border);
}
.bcmt__alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.bcmt__alert--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.bcmt__alert--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bcmt__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.bcmt__head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}
.bcmt__count {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 999px;
}
.bcmt__empty {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink-2);
    font-size: 14px;
}
.bcmt__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.bcmt__item {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.bcmt__item--reply {
    margin-inline-start: clamp(16px, 3vw, 28px);
    background: var(--bg);
}
.bcmt__head .bcmt__author { font-size: 14px; }
.bcmt__head time, .bcmt__date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.bcmt__item > .bcmt__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.bcmt__text {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--ink-2);
    word-break: break-word;
}
.bcmt__reply-btn {
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}
.bcmt__reply-btn:hover { text-decoration: underline; }
.bcmt__replies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.bcmt__form-wrap {
    padding: clamp(18px, 2.5vw, 22px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
}
.bcmt__form-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}
.bcmt__reply-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ink-2);
}
.bcmt__reply-cancel {
    margin-inline-start: 8px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}
.bcmt__form { display: flex; flex-direction: column; gap: 14px; }
.bcmt__row { display: grid; gap: 14px; }
.bcmt__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bcmt__field { display: flex; flex-direction: column; gap: 6px; }
.bcmt__field span { font-size: 13px; font-weight: 700; color: var(--ink); }
.bcmt__field span em { color: #dc2626; font-style: normal; }
.bcmt__field input,
.bcmt__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface);
    transition: border-color .15s;
}
.bcmt__field input:focus,
.bcmt__field textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.bcmt__field textarea { resize: vertical; min-height: 120px; }
.bcmt__captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bcmt__captcha-visual { display: flex; align-items: center; gap: 8px; }
.bcmt__captcha-img {
    height: 52px;
    width: auto;
    max-width: 160px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
}
.bcmt__captcha-refresh {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
}
.bcmt__captcha input[type=text] { flex: 1; min-width: 140px; }
.bcmt__submit { align-self: flex-start; min-width: 140px; justify-content: center; background: var(--primary); color: #fff; }
.bcmt__submit:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 600px) {
    .bcmt__row--2 { grid-template-columns: 1fr; }
    .bcmt__item--reply { margin-inline-start: 12px; }
}

@media (max-width: 900px) {
    .blog-post-body.has-toc { grid-template-columns: 1fr; }
    .blog-post-toc { position: static; max-height: none; order: -1; }
    .blog-post-toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .blog-post-toc a { border-right: none; border: 1px solid var(--border); font-size: 12px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .store-head { flex-direction: column; align-items: stretch; }
    .store-search { max-width: none; }
    .store-page-title { margin-bottom: 16px; }
    .post-head h1 { font-size: 23px; }
}

/* ===== سبد خرید / تسویه / سفارش ===== */
.page-title { font-size: 26px; font-weight: 700; margin: 8px 0 20px; }
.cart-empty, .cart-layout, .checkout-form { margin-top: 6px; }
.cart-empty { text-align: center; padding: 60px 20px; border-radius: 20px; color: var(--ink-2); }
.cart-empty svg.i.cart-empty-ic,
.cart-empty .cart-empty-ic { width: 84px; height: 84px; color: var(--muted); margin-bottom: 12px; }
.cat-empty-ic { color: var(--muted); }
.gallery-ph { color: #cbd5e1; }
.cart-empty p { margin-bottom: 18px; font-size: 15px; }

.cart-layout { display: grid; grid-template-columns: 1fr 374px; gap: 24px; align-items: start; }
.cart-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cart-items { border-radius: 18px; padding: 8px 18px; }
.cart-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.cart-row:last-child { border-bottom: none; }
.cr-thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.5); flex-shrink: 0; }
.cr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cr-info { min-width: 0; }
.cr-name { font-size: 14px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.cr-fields { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.cr-fields span { font-size: 11.5px; color: var(--ink-2); }
.cr-oos { color: var(--danger); font-size: 12px; font-weight: 700; }
.cr-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.cr-qty button { width: 32px; height: 34px; border: none; background: var(--bg); font-size: 17px; cursor: pointer; color: var(--ink); }
.cr-qty button:hover { background: var(--primary-soft); color: var(--primary); }
.cr-qty .q { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.cr-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.cr-remove { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; }
.cr-remove:hover { color: var(--danger); background: var(--danger-soft, #fee2e2); }

.cart-summary { border-radius: 18px; padding: 22px; position: sticky; top: 100px; }
.co-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.cart-summary h3, .co-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.co-pay-box .co-submit { margin-top: 16px; }
.co-rule-msg { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; background: rgba(59,130,246,.1); color: #1d4ed8; font-size: .92rem; line-height: 1.7; }
.cs-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0; }
.cs-row.cs-discount b { color: #16a34a; }

/* باکس کد تخفیف — ستون عریض */
.coupon-panel {
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid rgb(0 102 255 / .12);
    background: linear-gradient(135deg, rgb(255 255 255 / .92), rgb(240 248 255 / .88));
}

.coupon-panel-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.coupon-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    background: linear-gradient(135deg, rgb(0 102 255 / .14), rgb(0 102 255 / .06));
    box-shadow: inset 0 0 0 1px rgb(0 102 255 / .12);
}

.coupon-panel-intro { flex: 1; min-width: 0; }

.coupon-panel-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text);
}

.coupon-panel-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
}

.coupon-applied-tag {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(22 163 74 / .12);
    color: #15803d;
    letter-spacing: .04em;
    direction: ltr;
    flex-shrink: 0;
    align-self: center;
}

.coupon-panel-body {
    padding-top: 2px;
    width: 100%;
}

.coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.checkout-form .coupon-form,
.cart-main .coupon-form {
    grid-template-columns: minmax(0, 75%) minmax(0, 25%);
}

.coupon-input {
    width: 100%;
    min-width: 0;
    grid-column: 1;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.coupon-input::placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .04em;
    opacity: 1;
}

.coupon-input::-webkit-input-placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .04em;
    opacity: 1;
}

.coupon-input::-moz-placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .04em;
    opacity: 1;
}

.coupon-input:-ms-input-placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .04em;
    opacity: 1;
}

.coupon-input:focus {
    outline: none;
    border-color: rgb(0 102 255 / .45);
    box-shadow: 0 0 0 3px rgb(0 102 255 / .12);
}

.coupon-apply {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    height: 46px;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 13px;
    border-radius: 12px;
    justify-content: center;
    box-sizing: border-box;
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgb(22 163 74 / .08);
    border: 1px solid rgb(22 163 74 / .18);
}

.coupon-applied-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coupon-applied-label {
    font-size: 12px;
    color: var(--ink-2);
}

.coupon-save { font-size: 18px; font-weight: 800; color: #15803d; }

.coupon-remove {
    border: 1px solid rgb(0 0 0 / .08);
    background: #fff;
    color: var(--ink-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background .2s, color .2s;
}

.coupon-remove:hover {
    background: var(--danger-soft, #fee2e2);
    color: var(--danger);
    border-color: transparent;
}

.coupon-flash, .coupon-hint {
    font-size: 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
}

.coupon-flash.err, .coupon-hint.err {
    background: rgb(239 68 68 / .08);
    color: #b91c1c;
}

.mc-total.mc-discount b { color: #16a34a; font-size: 13px; }

.cs-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 15px; }
.cs-row.cs-usd { font-size: 13px; color: var(--muted); padding-top: 0; }
.cs-row.cs-usd b { font-size: 14px; color: var(--text); }
.cs-row b, .cs-row.total b { color: var(--primary); font-size: 16px; }
.cs-note, .co-secure { font-size: 12px; color: var(--muted); margin: 10px 0; line-height: 1.8; }
.cs-checkout, .co-submit { width: 100%; justify-content: center; margin-top: 14px; padding: 14px; background: var(--primary); color: #fff; border: none; }
.cs-checkout:hover, .co-submit:hover { background: var(--primary-2); }
.co-submit:disabled { background: var(--muted); cursor: not-allowed; }
.cs-continue { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--primary); font-weight: 600; }

/* تسویه حساب — RTL: راست عریض (خریدار+کوپن) | چپ باریک (سفارش+پرداخت) */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(308px, 374px);
    gap: 24px;
    align-items: start;
}
.co-main {
    grid-column: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.co-side {
    grid-column: 2;
    min-width: 0;
    max-width: 374px;
    width: 100%;
    justify-self: stretch;
}
.co-box { border-radius: 18px; padding: 22px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-grid .form-group { display: flex; flex-direction: column; gap: 6px; }
.co-grid .form-group.full { grid-column: 1 / -1; }
.co-grid label { font-size: 13px; font-weight: 600; }
.co-grid label .req { color: var(--danger); }
.co-grid input, .co-grid textarea { width: 100%; height: 46px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: inherit; font-size: 14px; background: rgba(255,255,255,.6); }
.co-grid textarea { height: auto; padding: 12px 14px; resize: vertical; }
.co-grid input:focus, .co-grid textarea:focus { outline: none; border-color: var(--primary); }
.co-grid input.locked { background: #eceef2; color: #6b7280; cursor: not-allowed; border-color: #d1d5db; opacity: .95; }
.co-verified { font-size: 11px; font-weight: 600; color: #059669; margin-right: 6px; }
/* روش‌های پرداخت — الهام از WooCommerce checkout */
@keyframes coPulseSoft {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.18); }
}
@keyframes coPaySlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pay-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    direction: rtl;
}

.pay-method {
    background: #fcfcfcba;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pay-method-head {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 0.65rem;
    align-items: center;
    padding: 25px 1rem;
    direction: ltr;
}

.pay-method:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(5, 74, 244, 0.15);
    transform: translateY(-2px);
}

.pay-method:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 16px rgba(5, 74, 244, 0.2);
}

.pay-method:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.pay-method input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    opacity: 1;
    z-index: 1;
    overflow: hidden;
    box-shadow: none;
    flex-shrink: 0;
}

.pay-method input[type="radio"]:hover {
    border-color: var(--primary);
}

.pay-method input[type="radio"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    animation: none;
    box-shadow: none;
}

.pay-method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: coPulseSoft 2s ease-in-out infinite;
}

.pay-method-label {
    display: block;
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.pm-head {
    display: flex;
    align-items: center;
    min-width: 0;
}

.pm-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.pm-logo {
    max-height: 36px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.88;
    filter: grayscale(18%);
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.pay-method:hover .pm-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.04);
}

.pay-method:has(input[type="radio"]:checked) .pm-logo {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 2px 8px rgba(5, 74, 244, 0.2));
}

.pay-method:hover .pm-title { color: var(--primary); }

.pm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s ease;
}

.pay-method:has(input[type="radio"]:checked) .pay-method-head {
    padding-bottom: 6px;
}

.payment_box {
    display: none;
    margin: 0;
    padding: 0 1rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    color: #475569;
    background: transparent;
    border: none;
    line-height: 1.7;
    animation: coPaySlideDown 0.3s ease;
}

.pay-method:has(input[type="radio"]:checked) .payment_box {
    display: block;
}

.payment_box .pm-desc {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    color: #64748b;
    font-size: calc(0.875rem - 2px);
    line-height: 1.75;
    text-align: right;
    background: transparent;
}

.payment_box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.payment_box a:hover {
    color: var(--primary-2);
    text-decoration: underline;
}

.pay-method-offline {
    margin-top: 20px !important;
    position: relative;
}

.pay-method-offline::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #cbd5e1 20%, #cbd5e1 80%, transparent 100%);
}

.co-vandar-label { display: block; font-size: 13px; font-weight: 600; margin: 1rem 0 8px; color: #1e293b; text-align: right; }
.payment_box .pm-desc + .co-vandar-label,
.payment_box .pm-desc + .co-vandar-warn { margin-top: 1rem; }
.co-vandar-select {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
.co-vandar-warn {
    background: #fff8e5;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
}
.co-vandar-warn a { color: var(--primary); font-weight: 600; }

.co-vandar-empty {
    margin-top: 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    text-align: right;
}
.co-vandar-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    margin-bottom: 10px;
}
.co-vandar-empty-icon svg { width: 24px; height: 24px; }
.co-vandar-empty-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #92400e;
}
.co-vandar-empty-text {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #a16207;
}
.co-vandar-empty-text strong { color: #92400e; font-weight: 700; }
.co-vandar-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}
.co-vandar-empty-btn:hover {
    background: var(--primary-2);
    transform: translateY(-1px);
}

.co-nogate { color: var(--danger); font-size: 13.5px; }

@media (max-width: 820px) {
    .checkout-page .breadcrumb { padding-block: 9.6px; }
    .checkout-page .page-title { margin: 5px 0 12px; }
    .checkout-page .checkout-layout { gap: 14px; }
    .checkout-page .co-main,
    .checkout-page .co-side { gap: 12px; }
}

@media (max-width: 768px) {
    .pay-methods { gap: 0.75rem; }
    .pay-method { border-radius: 10px; }
    .pay-method-head { padding: 25px 0.9rem; grid-template-columns: 20px minmax(0, 1fr); column-gap: 0.55rem; }
    .pay-method input[type="radio"] { width: 20px; height: 20px; }
    .pm-head { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
    .pm-title-wrap { width: 100%; }
    .pm-logo { max-height: 32px; max-width: 96px; }
    .pm-title { font-size: 0.95rem; }
    .payment_box { font-size: 0.85rem; padding-inline: 0.9rem; }
    .payment_box .pm-desc { font-size: calc(0.82rem - 2px); }
}

@media (max-width: 480px) {
    .pay-method-head { padding-block: 25px; padding-inline: 0.85rem; }
    .payment_box { padding-inline: 0.85rem; }
    .pm-logo { max-height: 28px; max-width: 84px; }
    .pm-title { font-size: 0.9rem; }
}
.co-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; max-height: 320px; overflow-y: auto; }
.co-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info price";
    gap: 10px 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
}
.co-item:last-child { border-bottom: none; padding-bottom: 0; }
.co-item:first-child { padding-top: 0; }
.ci-thumb {
    grid-area: thumb;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.5);
    flex-shrink: 0;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ci-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ci-name { color: var(--ink-2); line-height: 1.55; font-weight: 700; font-size: 12px; word-break: break-word; }
.ci-name b { font-weight: 800; white-space: nowrap; }
.ci-fields { display: flex; flex-direction: column; gap: 2px; }
.ci-fields span { font-size: 10.5px; color: var(--muted); line-height: 1.45; word-break: break-word; }
.ci-fields b { font-weight: 600; color: var(--ink-2); }
.ci-price { grid-area: price; white-space: nowrap; font-weight: 700; font-size: 12px; align-self: start; padding-top: 1px; }

/* نتیجهٔ سفارش */
.order-result { max-width: 560px; margin: 30px auto; border-radius: 22px; padding: 40px 30px; text-align: center; }
.or-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.or-icon svg { width: 44px; height: 44px; color: #fff; }
.or-icon.ok { background: #16a34a; } .or-icon.fail { background: var(--danger); } .or-icon.wait { background: var(--accent); }
.order-result h1 { font-size: 23px; margin-bottom: 8px; }
.order-result > p { color: var(--ink-2); font-size: 14px; }
.or-meta { display: flex; justify-content: center; gap: 22px; margin: 18px 0; font-size: 13.5px; flex-wrap: wrap; }
.or-card { background: var(--primary-soft); border: 1.5px dashed var(--primary); border-radius: 16px; padding: 20px; margin: 18px 0; }
.or-card-title { font-weight: 700; margin-bottom: 8px; }
.or-card-num { font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--primary); }
.or-card-holder { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.or-card p { font-size: 12.5px; margin-top: 10px; line-height: 1.9; }
.or-items { text-align: start; margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.or-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.or-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ===== صفحهٔ تشکر پس از پرداخت موفق ===== */
.thank-page {
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 24px 0 56px;
    overflow: hidden;
}

.thank-wrap {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.thank-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.thank-confetti-piece {
    position: absolute;
    top: -12px;
    left: var(--left);
    width: var(--size);
    height: calc(var(--size) * 1.35);
    background: var(--c);
    opacity: 0;
    border-radius: 2px;
    transform: rotate(var(--rot));
    animation: thankConfettiFall var(--dur) ease-in var(--delay) forwards;
}

@keyframes thankConfettiFall {
    0% { opacity: 0; transform: translateY(0) rotate(var(--rot)) scale(.6); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translateY(105vh) rotate(calc(var(--rot) + 540deg)) scale(1); }
}

.thank-hero {
    border-radius: 24px;
    padding: 36px 28px 30px;
    text-align: center;
    animation: thankFadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
    box-shadow: var(--glass-shadow), 0 0 0 1px rgb(22 163 74 / .12);
}

.thank-check-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 22px;
}

.thank-check-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgb(22 163 74 / .25);
    animation: thankRingPulse 2.4s ease-out infinite;
}

.thank-check-ring--2 {
    animation-delay: .8s;
}

@keyframes thankRingPulse {
    0% { transform: scale(.85); opacity: .9; }
    100% { transform: scale(1.45); opacity: 0; }
}

.thank-check-svg {
    width: 108px;
    height: 108px;
    display: block;
    filter: drop-shadow(0 10px 24px rgb(22 163 74 / .35));
}

.thank-check-circle {
    stroke: #16a34a;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: thankCircleDraw .65s cubic-bezier(.65, 0, .45, 1) .15s forwards;
}

.thank-check-mark {
    stroke: #16a34a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: thankMarkDraw .45s cubic-bezier(.65, 0, .45, 1) .75s forwards;
}

@keyframes thankCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes thankMarkDraw { to { stroke-dashoffset: 0; } }

.thank-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 900;
    line-height: 1.35;
    background: linear-gradient(135deg, #0f172a 10%, #054af4 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: thankFadeUp .7s .2s cubic-bezier(.22, 1, .36, 1) both;
}

.thank-lead {
    margin: 0 auto;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.95;
    color: var(--ink-2);
    animation: thankFadeUp .7s .28s cubic-bezier(.22, 1, .36, 1) both;
}

.thank-lead strong { color: #047857; font-weight: 800; }

.thank-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    animation: thankFadeUp .7s .36s cubic-bezier(.22, 1, .36, 1) both;
}

.thank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
}

.thank-badge--ok {
    background: rgb(22 163 74 / .12);
    color: #15803d;
    border: 1px solid rgb(22 163 74 / .22);
}

.thank-badge--proc {
    background: rgb(5 74 244 / .1);
    color: var(--primary);
    border: 1px solid rgb(5 74 244 / .18);
    animation: thankBadgeGlow 2s ease-in-out infinite;
}

@keyframes thankBadgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgb(5 74 244 / 0); }
    50% { box-shadow: 0 0 18px rgb(5 74 244 / .18); }
}

.thank-card {
    border-radius: 22px;
    padding: 22px 24px;
    animation: thankFadeUp .75s .5s cubic-bezier(.22, 1, .36, 1) both;
}

.thank-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.thank-card-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.thank-order-no {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    direction: ltr;
    letter-spacing: .04em;
}

.thank-meta-label {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.thank-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

.thank-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.thank-contact-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgb(255 255 255 / .55);
    border: 1px solid var(--border);
    text-align: start;
}

.thank-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.thank-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
}
.thank-item--addon {
    padding-inline-start: 12px;
    background: linear-gradient(90deg, rgba(0, 102, 255, .04), transparent);
    border-radius: 10px;
    margin-inline: -4px;
    padding-inline: 8px 4px;
}
.thank-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.thank-item-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thank-item-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    color: #0066ff;
    background: rgba(0, 102, 255, .08);
    border: 1px solid rgba(0, 102, 255, .15);
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 2px;
}

.thank-item:last-child { border-bottom: none; padding-bottom: 0; }

.thank-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: start;
}

.thank-item-name {
    font-weight: 700;
    line-height: 1.55;
    word-break: break-word;
}

.thank-item-qty {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.thank-item-fields {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.55;
}

.thank-item-fields b {
    font-weight: 700;
    color: var(--ink);
}

.thank-item-price {
    white-space: nowrap;
    color: var(--primary);
    font-size: 14px;
}

.thank-totals {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thank-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-2);
}

.thank-total-row b {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

.thank-total-discount b {
    color: #16a34a;
}

.thank-total-final {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.thank-total-final b {
    font-size: 18px;
    color: var(--primary);
}

.thank-guides {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.thank-guides h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    text-align: start;
}

.thank-guide-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid rgb(5 74 244 / .15);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-align: start;
    transition: transform .18s, box-shadow .18s;
}

.thank-guide-link small {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.thank-guide-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(5 74 244 / .12);
}

.thank-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: thankFadeUp .75s .58s cubic-bezier(.22, 1, .36, 1) both;
}

.thank-btn {
    min-width: 180px;
    justify-content: center;
}

@keyframes thankFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .thank-page { padding: 12px 0 40px; }
    .thank-hero { padding: 28px 18px 24px; border-radius: 20px; }
    .thank-card { padding: 18px 16px; }
    .thank-contact { grid-template-columns: 1fr; }
    .thank-actions { flex-direction: column; }
    .thank-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .thank-confetti-piece,
    .thank-check-circle,
    .thank-check-mark,
    .thank-check-ring,
    .thank-badge--proc,
    .thank-hero,
    .thank-title,
    .thank-lead,
    .thank-badges,
    .thank-card,
    .thank-actions {
        animation: none !important;
    }
    .thank-check-circle,
    .thank-check-mark { stroke-dashoffset: 0; }
}

/* Toast */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(50%, 120px); background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 13px; font-size: 14px; font-weight: 600; z-index: 400; box-shadow: 0 12px 40px rgb(0 0 0 / .3); opacity: 0; transition: .3s; pointer-events: none; max-width: min(92vw, 420px); text-align: center; line-height: 1.65; }
.toast.show { transform: translate(50%, 0); opacity: 1; }
.toast.ok { background: var(--success); color: #fff; }
.toast.err { background: var(--danger); color: #fff; border: 1px solid #b91c1c; }

/* پیام‌های flash سراسری (تسویه، سبد، …) */
.site-flash {
    max-width: var(--container);
    margin: 0 auto 16px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
    border: 1px solid transparent;
}
.site-flash.success { background: var(--success-soft); color: #047857; border-color: #a7f3d0; }
.site-flash.error { background: var(--danger-soft); color: #b91c1c; border-color: #fecaca; }
.site-flash.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

@media (max-width: 900px) {
    .container:has(.cart-layout),
    .container.checkout-page {
        padding-inline: 12px;
    }

    .cart-layout,
    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .cart-main,
    .cart-summary,
    .co-main,
    .co-side {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .cart-items,
    .cart-summary,
    .coupon-panel,
    .co-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cart-items,
    .cart-summary,
    .coupon-panel,
    .co-box {
        padding-inline: 16px;
    }

    .cart-items { padding-block: 12px 14px; }
    .cart-summary,
    .coupon-panel,
    .co-box { padding-block: 16px; }

    .co-side {
        position: static;
        max-width: none;
        order: 2;
    }

    .co-main {
        order: 1;
    }

    .cart-main { gap: 14px; }
    .cart-summary, .co-summary { position: static; }
    .co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container:has(.cart-layout),
    .container.checkout-page {
        padding-inline: 10px;
    }

    .cart-row {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        grid-template-areas: 'thumb info info' 'thumb qty price' 'thumb remove price';
        gap: 8px 10px;
        min-width: 0;
    }
    .cr-thumb { grid-area: thumb; width: 60px; height: 60px; }
    .cr-info { grid-area: info; min-width: 0; }
    .cr-qty { grid-area: qty; }
    .cr-price { grid-area: price; align-self: center; white-space: normal; text-align: end; }
    .cr-remove { grid-area: remove; justify-self: start; }
    .coupon-panel-top { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
    .coupon-applied-tag { align-self: flex-start; }
    .coupon-form,
    .checkout-form .coupon-form,
    .cart-main .coupon-form {
        grid-template-columns: 1fr;
    }
    .coupon-input { grid-column: auto; width: 100%; }
    .coupon-apply { grid-column: auto; width: 100%; font-size: 14px; }
    .coupon-applied { flex-direction: column; align-items: stretch; }
    .coupon-remove { width: 100%; text-align: center; }

    .co-item {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 8px 10px;
    }
    .ci-thumb { width: 56px; height: 56px; }
    .ci-price { white-space: normal; text-align: end; }
}

/* منوی موبایل */
.mobile-menu { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .5); }
.mobile-menu .panel {
    position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 280px;
    background: #fff; padding: 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu .panel a { padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.mobile-menu .panel a:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-menu .panel .close { align-self: flex-start; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink-2); }

/* ===== مینی‌سبد: دکمهٔ حذف + باز شدن دستی دراپ‌داون دسکتاپ ===== */
.mc-info { flex: 1; min-width: 0; }
.mc-name { font-size: 13px; font-weight: 700; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.mc-del { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border: none; background: rgba(148,163,184,.14); color: var(--muted); border-radius: 8px; cursor: pointer; transition: .15s; }
.mc-del:hover { background: var(--danger-soft, #fee2e2); color: var(--danger, #ef4444); }
.mc-del.busy { opacity: .45; pointer-events: none; }
.mc-del svg { width: 16px; height: 16px; }
.mini-cart.force-open { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }

/* ===== دکمهٔ افزودن به سبد: حالت لودینگ / افزوده‌شد ===== */
.btn-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; vertical-align: -3px; margin-inline-end: 6px; animation: btnspin .6s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn.loading { opacity: .85; cursor: progress; }
.btn.added { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }

/* ===== پس‌زمینهٔ زندهٔ صفحات سبد و تسویه‌حساب + شیشه‌ای‌تر شدن فیلدها ===== */
.live-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(120deg, #eef3ff 0%, #f6f8fc 50%, #eaf7ff 100%); }
.live-bg span { position: absolute; display: block; border-radius: 50%; filter: blur(60px); opacity: .55; animation: floatBlob 18s ease-in-out infinite; }
.live-bg span:nth-child(1) { width: 420px; height: 420px; background: #6ea8ff; top: -120px; inset-inline-start: -80px; }
.live-bg span:nth-child(2) { width: 360px; height: 360px; background: #ffd27a; bottom: -120px; inset-inline-end: -60px; animation-delay: -6s; }
.live-bg span:nth-child(3) { width: 300px; height: 300px; background: #9be6c9; top: 40%; inset-inline-start: 55%; animation-delay: -11s; }
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.12); } 66% { transform: translate(-30px,25px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .live-bg span { animation: none; } }

/* فیلدهای شیشه‌ای در سبد/تسویه‌حساب */
.co-grid input, .co-grid textarea { background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.6); }
.co-grid input:focus, .co-grid textarea:focus { background: rgba(255,255,255,.7); border-color: var(--primary); }
.pay-method { background: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.55); }

/* ===== پنل کاربری ===== */
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; margin-top: 10px; }
.acc-side { border-radius: 18px; padding: 18px; position: sticky; top: 100px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-brd); margin-bottom: 12px; }
.acc-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2f6bff); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.acc-name { font-weight: 700; font-size: 14.5px; }
.acc-mobile { font-size: 12.5px; color: var(--ink-2); }
.acc-nav { display: flex; flex-direction: column; gap: 3px; }
.acc-nav a { padding: 11px 13px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.acc-nav a:hover { background: rgba(255,255,255,.5); color: var(--primary); }
.acc-nav a.active { background: var(--primary); color: #fff; }
.acc-logout { margin-top: 6px; color: var(--danger, #ef4444) !important; }
.acc-logout:hover { background: var(--danger-soft, #fee2e2) !important; }
.acc-main { min-width: 0; }
.acc-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.acc-sub { font-size: 16px; font-weight: 700; margin: 22px 0 12px; }
.acc-flash { padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.acc-flash.success { background: #ecfdf5; color: #059669; }
.acc-flash.error { background: #fef2f2; color: #dc2626; }
.acc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.acc-stat { border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.acc-stat span { font-size: 13px; color: var(--ink-2); }
.acc-stat b { font-size: 20px; font-weight: 800; color: var(--primary); }
.acc-table { display: flex; flex-direction: column; gap: 8px; }
.acc-order { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 13px; background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--glass-brd); font-size: 13.5px; transition: .15s; }
.acc-order:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.acc-order > span:first-child { font-weight: 700; }
.acc-order .acc-date { color: var(--muted); font-size: 12.5px; }
.acc-order b { margin-inline-start: auto; color: var(--primary); }
.ost { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.ost-processing { background: #dbeafe; color: #1d4ed8; } .ost-completed { background: #dcfce7; color: #15803d; }
.ost-pending, .ost-on_hold { background: #fef3c7; color: #b45309; } .ost-cancelled, .ost-failed, .ost-refunded { background: #fee2e2; color: #b91c1c; }
.acc-empty { color: var(--ink-2); padding: 30px; text-align: center; background: rgba(255,255,255,.4); border-radius: 14px; }
.acc-hint, .acc-meta { color: var(--ink-2); font-size: 13px; line-height: 1.9; margin-bottom: 14px; }
.acc-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.acc-back { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 600; font-size: 13px; }
.acc-items { border-radius: 14px; padding: 8px 18px; }
.acc-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.acc-item:last-child { border-bottom: none; }
.acc-wallet { border-radius: 16px; padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.acc-wallet b { font-size: 24px; font-weight: 800; color: var(--primary); }
.txt-green { color: #16a34a; } .txt-red { color: #dc2626; }
.acc-form { border-radius: 16px; padding: 22px; margin-top: 16px; }
.acc-form h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.acc-row { display: flex; flex-direction: column; gap: 6px; }
.acc-row label { font-size: 13px; font-weight: 600; }
.acc-row input { height: 46px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: inherit; font-size: 14px; background: rgba(255,255,255,.6); }
.acc-row input:focus { outline: none; border-color: var(--primary); }
.acc-row input[readonly] { background: rgba(226,232,240,.5); color: var(--muted); }
.acc-cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.acc-bankcard { border-radius: 16px; padding: 20px; }
.abc-num { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--ink); margin-bottom: 14px; }
.abc-foot { display: flex; justify-content: space-between; align-items: center; }
.abc-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.abc-status.ok { background: #dcfce7; color: #15803d; } .abc-status.wait { background: #fef3c7; color: #b45309; }
.abc-del { background: none; border: none; color: var(--danger, #ef4444); font-size: 12.5px; cursor: pointer; font-family: inherit; }
@media (max-width: 820px) {
    .account-wrap { grid-template-columns: 1fr; }
    .acc-side { position: static; }
    .acc-nav { flex-direction: row; flex-wrap: wrap; }
    .acc-nav a { flex: 1; text-align: center; min-width: 100px; }
    .acc-grid, .acc-cards { grid-template-columns: 1fr; }
}

/* ===== برگه‌های ایستا (لیکوئید گلس) ===== */
.page-wrap { padding: 28px 0 60px; }
.page-hero {
    border-radius: var(--radius);
    padding: 34px 36px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(232, 239, 255, .75), var(--glass-bg));
}
.page-hero h1 { font-size: 27px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.page-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; max-width: 760px; }
.page-updated { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.6); border: 1px solid var(--glass-brd); border-radius: 99px; padding: 4px 14px; }

.page-body { display: block; }
.page-body.has-toc { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.page-toc {
    position: sticky; top: 90px;
    border-radius: var(--radius);
    padding: 18px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.page-toc > b { display: block; font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.page-toc a {
    display: block; padding: 7px 10px; margin-bottom: 2px;
    font-size: 13px; color: var(--ink-2); text-decoration: none;
    border-radius: 10px; border-right: 2px solid transparent;
    transition: all .15s;
}
.page-toc a:hover { background: rgba(5, 74, 244, .06); color: var(--primary); }
.page-toc a.active { background: rgba(5, 74, 244, .09); color: var(--primary); border-right-color: var(--primary); font-weight: 700; }

.page-content {
    border-radius: var(--radius);
    padding: 36px 40px;
    color: var(--ink);
    font-size: 14.5px;
    line-height: 2.15;
    text-align: right;
    min-width: 0;
}
.page-content h2 {
    font-size: 20px; font-weight: 800; color: var(--ink);
    margin: 34px 0 14px; padding-right: 14px;
    border-right: 4px solid var(--primary);
    scroll-margin-top: 95px;
    text-align: right;
}
.page-content h2:first-child, .page-content section:first-child h2 { margin-top: 0; }
.page-content h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; text-align: right; }
.page-content h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; text-align: right; }
.page-content h5, .page-content h6 { font-size: 14px; font-weight: 500; color: var(--ink); margin: 16px 0 8px; text-align: right; }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin: 0 22px 14px 0; }
.page-content li { margin-bottom: 7px; }
.page-content a { color: var(--primary); }
.page-content .text-danger { color: #dc2626; font-weight: 700; }
.page-content section + section { margin-top: 10px; }

/* درباره ما: کارت‌های ویژگی */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 10px; }
.feature-card {
    background: rgba(255,255,255,.55); border: 1px solid var(--glass-brd);
    border-radius: 14px; padding: 18px; text-align: center;
    box-shadow: var(--shadow-sm);
}
.feature-card .fc-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.feature-card b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.9; }
.contact-list { list-style: none; margin: 0 0 10px !important; }
.contact-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: none; }

/* اینماد: هشدار + شبکهٔ نمادها */
.page-alert {
    background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .4);
    border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
}
.page-alert b { color: #b45309; }
.page-alert p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.trust-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(255,255,255,.6); border: 1px solid var(--glass-brd);
    border-radius: 14px; padding: 22px 14px; min-height: 190px; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trust-card img { max-width: 110px; max-height: 130px; object-fit: contain; }
.trust-card span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

/* نقشه سایت */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.sitemap-col { border-radius: var(--radius); padding: 24px; }
.sitemap-col h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sitemap-col ul { list-style: none; }
.sitemap-col li { margin-bottom: 2px; }
.sitemap-col a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; font-size: 13.5px; color: var(--ink-2);
    text-decoration: none; border-radius: 10px; transition: all .15s;
}
.sitemap-col a:hover { background: rgba(5, 74, 244, .06); color: var(--primary); }
.sm-cnt { font-size: 11.5px; color: var(--muted); background: rgba(15,23,42,.05); border-radius: 99px; padding: 2px 9px; }
.sitemap-products { grid-column: 1 / -1; }
.sitemap-products ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 12px; }

@media (max-width: 900px) {
    .page-body.has-toc { grid-template-columns: 1fr; }
    .page-toc { position: static; max-height: none; order: -1; }
    .page-toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .page-toc a { border-right: none; border: 1px solid var(--border); font-size: 12px; }
    .page-content { padding: 24px 20px; }
    .page-hero { padding: 26px 22px; }
    .page-hero h1 { font-size: 22px; }
}

/* ===== ستاره‌های امتیاز (SVG با گوشهٔ نرم + پرشدگی کسری) ===== */
.star-rate { position: relative; display: inline-flex; line-height: 0; direction: rtl; }
.star-rate .sr-track { display: inline-flex; gap: 3px; color: #d7deea; }
.star-rate .sr-fill {
    position: absolute; top: 0; right: 0; display: inline-flex; gap: 3px;
    color: #f5a623; overflow: hidden; white-space: nowrap;
}
.star-rate svg { flex-shrink: 0; filter: drop-shadow(0 1px 1px rgb(15 23 42 / .08)); }
.rating-row .rating-txt { font-size: 13px; color: var(--ink-2); }
.rating-row .rating-txt b { font-size: 15px; color: var(--ink); }
.rl-media .avg-box .avg-num { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.rl-media .avg-box .avg-num b { font-size: 22px; color: var(--ink); }
.prod-rating { display: flex; align-items: center; gap: 6px; margin-top: -2px; }
.prod-rating span { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }

/* ===== متای فیلدهای اضافه در مینی‌سبد ===== */
.mc-fields { display: flex; flex-direction: column; gap: 1px; margin: 2px 0; }
.mc-fields span { font-size: 10.5px; color: var(--ink-2); line-height: 1.7; }
.mc-fields b { font-weight: 600; }

/* افزودنی در مینی‌سبد — فشرده و یک‌خطی */
.mc-addon-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 4px 0 4px 6px;
    border-inline-start: 2px solid rgba(0, 102, 255, .22);
    min-width: 0;
}
.mc-addon-row__thumb {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 102, 255, .12);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.mc-addon-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.mc-addon-row__name {
    flex: 1;
    min-width: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: #0066ff;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-addon-row__name::before {
    content: "+ ";
    font-weight: 700;
    opacity: .75;
}
.mc-addon-row__price {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}

/* افزودنی‌های متصل — سبد و تسویه */
.cart-addon-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 102, 255, .18);
}
.cart-addon-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 102, 255, .04), rgba(0, 102, 255, .02));
    border: 1px solid rgba(0, 102, 255, .12);
}
.cart-addon-item__thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 102, 255, .1);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.cart-addon-item__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cart-addon-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-addon-item__badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #0066ff;
    text-transform: uppercase;
}
.cart-addon-item__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
}
a.cart-addon-item__name:hover { color: #0066ff; }
.cart-addon-item__price {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}
.cart-addon-stack--cart .cart-addon-item {
    padding: 8px 10px;
    border-radius: 12px;
}
.cart-addon-stack--cart .cart-addon-item__thumb { width: 44px; height: 44px; }
.cart-addon-stack--cart .cart-addon-item__name { font-size: 12px; }
.cart-addon-stack--cart .cart-addon-item__price { font-size: 12px; color: #0066ff; }
.cart-addon-stack--checkout .cart-addon-item {
    padding: 7px 9px;
    background: rgba(255, 255, 255, .45);
}
.cart-addon-stack--checkout .cart-addon-item__thumb { width: 40px; height: 40px; }
.cart-addon-stack--checkout .cart-addon-item__name { font-size: 11px; }
.cart-addon-stack--checkout .cart-addon-item__price { font-size: 11px; }

/* ===== محصولات مرتبط: دسکتاپ ۵ ستون با اسکرول افقی ===== */
@media (min-width: 901px) {
    .related-carousel .prod-card { flex: 0 0 calc((100% - 48px) / 5); }
}

/* ===== متن‌های محتوایی: justify به‌جز عناوین ===== */
.product-info .short-desc,
.long-desc .prose,
.post-content {
    text-align: justify;
    text-justify: inter-word;
}
.product-info .short-desc h1,
.product-info .short-desc h2,
.product-info .short-desc h3,
.product-info .short-desc h4,
.product-info .short-desc h5,
.product-info .short-desc h6,
.long-desc .prose h1,
.long-desc .prose h2,
.long-desc .prose h3,
.long-desc .prose h4,
.long-desc .prose h5,
.long-desc .prose h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    text-align: right;
}
.product-info .short-desc h2,
.long-desc .prose h2,
.post-content h2 { font-weight: 800; }
.product-info .short-desc h3,
.long-desc .prose h3,
.post-content h3 { font-weight: 700; }
.product-info .short-desc h4,
.product-info .short-desc h5,
.product-info .short-desc h6,
.long-desc .prose h4,
.long-desc .prose h5,
.long-desc .prose h6,
.post-content h4,
.post-content h5,
.post-content h6 { font-weight: 600; }
.product-info .short-desc p,
.product-info .short-desc li,
.product-info .short-desc blockquote,
.product-info .short-desc td,
.long-desc .prose p,
.long-desc .prose li,
.long-desc .prose blockquote,
.long-desc .prose td,
.post-content p,
.post-content li,
.post-content blockquote,
.post-content td {
    font-weight: 600;
}
.cat-desc { text-align: justify; text-justify: inter-word; }

/* دسکتاپ: سکشن اطلاعات محصول — عرض محتوا */
@media (min-width: 901px) {
    .product-top .product-info { max-width: 88%; margin-inline: auto; }
}

/* ===== تاریخ/زمان یکپارچه: تاریخ چپ · زمان راست ===== */
.fa-dt {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 9.5em;
    direction: ltr;
    unicode-bidi: isolate;
    vertical-align: middle;
}
.fa-dt__date { color: inherit; white-space: nowrap; }
.fa-dt__time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #64748b;
}
.fa-dt__sep { flex: 1 1 8px; min-width: 6px; }
.fa-dt--date-only { min-width: auto; justify-content: flex-start; }
.fa-dt--empty { min-width: auto; color: #94a3b8; }
td .fa-dt { width: 100%; max-width: 11em; }

/* دسکتاپ: فیلدهای متنی/انتخابی اضافه ۶۰٪ عرض */
@media (min-width: 901px) {
    .field-block .finput { width: 60%; }
}
