/* ==========================================================================
   مریوان کالا — قالب فروشگاهی کامل
   طراحی و پیاده‌سازی: گروه فنی مهندسی زرین هور — zarrinhoor.biz
   --------------------------------------------------------------------------
   فهرست:
   01 توکن‌ها         02 پایه            03 اجزای عمومی (دکمه، فرم، برچسب...)
   04 هدر و منو       05 کشوها و نوتیف   06 کارت کالا و ریل
   07 صفحه اصلی       08 فروشگاه         09 صفحه محصول
   10 سبد و پرداخت     11 ورود            12 حساب کاربری
   13 صفحات محتوایی    14 فوتر            15 واکنش‌گرا
   ========================================================================== */

/* ---------- 01 توکن‌ها ---------- */
:root {
  color-scheme: light;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --well: #F6F7F9;
  --ink: #12161F;
  --ink-2: #3A4250;
  --muted: #727A88;
  --faint: #A3AAB6;
  --line: #E5E8EE;
  --line-2: #D6DBE3;
  --blue: #1E4FC2;
  --blue-ink: #0F2E78;
  --blue-50: #EEF3FD;
  --red: #E0202E;
  --red-deep: #B3121F;
  --red-50: #FDEDEE;
  --gold: #F2A51A;
  --green: #0E9F6E;
  --green-50: #E7F7F0;
  --amber: #C97A06;
  --amber-50: #FFF5E0;

  --f: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1320px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --lift: 0 1px 2px rgba(18, 22, 31, .04), 0 12px 32px -12px rgba(18, 22, 31, .16);
  --pop: 0 24px 60px -20px rgba(18, 22, 31, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 0px;
}

/* ---------- 02 پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.8 var(--f); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.page { padding-block: 22px 0; }

/* ---------- 03 اجزای عمومی ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding-inline: 24px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--blue); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-ink); }
.btn--ghost { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--soft { background: var(--well); color: var(--ink); }
.btn--soft:hover { background: var(--line); }
.btn--sm { height: 40px; padding-inline: 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn--lg { height: 56px; font-size: 16px; }
.btn--block { width: 100%; }

.round { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; transition: border-color .2s, background .2s, color .2s; }
.round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round .i { width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.chip--blue { background: var(--blue-50); color: var(--blue); box-shadow: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--green { background: var(--green-50); color: var(--green); }
.pill--blue { background: var(--blue-50); color: var(--blue); }
.pill--amber { background: var(--amber-50); color: var(--amber); }
.pill--red { background: var(--red-50); color: var(--red); }
.pill--grey { background: var(--well); color: var(--muted); }

.tag { height: 24px; padding-inline: 8px; border-radius: 7px; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.tag--red { background: var(--red); color: #fff; }
.tag--soft { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.off { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding-inline: 8px; border-radius: 8px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; }

.box { background: var(--surface); border-radius: var(--r-lg); }
.box--pad { padding: 24px; }
.box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.box__head h2, .box__head h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }

/* فرم */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field__label small, .field > label small { color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 50px; padding-inline: 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 14.5px; }
.textarea { height: auto; min-height: 120px; padding-block: 12px; resize: vertical; line-height: 1.8; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23727A88' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input.ltr { text-align: left; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__err { font-size: 12.5px; color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); user-select: none; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check__count { margin-right: auto; font-size: 12px; color: var(--faint); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(-18px); }

/* انتخاب کارتی (روش ارسال/پرداخت/آدرس) */
.option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.option:hover { border-color: var(--line-2); }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { margin-top: 3px; }
.option__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.option__title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.option__desc { font-size: 13px; color: var(--muted); }
.option__side { font-size: 14px; font-weight: 700; white-space: nowrap; }
.option__side.free { color: var(--green); }
.option__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--well); flex-shrink: 0; }
.option__logo .i { width: 24px; height: 24px; }
.options { display: grid; gap: 10px; }

/* شمارنده تعداد */
.qty { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--blue); }
.qty button .i { width: 18px; height: 18px; }
.qty output, .qty input { width: 36px; text-align: center; font-weight: 800; font-size: 15px; border: 0; background: none; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }

/* امتیاز */
.rate { display: inline-flex; align-items: center; gap: 3px; }
.rate .i { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; }
.stars .i.is-off { fill: var(--line-2); stroke: var(--line-2); }

/* مسیر صفحه */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--blue); }
.crumbs .i { width: 14px; height: 14px; color: var(--faint); }
.crumbs [aria-current] { color: var(--ink-2); }

/* تب */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.tabs button, .tabs a { height: 34px; padding-inline: 14px; border-radius: 9px; font-size: 13.5px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs [aria-selected="true"] { background: var(--ink); color: #fff; }

/* آکاردئون */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .3s var(--ease); color: var(--muted); }
.acc[open] summary .i { transform: rotate(45deg); color: var(--ink); }
.acc__body { padding: 0 0 20px; color: var(--ink-2); font-size: 14.5px; max-width: 72ch; }
.acc__body p { margin: 0 0 10px; }

/* مراحل خرید */
.steps { display: flex; align-items: center; gap: 0; list-style: none; margin: 0 0 24px; padding: 18px 24px; background: var(--surface); border-radius: var(--r-lg); counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; counter-increment: s; }
.steps li::before { content: counter(s, persian); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-weight: 800; flex-shrink: 0; background: var(--surface); }
.steps li::after { content: ""; flex: 1; height: 2px; background: var(--line); margin-inline: 8px; border-radius: 2px; }
.steps li:last-child { flex: 0 0 auto; }
.steps li:last-child::after { display: none; }
.steps .is-done { color: var(--ink); }
.steps .is-done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.steps .is-done::after { background: var(--green); }
.steps .is-now { color: var(--ink); }
.steps .is-now::before { background: var(--ink); color: #fff; border-color: var(--ink); }

/* صفحه‌بندی */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding-inline: 10px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.pager a:hover { color: var(--blue); }
.pager [aria-current] { background: var(--ink); color: #fff; }
.pager .gap { background: none; color: var(--faint); }
.pager .i { width: 18px; height: 18px; }

/* جدول */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumbs { display: flex; }
.table .thumbs img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--surface); object-fit: contain; background: #fff; margin-left: -10px; box-shadow: 0 0 0 1px var(--line); }

/* پیام خالی */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; }
.empty__icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--well); color: var(--muted); }
.empty__icon .i { width: 38px; height: 38px; stroke-width: 1.4; }
.empty h3 { margin: 6px 0 0; font-size: 18px; font-weight: 800; }
.empty p { margin: 0 0 8px; color: var(--muted); max-width: 40ch; }

