@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Naskh'; src: url('../fonts/noto-naskh-arabic-arabic-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Naskh'; src: url('../fonts/noto-naskh-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #17120d; --ink-2: #221a13; --ink-3: #3b2f23;
  --ivory: #fbf8f2; --paper: #f5eee2; --sand: #ece2d0; --line: #e7dcc9; --line-2: #d9cab1;
  --text: #2a2119; --muted: #7c6b58; --muted-2: #a08f7a;
  --gold: #b0862a; --gold-deep: #86630f; --gold-soft: #e7cd8e; --gold-pale: #f8efd6;
  --grad-gold: linear-gradient(120deg, #7a5710 0%, #c79a3a 28%, #f2d891 50%, #c79a3a 72%, #8c6614 100%);
  --new: #a87d22; --new-bg: #fbf2dc; --new-ink: #6e500f;
  --used: #995843; --used-bg: #f7e8e1; --used-ink: #6d3929;
  --coin: #1d5847; --coin-bg: #e1eee8; --coin-ink: #134034;
  --ok: #2c7a4b; --ok-bg: #e6f3eb; --warn: #9a5c00; --warn-bg: #fdf1dc; --err: #a8261e; --err-bg: #fbe9e7;
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(48, 32, 10, .06);
  --shadow: 0 1px 2px rgba(48, 32, 10, .05), 0 10px 30px -12px rgba(48, 32, 10, .18);
  --shadow-lg: 0 2px 6px rgba(48, 32, 10, .06), 0 24px 60px -20px rgba(48, 32, 10, .35);
  --font: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  --display: 'Naskh', 'Vazirmatn', serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.75; color: var(--text); background: var(--ivory);
  font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; margin: 1.2rem 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.goldtext { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--gold { border: 0; color: #2b1e05; background: linear-gradient(135deg, #d9b25b, #f1d68f 45%, #c99a36); box-shadow: 0 6px 18px -8px rgba(176, 134, 42, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold:hover { box-shadow: 0 10px 26px -10px rgba(176, 134, 42, 1), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--dark { background: var(--ink); color: #f6e7c1; border-color: var(--ink); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: #f4e6c4; border-color: rgba(231, 205, 142, .45); }
.btn--ghost-light:hover { background: rgba(231, 205, 142, .12); }
.btn--text { background: none; border-color: transparent; color: var(--muted); }
.btn--text:hover { color: var(--gold-deep); border-color: transparent; }
.btn--lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; position: relative; color: var(--ink); }
.iconbtn:hover { background: var(--paper); }
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn--muted { color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #e9dcc0; font-size: .82rem; border-bottom: 1px solid #2f251b; }
.ticker__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 38px; overflow-x: auto; scrollbar-width: none; }
.ticker__inner::-webkit-scrollbar { display: none; }
.ticker__list { -webkit-mask-image: linear-gradient(270deg, #000 92%, transparent); mask-image: linear-gradient(270deg, #000 92%, transparent); padding-inline-end: 2rem !important; display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.ticker__list li { display: flex; gap: .45rem; align-items: baseline; }
.t-label { color: #a8977d; }
.ticker__list b { color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__unit { color: #8b7b63; white-space: nowrap; margin-inline-start: auto; }
.status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-weight: 500; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { color: #7fd3a0; }
.status--live .dot { box-shadow: 0 0 0 0 rgba(127, 211, 160, .6); animation: pulse 2s infinite; }
.status--stale { color: #f2b55e; }
.status--none { color: #c7b79d; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,211,160,.55); } 70% { box-shadow: 0 0 0 8px rgba(127,211,160,0); } 100% { box-shadow: 0 0 0 0 rgba(127,211,160,0); } }
@media (prefers-reduced-motion: reduce) { .status--live .dot { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 242, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.header__menu { display: inline-grid; }
.header__tools { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.logo__tag { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.logo--sm .logo__name { font-size: 1.35rem; }
.logo--light .logo__tag { color: #a8977d; }
.mainnav { display: none; }
.search { display: none; position: relative; }
.search input { width: 260px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding-inline: 1rem 2.8rem; transition: border-color .2s, box-shadow .2s, width .25s; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 134, 42, .14); }
.search button { position: absolute; inset-inline-end: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; cursor: pointer; }
.search button .ic { width: 18px; height: 18px; }
.search--block { display: block; margin: 1rem 0; }
.search--block input { width: 100%; }
.cartbtn .badge-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ivory); }

@media (min-width: 1040px) {
  .header__menu { display: none; }
  .mainnav { display: flex; align-items: stretch; gap: .2rem; margin-inline-start: 1.2rem; align-self: stretch; }
  .search { display: block; }
}
.mainnav__item { position: relative; display: flex; }
.mainnav__link { display: flex; align-items: center; gap: .45rem; padding: 0 .9rem; font-weight: 600; font-size: .95rem; color: var(--ink-3); position: relative; }
.mainnav__link .ic { width: 18px; height: 18px; color: var(--muted-2); transition: color .2s; }
.mainnav__link::after { content: ''; position: absolute; inset-inline: .9rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.mainnav__item:hover .mainnav__link::after, .mainnav__item.is-active .mainnav__link::after { transform: scaleX(1); }
.mainnav__item--new .mainnav__link .ic { color: var(--new); }
.mainnav__item--used .mainnav__link .ic { color: var(--used); }
.mainnav__item--coin .mainnav__link .ic { color: var(--coin); }
.mainnav__item--used .mainnav__link::after { background: var(--used); }
.mainnav__item--coin .mainnav__link::after { background: var(--coin); }
.mega { position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  display: grid; gap: .1rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.mainnav__item:hover .mega, .mainnav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; font-size: .92rem; }
.mega a:hover { background: var(--paper); color: var(--gold-deep); }
.mega a .ic { color: var(--gold); }
.mega__all { font-weight: 700; border-bottom: 1px dashed var(--line); border-radius: 10px 10px 0 0 !important; margin-bottom: .2rem; }

/* ---------- Drawer ---------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(23, 18, 13, .5); animation: fade .2s; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 360px); background: var(--ivory); padding: 1rem 1.1rem 2rem; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slidein .25s ease-out; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__group { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.drawer__section { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; }
.drawer__group--new .drawer__section .ic { color: var(--new); }
.drawer__group--used .drawer__section .ic { color: var(--used); }
.drawer__group--coin .drawer__section .ic { color: var(--coin); }
.drawer__cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.drawer__cats a { padding: .3rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; }
.drawer__link { display: flex; align-items: center; gap: .55rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #f3e8cf; background:
  radial-gradient(60% 80% at 15% 20%, rgba(199, 154, 58, .28), transparent 60%),
  radial-gradient(50% 60% at 90% 90%, rgba(199, 154, 58, .14), transparent 60%),
  linear-gradient(160deg, #1d160f, #120d09 70%); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23e7cd8e' stroke-width='.8'%3E%3Cpath d='M42 6 52 32 78 42 52 52 42 78 32 52 6 42 32 32z'/%3E%3Cpath d='M42 22 47 37 62 42 47 47 42 62 37 47 22 42 37 37z'/%3E%3Ccircle cx='42' cy='42' r='4'/%3E%3Cpath d='M0 0 6 6M84 0 78 6M0 84 6 78M84 84 78 78'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero__inner { display: grid; gap: 2.2rem; padding-block: 3.2rem 3.6rem; align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.15fr .85fr; padding-block: 5rem 5.4rem; gap: 4rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-soft); font-size: .88rem; letter-spacing: .04em; margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-soft); }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.35; color: #fbf3e0; margin-bottom: 1.1rem; }
.hero__lead { font-size: 1.06rem; color: #cdbfa5; max-width: 34em; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.ratecard { background: linear-gradient(170deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(231, 205, 142, .25); border-radius: var(--r); padding: 1.4rem; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.ratecard__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .9rem; color: #d9cbaf; margin-bottom: 1.1rem; }
.ratecard__head > span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.ratecard__main { display: flex; flex-direction: column; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(231, 205, 142, .18); }
.ratecard__label { color: #b6a58a; font-size: .9rem; }
.ratecard__value b { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; font-variant-numeric: tabular-nums; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ratecard__value small { color: #b6a58a; font-size: .95rem; }
.ratecard__list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.ratecard__list li { display: flex; flex-direction: column; font-size: .82rem; color: #a8977d; }
.ratecard__list b { color: #f0e2c0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ratecard__empty { color: #d9c49c; margin: 0; }
.ratecard__foot { display: flex; gap: .45rem; align-items: center; font-size: .78rem; color: #8f7f67; margin: 1.1rem 0 0; }

/* ---------- Section cards ---------- */
.sections { display: grid; gap: 1rem; margin-top: -1.8rem; position: relative; z-index: 2; }
@media (min-width: 820px) { .sections { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.scard { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scard__icon { grid-row: span 2; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.scard__icon .ic { width: 28px; height: 28px; }
.scard__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.scard__text { display: block; color: var(--muted); font-size: .88rem; line-height: 1.7; margin-top: .2rem; }
.scard__count { grid-column: 2; display: inline-flex; align-items: center; gap: .3rem; margin-top: .7rem; font-size: .85rem; font-weight: 700; }
.scard__count .ic { width: 16px; height: 16px; transition: transform .2s; }
.scard:hover .scard__count .ic { transform: translateX(-4px); }
.scard--new .scard__icon { background: var(--new-bg); color: var(--new); } .scard--new .scard__count { color: var(--new-ink); }
.scard--used .scard__icon { background: var(--used-bg); color: var(--used); } .scard--used .scard__count { color: var(--used-ink); }
.scard--coin .scard__icon { background: var(--coin-bg); color: var(--coin); } .scard--coin .scard__count { color: var(--coin-ink); }
.scard--new { border-top: 3px solid var(--new); } .scard--used { border-top: 3px solid var(--used); } .scard--coin { border-top: 3px solid var(--coin); }

/* ---------- Blocks ---------- */
.block { padding-block: 2.6rem 1rem; }
.block__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.85rem); position: relative; padding-inline-start: 1rem; }
.title::before { content: ''; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 4px; background: var(--grad-gold); }
.title--light { color: #f5ead1; }
.title--page { margin: .4rem 0 1.4rem; }
.more { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; font-size: .92rem; color: var(--gold-deep); white-space: nowrap; }
.more .ic { width: 16px; height: 16px; }
.more--light { color: var(--gold-soft); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1rem; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.3rem .6rem 1.1rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat__icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); background: radial-gradient(circle at 30% 25%, #fff, var(--gold-pale) 70%); border: 1px solid #efdcaa; }
.cat__icon .ic { width: 32px; height: 32px; stroke-width: 1.3; }
.band--coin { margin-top: 2.6rem; background: radial-gradient(70% 120% at 85% 0%, rgba(231, 205, 142, .14), transparent 60%), linear-gradient(160deg, #164a3c, #0f3329); padding-bottom: 2.2rem; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-block: 3rem 3.5rem; }
.trust__item { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.trust__item > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #fff; color: var(--gold-deep); border: 1px solid var(--line); }
.trust__item b { display: block; font-size: .98rem; }
.trust__item span { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 640px) { .pgrid { gap: 1.1rem; } }
@media (min-width: 880px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; } }
.listing .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .listing .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #e4cf9c; }
.pcard__media { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, #faf5ec, #f2e9d9); overflow: hidden; }
.pcard__media img, .pcard__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__alt { opacity: 0; }
.pcard:hover .pcard__alt { opacity: 1; }
.pcard__out { position: absolute; inset-inline-start: .7rem; top: .7rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(23, 18, 13, .78); color: #fff; font-size: .78rem; font-weight: 600; }
.pcard.is-out .pcard__media img, .pcard.is-out .pcard__media .ph { filter: grayscale(.7); opacity: .7; }
.pcard__body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .9rem 1rem; flex: 1; }
@media (min-width: 640px) { .pcard__body { padding: 1rem 1.1rem 1.15rem; } }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.pcard__cat { font-size: .78rem; color: var(--muted); }
.pcard__title { font-size: .98rem; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a:hover { color: var(--gold-deep); }
.pcard__specs { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .82rem; color: var(--muted); }
.pcard__specs span { display: inline-flex; align-items: center; gap: .3rem; }
.pcard__specs .ic { width: 15px; height: 15px; }
.pcard .price { margin-top: auto; padding-top: .55rem; border-top: 1px dashed var(--line); }
.sbadge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.sbadge .ic { width: 13px; height: 13px; }
.sbadge--new { background: var(--new-bg); color: var(--new-ink); }
.sbadge--used { background: var(--used-bg); color: var(--used-ink); }
.sbadge--coin { background: var(--coin-bg); color: var(--coin-ink); }
.ph { width: 100%; height: 100%; }

.price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price__num { font-size: 1.12rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price__unit { font-size: .8rem; color: var(--muted); }
.price--na .price__na { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price--xl .price__num { font-size: clamp(1.7rem, 4vw, 2.2rem); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price--xl .price__unit { font-size: 1rem; }
.price--xl.price--na .price__na { font-size: 1.05rem; color: var(--warn); }
.price.is-updated .price__num { animation: flash 1.2s; }
@keyframes flash { 0% { filter: brightness(1.5); } 100% { filter: none; } }

/* ---------- Page head, chips, listing ---------- */
.pagehead { background: linear-gradient(180deg, var(--paper), var(--ivory)); border-bottom: 1px solid var(--line); padding-block: 1rem 1.4rem; }
.pagehead--new { background: linear-gradient(180deg, #f9eed2, var(--ivory)); }
.pagehead--used { background: linear-gradient(180deg, #f5e3da, var(--ivory)); }
.pagehead--coin { background: linear-gradient(180deg, #dcebe4, var(--ivory)); }
.pagehead__row { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.pagehead__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; color: var(--gold-deep); }
.pagehead--used .pagehead__icon { color: var(--used); } .pagehead--coin .pagehead__icon { color: var(--coin); }
.pagehead__icon .ic { width: 30px; height: 30px; }
.pagehead__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.pagehead__lead { color: var(--muted); margin: .2rem 0 0; max-width: 46em; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: .6rem 0; font-size: .84rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .3rem; }
.crumbs .ic { width: 14px; height: 14px; color: var(--muted-2); }
.crumbs a:hover { color: var(--gold-deep); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: 1.1rem 0 .2rem; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; transition: all .2s; }
.chip .ic { width: 17px; height: 17px; color: var(--gold); }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--ink); color: #f6e7c1; border-color: var(--ink); }
.chip.is-active .ic { color: var(--gold-soft); }
.pagehead--used .chip.is-active { background: var(--used-ink); border-color: var(--used-ink); }
.pagehead--coin .chip.is-active { background: var(--coin-ink); border-color: var(--coin-ink); }

.listing { display: grid; gap: 1.4rem; padding-block: 1.6rem 3rem; }
@media (min-width: 960px) { .listing { grid-template-columns: 270px 1fr; align-items: start; } .listing__side { position: sticky; top: 92px; } }
.filterbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.filterbox summary { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
.filterbox summary::-webkit-details-marker { display: none; }
.filters { display: grid; gap: 1rem; padding: 0 1.1rem 1.1rem; }
.filters__group { border: 0; padding: .9rem 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.filters__group legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: .4rem; float: right; width: 100%; }
.range { display: flex; gap: .5rem; align-items: center; }
.range label { flex: 1; min-width: 0; }
.range input { width: 100%; min-width: 0; }
.listing > *, .product > *, .cartlayout > *, .checkout > * { min-width: 0; }
.filters input:not([type=radio]):not([type=checkbox]) { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 .8rem; background: var(--ivory); }
.filters input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 134, 42, .14); }
.radio { display: flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }
.radio input { accent-color: var(--gold); width: 17px; height: 17px; }
.switch { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; border-top: 1px solid var(--line); padding-top: .9rem; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 40px; height: 24px; border-radius: 12px; background: var(--sand); position: relative; transition: background .2s; flex: none; }
.switch__ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--gold); }
.switch input:checked + .switch__ui::after { transform: translateX(-16px); }
.switch input:focus-visible + .switch__ui { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.filters__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.toolbar__count { font-weight: 600; color: var(--muted); }
.sorts { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.sorts a { padding: .35rem .85rem; border-radius: 999px; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.sorts a:hover { color: var(--ink); }
.sorts a.is-active { background: var(--paper); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.pager a, .pager__cur, .pager__gap { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pager a:hover { border-color: var(--gold); }
.pager__cur { background: var(--ink); color: #f6e7c1; border-color: var(--ink); }
.pager__gap { border: 0; background: none; }

/* ---------- Empty / alerts ---------- */
.empty { text-align: center; padding: 3.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #fff, var(--gold-pale) 70%); color: var(--gold-deep); border: 1px solid #efdcaa; margin-bottom: .6rem; }
.empty__icon .ic { width: 38px; height: 38px; stroke-width: 1.3; }
.empty h2 { font-family: var(--display); font-size: 1.4rem; }
.empty p { color: var(--muted); max-width: 30em; }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1.1rem; border: 1px solid; font-size: .93rem; }
.alert > .ic { width: 22px; height: 22px; margin-top: .15rem; }
.alert p { margin: 0 0 .4rem; }
.alert strong { display: block; margin-bottom: .2rem; }
.alert--warn { background: var(--warn-bg); border-color: #f1d3a0; color: #5e3a00; }
.alert--error { background: var(--err-bg); border-color: #f0c2bd; color: #6e1a14; }
.alert--ok { background: var(--ok-bg); border-color: #bfe0cb; color: #1d5233; }
.alert--info { background: #eef3fa; border-color: #cddcf0; color: #23426b; }
.changes { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.changes li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.changes li > span { font-weight: 600; }
.changes s { color: var(--muted); }
.changes .ic { width: 15px; height: 15px; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 1.6rem; padding-bottom: 2rem; }
@media (min-width: 960px) { .product { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; } .gallery { position: sticky; top: 92px; } }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #faf5ec, #f0e6d4); border: 1px solid var(--line); }
.gallery__main img, .gallery__main .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery__thumb { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--paper); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--gold); opacity: 1; }
.pinfo__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: .6rem 0 1rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 0 0 1.3rem; }
.specs div { padding: .7rem .9rem; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.specs dt { font-size: .78rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.buybox { padding: 1.3rem; border-radius: var(--r); background: #fff; border: 1px solid #ead9b0; box-shadow: var(--shadow); margin-bottom: 1.4rem; position: relative; overflow: hidden; }
.buybox::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-gold); }
.buybox__price { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.1rem; }
.buybox__label { font-size: .85rem; color: var(--muted); }
.buybox__note { display: flex; align-items: flex-start; gap: .4rem; font-size: .8rem; color: var(--muted); }
.buybox__note .ic { width: 16px; height: 16px; margin-top: .2rem; }
.buybox__form { display: flex; gap: .7rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ivory); height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-3); border-radius: 999px; }
.qty button:hover { color: var(--gold-deep); }
.qty button .ic { width: 18px; height: 18px; }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 42px; }
.qty--sm button { width: 36px; }
.qty--sm input { width: 34px; font-size: .95rem; }
.stockline { display: flex; align-items: center; gap: .4rem; font-size: .86rem; margin: .9rem 0 0; font-weight: 600; }
.stockline .ic { width: 17px; height: 17px; }
.stockline--ok { color: var(--ok); }
.stockline--na { color: var(--warn); }
.prose h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: .5rem; }
.prose p { color: #4a3d30; }
.note { display: flex; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--paper); font-size: .86rem; color: var(--muted); margin-top: 1rem; }
.note .ic { width: 22px; height: 22px; color: var(--gold-deep); }
.note p { margin: 0; }

/* ---------- Cart & checkout ---------- */
.cartlayout, .checkout { display: grid; gap: 1.4rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .cartlayout, .checkout { grid-template-columns: 1fr 360px; align-items: start; } .summary { position: sticky; top: 92px; } }
.cartlist { display: grid; gap: .8rem; }
.cline { display: grid; grid-template-columns: 84px 1fr; gap: .4rem 1rem; padding: .9rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); align-items: center; }
@media (min-width: 720px) { .cline { grid-template-columns: 96px 1fr auto auto; gap: 1.2rem; } }
.cline.has-issue { border-color: #f1d3a0; background: #fffaf1; }
.cline__img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--paper); grid-row: span 2; }
@media (min-width: 720px) { .cline__img { width: 96px; height: 96px; grid-row: auto; } }
.cline__img img, .cline__img .ph { width: 100%; height: 100%; object-fit: cover; }
.cline__title { font-size: 1rem; font-weight: 600; }
.cline__specs { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .82rem; color: var(--muted); align-items: center; margin-top: .2rem; }
.cline__issue { display: flex; align-items: center; gap: .3rem; color: var(--warn); font-size: .84rem; font-weight: 600; margin: .3rem 0 0; }
.cline__issue .ic { width: 16px; height: 16px; }
.cline__qty { display: flex; align-items: center; gap: .3rem; }
.cline__price { display: flex; flex-direction: column; align-items: flex-end; text-align: left; grid-column: 2; }
@media (min-width: 720px) { .cline__price { grid-column: auto; min-width: 150px; } }
.cline__unit { font-size: .78rem; color: var(--muted); }
.cline__price b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.summary { padding: 1.3rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .8rem; }
.summary__title { font-family: var(--display); font-size: 1.25rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.summary__total { padding-top: .8rem; border-top: 1px dashed var(--line-2); font-size: 1.02rem; }
.summary__total b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.summary__note { display: flex; gap: .45rem; font-size: .8rem; color: var(--muted); margin: 0; }
.summary__note .ic { width: 16px; height: 16px; margin-top: .25rem; }
.qlines { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.qlines li { display: flex; justify-content: space-between; gap: .8rem; }
.qlines small { color: var(--muted); }
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .5rem; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .86rem; font-weight: 600; }
.steps li::before { content: counter(s, persian); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: .8rem; }
.steps .is-done { color: var(--ok); } .steps .is-done::before { background: var(--ok); color: #fff; }
.steps .is-current { background: var(--ink); color: #f6e7c1; } .steps .is-current::before { background: var(--gold); color: #fff; }
.panel { padding: 1.3rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); margin-bottom: 1.1rem; }
.panel__title { display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; margin-bottom: 1rem; }
.panel__title .ic { color: var(--gold-deep); }
.fields { display: grid; gap: .9rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ivory); padding: .7rem .9rem; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 134, 42, .14); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field__error { color: var(--err); font-size: .82rem; }
.orderhead { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); margin: 1.6rem 0 1.1rem; }
.orderhead.is-good { background: linear-gradient(135deg, #f0f8f2, #fff); border-color: #c7e3d1; }
.orderhead__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); flex: none; }
.orderhead.is-good .orderhead__icon { background: var(--ok); color: #fff; }
.orderhead__icon .ic { width: 28px; height: 28px; }
.orderhead h1 { font-family: var(--display); font-size: 1.45rem; }
.orderhead p { margin: 0; color: var(--muted); }
.olines { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .8rem; }
.olines li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.olines li div { display: flex; flex-direction: column; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; border-inline-start: 2px solid var(--line); padding-inline-start: 1rem; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: calc(-1rem - 7px); top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.contactlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contactlist li { display: flex; gap: .6rem; align-items: center; }
.contactlist .ic { color: var(--gold-deep); }
.prose-page { padding-block: 1.6rem 3rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #bfae92; margin-top: 2rem; }
.footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer__brand p { margin-top: 1rem; font-size: .9rem; max-width: 26em; }
.footer__title { color: #f1e3c2; font-size: .98rem; margin-bottom: .8rem; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold-soft); }
.footer__contact li { display: flex; gap: .5rem; align-items: center; }
.footer__contact .ic { color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; border-top: 1px solid #2f251b; padding-block: 1.1rem 1.4rem; font-size: .8rem; color: #8b7b63; }