/* هشدار */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.8; }
.note .i { margin-top: 2px; }
.note--blue { background: var(--blue-50); color: var(--blue-ink); }
.note--green { background: var(--green-50); color: #075E42; }
.note--amber { background: var(--amber-50); color: #7A4A04; }

/* ---------- 04 هدر و منو ---------- */
.utility { background: var(--ink); color: #C9CFDA; font-size: 12.5px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility p { margin: 0; display: flex; align-items: center; gap: 8px; }
.utility p b { color: #fff; font-weight: 600; }
.utility nav { display: flex; gap: 20px; }
.utility nav a:hover { color: #fff; }
.utility .i { width: 16px; height: 16px; color: var(--gold); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--surface); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.header__main { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.hbtn.burger { display: none; }
.logo { flex-shrink: 0; display: block; }
.logo img { height: 54px; width: auto; mix-blend-mode: multiply; }

.search { flex: 1; min-width: 0; max-width: 680px; position: relative; }
.search__bar { display: flex; align-items: center; height: 50px; background: var(--well); border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, background .2s, box-shadow .2s; }
.search:focus-within .search__bar { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.search__bar > .i { margin-inline: 16px 4px; color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding-inline: 8px; font-size: 14.5px; }
.search__bar input::placeholder { color: var(--muted); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__bar select { height: 32px; border: 0; border-right: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 13px; padding-inline: 12px 8px; margin-left: 6px; outline: none; }
.search__go { height: 38px; padding-inline: 18px; margin-left: 5px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.search__go:hover { background: var(--blue-ink); }
.suggest { position: absolute; inset: calc(100% + 8px) 0 auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--pop); border: 1px solid var(--line); padding: 18px; z-index: 5; display: grid; gap: 16px; }
.suggest h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest__chips a { height: 32px; padding-inline: 12px; border-radius: 99px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.suggest__chips a:hover { border-color: var(--ink); color: var(--ink); }
.suggest__chips .i { width: 15px; height: 15px; color: var(--faint); }
.suggest__list { display: grid; gap: 4px; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--well); }
.suggest__item img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; mix-blend-mode: multiply; }
.suggest__item b { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.suggest__item span { font-size: 13px; color: var(--muted); }
.suggest__item mark { background: none; color: var(--blue); font-weight: 700; }
.suggest__none { font-size: 14px; color: var(--muted); padding: 6px; }

.header__actions { margin-right: auto; display: flex; align-items: center; gap: 6px; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px; border-radius: var(--r-md); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background .2s; }
.hbtn:hover { background: var(--well); color: var(--ink); }
.hbtn small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.hbtn span { line-height: 1.3; }
.hbtn--icon { width: 50px; padding: 0; justify-content: center; }
.hbtn--cart { background: var(--ink); color: #fff; padding-inline: 16px 18px; }
.hbtn--cart:hover { background: var(--blue); color: #fff; }
.hbtn--cart small { color: #AEB6C4; }
.hbtn--cart:hover small { color: #DCE6FB; }
.badge { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); line-height: 1; }
.hbtn--icon .badge { top: 4px; left: 4px; }
.badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu { border-top: 1px solid var(--line); }
.menu__row { display: flex; align-items: center; gap: 4px; height: 50px; }
.menu__all { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding-inline: 4px 14px; font-weight: 700; font-size: 14px; position: relative; }
.menu__all::after { content: ""; width: 1px; height: 20px; background: var(--line-2); position: absolute; left: 0; }
.menu__link { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding-inline: 14px; font-size: 14px; color: var(--ink-2); position: relative; }
.menu__link::after { content: ""; position: absolute; inset: auto 14px 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu__link:hover, .menu__link[aria-current="page"] { color: var(--ink); }
.menu__link:hover::after, .menu__link[aria-current="page"]::after { transform: none; }
.menu__link--hot { color: var(--red); font-weight: 700; }
.menu__link .i { width: 18px; height: 18px; }
.menu__loc { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.menu__loc b { color: var(--ink); font-weight: 600; }
.menu__loc .i { width: 17px; height: 17px; color: var(--blue); }

.mega-host { height: 100%; display: flex; }
.mega { position: absolute; inset: 100% 0 auto; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(18, 22, 31, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.mega-host:hover .mega, .mega-host:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 32px; padding-block: 28px 32px; }
.mega h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mega h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--red); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega ul a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); }
.mega ul a:hover { color: var(--blue); }
.mega__promo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; background: #EFE6DB; }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__promo div { position: absolute; inset: auto 0 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(18, 22, 31, .75)); color: #fff; }
.mega__promo b { display: block; font-size: 17px; font-weight: 800; }
.mega__promo span { font-size: 13px; opacity: .85; }

/* هدر ساده (پرداخت و ورود) */
.header--min .header__main { justify-content: space-between; }
.header--min .secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.header--min .secure .i { color: var(--green); }

/* ---------- 05 کشوها و نوتیف ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(18, 22, 31, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 101; width: min(420px, 92vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--pop); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.drawer__head h2 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.x { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--well); }
.x:hover { background: var(--line); color: var(--ink); }

.mini { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini img { width: 76px; height: 76px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.mini h3 { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mini__row strong { font-size: 14.5px; font-weight: 800; }
.mini__row strong small { font-size: 11px; font-weight: 400; color: var(--muted); margin-right: 2px; }
.ship-bar { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ship-bar b { color: var(--green); }
.ship-bar__track { height: 6px; border-radius: 6px; background: var(--well); overflow: hidden; }
.ship-bar__track i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .4s var(--ease); }
.sum-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.sum-line strong { font-size: 18px; font-weight: 900; color: var(--ink); }
.drawer__btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }

.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li { border-bottom: 1px solid var(--line); }
.mnav > li > a, .mnav summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .i { color: var(--faint); transition: transform .25s; }
.mnav details[open] summary .i { transform: rotate(-90deg); }
.mnav ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 2px; }
.mnav ul a { display: block; padding: 6px 12px; font-size: 14px; color: var(--muted); border-radius: 8px; }
.mnav ul a:hover { background: var(--well); color: var(--ink); }
.mnav__hot { color: var(--red); }

.toast { position: fixed; z-index: 120; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--pop); transform: translateY(16px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility .35s; }
.toast.is-on { transform: none; opacity: 1; visibility: visible; }
.toast img { width: 48px; height: 48px; border-radius: 10px; background: #fff; object-fit: contain; }
.toast__text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.6; }
.toast__text b { display: block; font-size: 14px; }
.toast a { font-size: 13.5px; font-weight: 700; color: #9DBBFF; white-space: nowrap; padding-inline: 6px; }
.toast .ok { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #7BE0B4; }

.to-top { position: fixed; z-index: 70; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 14px; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--lift); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }

/* ---------- 06 کارت کالا و ریل ---------- */
.section { padding-block: 40px 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head h2 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.4; }
.head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.head__tools { display: flex; align-items: center; gap: 8px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--blue); padding-inline: 6px; }
.more .i { width: 16px; height: 16px; }
.more:hover { color: var(--red); }

.rail-wrap { position: relative; min-width: 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 34%; z-index: 4; box-shadow: var(--lift); }
.rail-btn--prev { right: -14px; }
.rail-btn--next { left: -14px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.card { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 10px 10px 14px; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .3s var(--ease); }
.card:hover { box-shadow: var(--lift); }
.card[hidden] { display: none; }
.card__media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__tags { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.fav { position: absolute; top: 6px; left: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .92); opacity: 0; transition: opacity .2s, color .2s; }
.card:hover .fav, .fav:focus-visible, .fav[aria-pressed="true"] { opacity: 1; }
.fav:hover, .fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] .i { fill: currentColor; }
.fav .i { width: 18px; height: 18px; }
.card__body { padding: 10px 6px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card__meta b { font-weight: 600; color: var(--blue); }
.card__title { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.75; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em; }
.card__title a:hover { color: var(--blue); }
.card__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { display: grid; line-height: 1.35; }
.price del { font-size: 12.5px; color: var(--muted); }
.price strong { font-size: 16.5px; font-weight: 800; white-space: nowrap; }
.price strong small { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-right: 3px; }
.add { width: 38px; height: 38px; border-radius: 11px; background: var(--well); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.add:hover { background: var(--ink); color: #fff; }
.add.is-added { background: var(--green); color: #fff; }
.add .i { width: 19px; height: 19px; }
.stock { display: grid; gap: 4px; margin-top: 2px; }
.stock__bar { height: 4px; border-radius: 4px; background: var(--red-50); overflow: hidden; }
.stock__bar i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.stock span { font-size: 11.5px; color: var(--muted); }
.card--out .card__media img { opacity: .45; filter: grayscale(1); }
.card--out .soldout { font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* نمای لیستی در فروشگاه */
.grid.is-list { grid-template-columns: 1fr; }
.grid.is-list .card { flex-direction: row; gap: 20px; padding: 14px; }
.grid.is-list .card__media { width: 200px; flex-shrink: 0; }
.grid.is-list .card__body { padding: 8px 0; }
.grid.is-list .card__title { font-size: 16px; min-height: 0; }
.grid.is-list .card__desc { display: block; }
.card__desc { display: none; margin: 0; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* ---------- 07 صفحه اصلی ---------- */
.hero { padding-block: 22px 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 18px; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); min-height: 500px; isolation: isolate; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 36px 56px 104px; gap: 24px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; background: var(--tint); }
.slide.is-on { opacity: 1; visibility: visible; }
.slide__copy { position: relative; z-index: 2; }
.slide h1, .slide h2 { margin: 16px 0 10px; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.3; font-weight: 900; }
.slide h1 em, .slide h2 em { font-style: normal; display: block; font-size: 16px; font-weight: 400; color: var(--ink-2); margin-top: 10px; line-height: 1.8; max-width: 34ch; }
.slide__price { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; }
.slide__price strong { font-size: 30px; font-weight: 900; }
.slide__price strong small { font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.slide__price del { color: var(--muted); font-size: 15px; display: block; line-height: 1.2; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.slide__media { position: relative; height: 100%; display: grid; place-items: center; }
.slide__media::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.slide__media img { position: relative; width: min(100%, 360px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transform: translateY(14px) scale(.96); transition: transform 1s var(--ease); }
.slide.is-on .slide__media img { transform: none; }
.slider__nav { position: absolute; inset: auto 0 0; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 12px; padding: 0 56px 26px; }
.slider__tab { text-align: right; font-size: 13px; color: var(--muted); padding-top: 12px; position: relative; transition: color .2s; }
.slider__tab::before, .slider__tab i { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; background: rgba(18, 22, 31, .1); }
.slider__tab i { background: var(--ink); transform-origin: right; transform: scaleX(0); }
.slider__tab.is-on { color: var(--ink); font-weight: 600; }
.slider__tab.is-on i { animation: fill var(--dur, 6s) linear forwards; }
.slider.is-paused .slider__tab.is-on i { animation-play-state: paused; }
@keyframes fill { to { transform: none; } }
.slider__arrows { display: flex; gap: 6px; }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.tile { position: relative; border-radius: var(--r-xl); overflow: hidden; display: block; min-height: 220px; background: var(--tile, var(--well)); }
.tile img { position: absolute; inset: 0 auto 0 0; width: 68%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 38%); mask-image: linear-gradient(to left, transparent 0, #000 38%); transition: transform .8s var(--ease); transform-origin: left center; }
.tile:hover img { transform: scale(1.04); }
.tile__copy { position: absolute; inset: 0 0 auto auto; width: 52%; padding: 24px 24px 0 0; }
.tile__copy small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tile__copy b { display: block; font-size: 21px; font-weight: 900; line-height: 1.4; margin-top: 2px; }
.tile__go { position: absolute; right: 24px; bottom: 22px; }
.tile:hover .round { background: var(--ink); color: #fff; border-color: var(--ink); }

.perks { padding-block: 18px 0; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-radius: var(--r-lg); }
.perks li { display: flex; align-items: center; gap: 12px; padding: 18px 22px; }
.perks li + li { border-right: 1px solid var(--line); }
.perks .i { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.perks b { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; }
.perks span { font-size: 12.5px; color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
.cat__img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); display: grid; place-items: center; overflow: hidden; transition: box-shadow .3s; }
.cat__img img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.cat:hover .cat__img { box-shadow: inset 0 0 0 2px var(--ink); }
.cat:hover .cat__img img { transform: scale(1.08); }
.cat b { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cat__count { font-size: 12px; color: var(--muted); margin-top: -8px; }

.deals { position: relative; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); padding: 22px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; overflow: hidden; isolation: isolate; }
.deals::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); z-index: -1; }
.deals__intro { color: #fff; display: flex; flex-direction: column; gap: 18px; padding: 10px 6px; }
.deals__intro h2 { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.25; }
.deals__intro p { margin: 4px 0 0; font-size: 13.5px; opacity: .85; }
.clock { display: flex; gap: 6px; align-items: center; }
.clock span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fff; color: var(--red-deep); font-size: 22px; font-weight: 900; }
.clock i { font-style: normal; font-weight: 900; opacity: .7; }
.clock-label { display: flex; gap: 6px; font-size: 12px; opacity: .8; margin-top: -12px; }
.clock-label span { width: 50px; text-align: center; }
.clock-label span + span { margin-right: 13px; }
.deals__intro .more { color: #fff; margin-top: auto; padding: 0; }
.deals__intro .more:hover { color: #FFE3E5; }
.deals .rail { grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo a { display: block; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 820 / 300; background: var(--well); }
.duo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.duo a:hover img { transform: scale(1.03); }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.story__img { position: relative; min-height: 420px; background: #E9E9E7; }
.story__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.story__copy { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.story__copy .chip { align-self: flex-start; }
.story__copy h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.4; }
.story__copy > p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.facts { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 16px 0 0; }
.facts li + li { padding-right: 18px; border-right: 1px solid var(--line); margin-right: 18px; }
.facts b { display: block; font-size: 26px; font-weight: 900; line-height: 1.3; }
.facts span { font-size: 13px; color: var(--muted); }

.brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.brands a { background: var(--surface); height: 84px; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: #9AA1AD; direction: ltr; transition: color .2s, background .2s; }
.brands a:hover { color: var(--ink); background: var(--well); }

.news { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 22px; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 26px 32px; }
.news__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.news__icon .i { width: 26px; height: 26px; color: var(--gold); }
.news h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.5; }
.news p { margin: 0; font-size: 13.5px; color: #AEB6C4; }
.news form { display: flex; gap: 6px; background: #fff; border-radius: var(--r-md); padding: 5px; }
.news input { flex: 1; min-width: 0; border: 0; outline: none; padding-inline: 12px; color: var(--ink); background: transparent; direction: ltr; text-align: right; }
.news button { height: 44px; padding-inline: 20px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; }
.news button:hover { background: var(--red-deep); }
.news__msg { grid-column: 2 / -1; margin: -8px 0 0; font-size: 13px; color: #9EE6C7; }

/* ---------- 08 فروشگاه ---------- */
.shop-head { display: grid; gap: 18px; margin-bottom: 22px; }
.shop-head__top { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-head h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.35; }
.shop-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.subcats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcats::-webkit-scrollbar { display: none; }
.subcat { flex-shrink: 0; display: flex; align-items: center; gap: 10px; height: 56px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 600; border: 1.5px solid transparent; transition: border-color .2s; }
.subcat img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; mix-blend-mode: multiply; }
.subcat:hover { border-color: var(--line-2); }
.subcat[aria-current] { border-color: var(--ink); }

.shop { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: 150px; display: grid; gap: 12px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.filters__clear { font-size: 13px; font-weight: 600; color: var(--red); }
.fbox { background: var(--surface); border-radius: var(--r-lg); padding: 4px 18px; }
.fbox summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.fbox summary::-webkit-details-marker { display: none; }
.fbox summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.fbox[open] summary .i { transform: rotate(180deg); }
.fbox__body { padding-bottom: 16px; display: grid; gap: 12px; }
.fbox__body .input { height: 42px; }
.fbox__list { display: grid; gap: 12px; max-height: 236px; overflow-y: auto; padding-left: 6px; }
.fbox__tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.fbox__tree a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.fbox__tree a:hover { background: var(--well); }
.fbox__tree a[aria-current] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.fbox__tree span { color: var(--faint); font-size: 12px; }
.fbox--switch { padding-block: 14px; display: grid; gap: 14px; }

.range { position: relative; height: 28px; }
.range__track { position: absolute; inset: 12px 0 auto; height: 4px; border-radius: 4px; background: var(--line); }
.range__fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--ink); }
.range input { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; appearance: none; background: none; pointer-events: none; direction: ltr; }
.range input::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); pointer-events: auto; cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); pointer-events: auto; cursor: grab; }
.range-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-vals div { background: var(--well); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.range-vals b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: var(--r-lg); padding: 8px 8px 8px 14px; margin-bottom: 14px; }
.toolbar__sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.toolbar__sort > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding-inline: 10px 6px; }
.toolbar__sort button { height: 36px; padding-inline: 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.toolbar__sort button:hover { color: var(--ink); }
.toolbar__sort button[aria-pressed="true"] { color: var(--red); font-weight: 700; background: var(--red-50); }
.toolbar__side { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.view { display: flex; gap: 2px; background: var(--well); padding: 3px; border-radius: 10px; }
.view button { width: 34px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.view button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.view .i { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters button { height: 32px; padding-inline: 12px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.active-filters button:hover { border-color: var(--red); color: var(--red); }
.active-filters .i { width: 14px; height: 14px; }
.mobile-shopbar { display: none; }
.seo { margin-top: 40px; padding: 28px 32px; }
.seo h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.seo p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 90ch; }

/* ---------- 09 صفحه محصول ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 340px; gap: 28px; align-items: start; background: var(--surface); border-radius: var(--r-xl); padding: 28px; }
.gallery { display: grid; gap: 14px; position: sticky; top: 150px; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #fff; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__main.is-zoom img { transform: scale(1.9); }
.gallery__tools { position: absolute; top: 10px; left: 10px; display: grid; gap: 6px; z-index: 2; }
.gallery__tools button { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.gallery__tools button:hover { color: var(--red); }
.gallery__tools button[aria-pressed="true"] { color: var(--red); }
.gallery__tools button[aria-pressed="true"] .i { fill: currentColor; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: #fff; padding: 4px; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pinfo { display: grid; gap: 16px; min-width: 0; }
.pinfo__brand { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.pinfo__brand a { color: var(--blue); font-weight: 600; }
.pinfo h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.65; }
.pinfo__en { margin: -8px 0 0; font-size: 13.5px; color: var(--faint); direction: ltr; text-align: right; }
.pinfo__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pinfo__stats b { color: var(--ink); }
.pinfo__stats a { color: var(--blue); }
.pinfo__stats .rate .i { width: 16px; height: 16px; }
.pinfo h2 { margin: 0; font-size: 15px; font-weight: 800; }
.keyfeats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.keyfeats li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); }
.keyfeats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); margin-top: 10px; flex-shrink: 0; }
.keyfeats b { color: var(--ink); font-weight: 600; }
.specs-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.specs-chips div { background: var(--well); border-radius: 12px; padding: 10px 12px; }
.specs-chips span { display: block; font-size: 12px; color: var(--muted); }
.specs-chips b { font-size: 14px; font-weight: 800; }
.pinfo__note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.pinfo__note .i { color: var(--blue); }

.buybox { position: sticky; top: 150px; display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--well); }
.buybox__seller { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.buybox__seller .logo-mini { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.buybox__seller .logo-mini img { width: 40px; mix-blend-mode: multiply; }
.buybox__seller b { display: block; font-size: 14px; }
.buybox__seller span { font-size: 12.5px; color: var(--green); font-weight: 600; }
.buybox__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.buybox__rows li { display: flex; gap: 10px; align-items: flex-start; }
.buybox__rows .i { color: var(--muted); width: 19px; height: 19px; margin-top: 2px; }
.buybox__rows small { display: block; font-size: 12px; color: var(--muted); }
.buybox__price { display: grid; justify-items: end; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.buybox__price .row { display: flex; align-items: center; gap: 8px; }
.buybox__price del { color: var(--muted); font-size: 14px; }
.buybox__price strong { font-size: 28px; font-weight: 900; line-height: 1.3; }
.buybox__price strong small { font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.buybox__stock { font-size: 13px; color: var(--red); font-weight: 600; }
.buybox__cta { display: flex; gap: 8px; }
.buybox__cta .btn { flex: 1; }
.buybox__cta .qty { height: 50px; }

.ptabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 129px); z-index: 20; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; padding: 0 24px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.ptabs a { height: 58px; padding-inline: 14px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14.5px; color: var(--muted); position: relative; white-space: nowrap; }
.ptabs a::after { content: ""; position: absolute; inset: auto 14px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.ptabs a.is-on { color: var(--ink); }
.ptabs a.is-on::after { transform: none; }
.pbody { background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 8px 32px 32px; }
.psec { padding-block: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 200px; }
.psec:last-child { border-bottom: 0; }
.psec > h2 { margin: 0 0 18px; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.psec > h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--red); }
.prose { max-width: 78ch; color: var(--ink-2); font-size: 15px; line-height: 2.05; }
.prose h3 { color: var(--ink); font-size: 17px; font-weight: 800; margin: 26px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-right: 20px; }
.prose li { margin-bottom: 4px; }
.prose figure { margin: 18px 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); max-width: 560px; }
.prose figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.prose-clamp { position: relative; max-height: 520px; overflow: hidden; }
.prose-clamp::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--surface)); }
.prose-clamp.is-open { max-height: none; }
.prose-clamp.is-open::after { display: none; }
.spec-table { width: 100%; max-width: 860px; border-collapse: separate; border-spacing: 0 6px; font-size: 14.5px; }
.spec-table th { width: 220px; text-align: right; font-weight: 500; color: var(--muted); padding: 12px 16px; background: var(--well); border-radius: 0 12px 12px 0; vertical-align: top; }
.spec-table td { padding: 12px 16px; background: var(--well); border-radius: 12px 0 0 12px; font-weight: 600; }
.spec-group { margin: 18px 0 4px; font-size: 15px; font-weight: 800; }

.reviews { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.rsum { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--well); position: sticky; top: 210px; }
.rsum__score { display: flex; align-items: end; gap: 8px; }
.rsum__score b { font-size: 46px; font-weight: 900; line-height: 1; }
.rsum__score span { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.rsum__bars { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rsum__bars div { display: grid; grid-template-columns: 14px 1fr 30px; align-items: center; gap: 8px; }
.rsum__bars i { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; position: relative; }
.rsum__bars i::after { content: ""; position: absolute; inset: 0 0 0 auto; width: var(--w); background: var(--gold); border-radius: inherit; }
.rsum p { margin: 0; font-size: 13px; color: var(--ink-2); }
.rlist { display: grid; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review:first-child { padding-top: 0; }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.review__head b { color: var(--ink); font-size: 14px; }
.review__score { height: 24px; min-width: 38px; padding-inline: 8px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--green); }
.review h3 { margin: 0; font-size: 15px; font-weight: 700; }
.review p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.review__pros { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.review__pros span { display: inline-flex; align-items: center; gap: 4px; }
.review__pros .plus { color: var(--green); }
.review__pros .minus { color: var(--red); }
.review__pros .i { width: 15px; height: 15px; }
.review__foot { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.review__foot button { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.review__foot button:hover, .review__foot button[aria-pressed="true"] { color: var(--ink); }
.review__foot .i { width: 16px; height: 16px; }
.buyer { font-size: 12px; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.buyer .i { width: 14px; height: 14px; }
.rform { margin-top: 24px; padding: 22px; border-radius: var(--r-lg); border: 1.5px solid var(--line); display: grid; gap: 16px; }
.rform h3 { margin: 0; font-size: 16px; font-weight: 800; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: var(--line-2); }
.star-input label .i { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.qa { display: grid; gap: 12px; }
.qa__item { padding: 18px; border-radius: var(--r-md); background: var(--well); display: grid; gap: 10px; }
.qa__q { display: flex; gap: 10px; font-weight: 600; font-size: 14.5px; }
.qa__q .i { color: var(--blue); }
.qa__a { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); padding-right: 30px; }
.qa__a small { display: block; color: var(--green); font-weight: 600; font-size: 12px; }

.buybar { display: none; }

/* ---------- 10 سبد و پرداخت ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.summary { position: sticky; top: 140px; display: grid; gap: 14px; }
.summary .box { padding: 22px; display: grid; gap: 14px; }
.summary h2 { margin: 0; font-size: 17px; font-weight: 800; }
.sumrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.sumrow.is-off { color: var(--red); }
.sumrow.is-free b { color: var(--green); }
.sumrow b { font-weight: 700; }
.sumrow--total { padding-top: 14px; border-top: 1px dashed var(--line-2); font-weight: 700; color: var(--ink); }
.sumrow--total b { font-size: 22px; font-weight: 900; }
.coupon { display: flex; gap: 6px; }
.coupon .input { height: 44px; }
.coupon .btn { height: 44px; }
.coupon-msg { font-size: 12.5px; margin-top: -6px; }
.coupon-msg.ok { color: var(--green); }
.coupon-msg.bad { color: var(--red); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.trust div { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; background: var(--surface); border-radius: 14px; line-height: 1.5; }
.trust .i { color: var(--blue); }

.citem { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.citem:first-of-type { padding-top: 6px; }
.citem:last-of-type { border-bottom: 0; }
.citem__img { width: 120px; height: 120px; border-radius: var(--r-md); object-fit: contain; background: #fff; border: 1px solid var(--line); }
.citem h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.7; }
.citem h3 a:hover { color: var(--blue); }
.citem__meta { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.citem__meta li { display: flex; align-items: center; gap: 6px; }
.citem__meta .i { width: 16px; height: 16px; }
.citem__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.linkbtn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.linkbtn:hover { color: var(--red); }
.linkbtn .i { width: 16px; height: 16px; }
.citem__price { text-align: left; display: grid; gap: 2px; justify-items: end; }
.citem__price del { color: var(--muted); font-size: 13px; }
.citem__price strong { font-size: 18px; font-weight: 900; white-space: nowrap; }
.citem__price strong small { font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 3px; }
.citem__price .save { font-size: 12px; color: var(--red); font-weight: 600; }
.citem.is-removing { opacity: 0; transform: translateX(-20px); transition: .3s var(--ease); }

.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.addr { align-items: flex-start; }
.addr .option__desc { line-height: 1.8; }
.addr__new { display: grid; place-items: center; gap: 4px; min-height: 120px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); font-weight: 600; font-size: 14px; }
.addr__new:hover { border-color: var(--ink); color: var(--ink); }
.slots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.slots::-webkit-scrollbar { display: none; }
.slot { flex-shrink: 0; position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: grid; justify-items: center; gap: 0; width: 86px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.slot b { font-size: 15px; color: var(--ink); }
.slot input:checked + span { border-color: var(--ink); background: var(--ink); color: #C9CFDA; }
.slot input:checked + span b { color: #fff; }
.slot input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.slot input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.times .slot span { width: auto; padding-inline: 16px; }
.co-items { display: flex; gap: 8px; flex-wrap: wrap; }
.co-items img { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.co-items span { position: relative; }
.co-items em { position: absolute; bottom: -4px; left: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.flow-stack { display: grid; gap: 16px; }

.done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px 40px; }
.done__icon { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); position: relative; }
.done__icon::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--green-50); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.done__icon .i { width: 46px; height: 46px; stroke-width: 2.2; }
.done h1 { margin: 6px 0 0; font-size: 28px; font-weight: 900; }
.done p { margin: 0; color: var(--muted); max-width: 52ch; }
.order-code { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding-inline: 18px 8px; border-radius: 14px; background: var(--well); font-weight: 800; font-size: 17px; margin-top: 6px; }
.order-code button { height: 34px; padding-inline: 12px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; font-size: 13px; color: var(--muted); padding-inline: 6px; }
.timeline li::before { content: ""; position: absolute; top: 21px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.is-done::before, .timeline li.is-now::before { background: var(--green); }
.timeline .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--faint); }
.timeline .is-done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline .is-now .dot { border-color: var(--green); color: var(--green); }
.timeline b { color: var(--ink); font-size: 14px; }

/* ---------- 11 ورود ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--surface); }
.auth__art { position: relative; overflow: hidden; background: var(--blue-50); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; }
.auth__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; width: 100%; margin: auto; }
.auth__collage span { aspect-ratio: 1; border-radius: 28px; background: var(--surface); display: grid; place-items: center; box-shadow: 0 20px 40px -24px rgba(15, 46, 120, .35); }
.auth__collage span:nth-child(2) { transform: translateY(28px); }
.auth__collage span:nth-child(3) { transform: translateY(-12px); }
.auth__collage span:nth-child(4) { transform: translateY(16px); }
.auth__collage img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.auth__quote { position: relative; z-index: 1; color: var(--blue-ink); max-width: 44ch; }
.auth__quote b { display: block; font-size: 26px; font-weight: 900; line-height: 1.5; }
.auth__quote span { font-size: 14.5px; color: var(--ink-2); }
.auth__panel { display: flex; flex-direction: column; padding: 32px max(24px, 6vw); }
.auth__top { display: flex; justify-content: space-between; align-items: center; }
.auth__top .logo img { height: 50px; }
.auth__form { width: min(420px, 100%); margin: auto; padding-block: 40px; display: grid; gap: 18px; }
.auth__form h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.4; }
.auth__form > p { margin: -8px 0 4px; color: var(--muted); font-size: 14.5px; }
.auth__form .input { height: 56px; font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.auth__legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.auth__legal a { color: var(--blue); }
.otp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; direction: ltr; }
.otp input { height: 62px; text-align: center; font-size: 24px; font-weight: 900; border-radius: 14px; border: 1.5px solid var(--line); outline: none; background: var(--surface); }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.otp.is-bad input { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.otp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.otp-meta button { color: var(--blue); font-weight: 700; }
.otp-meta button[disabled] { color: var(--faint); cursor: default; }
.edit-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; }
.edit-phone .i { width: 16px; height: 16px; }

/* ---------- 12 حساب کاربری ---------- */
.account { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.aside { position: sticky; top: 150px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.aside__user { display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 900; font-size: 20px; flex-shrink: 0; }
.aside__user b { display: block; font-size: 15px; }
.aside__user span { font-size: 13px; color: var(--muted); }
.aside nav { padding: 10px; display: grid; gap: 2px; }
.aside nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding-inline: 14px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.aside nav a:hover { background: var(--well); }
.aside nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.aside nav a .count { margin-right: auto; font-size: 12px; min-width: 24px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--well); color: var(--ink-2); font-weight: 700; }
.aside nav a[aria-current="page"] .count { background: rgba(255, 255, 255, .15); color: #fff; }
.aside nav .logout { color: var(--red); }
.apane { display: grid; gap: 18px; }
.apane[hidden] { display: none; }
.apane > h1 { margin: 0; font-size: 24px; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat__icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.stat__icon .i { width: 24px; height: 24px; }
.stat b { display: block; font-size: 24px; font-weight: 900; line-height: 1.3; }
.stat span { font-size: 13px; color: var(--muted); }
.track { display: grid; gap: 18px; }
.track__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.track__head b { font-size: 15px; }
.track__head span { font-size: 13px; color: var(--muted); }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--blue) 0%, var(--blue-ink) 100%); color: #fff; overflow: hidden; position: relative; }
.welcome h1 { margin: 0; font-size: 22px; font-weight: 900; }
.welcome p { margin: 4px 0 0; font-size: 14px; color: #CFDcF8; }
.welcome .btn { background: #fff; color: var(--blue-ink); }
.addr-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 10px; }
.addr-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addr-card__head b { font-size: 15px; }
.addr-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.addr-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.addr-card ul li { display: inline-flex; align-items: center; gap: 6px; }
.addr-card ul .i { width: 16px; height: 16px; }
.addr-card__actions { display: flex; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-filter { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 13 صفحات محتوایی ---------- */
.phero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; padding: 56px 56px; display: grid; gap: 12px; isolation: isolate; }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(18, 22, 31, .92) 0%, rgba(18, 22, 31, .55) 55%, rgba(18, 22, 31, .1) 100%); z-index: -1; }
.phero .crumbs { color: #AEB6C4; margin: 0; }
.phero .crumbs [aria-current] { color: #fff; }
.phero h1 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; line-height: 1.35; max-width: 18ch; }
.phero p { margin: 0; max-width: 52ch; color: #D7DCE5; font-size: 16px; }
.phero--plain { background: var(--surface); color: var(--ink); padding: 40px 44px; }
.phero--plain::before { display: none; }
.phero--plain .crumbs { color: var(--muted); }
.phero--plain .crumbs [aria-current] { color: var(--ink-2); }
.phero--plain p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 8px; align-content: start; }
.value__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 6px; }
.value__icon .i { width: 26px; height: 26px; stroke-width: 1.5; }
.value h3 { margin: 0; font-size: 16px; font-weight: 800; }
.value p { margin: 0; font-size: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.split__img { border-radius: var(--r-xl); overflow: hidden; background: var(--well); min-height: 380px; position: relative; }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__copy { background: var(--surface); border-radius: var(--r-xl); padding: 40px 44px; display: grid; gap: 14px; align-content: center; }
.split__copy h2 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.5; }
.split__copy p { margin: 0; color: var(--ink-2); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--r-lg); }
.numbers div { padding: 26px; display: grid; gap: 2px; }
.numbers div + div { border-right: 1px solid var(--line); }
.numbers b { font-size: 32px; font-weight: 900; line-height: 1.3; }
.numbers span { font-size: 13.5px; color: var(--muted); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 30px 36px; border-radius: var(--r-xl); background: var(--red); color: #fff; }
.cta-band h2 { margin: 0; font-size: 22px; font-weight: 900; }
.cta-band p { margin: 4px 0 0; opacity: .85; font-size: 14px; }
.cta-band .btn { background: #fff; color: var(--red-deep); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; align-items: start; }
.ccards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-lg); background: var(--surface); }
.ccard__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.ccard__icon .i { width: 24px; height: 24px; }
.ccard span { display: block; font-size: 13px; color: var(--muted); }
.ccard b { font-size: 17px; font-weight: 800; }
.ccard .copy { margin-right: auto; }
.mapcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #E7EEF2; min-height: 220px; display: grid; place-items: center; }
.mapcard svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapcard__pin { position: relative; display: grid; justify-items: center; gap: 8px; }
.mapcard__pin span { width: 54px; height: 54px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 20px -6px rgba(224, 32, 46, .6); }
.mapcard__pin span .i { transform: rotate(45deg); color: #fff; }
.mapcard__pin a { background: var(--surface); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; box-shadow: var(--lift); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.hours li { display: flex; justify-content: space-between; }
.hours li span { color: var(--muted); }

.faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.faq__nav { position: sticky; top: 150px; background: var(--surface); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 2px; }
.faq__nav button { display: flex; align-items: center; gap: 12px; height: 48px; padding-inline: 14px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); text-align: right; }
.faq__nav button:hover { background: var(--well); }
.faq__nav button[aria-selected="true"] { background: var(--ink); color: #fff; }
.faq__nav .i { width: 19px; height: 19px; }
.faq__list { background: var(--surface); border-radius: var(--r-lg); padding: 8px 28px; }
.faq__group[hidden] { display: none; }
.faq__group h2 { margin: 18px 0 4px; font-size: 18px; font-weight: 900; }
.faq-search { position: relative; max-width: 560px; margin-top: 8px; }
.faq-search .input { height: 56px; padding-right: 48px; border-color: transparent; }
.faq-search .i { position: absolute; top: 18px; right: 16px; color: var(--muted); }
.faq__none { padding: 40px 0; text-align: center; color: var(--muted); }

.e404 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surface); border-radius: var(--r-xl); padding: 56px; overflow: hidden; }
.e404__num { font-size: clamp(110px, 14vw, 190px); font-weight: 900; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 4px; direction: ltr; }
.e404__num span { display: inline-grid; place-items: center; width: .82em; height: .82em; border-radius: 50%; background: var(--well); overflow: hidden; }
.e404__num img { width: 80%; mix-blend-mode: multiply; transform: rotate(-12deg); }
.e404 h1 { margin: 0 0 8px; font-size: 28px; font-weight: 900; }
.e404 p { margin: 0 0 22px; color: var(--muted); }
.e404 .search__bar { max-width: 460px; margin-bottom: 22px; }
.e404__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 14 فوتر ---------- */
.footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 44px 32px; }
.footer__brand img { height: 60px; width: auto; mix-blend-mode: multiply; }
.footer__brand p { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 44ch; }
.footer h4 { margin: 4px 0 14px; font-size: 15px; font-weight: 800; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { font-size: 14px; color: var(--muted); }
.footer ul a:hover { color: var(--blue); }
.contact { display: grid; gap: 4px; }
.contact__label { font-size: 12.5px; color: var(--muted); }
.contact__phone { font-size: 24px; font-weight: 900; text-align: right; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: var(--well); display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: #fff; }
.seals { display: flex; gap: 10px; margin-top: 14px; }
.seal { width: 92px; height: 100px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); overflow: hidden; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.seal img { max-height: 84px; width: auto; }
.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-block: 18px; font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--ink); font-weight: 700; }
.footer__bottom a:hover { color: var(--blue); }
.footer--min { margin-top: 40px; }

.tabbar { display: none; }

/* ---------- 15 واکنش‌گرا ---------- */
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .deals .rail { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .cats { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .cat__img { width: 72%; }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .menu__loc { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; align-items: end; }
  .buybox__seller, .buybox__rows { grid-column: 1; }
  .buybox__price, .buybox__stock, .buybox__cta { grid-column: 2; }
  .buybox__seller { grid-row: 1; } .buybox__rows { grid-row: 2 / span 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .perks ul { grid-template-columns: repeat(3, 1fr); }
  .perks li:nth-child(n+4) { display: none; }
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .deals { grid-template-columns: 1fr; }
  .deals__intro { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 4px; }
  .deals__intro .more { margin-top: 0; }
  .clock-label { display: none; }
  .story { grid-template-columns: 1fr; }
  .story__img { min-height: 300px; }
  .news { grid-template-columns: auto minmax(0, 1fr); }
  .news form { grid-column: 1 / -1; }
  .news__msg { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .rail-btn { display: none; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0; top: auto; z-index: 101; max-height: 86vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px var(--gr) calc(90px + env(safe-area-inset-bottom, 0px)) var(--gl); transform: translateY(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; box-shadow: var(--pop); }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__apply { position: fixed; inset: auto 0 0; padding: 12px var(--gr) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--surface); box-shadow: 0 -1px 0 var(--line); display: flex; gap: 8px; }
  .filters__apply .btn { flex: 1; }
  .toolbar { display: none; }
  .mobile-shopbar { display: flex; gap: 8px; margin-bottom: 14px; }
  .mobile-shopbar > * { flex: 1; }
  .mobile-shopbar .select { height: 46px; }
  .mobile-shopbar .btn { height: 46px; }
  .reviews { grid-template-columns: 1fr; }
  .rsum { position: static; }
  .flow { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account { grid-template-columns: 1fr; }
  .aside { position: static; }
  .aside nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .aside nav a { flex-shrink: 0; }
  .aside nav a .count { margin-right: 4px; }
  .contact-grid, .faq, .split { grid-template-columns: 1fr; }
  .faq__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .faq__nav button { flex-shrink: 0; }
  .e404 { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .e404 .search__bar { margin-inline: auto; }
  .e404__links { justify-content: center; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
}

@media (min-width: 1025px) { .filters__apply, .filters .x { display: none; } }

@media (max-width: 820px) {
  .utility nav { display: none; }
  .header__main { flex-wrap: wrap; gap: 10px 8px; padding-block: 10px 12px; }
  .hbtn.burger { display: inline-flex; }
  .logo img { height: 44px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search__bar { height: 46px; }
  .search__bar select, .search__go { display: none; }
  .hbtn { height: 44px; padding-inline: 10px; }
  .hbtn--icon { width: 44px; }
  .hbtn .hbtn__text { display: none; }
  .hbtn--wish { display: none; }
  .menu { display: none; }
  .slider { min-height: 0; }
  .slide { position: relative; grid-template-columns: 1fr; padding: 28px 24px 84px; gap: 0; display: none; }
  .slide.is-on { display: grid; }
  .slide__media { order: -1; height: auto; }
  .slide__media img { width: min(72%, 280px); }
  .slide__price { margin: 14px 0 18px; }
  .slider__nav { padding: 0 24px 20px; grid-template-columns: repeat(3, 1fr); }
  .slider__arrows { display: none; }
  .slider__tab { font-size: 11.5px; line-height: 1.6; }
  .tile { min-height: 180px; }
  .tile__copy b { font-size: 17px; }
  .rail { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); gap: 12px; }
  .deals .rail { grid-auto-columns: calc((100% - 2 * 12px) / 2.4); }
  .duo { grid-template-columns: 1fr; gap: 12px; }
  .story__copy { padding: 30px 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.is-list .card__media { width: 120px; }
  .pdp { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .gallery { position: static; }
  .buybox { grid-template-columns: 1fr; }
  .buybox__seller, .buybox__rows, .buybox__price, .buybox__stock, .buybox__cta { grid-column: auto; grid-row: auto; }
  .buybox__cta { display: none; }
  .specs-chips { grid-template-columns: repeat(2, 1fr); }
  .ptabs { top: calc(env(safe-area-inset-top, 0px) + 122px); padding: 0 8px; }
  .pbody { padding: 0 18px 24px; }
  .spec-table th { width: 40%; }
  .buybar { display: flex; position: fixed; inset: auto 0 0; z-index: 86; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -10px rgba(0, 0, 0, .12); padding: 10px var(--gr) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gl); }
  .buybar .btn { flex: 1; max-width: 220px; }
  .buybar .price strong { font-size: 18px; }
  body.has-buybar { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-buybar .tabbar { display: none; }
  .steps { padding: 14px; }
  .steps li { font-size: 0; gap: 0; }
  .steps li.is-now { font-size: 13px; gap: 8px; }
  .citem { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .citem__img { width: 88px; height: 88px; }
  .citem__price { grid-column: 2; justify-items: start; text-align: right; }
  .addr-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .timeline li:nth-child(3)::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .phero { padding: 36px 24px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(3) { border-right: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split__copy { padding: 28px 24px; }
  .faq__list { padding: 4px 18px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.no-tabbar { padding-bottom: 0; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 85; background: var(--surface); box-shadow: 0 -1px 0 var(--line); padding: 6px var(--gr) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gl); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding-block: 4px; font-size: 11.5px; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar .badge { top: -2px; left: calc(50% - 22px); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 16px; }
}

@media (max-width: 560px) {
  .utility p span { display: none; }
  .hbtn--account { display: none; }
  .hero, .page { padding-top: 14px; }
  .hero__side { grid-template-columns: 1fr; gap: 12px; }
  .slider, .tile, .deals, .story, .news, .pdp, .phero, .split__img, .split__copy, .e404, .cta-band { border-radius: var(--r-lg); }
  .perks ul { grid-template-columns: 1fr 1fr; }
  .perks li:nth-child(3) { display: none; }
  .perks li { padding: 14px; gap: 10px; }
  .perks .i { width: 24px; height: 24px; }
  .section { padding-top: 30px; }
  .head h2 { font-size: 20px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .tabs button, .tabs a { flex-shrink: 0; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
  .cat__img { width: 100%; }
  .cat b { font-size: 12.5px; }
  .cat__count { display: none; }
  .deals { padding: 16px 14px; }
  .deals__intro h2 { font-size: 24px; }
  .clock span { width: 42px; height: 42px; font-size: 18px; }
  .rail, .deals .rail { grid-auto-columns: 62%; }
  .facts b { font-size: 21px; }
  .facts li + li { padding-right: 12px; margin-right: 12px; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .brands a { height: 68px; font-size: 14px; }
  .news { padding: 22px 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .shop-head h1 { font-size: 24px; }
  .card { padding: 8px 8px 12px; }
  .card__title { font-size: 13px; }
  .price strong { font-size: 15px; }
  .pinfo h1 { font-size: 19px; }
  .gallery__thumbs button { width: 64px; height: 64px; }
  .box--pad { padding: 18px; }
  .summary .box { padding: 18px; }
  .citem__actions .qty { order: -1; }
  .stat b { font-size: 20px; }
  .values { grid-template-columns: 1fr; }
  .otp { gap: 8px; }
  .otp input { height: 56px; }
  .e404__num { font-size: 104px; }
  .ccard { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* رادیوی داخل کارت انتخاب */
.option > input[type="radio"]:not(.sr-only) { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.option > input[type="radio"]:not(.sr-only)::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .15s; }
.option > input[type="radio"]:not(.sr-only):checked { border-color: var(--ink); }
.option > input[type="radio"]:not(.sr-only):checked::after { transform: none; }
.option:has(.sr-only:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 2px; }

/* نگهبان‌های چیدمان */
[hidden] { display: none !important; }
.account > *, .flow > *, .shop > *, .pdp > *, .contact-grid > *, .faq > *, .e404 > *, .split > *, .reviews > *, .auth > * { min-width: 0; }
.apane > *, .flow-stack > *, .summary > * { min-width: 0; }
.apane { grid-template-columns: minmax(0, 1fr); }
html, body { overflow-x: clip; }
