/* جنرال شاپ (General Shop) | استایل‌ها
   چیدمان: هدر چسبان دو ردیفه، محتوای وسط‌چین تا ۱۲۸۰ پیکسل، قفسه‌های افقی محصول، نوار پایین ثابت در موبایل.
   برای تغییر رنگ اصلی سایت فقط --primary و --primary-strong و --primary-soft رو عوض کن (در هر سه بلوک). */
:root {
  --gold: #111111;
  --gold-strong: #000000;
  --gold-soft: #F2F2F2;
  --gold-ink: #FFFFFF;
  --gold-line: linear-gradient(90deg, transparent, #333333 20%, #111111 50%, #333333 80%, transparent);
  --lux-grad: linear-gradient(135deg, #0A1428 0%, #14284B 55%, #1B3560 100%);
  --display-en: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F2F2F2;
  --line: #E4E4E4;
  --fg: #101A2E;
  --muted: #5A6478;
  --faint: #8C94A4;
  --primary: #14284B;
  --primary-strong: #0A1A36;
  --primary-soft: #ECEFF6;
  --primary-ink: #FFFFFF;
  --navy-deep: #0A1428;
  --tomato: #9B2C3B;
  --tomato-soft: #F7E6E8;
  --tomato-ink: #FFFFFF;
  --saffron: #111111;
  --saffron-soft: #F2F2F2;
  --info: #2C5B98;
  --info-soft: #E6EDF8;
  --warning: #000000;
  --danger: #B3261E;
  --footer-bg: #060C1A;
  --footer-card: #0D162B;
  --footer-fg: #F2F2F2;
  --footer-muted: #A2AABB;
  --footer-line: #222F4D;
  --toast-bg: #101A2E;
  --toast-fg: #FAFAFA;
  --toast-ok: #E5E5E5;
  --toast-err: #FF9C90;
  --tile-s: 30%;
  --tile-l: 95%;
  --art-s: 30%;
  --art-l1: 94%;
  --art-l2: 88%;
  --art-ink: 28%;
  --stepper-hover: rgb(255 255 255 / .18);
  --shadow: 0 1px 2px rgb(16 26 46 / .06), 0 12px 28px -16px rgb(16 26 46 / .28);
  --shadow-lg: 0 28px 70px -22px rgb(10 20 40 / .5);
  --overlay: rgb(6 12 26 / .55);

  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --display: "Vazirmatn", Tahoma, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --container: 1280px;
  --gutter: 16px;
  --hdr-h: 132px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --gold: #E5E5E5;
  --gold-strong: #FFFFFF;
  --gold-soft: #1F1F1F;
  --gold-ink: #000000;
  --gold-line: linear-gradient(90deg, transparent, #888888 20%, #E5E5E5 50%, #888888 80%, transparent);
  --lux-grad: linear-gradient(135deg, #0B1220 0%, #121C33 55%, #19264A 100%);
  --display-en: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --bg: #080D19;
  --surface: #101828;
  --surface-2: #17213A;
  --line: #232F4C;
  --fg: #EBEBEB;
  --muted: #A4ACBE;
  --faint: #7B859B;
  --primary: #E5E5E5;
  --primary-strong: #FFFFFF;
  --primary-soft: #1F1F1F;
  --primary-ink: #000000;
  --navy-deep: #050911;
  --tomato: #E5707F;
  --tomato-soft: #3A1B22;
  --tomato-ink: #2A0A10;
  --saffron: #E5E5E5;
  --saffron-soft: #1F1F1F;
  --info: #7FB1EA;
  --info-soft: #14233A;
  --warning: #E5E5E5;
  --danger: #FF8579;
  --footer-bg: #04070F;
  --footer-card: #0A1121;
  --footer-fg: #EBEBEB;
  --footer-muted: #8791A8;
  --footer-line: #1B2745;
  --toast-bg: #EBEBEB;
  --toast-fg: #0A1020;
  --toast-ok: #888888;
  --toast-err: #B3271B;
  --tile-s: 22%;
  --tile-l: 17%;
  --art-s: 30%;
  --art-l1: 16%;
  --art-l2: 11%;
  --art-ink: 80%;
  --stepper-hover: rgb(0 0 0 / .14);
  --shadow: 0 1px 2px rgb(0 0 0 / .45), 0 12px 28px -16px rgb(0 0 0 / .8);
  --shadow-lg: 0 28px 70px -22px rgb(0 0 0 / .85);
  --overlay: rgb(0 0 0 / .65);
  color-scheme: dark;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }
.ico { flex-shrink: 0; }
.ltr { direction: ltr; text-align: right; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 300;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: var(--r);
  text-decoration: none; font-weight: 700; transition: top .15s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- دکمه‌ها و فرم ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 20px; border-radius: 13px; border: 1.5px solid transparent;
  background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: 14px; line-height: 1.3;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--tomato); color: var(--tomato-ink); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { min-height: 54px; font-size: 15.5px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn.armed { background: var(--tomato); color: var(--tomato-ink); border-color: transparent; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none;
}
.link-btn.danger { color: var(--danger); }
.icon-btn {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg); padding: 10px 14px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.is-invalid, .is-invalid:focus { border-color: var(--danger); }
.field-err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.field-err:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }
.check .count { margin-inline-start: 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; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(-18px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip .x { display: inline-grid; place-items: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-processing { background: var(--saffron-soft); color: var(--warning); }
.pill-shipping { background: var(--info-soft); color: var(--info); }
.pill-delivered { background: var(--primary-soft); color: var(--primary); }
.pill-cancelled { background: var(--surface-2); color: var(--muted); }
.pill-returned { background: var(--tomato-soft); color: var(--danger); }
.pill-pending { background: var(--saffron-soft); color: var(--warning); }
.pill-answered { background: var(--primary-soft); color: var(--primary); }
.pill-return_requested { background: var(--saffron-soft); color: var(--warning); }

/* کد رهگیری مرسوله */
.post-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--info); background: var(--info-soft); }
.post-box .opt-ico { background: var(--surface); color: var(--info); }
.post-box .opt-body > span { font-size: 13px; color: var(--muted); }
.post-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 17px; letter-spacing: .06em; color: var(--fg); overflow-wrap: anywhere; }
.post-box .btn { margin-inline-start: auto; }
.panel-head h2 .ico { vertical-align: -4px; color: var(--primary); }

/* رنک‌های تیم */
.rank, .acc-user .rank, .dd-user .rank {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 4px; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 800; line-height: 1.7; white-space: nowrap; vertical-align: middle;
}
.rank-developer { background: var(--info-soft); color: var(--info); }
.rank-owner { background: var(--saffron-soft); color: var(--warning); }
.rank-admin { background: var(--primary-soft); color: var(--primary); }
.rank-support { background: var(--tomato-soft); color: var(--danger); }
.rank-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rank-line .rank { margin-top: 0; }

/* نوار پیشرفت سطح باشگاه مشتریان (به رنگ سطح بعدی) */
.tier-progress { margin-top: 12px; display: grid; gap: 6px; }
.tier-progress .bar { height: 8px; border-radius: 99px; background: var(--tc-soft, var(--primary-soft)); box-shadow: inset 0 0 0 1px var(--tc-line, transparent); overflow: hidden; }
.tier-progress .bar span { display: block; height: 100%; border-radius: 99px; background: var(--tc, var(--warning)); }
.tier-progress small { color: var(--muted); line-height: 2; }

/* ویرایشگر سطح‌بندی مشتری‌ها در پنل: پایین فایل (بخش باشگاه مشتریان) */

.loading-card { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; color: var(--muted); text-align: center; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.order-card.unread { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.demo-hint {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--saffron-soft); color: var(--warning); font-size: 13px; line-height: 1.8;
}
.demo-hint .ico { margin-top: 3px; }
.code {
  display: inline-block; direction: ltr; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px;
  padding: 1px 8px; border-radius: 8px; background: var(--surface-2); color: var(--fg); border: 1px dashed var(--line); letter-spacing: .04em;
}

/* ---------- هدر ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.hdr.scrolled { box-shadow: var(--shadow); }
.hdr-row1 { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--navy-deep); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--primary), var(--shadow); flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-words { display: grid; line-height: 1.1; }
.logo-text { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.logo-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.search { position: relative; flex: 1; max-width: 640px; min-width: 0; }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 52px; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--surface-2); padding-inline: 16px 6px; transition: border-color .15s, background-color .15s;
}
.search-box:focus-within { border-color: var(--primary); background: var(--surface); }
.search-box .ico { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 14.5px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input::placeholder { color: var(--faint); }
.search-pop {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 70; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  max-height: min(70vh, 560px); overflow: auto;
}
.sp-sec { padding: 6px 4px 8px; }
.sp-sec + .sp-sec { border-top: 1px solid var(--line); }
.sp-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 2px 8px 8px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-inline: 6px; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--fg); text-decoration: none; }
.sp-row:hover, .sp-item.active { background: var(--surface-2); }
.chip.sp-item.active { border-color: var(--primary); color: var(--primary); }
.sp-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.sp-thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--h) var(--tile-s) var(--tile-l)); flex-shrink: 0; overflow: hidden; }
.sp-thumb .p-emoji { font-size: 24px; filter: none; }
.sp-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.sp-name mark { background: var(--saffron-soft); color: inherit; border-radius: 4px; padding-inline: 2px; }
.sp-price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.sp-price small { font-weight: 500; color: var(--muted); font-size: 11px; }
.sp-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.sp-all { display: flex; align-items: center; gap: 8px; padding: 12px; margin-top: 4px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--primary); background: var(--primary-soft); }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.hdr-btn {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px;
  background: transparent; border: 0; color: var(--fg); cursor: pointer; text-align: start; text-decoration: none;
}
.hdr-btn:hover, .hdr-btn[aria-expanded="true"] { background: var(--surface-2); }
.hdr-btn-txt { display: grid; line-height: 1.35; }
.hdr-btn-txt small { font-size: 11px; color: var(--faint); font-weight: 600; }
.hdr-btn-txt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cart-ico { position: relative; display: inline-grid; }
.cart-count {
  position: absolute; top: -7px; inset-inline-end: -9px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 99px;
  background: var(--tomato); color: var(--tomato-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--surface); line-height: 1;
}
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; border-radius: 12px; font-size: 15px; }
.acc-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; gap: 2px;
}
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--fg);
  text-decoration: none; font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: start; width: 100%;
}
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); }
.dropdown .ico { color: var(--muted); }
.dd-user { display: grid; padding: 8px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dd-user span { font-size: 12.5px; color: var(--muted); text-align: right; }

.hdr-row2 { display: flex; align-items: center; gap: 10px; min-height: 54px; }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav a.hot { color: var(--tomato); }
.hdr-note { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.hdr-note .ico { color: var(--primary); }

/* مگامنو */
.mm { position: relative; flex-shrink: 0; }
.mm-btn {
  display: flex; align-items: center; gap: 10px; height: 42px; padding-inline: 14px; border-radius: 13px; border: 0;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px; cursor: pointer;
}
.mm-btn .chev { transition: transform .2s; }
.mm.open .mm-btn .chev { transform: rotate(180deg); }
.mm-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 70;
  width: min(900px, calc(100vw - 32px)); display: grid; grid-template-columns: 250px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mm.open .mm-panel { opacity: 1; visibility: visible; transform: none; }
.mm-cats { background: var(--surface-2); padding: 10px; display: grid; gap: 2px; align-content: start; max-height: 520px; overflow: auto; }
.mm-cat { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.mm-cat .ico:first-child { color: var(--primary); }
.mm-cat .mm-arrow { margin-inline-start: auto; color: var(--faint); opacity: 0; }
.mm-cat[aria-current="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.mm-cat[aria-current="true"] .mm-arrow { opacity: 1; }
.mm-body { padding: 22px 26px; display: grid; gap: 18px; align-content: start; }
.mm-head { display: flex; align-items: center; justify-content: space-between; }
.mm-head b { font-size: 18px; }
.mm-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; text-decoration: none; }
.mm-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.mm-subs a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; }
.mm-subs a:hover { color: var(--primary); }
.mm-label { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.mm-top-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.mm-prod { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); min-width: 0; }
.mm-prod:hover { border-color: var(--primary); }
.mm-pname { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-pprice { display: block; font-size: 12px; color: var(--muted); }
.mm-prod > span:last-child { min-width: 0; }

/* ---------- نوار پایین موبایل ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
}
.tabbar-in {
  pointer-events: auto; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; max-width: 520px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.tab {
  display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); text-decoration: none;
  background: none; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0;
}
.tab[aria-current="page"] { color: var(--primary); }
.tab .cart-count { top: -6px; inset-inline-end: -10px; }

/* ---------- بخش‌های عمومی ---------- */
main { min-height: 60vh; display: block; }
.sec { margin-block: 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sec-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--primary); flex-shrink: 0; }
.sec-title h2 { font-size: 21px; font-weight: 800; }
.sec-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.sec-more:hover { color: var(--primary); }
.shelf-nav { display: flex; gap: 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 24px 18px; }
.page-head h1 { font-size: 26px; font-weight: 900; }
.page-head p { color: var(--muted); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--faint); margin-top: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .ico { color: var(--faint); }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 20px; }
.empty-art { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty h2, .empty h3 { font-size: 19px; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ---------- اسلایدر ---------- */
.hero { position: relative; margin-top: 22px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; z-index: 1; pointer-events: none; opacity: .9;
  background: var(--surface);
  clip-path: polygon(0% 60%, 2.5% 68%, 5% 76%, 7.5% 76%, 10% 68%, 12.5% 60%, 15% 52%, 17.5% 48%, 20% 48%, 22.5% 52%,
    25% 60%, 27.5% 68%, 30% 76%, 32.5% 76%, 35% 68%, 37.5% 60%, 40% 52%, 42.5% 48%, 45% 48%, 47.5% 52%,
    50% 60%, 52.5% 68%, 55% 76%, 57.5% 76%, 60% 68%, 62.5% 60%, 65% 52%, 67.5% 48%, 70% 48%, 72.5% 52%,
    75% 60%, 77.5% 68%, 80% 76%, 82.5% 76%, 85% 68%, 87.5% 60%, 90% 52%, 92.5% 48%, 95% 48%, 97.5% 52%,
    100% 60%, 100% 100%, 0% 100%);
}
.slides { display: flex; transition: transform .65s cubic-bezier(.2, .75, .2, 1); touch-action: pan-y; }
.slide {
  flex: 0 0 100%; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 44px 60px 70px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, hsl(var(--h) var(--art-s) var(--art-l1)), hsl(calc(var(--h) + 25) var(--art-s) var(--art-l2)));
}
.slide-txt { display: grid; gap: 14px; justify-items: start; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--surface); color: hsl(var(--h) 60% var(--art-ink)); font-size: 13px; font-weight: 800; }
.slide-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.35; color: var(--fg); }
.slide-txt p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.slide-txt .btn { margin-top: 6px; }
.slide-art { position: relative; height: 270px; display: grid; place-items: center; }
.art-disc { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: hsl(var(--h) var(--art-s) calc(var(--art-l2) - 6%)); }
.art-main, .art-a, .art-b { position: absolute; line-height: 1; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .18)); }
.art-main { font-size: 150px; }
.art-a { font-size: 76px; top: 18px; inset-inline-start: calc(50% - 175px); transform: rotate(-10deg); }
.art-b { font-size: 70px; bottom: 6px; inset-inline-end: calc(50% - 170px); transform: rotate(12deg); }
.sticker {
  position: absolute; top: 14px; inset-inline-end: calc(50% - 150px); width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 10px; font-size: 12.5px; font-weight: 900; line-height: 1.5;
  background: var(--tomato); color: var(--tomato-ink); transform: rotate(-12deg); box-shadow: var(--shadow);
}
.hero-ctrl { position: absolute; bottom: 16px; inset-inline: 0; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 2; }
.hero-ctrl .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
.dots { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--fg); opacity: .25; cursor: pointer; transition: width .25s, opacity .25s; }
.dot[aria-current="true"] { width: 26px; opacity: .85; background: var(--primary); }

/* ---------- دسته‌بندی‌ها ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--fg); min-width: 0;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.cat-txt { display: grid; min-width: 0; line-height: 1.5; }
.cat-txt b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-txt small { font-size: 12px; color: var(--faint); }

/* ---------- قفسه و کارت محصول ---------- */
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-block: 4px 14px; scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > * { scroll-snap-align: start; }
/* کشیدن با ماوس: موقع کشیدن متن انتخاب نمی‌شه و ردیف آزاد حرکت می‌کنه */
@media (hover: hover) and (pointer: fine) { .shelf-track { cursor: grab; } }
.shelf-track img { -webkit-user-drag: none; user-select: none; }
.shelf-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shelf-track.dragging * { pointer-events: none; }
.shelf-nav .icon-btn:disabled { cursor: default; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }

.pc {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .2s, border-color .2s;
}
.pc:hover { box-shadow: var(--shadow); border-color: transparent; }
.pc-top { position: relative; }
.pc-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; border-radius: 15px; overflow: hidden;
  background: hsl(var(--h) var(--tile-s) var(--tile-l)); text-decoration: none;
}
.p-emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 12px 10px rgb(0 0 0 / .16)); transition: transform .3s; user-select: none; }
.p-img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.pc:hover .pc-media .p-emoji { transform: scale(1.07) rotate(-4deg); }
.badge-off {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; padding: 1px 9px; border-radius: 99px;
  background: var(--tomato); color: var(--tomato-ink); font-size: 12px; font-weight: 800; line-height: 1.7;
}
.badge-off.inline { position: static; }
.badge-out {
  position: absolute; inset-inline: 10px; bottom: 10px; text-align: center; padding: 4px; border-radius: 10px;
  background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800;
}
.pc.is-out .p-emoji { filter: grayscale(1); opacity: .45; }
.pc-wish {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .15s, color .15s;
}
.pc:hover .pc-wish, .pc-wish:focus-visible, .pc-wish[aria-pressed="true"] { opacity: 1; }
.pc-wish[aria-pressed="true"], .wish-btn[aria-pressed="true"] { color: var(--tomato); }
.pc-wish[aria-pressed="true"] svg, .wish-btn[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: none) { .pc-wish { opacity: 1; } }
.pc-ctrl { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 1; }
.add-btn {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); box-shadow: var(--shadow);
  transition: background-color .15s, color .15s;
}
.add-btn:hover { background: var(--primary); color: var(--primary-ink); }
.stepper {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border-radius: 13px;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow);
}
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: var(--stepper-hover); }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }
.stepper.lg { height: 52px; border-radius: 15px; padding: 4px; }
.stepper.lg button { width: 44px; height: 44px; border-radius: 12px; }
.stepper.lg output { min-width: 36px; font-size: 17px; }
.stepper.soft { background: var(--surface); color: var(--fg); border: 1.5px solid var(--line); box-shadow: none; }
.stepper.soft button { color: var(--primary); }
.stepper.soft button:hover { background: var(--primary-soft); }
.pc-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.65; color: var(--fg); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.3em;
}
.pc-title:hover { color: var(--primary); }
.pc-meta { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 11.5px; color: var(--faint); }
.tag-fast { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 700; }
.pc-price { display: grid; justify-items: end; margin-top: auto; line-height: 1.5; }
.pc-price .old { font-size: 12.5px; color: var(--faint); text-decoration: line-through; }
.pc-price .now { font-size: 16px; font-weight: 800; }
.pc-price small, .price small { font-size: 11px; color: var(--muted); font-weight: 500; }
.deal-bar { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); }
.deal-bar .bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.deal-bar .bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(to left, var(--saffron), var(--tomato)); }

/* تخفیف‌های امروز */
.deals { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 16px; border-radius: var(--r-xl); background: var(--saffron-soft); }
.deals-side { display: grid; align-content: center; justify-items: start; gap: 10px; padding: 12px 12px 12px 4px; }
.deals-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--tomato); color: var(--tomato-ink); }
.deals-title { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.3; }
.deals-side p { color: var(--muted); font-size: 14px; }
.countdown { display: flex; align-items: flex-start; gap: 4px; }
.countdown span { display: grid; justify-items: center; }
.countdown b { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--surface); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.countdown i { font-style: normal; font-weight: 900; font-size: 20px; line-height: 46px; color: var(--muted); }
.deals-shelf { position: relative; min-width: 0; }
.deals-shelf .shelf-nav { position: absolute; top: -2px; inset-inline-end: 0; display: none; }
/* فلش‌های کناری ردیف تخفیف‌ها (فقط دسکتاپ) */
.shelf-arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: opacity .2s, color .15s, border-color .15s;
}
.shelf-arrow:hover { color: var(--primary); border-color: var(--primary); }
.shelf-arrow.prev { inset-inline-start: -12px; }
.shelf-arrow.next { inset-inline-end: -12px; }
.shelf-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 760px) { .shelf-arrow { display: none; } }
.deals .shelf-track { padding-block: 0 4px; }

/* بنرهای تبلیغاتی */
.promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promo {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 160px; padding: 24px 30px;
  border-radius: var(--r-xl); text-decoration: none; color: var(--fg); overflow: hidden;
  background: linear-gradient(110deg, hsl(var(--h) var(--art-s) var(--art-l1)), hsl(calc(var(--h) + 20) var(--art-s) var(--art-l2)));
  transition: transform .2s;
}
.promo:hover { transform: translateY(-2px); }
.promo-txt { display: grid; gap: 2px; justify-items: start; position: relative; z-index: 1; }
.promo-txt small { font-size: 14px; color: var(--muted); font-weight: 700; }
.promo-txt strong { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.35; color: hsl(var(--h) 55% var(--art-ink)); }
.promo-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 14px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 800; }
.promo-art { font-size: 104px; line-height: 1; transform: rotate(-10deg); filter: drop-shadow(0 18px 16px rgb(0 0 0 / .2)); transition: transform .3s; }
.promo:hover .promo-art { transform: rotate(-4deg) scale(1.05); }

/* اعتبار هدیه */
.cashback {
  display: flex; align-items: center; gap: 28px; padding: 26px 34px; border-radius: var(--r-xl);
  background: var(--tomato-soft); position: relative; overflow: hidden;
}
.cb-txt { flex: 1; display: grid; gap: 6px; min-width: 0; }
.cb-title { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.35; color: var(--tomato); }
.cb-txt p { color: var(--muted); max-width: 60ch; }
.coins { position: relative; width: 170px; height: 100px; flex-shrink: 0; }
.coin {
  position: absolute; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900;
  background: radial-gradient(circle at 35% 30%, var(--saffron-soft) 0 18%, var(--saffron) 60%); color: var(--warning);
  border: 3px solid var(--saffron); box-shadow: var(--shadow);
}
.coin.c1 { inset-inline-start: 0; top: 18px; transform: rotate(-14deg); }
.coin.c2 { inset-inline-start: 50px; top: 0; z-index: 1; }
.coin.c3 { inset-inline-start: 98px; top: 24px; transform: rotate(16deg); width: 62px; height: 62px; font-size: 24px; }

/* بلاگ */
.blog-track { grid-auto-columns: 310px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); min-width: 0; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-cover {
  aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; font-size: 72px; line-height: 1;
  background: linear-gradient(135deg, hsl(var(--h) var(--art-s) var(--art-l1)), hsl(calc(var(--h) + 40) var(--art-s) var(--art-l2)));
}
.post-body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.post-cat { font-size: 12px; font-weight: 800; color: var(--primary); }
.post-title { font-size: 15.5px; font-weight: 800; line-height: 1.7; }
.post-ex { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }

/* مزیت‌ها و فوتر */
.perks {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px 28px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 56px; margin-bottom: -52px;
}
.perk { display: flex; align-items: center; gap: 12px; min-width: 0; }
.perk-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.perk b { display: block; font-size: 14.5px; }
.perk span { display: block; font-size: 12.5px; color: var(--muted); }
.ftr { position: relative; background: var(--footer-bg); color: var(--footer-fg); padding-block: 92px 26px; margin-top: 46px; }
.ftr::before {
  content: ""; position: absolute; top: -45px; inset-inline: 0; height: 46px; pointer-events: none;
  background: var(--footer-bg);
  clip-path: polygon(0% 22%, 2.5% 32.58%, 5% 39.12%, 7.5% 39.12%, 10% 32.58%, 12.5% 22%, 15% 11.42%, 17.5% 4.88%, 20% 4.88%, 22.5% 11.42%,
    25% 22%, 27.5% 32.58%, 30% 39.12%, 32.5% 39.12%, 35% 32.58%, 37.5% 22%, 40% 11.42%, 42.5% 4.88%, 45% 4.88%, 47.5% 11.42%,
    50% 22%, 52.5% 32.58%, 55% 39.12%, 57.5% 39.12%, 60% 32.58%, 62.5% 22%, 65% 11.42%, 67.5% 4.88%, 70% 4.88%, 72.5% 11.42%,
    75% 22%, 77.5% 32.58%, 80% 39.12%, 82.5% 39.12%, 85% 32.58%, 87.5% 22%, 90% 11.42%, 92.5% 4.88%, 95% 4.88%, 97.5% 11.42%,
    100% 22%, 100% 100%, 0% 100%);
}
.ftr::after {
  content: ""; position: absolute; top: -32px; inset-inline: 0; height: 46px; pointer-events: none; opacity: .5;
  background: var(--primary);
  clip-path: polygon(0% 39.12%, 2.5% 32.58%, 5% 22%, 7.5% 11.42%, 10% 4.88%, 12.5% 4.88%, 15% 11.42%, 17.5% 22%, 20% 32.58%, 22.5% 39.12%,
    25% 39.12%, 27.5% 32.58%, 30% 22%, 32.5% 11.42%, 35% 4.88%, 37.5% 4.88%, 40% 11.42%, 42.5% 22%, 45% 32.58%, 47.5% 39.12%,
    50% 39.12%, 52.5% 32.58%, 55% 22%, 57.5% 11.42%, 60% 4.88%, 62.5% 4.88%, 65% 11.42%, 67.5% 22%, 70% 32.58%, 72.5% 39.12%,
    75% 39.12%, 77.5% 32.58%, 80% 22%, 82.5% 11.42%, 85% 4.88%, 87.5% 4.88%, 90% 11.42%, 92.5% 22%, 95% 32.58%, 97.5% 39.12%,
    100% 39.12%, 100% 100%, 0% 100%);
}
.ftr a { color: var(--footer-fg); text-decoration: none; }
.ftr a:hover { color: var(--toast-ok); }
.ftr-support { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-radius: 18px; background: var(--footer-card); }
.ftr-support p { font-weight: 700; }
.ftr-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; direction: ltr; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 36px 28px; }
.ftr h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.ftr li a { color: var(--footer-muted); }
.ftr li a:hover { color: var(--footer-fg); }
.ftr-brand { display: grid; gap: 14px; align-content: start; }
.ftr-brand .logo { color: var(--footer-fg); }
.ftr-brand .logo-sub { color: var(--footer-muted); }
.ftr-brand p { color: var(--footer-muted); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--footer-card); }
.trust { display: flex; gap: 10px; margin-top: 14px; }
.trust-box { width: 92px; height: 92px; border-radius: 18px; border: 1.5px dashed var(--footer-line); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; font-size: 11px; color: var(--footer-muted); padding: 6px; }
.news { display: flex; gap: 8px; margin-top: 4px; }
.news .input { min-height: 44px; background: var(--footer-card); border-color: var(--footer-line); color: var(--footer-fg); }
.news .input::placeholder { color: var(--footer-muted); }
.news .btn { min-height: 44px; }
.ftr small { color: var(--footer-muted); }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--footer-line); font-size: 12.5px; color: var(--footer-muted); }
.ftr-bottom a { color: var(--footer-fg); font-weight: 700; }

.to-top {
  position: fixed; inset-inline-end: 18px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- تست‌ها، مودال و کشو ---------- */
.toasts {
  position: fixed; z-index: 300; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline: 0; padding-inline: 16px;
  display: grid; justify-items: center; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(480px, 100%); min-height: 50px;
  padding: 10px 10px 10px 14px; border-radius: 15px; background: var(--toast-bg); color: var(--toast-fg);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s;
}
.toast.in { opacity: 1; transform: none; }
.toast-success .st, .toast-info .st { color: var(--toast-ok); }
.toast-error .st { color: var(--toast-err); }
.toast-act { color: var(--toast-ok); font-weight: 800; text-decoration: none; white-space: nowrap; padding-inline: 4px; }
.toast-x { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: inherit; opacity: .6; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.toast-x:hover { opacity: 1; }

.overlay { position: fixed; inset: 0; z-index: 90; background: var(--overlay); opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform .28s cubic-bezier(.2, .75, .2, 1);
}
.drawer-end { left: 0; border-radius: 0 24px 24px 0; transform: translateX(-104%); }
.drawer-start { right: 0; border-radius: 24px 0 0 24px; transform: translateX(104%); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; font-weight: 800; }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-scroll { flex: 1; min-height: 0; overflow: auto; padding: 4px 18px 16px; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.drawer-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dc { border-bottom: 1px solid var(--line); }
.dc-sum { display: flex; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 700; }
.dc-sum::-webkit-details-marker { display: none; }
.dc-sum .ico:first-child { color: var(--primary); }
.dc-sum .ico:last-child { margin-inline-start: auto; color: var(--faint); transition: transform .2s; }
.dc[open] .dc-sum .ico:last-child { transform: rotate(180deg); }
.dc-subs { display: grid; gap: 2px; padding: 0 34px 12px 0; }
.dc-subs a { padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.dc-subs a:hover { background: var(--surface-2); color: var(--fg); }
.dc-subs a:first-child { color: var(--primary); font-weight: 700; }
.dc-links { display: grid; gap: 2px; padding-top: 12px; }
.dc-links a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.dc-links a .ico { color: var(--muted); }

.modal-wrap { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: var(--overlay); opacity: 0; transition: opacity .2s; }
.modal-wrap.show { opacity: 1; }
.modal {
  width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px 24px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .2s;
}
.modal.wide { width: min(640px, 100%); }
.modal-wrap.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { font-size: 18px; font-weight: 900; }
.modal-body { display: grid; gap: 16px; }

.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gateway { display: grid; justify-items: center; gap: 12px; text-align: center; padding-block: 10px; }

/* ورود */
.lgf { display: grid; gap: 14px; }
.lg-lead { font-size: 15px; color: var(--fg); }
.lg-terms { font-size: 12.5px; color: var(--faint); text-align: center; }
.lg-phone-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 13px; background: var(--surface-2); font-size: 14px; }
.lg-phone-row > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.lg-phone-row b { color: var(--fg); }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-left: 52px; letter-spacing: .04em; }
.pass-eye {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.pass-eye:hover, .pass-eye[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
.login-page { max-width: 460px; margin: 40px auto; padding: 26px; }
.login-page h1 { font-size: 22px; margin-bottom: 14px; }

/* ---------- فروشگاه ---------- */
.shop { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.shop-side {
  position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow: auto;
  display: grid; gap: 4px; padding: 6px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px 6px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.side-head b { font-size: 16px; }
.side-close { display: none; }
.f-group { display: grid; gap: 10px; padding-block: 14px; border-top: 1px solid var(--line); }
.f-title { font-weight: 800; font-size: 14px; }
.f-cats { display: grid; gap: 2px; }
.f-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.f-cats a:hover { background: var(--surface-2); color: var(--fg); }
.f-cats a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); }
.f-cats a .count { margin-inline-start: auto; font-size: 12px; color: var(--faint); }
.f-subs { display: grid; gap: 2px; padding-inline-start: 22px; }
.f-subs a { padding-block: 5px; font-size: 13px; }
.price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-inputs .input { min-height: 42px; font-size: 14px; padding-inline: 10px; }
.side-apply { display: none; }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sorts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.sorts .label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; }
.filter-btn { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.load-more { display: flex; justify-content: center; margin-top: 22px; }
.sheet-overlay { display: none; }

/* ---------- صفحه محصول ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 320px; gap: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); margin-top: 14px; }
.pd-gallery { display: grid; gap: 10px; align-content: start; }
.pd-main { aspect-ratio: 1; max-width: 100%; border-radius: 22px; display: grid; place-items: center; background: hsl(var(--h) var(--tile-s) var(--tile-l)); overflow: hidden; }
.pd-main .p-emoji { font-size: clamp(110px, 14vw, 180px); transition: transform .3s; }
.pd-main.v1 .p-emoji { transform: scale(.8) rotate(-12deg); }
.pd-main.v2 .p-emoji { transform: scale(1.15) rotate(8deg); }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumb { width: 72px; height: 72px; border-radius: 16px; border: 2px solid transparent; background: hsl(var(--h) var(--tile-s) var(--tile-l)); display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden; }
.pd-thumb .p-emoji { font-size: 34px; filter: none; }
.pd-thumb:nth-child(2) .p-emoji { transform: scale(.8) rotate(-12deg); }
.pd-thumb:nth-child(3) .p-emoji { transform: scale(1.15) rotate(8deg); }
.pd-thumb[aria-pressed="true"] { border-color: var(--primary); }
.pd-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pd-cat { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pd-cat a { color: var(--primary); text-decoration: none; font-weight: 700; }
.pd-info h1 { font-size: 23px; font-weight: 900; }
.pd-en { font-size: 13px; color: var(--faint); direction: ltr; text-align: right; }
.pd-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.pd-rate .stars-inline { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); font-weight: 800; }
.pd-rate .stars-inline .ico { color: var(--saffron); fill: var(--saffron); }
.pd-rate a, .pd-rate button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; text-decoration: none; }
.pd-rate a:hover, .pd-rate button:hover { color: var(--primary); }
.feat-title { font-size: 14px; font-weight: 800; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; }
.feat { padding: 8px 14px; border-radius: 13px; background: var(--surface-2); min-width: 100px; line-height: 1.6; }
.feat small { display: block; font-size: 11.5px; color: var(--faint); }
.feat b { font-size: 13.5px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { min-height: 44px; padding: 6px 16px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--fg); }
.variant[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.notice .ico { color: var(--info); }
.buybox { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 22px; background: var(--surface-2); }
.spec-list { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.spec-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.spec-row b { margin-inline-start: auto; color: var(--fg); font-weight: 700; }
.spec-row b.ok { color: var(--primary); }
.spec-row b.no { color: var(--danger); }
.price-block { display: grid; justify-items: end; gap: 2px; }
.price-block .old-row { display: flex; align-items: center; gap: 8px; }
.price-block .old { color: var(--faint); text-decoration: line-through; font-size: 14px; }
.price-block .now { font-size: 25px; font-weight: 900; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn-primary { flex: 1; }
.buybox .buy-row .stepper { flex: 1; justify-content: space-between; }
.in-cart { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.in-cart .ico { color: var(--primary); }
.in-cart a { font-weight: 700; text-decoration: none; }
.cb-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cb-note .ico { color: var(--tomato); }
.pd-tabs { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding-inline: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-btn { padding: 16px 16px 14px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 800; font-size: 14.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab-btn[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--primary); }
.tab-panel { padding: 22px 24px 26px; }
.prose { display: grid; gap: 14px; max-width: 75ch; }
.prose p { font-size: 15px; line-height: 2.05; color: var(--fg); }
.prose h2, .prose h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.collapse { position: relative; max-height: 230px; overflow: hidden; }
.collapse.open { max-height: none; }
.collapse:not(.open)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 100px; background: linear-gradient(to bottom, transparent, var(--surface)); }
.more-btn { margin-top: 12px; }
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { width: 32%; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.rv-sum { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rv-avg { display: grid; gap: 4px; align-content: start; }
.rv-avg b { font-size: 46px; font-weight: 900; line-height: 1.1; }
.rv-avg span { color: var(--muted); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: var(--saffron); }
.stars .ico.off { color: var(--line); fill: var(--line); }
.stars .ico { fill: currentColor; }
.rv-bars { display: grid; gap: 6px; align-content: center; }
.rv-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.rv-bar .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rv-bar .bar i { display: block; height: 100%; width: var(--p); background: var(--saffron); border-radius: inherit; }
.rv-list { display: grid; }
.rv { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.rv-top b { color: var(--fg); font-size: 14px; }
.rv-rec { font-size: 12px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.rv-rec.no { color: var(--muted); }
.rv-form { display: grid; gap: 14px; padding: 20px; margin-top: 20px; border-radius: 20px; background: var(--surface-2); }
.rv-form h3 { font-size: 16px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line); display: grid; }
.star-input label .ico { fill: currentColor; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--saffron); }
.star-input input:focus-visible + label { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.pd-sticky { display: none; }

/* ---------- سبد خرید و تسویه ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin-block: 24px 18px; padding: 0; list-style: none; font-size: 13.5px; font-weight: 700; color: var(--faint); flex-wrap: wrap; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; }
.step i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--surface-2); border: 1.5px solid var(--line); }
.step.done, .step.cur { color: var(--fg); }
.step.done i { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.step.cur i { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.step-line { width: 34px; height: 2px; border-radius: 2px; background: var(--line); }
.cart-layout, .co { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.cart-list { padding: 6px 22px; }
.cart-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 14px 10px; }
.cart-list-head h1 { font-size: 20px; font-weight: 900; }
.cl { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); }
.cl-media { width: 92px; height: 92px; border-radius: 18px; display: grid; place-items: center; background: hsl(var(--h) var(--tile-s) var(--tile-l)); text-decoration: none; overflow: hidden; }
.cl-media .p-emoji { font-size: 48px; }
.cl-info { display: grid; gap: 3px; min-width: 0; }
.cl-name { font-weight: 700; font-size: 14.5px; color: var(--fg); text-decoration: none; line-height: 1.6; }
.cl-name:hover { color: var(--primary); }
.cl-var { font-size: 12.5px; color: var(--muted); }
.cl-unit { font-size: 12.5px; color: var(--faint); }
.cl-unit s { margin-inline-end: 8px; }
.cl-side { display: grid; justify-items: end; gap: 8px; }
.cl-total { font-size: 15px; font-weight: 800; white-space: nowrap; }
.cl-total small { font-size: 11px; color: var(--muted); font-weight: 500; }
.cl-compact { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; }
.cl-compact .cl-media { width: 64px; height: 64px; border-radius: 14px; }
.cl-compact .cl-media .p-emoji { font-size: 34px; }
.cl-compact .cl-name { font-size: 13px; }
.cl-compact .stepper { height: 34px; }
.cl-compact .stepper button { width: 28px; height: 28px; }
.cl-compact .stepper output { min-width: 20px; font-size: 13px; }
.cl-compact .cl-total { font-size: 13px; }
.summary { position: sticky; top: calc(var(--hdr-h) + 16px); padding: 20px; display: grid; gap: 14px; }
.summary h2 { font-size: 17px; font-weight: 900; }
.sum-rows { display: grid; gap: 10px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.sum-row b { color: var(--fg); font-weight: 700; white-space: nowrap; }
.sum-row.save b { color: var(--tomato); }
.sum-row.total { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15.5px; color: var(--fg); font-weight: 800; }
.sum-row.total b { font-size: 18px; font-weight: 900; }
.ship-bar { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); font-size: 13px; color: var(--fg); }
.ship-bar p { display: flex; align-items: center; gap: 8px; }
.ship-bar .ico { color: var(--primary); }
.ship-bar .bar { height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; width: var(--p); background: var(--primary); border-radius: inherit; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 44px; font-size: 14px; direction: ltr; text-align: right; text-transform: uppercase; }
.coupon-form .btn { min-height: 44px; }
.coupon-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 13px; border: 1.5px dashed var(--primary); font-size: 13px; }
.coupon-on.warn { border-color: var(--saffron); }
.coupon-on .coupon-msg { display: grid; gap: 2px; }
.coupon-on .coupon-msg small { color: var(--warning); font-size: 12px; }
.co-card { padding: 20px 22px; display: grid; gap: 16px; }
.co-card + .co-card { margin-top: 16px; }
.co-card > h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; }
.co-card > h2 .ico { color: var(--primary); }
.addr-list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--primary); }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.opt-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.opt-body b { font-size: 14.5px; }
.opt-body span { font-size: 13px; color: var(--muted); }
.opt-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); color: var(--primary); flex-shrink: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.day { display: grid; justify-items: center; gap: 0; min-width: 104px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 800; font-size: 14px; color: var(--fg); }
.day small { font-size: 12px; color: var(--muted); font-weight: 600; }
.day[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.day[aria-pressed="true"] small { color: var(--primary-ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 48px; padding: 6px; border-radius: 13px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; text-align: center; transition: border-color .15s, background-color .15s; }
.slot input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.slot input:focus-visible + span { outline: 2.5px solid var(--primary); outline-offset: 2px; }
.slot input:disabled { cursor: not-allowed; }
.slot input:disabled + span { opacity: .4; text-decoration: line-through; }
.co-items { display: flex; gap: 8px; flex-wrap: wrap; }
.co-items .sp-thumb { position: relative; width: 52px; height: 52px; }
.co-items .sp-thumb b { position: absolute; bottom: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--fg); color: var(--bg); font-size: 11px; display: grid; place-items: center; padding-inline: 4px; }
.gate { max-width: 520px; margin: 30px auto; padding: 30px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* سفارش موفق */
.order-done { max-width: 620px; margin: 30px auto; padding: 30px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.done-ico { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.order-done h1 { font-size: 24px; font-weight: 900; }
.done-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: start; }
.done-grid div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 2px; }
.done-grid small { color: var(--muted); font-size: 12px; }
.done-grid b { font-size: 14.5px; }
.order-done .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- حساب کاربری ---------- */
.acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 22px; }
/* منوی کناری (حساب و پنل مدیریت): اسکرول مستقل خودش رو داره، پس هر جا ماوس باشه همون بخش اسکرول می‌شه
   و لازم نیست اول اسکرول محتوای اصلی تموم بشه تا ته منو دیده بشه. وقتی منو به آخر رسید اسکرول به صفحه می‌رسه. */
.acc-side {
  position: sticky; top: calc(var(--hdr-h) + 16px); padding: 16px;
  max-height: calc(100vh - var(--hdr-h) - 32px); overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: thin;
}
.acc-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--line); }
.acc-user b { display: block; font-size: 15px; }
.acc-user div > span { display: block; font-size: 13px; color: var(--muted); text-align: right; }
.acc-wallet { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.acc-wallet b { color: var(--fg); }
.acc-nav { display: grid; gap: 2px; margin-top: 10px; }
.acc-nav a, .acc-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; text-align: start; white-space: nowrap;
}
.acc-nav a:hover, .acc-nav button:hover { background: var(--surface-2); color: var(--fg); }
.acc-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.acc-nav .badge { margin-inline-start: auto; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; display: grid; place-items: center; }
.acc-main { display: grid; gap: 16px; min-width: 0; }
.panel { padding: 20px 22px; display: grid; gap: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h1, .panel-head h2 { font-size: 18px; font-weight: 900; }
.wallet-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(130deg, var(--primary), var(--primary-strong)); color: var(--primary-ink);
}
.wallet-card small { display: block; font-size: 13px; opacity: .85; }
.wallet-card b { font-size: 26px; font-weight: 900; }
.wallet-card .btn { background: var(--primary-ink); color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface-2); text-decoration: none; color: var(--fg); }
.stat:hover { outline: 1.5px solid var(--primary); }
.stat .ico { color: var(--primary); }
.stat b { font-size: 26px; font-weight: 900; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.notes { display: grid; gap: 8px; }
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.note .ico { color: var(--primary); margin-top: 3px; }
.note small { display: block; color: var(--faint); font-size: 12px; }
.orders { display: grid; gap: 12px; }
.order-card { display: grid; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); }
.order-top { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.order-top b { color: var(--fg); }
.order-top .pill { margin-inline-start: auto; }
.order-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.order-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sample { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--faint); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 6px; }
.tl { display: grid; justify-items: center; gap: 6px; position: relative; text-align: center; font-size: 12.5px; color: var(--faint); font-weight: 700; }
.tl i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--surface-2); border: 2px solid var(--line); color: var(--faint); position: relative; z-index: 1; }
.tl::before { content: ""; position: absolute; top: 16px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.done { color: var(--fg); }
.tl.done i { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tl.ld::before { background: var(--primary); }
.tl.cur i { box-shadow: 0 0 0 5px var(--primary-soft); }
.tl.stop i { background: var(--tomato); border-color: var(--tomato); color: var(--tomato-ink); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-grid div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 2px; min-width: 0; }
.info-grid small { font-size: 12px; color: var(--muted); }
.info-grid b { font-size: 14px; overflow-wrap: anywhere; }
/* position: relative تا متن‌های sr-only داخل جدول از کادر اسکرول بیرون نزنن و صفحه رو عریض نکنن */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-prod { display: flex; align-items: center; gap: 10px; }
.addr-card { display: flex; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); align-items: flex-start; }
.addr-card .opt-ico { background: var(--primary-soft); }
.addr-card .acts { display: flex; gap: 6px; margin-inline-start: auto; flex-shrink: 0; }
.coupon-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px dashed var(--line); }
.coupon-card .opt-ico { background: var(--tomato-soft); color: var(--tomato); }
.ticket { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ticket summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary .pill { margin-inline-start: auto; }
.ticket-body { display: grid; gap: 10px; padding: 0 16px 16px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.9; }
.msg small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.msg.me { justify-self: start; background: var(--primary-soft); border-start-start-radius: 4px; }
.msg.them { justify-self: end; background: var(--surface-2); border-start-end-radius: 4px; }
.reply { display: flex; gap: 8px; }
.reply .input { min-height: 44px; }

/* پنل مدیریت: محصولات، تخفیف‌ها، گزارش سود */
.panel .hint { font-size: 12.5px; color: var(--faint); line-height: 1.9; }
.panel-sub { font-size: 16px; font-weight: 900; }
div.stat:hover { outline: 0; }
.stat-money b { font-size: 21px; overflow-wrap: anywhere; }
.profit-stat { background: var(--primary-soft); }
.profit-stat b { color: var(--primary); }
.profit-stat.neg { background: var(--tomato-soft); }
.profit-stat.neg b, .profit-stat.neg .ico { color: var(--danger); }
.neg-text { color: var(--danger); }
.pos-text { color: var(--primary); }
.warn-text { color: var(--warning); font-weight: 700; }
.row-off td { background: var(--surface-2); }
.row-off .sp-thumb { opacity: .5; }
.sp-thumb .p-img { padding: 8%; }
.admin-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 8px; }
.admin-filter .input { min-height: 44px; }
.price-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.price-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.price-preview > div { flex: 1 1 150px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.price-preview small { font-size: 12px; color: var(--muted); }
.price-preview b { font-size: 17px; font-weight: 900; }
.price-preview .pos b { color: var(--primary); }
.price-preview .neg b { color: var(--danger); }
.price-preview p { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.price-preview > .muted { font-size: 13.5px; }
.img-pick { display: flex; gap: 16px; align-items: flex-start; }
.img-preview { width: 112px; height: 112px; border-radius: 20px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: hsl(var(--h) var(--tile-s) var(--tile-l)); }
.img-preview img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.img-preview .p-emoji { font-size: 56px; }
.img-pick-body { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.img-pick input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.hue-range { width: 100%; height: 48px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 6px; }

/* تاریخ تولید و انقضا، ویژگی‌های محصول */
.date-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.date-panel .input { background: var(--surface); }
.shelf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.shelf-chips .chip { min-height: 34px; padding-block: 4px; font-size: 13px; }
.exp-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.exp-preview > div { flex: 1 1 160px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.exp-preview small { font-size: 12px; color: var(--muted); }
.exp-preview b { font-size: 16px; font-weight: 900; }
.exp-preview p { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.exp-preview > .muted { font-size: 13.5px; }
.exp-ok b, b.exp-ok, .exp-pill.exp-ok, small.exp-ok { color: var(--primary); }
.exp-warn b, .exp-pill.exp-warn, small.exp-warn { color: var(--warning); }
.exp-bad b, .exp-pill.exp-bad, small.exp-bad { color: var(--danger); }
.exp-preview > .exp-warn { background: var(--saffron-soft); border-color: transparent; }
.exp-preview > .exp-bad { background: var(--tomato-soft); border-color: transparent; }
.exp-pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--surface-2); }
.exp-pill.exp-warn { background: var(--saffron-soft); }
.exp-pill.exp-bad { background: var(--tomato-soft); }
.spec-row b small { display: block; font-size: 11.5px; font-weight: 700; }
.feat-rows { display: grid; gap: 8px; }
.feat-rows:empty { display: none; }
.feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.feat-row .input { min-height: 44px; }

/* موجودی سریع در فهرست محصولات */
.stock-form { display: flex; align-items: center; gap: 6px; }
.stock-form .input { width: 76px; min-height: 36px; padding: 4px 10px; font-size: 14px; font-weight: 700; }
.stock-form .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
.stock-form.low .input { border-color: var(--warning); color: var(--warning); }
.stock-form.out .input { border-color: var(--danger); color: var(--danger); }
/* ردیف‌های صفحه‌ی اول */
/* فرمی که جدول داره نباید پنل رو عریض کنه (جدول خودش اسکرول افقی داره) */
.panel > form, .panel > div { min-width: 0; }
.pos-in { width: 72px; min-height: 38px; padding: 4px 10px; font-weight: 700; }
.pick-list { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pick-item:hover { background: var(--surface-2); }
.pick-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }
.pick-item .sp-thumb { width: 36px; height: 36px; border-radius: 10px; }
.pick-item:has(input:checked) { background: var(--primary-soft); }
.form-grid .panel-sub { margin-top: 6px; }

/* منوی سه‌نقطه‌ی ردیف کاربرها */
.kebab { width: 36px; height: 36px; border-radius: 11px; }
.kebab[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.row-menu {
  position: fixed; z-index: 90; min-width: 210px; max-width: 280px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg, var(--shadow));
}
.row-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px;
  background: none; color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; text-align: start; cursor: pointer;
}
.row-menu button .ico { color: var(--muted); flex-shrink: 0; }
.row-menu button:hover:not(:disabled), .row-menu button:focus-visible { background: var(--surface-2); outline: none; }
.row-menu button.danger, .row-menu button.danger .ico { color: var(--danger); }
.row-menu button:disabled { opacity: .45; cursor: default; }
.row-menu-note { padding: 6px 12px 4px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 4px; line-height: 1.8; }
/* حذف اطلاعیه‌ها در داشبورد */
.note > div { flex: 1; min-width: 0; }
.note-x {
  width: 30px; height: 30px; flex-shrink: 0; margin: -4px; border: 0; border-radius: 9px; display: grid; place-items: center;
  background: none; color: var(--faint); cursor: pointer; transition: background-color .15s, color .15s;
}
.note-x .ico { color: inherit; margin: 0; }
.note-x:hover, .note-x:focus-visible { background: var(--tomato-soft); color: var(--danger); outline: none; }

/* کاربرها، کدهای تخفیف، Admins، بستن تیکت */
.pill-closed { background: var(--surface-2); color: var(--muted); }
.danger-btn:hover { border-color: var(--danger); color: var(--danger); }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.upper { text-transform: uppercase; }
.ban-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--tomato-soft); color: var(--danger); }
.ban-box > div { display: grid; gap: 2px; flex: 1 1 220px; }
.ban-box span { color: var(--fg); font-size: 13px; }
.perm-grid { border: 0; padding: 14px 16px; margin: 0; border-radius: 16px; background: var(--surface-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.perm-grid legend { float: left; width: 100%; margin-bottom: 4px; }
.perm-grid label:has(input:disabled) { opacity: .55; cursor: default; }
.perm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.perm-chips .chip { cursor: default; }
.sat b { color: var(--primary); }
.ticket-actions { display: flex; justify-content: flex-end; }
.ticket-closed { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.ticket-closed .ico { color: var(--primary); flex-shrink: 0; }
.ticket-rating { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.ticket-rating.ok { background: var(--primary-soft); }
.ticket-rating.bad { background: var(--tomato-soft); }
.ticket-rating span { color: var(--muted); font-size: 13px; }
.rate-form { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--primary); }
.rate-form .input { min-height: 44px; }
.rate-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-btns .btn { flex: 1 1 140px; }

/* ---------- بلاگ، صفحات متنی ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.post { max-width: 820px; margin-inline: auto; }
.post-hero { aspect-ratio: 16 / 7; max-width: 100%; border-radius: var(--r-xl); display: grid; place-items: center; font-size: clamp(80px, 12vw, 130px); margin-top: 14px;
  background: linear-gradient(135deg, hsl(var(--h) var(--art-s) var(--art-l1)), hsl(calc(var(--h) + 40) var(--art-s) var(--art-l2))); }
.post h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-top: 22px; }
.post-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin-block: 10px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-info span { display: inline-flex; align-items: center; gap: 6px; }
.post .prose p { font-size: 16px; }
.post-actions { display: flex; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }

.faq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 14px; }
.faq-groups { padding: 10px; display: grid; gap: 2px; }
.faq-groups button { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; text-align: start; }
.faq-groups button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); }
.faq-groups button span { font-size: 12px; }
.faq-g { display: grid; gap: 10px; }
.perks-list .card b { display: block; font-size: 15px; }
.help-card { padding: 20px; display: grid; gap: 10px; background: var(--primary-soft); border-color: transparent; }
.help-card h2 { font-size: 16px; font-weight: 900; }
.help-card p { color: var(--muted); font-size: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-group-title { font-size: 15px; font-weight: 900; margin-top: 14px; color: var(--muted); }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.qa > h3 { margin: 0; }
.qa-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 0; background: none; cursor: pointer; color: var(--fg); font-weight: 700; font-size: 15px; text-align: start; }
.qa-btn .ico { color: var(--muted); transition: transform .2s; }
.qa-btn[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--primary); }
.qa-body { padding: 0 18px 16px; color: var(--muted); line-height: 2; font-size: 14.5px; }
.faq-search { position: relative; }
.faq-search .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search .input { padding-inline-start: 44px; }

.contact { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.c-cards { display: grid; gap: 12px; }
.c-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.c-card .opt-ico { background: var(--primary-soft); }
.c-card b { display: block; font-size: 14.5px; }
.c-card p, .c-card a { color: var(--muted); font-size: 14px; text-decoration: none; }
.c-card .copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map {
  position: relative; height: 210px; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--surface-2);
}
.map::before { content: ""; position: absolute; inset: 40% -10% auto -10%; height: 18px; background: var(--surface); transform: rotate(-8deg); }
.map::after { content: ""; position: absolute; inset: -10% 46% -10% auto; width: 14px; background: var(--surface); transform: rotate(10deg); }
.map-pin { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.map-pin span { width: 54px; height: 54px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--tomato); display: grid; place-items: center; box-shadow: var(--shadow); }
.map-pin span .ico { transform: rotate(45deg); color: var(--tomato-ink); }
.map-pin a { position: relative; z-index: 1; }

.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 26px; }
.about-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.3; }
.about-hero .lead { font-size: 18px; color: var(--muted); margin-top: 8px; }
.about-art { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-xl); display: grid; place-items: center; font-size: clamp(80px, 12vw, 140px); --h: 140;
  background: linear-gradient(135deg, hsl(var(--h) var(--art-s) var(--art-l1)), hsl(calc(var(--h) + 30) var(--art-s) var(--art-l2))); }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-stats div { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.about-stats b { font-size: 28px; font-weight: 900; color: var(--primary); }
.about-stats span { font-size: 13.5px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { padding: 22px; display: grid; gap: 10px; align-content: start; }
.value .opt-ico { background: var(--primary-soft); }
.value h3 { font-size: 16px; font-weight: 900; }
.value p { color: var(--muted); font-size: 14px; }

.jobs { display: grid; gap: 12px; }
.job { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.job-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.job-head .opt-ico { background: var(--primary-soft); }
.job-title { display: grid; gap: 4px; min-width: 0; flex: 1; }
.job-title b { font-size: 15.5px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-meta span { font-size: 12px; padding: 1px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.job-body { display: grid; gap: 12px; padding: 0 18px 18px; font-size: 14px; color: var(--muted); }
.job-body h4 { font-size: 14px; color: var(--fg); }
.job-body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.perks-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.perks-list .card { padding: 18px; display: flex; gap: 12px; align-items: center; }
.perks-list .opt-ico { background: var(--primary-soft); }

/* ۴۰۴ */
.nf { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: 50px 20px; }
.nf-art { width: 210px; height: 210px; }
.nf h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 46px); }
.nf p { color: var(--muted); }
.nf .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1180px) {
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .buybox .spec-list { grid-row: span 3; border-bottom: 0; padding-bottom: 0; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hdr-note { display: none; }
}
@media (max-width: 1024px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { padding: 34px 36px 66px; }
  .mm-subs, .mm-top-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --hdr-h: 70px; }
  .hdr-row2-wrap { display: none; }
  .hdr-row1 { min-height: 68px; gap: 10px; }
  .logo-words { display: none; }
  .logo-mark { width: 42px; height: 42px; }
  .hdr-actions .acc-menu, .hdr-actions .cart-btn { display: none; }
  .search-box { height: 46px; padding-inline: 12px 5px; border-radius: 14px; }
  .search-go { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }

  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop-side {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 100; max-height: 86vh; border-radius: 26px 26px 0 0; border: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(104%); transition: transform .28s cubic-bezier(.2, .75, .2, 1);
    box-shadow: var(--shadow-lg);
  }
  .shop-side.open { transform: none; }
  .side-close { display: inline-grid; }
  .side-apply { display: block; position: sticky; bottom: 0; padding-top: 10px; background: var(--surface); }
  .sheet-overlay { display: block; position: fixed; inset: 0; z-index: 95; background: var(--overlay); }
  .sheet-overlay[hidden] { display: none; }
  .filter-btn { display: inline-flex; }
  .sorts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .sorts .label { display: none; }
  .shop-top { margin-bottom: 10px; }

  .cart-layout, .co { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .acc { grid-template-columns: minmax(0, 1fr); }
  .acc-side { position: static; padding: 12px; max-height: none; overflow: visible; }
  .acc-nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .acc-nav a, .acc-nav button { width: auto; flex-shrink: 0; border: 1px solid var(--line); }
  .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values, .perks-list { grid-template-columns: minmax(0, 1fr); }
  .deals { grid-template-columns: minmax(0, 1fr); }
  .deals-side { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 4px; }
  .deals-side .deals-ico { grid-row: span 2; }
  .deals-side .countdown, .deals-side .btn { grid-column: 1 / -1; }
  .deals-side .btn { justify-self: start; }
  .pd-sticky {
    display: flex; position: fixed; inset-inline: 0; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 58;
    align-items: center; justify-content: space-between; gap: 12px; margin-inline: 12px; padding: 10px 12px 10px 14px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .pd-sticky .price-block { justify-items: start; }
  .pd-sticky .price-block .now { font-size: 18px; }
  .pd-sticky .btn { min-height: 46px; }
  .pd-page { padding-bottom: 76px; }
}
@media (max-width: 760px) {
  .pd { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; }
  .buybox { grid-template-columns: minmax(0, 1fr); }
  .buybox .spec-list { grid-row: auto; }
  .buybox .buy-row, .buybox .price-block, .buybox .in-cart { display: none; }
  .rv-sum { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tab-panel { padding: 18px 16px 20px; }
  .slide { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 62px; min-height: 0; gap: 0; }
  .slide-art { order: -1; height: 170px; }
  .art-disc { width: 160px; height: 160px; }
  .art-main { font-size: 96px; }
  .art-a { font-size: 48px; inset-inline-start: calc(50% - 120px); top: 10px; }
  .art-b { font-size: 46px; inset-inline-end: calc(50% - 116px); bottom: 4px; }
  .sticker { width: 74px; height: 74px; font-size: 10.5px; inset-inline-end: calc(50% - 128px); top: 6px; }
  .slide-txt { justify-items: stretch; text-align: start; }
  .slide-txt .eyebrow { justify-self: start; }
  .hero { margin-top: 14px; border-radius: 24px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cats .cat:nth-child(n+7) { display: none; }
  .cat { flex-direction: column; text-align: center; padding: 14px 6px 12px; gap: 8px; }
  .cat-ico { width: 54px; height: 54px; }
  .cat-txt b { font-size: 13px; white-space: normal; }
  .cat-txt small { display: none; }
  .shelf-track { grid-auto-columns: 160px; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .blog-track { grid-auto-columns: 260px; }
  .shelf-nav { display: none; }
  .p-emoji { font-size: 60px; }
  .pc { padding: 8px 8px 12px; gap: 6px; border-radius: 18px; }
  .pc-title { font-size: 13px; }
  .pc-price .now { font-size: 15px; }
  .add-btn, .stepper { height: 36px; }
  .add-btn { width: 36px; border-radius: 12px; }
  .stepper button { width: 30px; height: 30px; }
  .stepper output { min-width: 22px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .promos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .promo { min-height: 128px; padding: 18px 22px; }
  .promo-txt strong { font-size: 30px; }
  .promo-art { font-size: 80px; }
  .cashback { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .coins { order: -1; height: 80px; }
  .coin { width: 60px; height: 60px; font-size: 24px; }
  .coin.c2 { inset-inline-start: 42px; }
  .coin.c3 { inset-inline-start: 82px; width: 52px; height: 52px; font-size: 20px; }
  .cb-title { font-size: 28px; }
  .sec { margin-block: 30px; }
  .sec-title h2 { font-size: 18px; }
  .sec-ico { width: 40px; height: 40px; border-radius: 13px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 14px; margin-top: 40px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; }
  .perk-ico { width: 42px; height: 42px; border-radius: 13px; }
  .ftr { border-radius: 28px 28px 0 0; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .ftr-brand, .ftr-news { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .info-grid, .done-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .admin-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-filter .select { grid-column: 1 / -1; grid-row: 2; }
  .img-preview { width: 88px; height: 88px; }
  .perm-grid { grid-template-columns: minmax(0, 1fr); }
  .date-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .feat-row { grid-template-columns: minmax(0, 1fr) auto; }
  .feat-row [data-fv] { grid-column: 1; grid-row: 2; }
  .feat-row [data-feat-del] { grid-row: 1 / span 2; grid-column: 2; }
  .cl { grid-template-columns: 72px minmax(0, 1fr); }
  .cl-media { width: 72px; height: 72px; border-radius: 16px; }
  .cl-media .p-emoji { font-size: 38px; }
  .cl-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .cl-compact .cl-side { grid-column: auto; display: grid; }
  .cart-list { padding: 4px 16px; }
  .page-head h1 { font-size: 22px; }
  .timeline .tl span { font-size: 11px; }
  .modal { padding: 18px 18px 22px; }
  .about-stats b { font-size: 22px; }
  .mm-panel { display: none; }
}
@media (max-width: 560px) {
  .modal-wrap { align-items: end; padding: 0; }
  .modal, .modal.wide { width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .addr-card { flex-wrap: wrap; }
  .addr-card .acts { width: 100%; justify-content: flex-end; }
  .msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- چاپ سفارش: یک برگ A4 = دو نیمه‌ی A5 (بالا فاکتور، پایین برچسب آدرس) ---------- */
#print-sheet { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  /* هر دو نیمه (فاکتور + برچسب آدرس) باید دقیقاً توی یک برگ A4 بشینن؛ هر پدینگ/ارتفاع اضافه‌ی صفحه‌ی سایت برگ دوم می‌سازه */
  html:has(body.printing), body.printing { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: #fff !important; }
  body.printing > *:not(#print-sheet) { display: none !important; }
  body.printing #print-sheet { display: block; width: 210mm; height: 295mm; overflow: hidden; break-after: avoid; page-break-after: avoid; break-inside: avoid; color: #000; font-family: var(--font); direction: rtl; }
  .ps-half { height: 147mm; box-sizing: border-box; padding: 8mm 11mm; overflow: hidden; break-inside: avoid; page-break-inside: avoid; display: flex; flex-direction: column; gap: 3mm; font-size: 10.5pt; line-height: 1.65; }
  .ps-half + .ps-half { margin-top: 0; }
  .ps-invoice { border-bottom: 1px dashed #000; }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1.5px solid #000; padding-bottom: 2.5mm; }
  .ps-head small { display: block; font-size: 9pt; }
  .ps-store { font-size: 15pt; font-weight: 900; }
  .ps-meta { text-align: left; }
  .ps-table { width: 100%; border-collapse: collapse; }
  .ps-table th, .ps-table td { border: 1px solid #000; padding: 1mm 2mm; text-align: start; }
  .ps-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-weight: 800; }
  .ps-table td:nth-child(1), .ps-table td:nth-child(3) { text-align: center; width: 1%; white-space: nowrap; }
  .ps-table td:nth-child(4), .ps-table td:nth-child(5) { white-space: nowrap; }
  .ps-invoice.sm { font-size: 9pt; } .ps-invoice.sm .ps-table td { padding: .6mm 1.5mm; }
  .ps-invoice.xs { font-size: 7.5pt; line-height: 1.4; } .ps-invoice.xs .ps-table td { padding: .3mm 1.2mm; }
  .ps-invoice.xxs { font-size: 6.5pt; line-height: 1.3; } .ps-invoice.xxs .ps-table td, .ps-invoice.xxs .ps-table th { padding: .2mm 1mm; }
  .ps-sum { display: flex; flex-wrap: wrap; gap: 2mm 6mm; justify-content: flex-end; margin-top: auto; }
  .ps-total { font-size: 12pt; border: 1.5px solid #000; padding: 1mm 3mm; }
  .ps-to { flex: 1; display: flex; flex-direction: column; gap: 2mm; border: 2px solid #000; border-radius: 4mm; padding: 6mm 8mm; }
  .ps-to small { font-size: 10pt; }
  .ps-name { font-size: 20pt; font-weight: 900; }
  .ps-phone { font-size: 17pt; text-align: right; letter-spacing: .05em; }
  .ps-addr { font-size: 14pt; font-weight: 700; line-height: 1.8; }
  .ps-note { font-size: 10pt; }
  .ps-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12pt; border-top: 1.5px solid #000; padding-top: 2.5mm; }
}


/* =====================================================================
   لایه‌ی تم لوکس: سرمه‌ای شبانه + طلایی شامپاینی
   (تمام رنگ‌های پایه از متغیرهای بالای فایل میان؛ این بخش فقط حس و حال لوکس رو اضافه می‌کنه.
    برای حذف تم لوکس کافیه همین بلوک رو پاک کنی.)
   ===================================================================== */
:root { --gold-hi: #2B2B2B; --gold-lo: #000000; --on-navy: #F2F2F2; --on-navy-2: #B9C0D0; --on-navy-gold: #FFFFFF; }
::selection { background: rgb(0 0 0 / 0.15); color: inherit; }
:focus-visible { outline-color: var(--gold); }
body {
  background-image: radial-gradient(1100px 420px at 50% -80px, rgb(0 0 0 / 0.04), transparent 70%);
  background-repeat: no-repeat;
}

/* ---------- دکمه‌ها ---------- */
.btn { border-radius: 14px; letter-spacing: .005em; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 20px -10px rgb(10 26 54 / .6), inset 0 1px 0 rgb(255 255 255 / .12);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.35); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(0 0 0 / 0.08); }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-strong); }

/* ---------- هدر ---------- */
.hdr { background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hdr::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold-line); pointer-events: none; }
.logo-mark { background: var(--navy-deep); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold), var(--shadow); }
.logo-text { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.01em; }
.logo-sub { font-family: var(--display-en); font-size: 13px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-strong); }
.search-box { background: var(--surface); border-radius: 999px; padding-inline: 20px 6px; }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(0 0 0 / 0.07); background: var(--surface); }
.search-box .btn { border-radius: 999px; }
.mm-btn { background: var(--lux-grad); color: var(--on-navy-gold); border: 1px solid rgb(0 0 0 / 0.14); }
.nav a { transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a.hot { color: var(--gold-strong); font-weight: 800; }
.hdr-note { color: var(--gold-strong); font-weight: 600; }
.mm-panel { border-color: rgb(0 0 0 / 0.15); border-radius: 24px; }

/* ---------- بنر اصلی ---------- */
.hero { border-radius: 30px; background: var(--navy-deep); border: 1px solid rgb(0 0 0 / 0.11); box-shadow: var(--shadow-lg); }
.hero::after { display: none; }
.hero::before { content: ""; position: absolute; inset: 12px; z-index: 3; border: 1px solid rgb(0 0 0 / 0.1); border-radius: 22px; pointer-events: none; }
.slide {
  color: var(--on-navy);
  background:
    radial-gradient(520px 340px at 24% 50%, rgb(0 0 0 / 0.08), transparent 70%),
    radial-gradient(420px 260px at 90% 0%, rgb(60 110 190 / .22), transparent 70%),
    var(--lux-grad);
}
.slide::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold-line); opacity: .7; }
.slide-title { font-weight: 900; color: #F7F7F7; letter-spacing: -.015em; line-height: 1.45; }
.slide-txt p { color: var(--on-navy-2); }
.eyebrow { background: transparent; border: 1px solid rgb(0 0 0 / 0.2); color: var(--on-navy-gold); letter-spacing: .02em; }
.slide .btn-primary { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.28); }
.slide .btn-primary:hover { filter: brightness(1.08); }
.art-disc {
  background: radial-gradient(circle at 35% 30%, rgb(0 0 0 / 0.13), rgb(0 0 0 / 0.03) 72%);
  border: 1px solid rgb(0 0 0 / 0.2); box-shadow: 0 0 0 14px rgb(0 0 0 / 0.03), 0 0 90px rgb(0 0 0 / 0.09);
}
.art-main, .art-a, .art-b { filter: drop-shadow(0 16px 18px rgb(0 0 0 / .45)); }
.sticker { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; outline: 1.5px solid rgb(255 255 255 / .35); outline-offset: -6px; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .55); }
.hero-ctrl .icon-btn { background: rgb(255 255 255 / .07); border-color: rgb(0 0 0 / 0.16); color: var(--on-navy-gold); }
.hero-ctrl .icon-btn:hover { background: rgb(0 0 0 / 0.07); color: #fff; border-color: var(--gold-hi); }
.dot { background: var(--on-navy-gold); opacity: .35; }
.dot[aria-current="true"] { background: var(--gold-hi); opacity: 1; }

/* ---------- عنوان بخش‌ها ---------- */
.sec-title h2 { font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.sec-ico { background: var(--lux-grad); color: var(--on-navy-gold); border: 1px solid rgb(0 0 0 / 0.18); border-radius: 50%; }
.sec-more { color: var(--gold-strong); font-weight: 700; }
.sec-more:hover { color: var(--fg); }

/* ---------- دسته‌بندی‌ها ---------- */
.cats, .cats[class] { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat {
  flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 22px 10px 18px;
  border-radius: 24px; background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.cat-ico {
  width: 64px; height: 64px; border-radius: 50%; background: var(--lux-grad); color: var(--on-navy-gold);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px rgb(0 0 0 / 0.3), 0 12px 22px -12px rgb(10 20 40 / .7);
  transition: transform .25s, box-shadow .25s;
}
.cat-txt b { font-weight: 800; font-size: 15px; }
.cat-txt small { color: var(--muted); }
.cat:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 38px -22px rgb(0 0 0 / 0.33); }
.cat:hover .cat-ico { transform: scale(1.06) rotate(-4deg); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--gold), 0 16px 26px -12px rgb(0 0 0 / 0.3); }

/* ---------- کارت محصول ---------- */
.pc { border-radius: 22px; }
.pc:hover { border-color: rgb(0 0 0 / 0.35); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.3); }
.badge-off { background: var(--tomato); border-radius: 99px; letter-spacing: .01em; }
.add-btn { border-color: var(--gold); color: var(--gold-strong); }
.add-btn:hover { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; border-color: transparent; }
.stars { color: var(--gold); }

/* ---------- تخفیف‌های ویژه ---------- */
.deals { background: var(--lux-grad); color: var(--on-navy); border: 1px solid rgb(0 0 0 / 0.12); border-radius: 30px; position: relative; overflow: hidden; }
.deals::before { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-start: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgb(0 0 0 / 0.09), transparent 70%); pointer-events: none; }
.deals > * { position: relative; }
.deals-ico { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; border-radius: 50%; }
.deals-title { font-weight: 900; color: #F7F7F7; }
.deals-side p { color: var(--on-navy-2); }
.countdown b { background: rgb(255 255 255 / .07); color: var(--on-navy-gold); border: 1px solid rgb(0 0 0 / 0.14); }
.countdown small, .countdown i { color: var(--on-navy-2); }
.deals-side .btn { background: transparent; color: var(--on-navy-gold); border-color: rgb(0 0 0 / 0.22); }
.deals-side .btn:hover { background: rgb(0 0 0 / 0.06); color: #fff; }

/* ---------- بنرهای تبلیغاتی ---------- */
.promo {
  background: radial-gradient(360px 220px at 12% 100%, rgb(0 0 0 / 0.09), transparent 70%), var(--lux-grad);
  color: var(--on-navy); border: 1px solid rgb(0 0 0 / 0.12); border-radius: 28px;
}
.promo:hover { transform: translateY(-3px); }
.promo-txt small { color: var(--on-navy-2); letter-spacing: .02em; }
.promo-txt strong { color: #F7F7F7; font-weight: 900; }
.promo-cta { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; }
.promo-art { filter: drop-shadow(0 20px 22px rgb(0 0 0 / .5)); }
.promos .promo:nth-child(even) {
  background: radial-gradient(360px 220px at 88% 0%, rgb(255 255 255 / .5), transparent 70%), linear-gradient(135deg, var(--gold-soft), color-mix(in srgb, var(--gold) 34%, var(--gold-soft)));
  color: var(--fg); border-color: rgb(0 0 0 / 0.23);
}
.promos .promo:nth-child(even) .promo-txt small { color: var(--muted); }
.promos .promo:nth-child(even) .promo-txt strong { color: var(--fg); }
.promos .promo:nth-child(even) .promo-cta { background: var(--primary); color: var(--primary-ink); }

/* ---------- بنر اعتبار هدیه ---------- */
.cashback { background: var(--lux-grad); color: var(--on-navy); border: 1px solid rgb(0 0 0 / 0.12); }
.cb-title { color: #F7F7F7; }
.cashback p { color: var(--on-navy-2); }
.cashback .btn-primary { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; }

/* ---------- مزیت‌ها ---------- */
.perks { border-color: rgb(0 0 0 / 0.17); border-radius: 26px; position: relative; }
.perks::before { content: ""; position: absolute; inset: 0 40px auto; height: 2px; background: var(--gold-line); }
.perk-ico { background: var(--lux-grad); color: var(--on-navy-gold); border-radius: 50%; }

/* ---------- کارت مقاله ---------- */
.post-card { border-radius: 24px; }
.post-card:hover { border-color: rgb(0 0 0 / 0.3); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.28); }
.post-cat { color: var(--gold-strong); }

/* ---------- فوتر ---------- */
.ftr {
  background: radial-gradient(900px 320px at 50% 0, rgb(0 0 0 / 0.03), transparent 72%), var(--footer-bg);
  border-top: 1px solid rgb(0 0 0 / 0.14);
}
.ftr::before { top: -1px; height: 2px; clip-path: none; background: var(--gold-line); }
.ftr::after { display: none; }
.ftr h3 { color: var(--on-navy-gold); font-weight: 800; letter-spacing: .01em; }
.ftr a:hover { color: var(--on-navy-gold); }
.ftr-support { border: 1px solid rgb(0 0 0 / 0.1); border-radius: 22px; }
.ftr .logo-sub { color: var(--on-navy-gold); }
.socials a { border: 1px solid rgb(0 0 0 / 0.12); border-radius: 50%; transition: background-color .2s, color .2s, transform .2s; }
.socials a:hover { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #FFFFFF; transform: translateY(-2px); }
.trust-box { border: 1px solid rgb(0 0 0 / 0.12); border-radius: 18px; }

/* ---------- دکمه‌ی بالا ---------- */
.to-top { background: var(--lux-grad); color: var(--on-navy-gold); border: 1px solid rgb(0 0 0 / 0.18); border-radius: 50%; }

/* ---------- موبایل ---------- */
@media (max-width: 760px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cats .cat:nth-child(n+7) { display: flex; }
  .cats .cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cat { padding: 16px 8px 14px; border-radius: 20px; }
  .cat-ico { width: 56px; height: 56px; }
  .hero { border-radius: 24px; }
  .hero::before { inset: 8px; border-radius: 18px; }
  .logo-text { font-size: 22px; }
  .logo-sub { font-size: 11px; letter-spacing: .26em; }
  .deals { border-radius: 24px; }
  .promo { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat, .cat-ico, .promo, .socials a { transition: none; }
  .cat:hover, .promo:hover { transform: none; }
}

/* اصلاح: قاعده‌ی .perk span روی آیکون مزیت‌ها هم اعمال می‌شد */
.perk .perk-ico { display: grid; place-items: center; color: var(--on-navy-gold); font-size: inherit; }
.cat-ico svg { width: 32px; height: 32px; }

/* ===== تم سفید: زمینه‌ی سفید، طلایی به‌عنوان رنگ اصلی، کارت‌های محصول برجسته ===== */
:root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #E9EAEC; --surface: #F5F5F6; --surface-2: #EDEEF0; --line: #D4D6DA;
  --fg: #111111; --muted: #555555; --faint: #8A8A8A;
  --primary: #000000; --primary-strong: #000000; --primary-soft: #F4F4F4; --primary-ink: #FFFFFF;
  --gold: #111111; --gold-strong: #000000; --gold-soft: #F4F4F4; --gold-ink: #FFFFFF;
  --gold-line: linear-gradient(90deg, transparent, #333333 20%, #111111 50%, #333333 80%, transparent);
  --navy-deep: #F0F1F3;
  --lux-grad: linear-gradient(135deg, #F3F4F5 0%, #EAEBED 55%, #DCDEE2 100%);
  --on-navy: #111111; --on-navy-2: #555555; --on-navy-gold: #000000;
  --footer-bg: #E1E3E6; --footer-card: #F0F1F3; --footer-fg: #111111; --footer-muted: #666666; --footer-line: #E4E4E4;
  --toast-bg: #151515; --toast-fg: #FFFFFF;
  --tile-s: 0%; --tile-l: 96%; --art-s: 0%;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 14px 30px -18px rgb(0 0 0 / .28);
  --shadow-lg: 0 26px 60px -26px rgb(0 0 0 / .3);
  --overlay: rgb(0 0 0 / .5);
}
body { background: var(--bg); color: var(--fg); }
.hero, .deals, .cashback { border-color: var(--line); }
.slide {
  color: var(--fg);
  background: radial-gradient(520px 340px at 24% 50%, rgb(0 0 0 / 0.09), transparent 70%), var(--lux-grad);
}
.slide-title, .deals-title, .promo-txt strong, .cb-title { color: var(--fg); }
.slide-txt p { color: var(--muted); }
.hero-ctrl .icon-btn:hover, .deals-side .btn:hover { color: var(--gold-strong); }
.art-disc { background: rgb(0 0 0 / 0.09); }
.art-main, .art-a, .art-b { filter: drop-shadow(0 14px 16px rgb(0 0 0 / .22)); }
.ftr { border-top: 1px solid var(--footer-line); }
.ftr a, .ftr h3, .ftr h4 { color: var(--footer-fg); }

/* کارت محصول */
.pc {
  border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 16px; gap: 9px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 26px -18px rgb(0 0 0 / .3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pc:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: 0 2px 4px rgb(0 0 0 / .05), 0 22px 40px -20px rgb(0 0 0 / 0.36); }
.pc-media { background: var(--surface-2); border-radius: 17px; }
.p-img { padding: 3%; transition: transform .35s ease; }
.pc:hover .p-img { transform: scale(1.05); }
.pc-title { font-weight: 700; line-height: 1.7; }
.pc-price .now { font-weight: 900; color: var(--gold-strong); }
.pc-price .now small { color: var(--muted); font-weight: 500; }
.pc-wish { background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.grid { gap: 16px; }

/* حذف گروهی محصولات در پنل مدیریت */
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.bulk-chk, .bulk-all { width: 18px; height: 18px; accent-color: var(--gold-strong); }
.danger-btn:not(:disabled) { color: var(--danger); }
.danger-btn:disabled { opacity: .45; cursor: not-allowed; }
/* حالت روشن ملایم و حالت تاریک */
:root[data-theme="dark"] {
  --bg: #17191D; --surface: #22252B; --surface-2: #2B2F36; --line: #414650;
  --fg: #E9EBEF; --muted: #B4BAC4; --faint: #989FAB;
  --navy-deep: #1E2127;
  --lux-grad: linear-gradient(135deg, #262A32 0%, #20242B 55%, #191C22 100%);
  --on-navy: #E9EBEF; --on-navy-2: #B4BAC4; --on-navy-gold: #E9EBEF;
  --footer-bg: #14161A; --footer-card: #22252B; --footer-fg: #E9EBEF;
  --footer-muted: #B4BAC4; --footer-line: #414650;
  --tile-s: 0%; --tile-l: 22%; --art-s: 0%; --art-l1: 23%; --art-l2: 17%;
}
.theme-toggle { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 50%; }
.theme-toggle:hover { background: var(--line); color: var(--fg); }
:root[data-theme="dark"] .logo-mark img { filter: invert(1); mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) {
  body, .hdr, .card, .pc, .ftr, .theme-toggle { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
}

/* =====================================================================
   جدول‌های ریسپانسیو: وقتی جا کم باشه هر ردیف یک کارت می‌شه (کلاس is-cards رو responsiveTables توی app.js می‌ذاره)
   ===================================================================== */
.td-v { min-width: 0; }
.table-wrap.is-cards { border: 0; border-radius: 0; overflow: visible; }
.is-cards .table { display: block; min-width: 0; width: 100%; }
.is-cards .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-cards .table tbody { display: grid; gap: 12px; }
.is-cards .table tr { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding-block: 4px; }
.is-cards .table tr.row-off { background: var(--surface-2); }
.is-cards .table td, .is-cards .row-off td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; border: 0; border-bottom: 1px dashed var(--line); background: transparent; text-align: end; }
.is-cards .table tr td:last-child { border-bottom: 0; }
.is-cards .table td::before { content: attr(data-label); flex-shrink: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; text-align: start; }
.is-cards .table td.td-bare::before { display: none; }
.is-cards .table td.n { white-space: normal; }
.is-cards .table td .td-v { text-align: end; overflow-wrap: anywhere; }
.is-cards .table td.td-main { display: block; padding: 12px 16px; padding-inline-end: 48px; text-align: start; border-bottom: 1px solid var(--line); }
.is-cards .table td.td-main::before { display: none; }
.is-cards .table td.td-main .td-v { text-align: start; display: block; }
.is-cards .table td:has(.bulk-chk) { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: block; padding: 0; border: 0; z-index: 1; }
.is-cards .table td.td-bare .row-acts { flex: 1; justify-content: flex-start; }
.is-cards .table td.td-bare:has(.row-acts) { padding-block: 12px; }
.is-cards .table td.td-bare:has(.row-acts) .td-v { width: 100%; text-align: start; }
.is-cards .table td .stock-form .input { width: 88px; }
.is-cards .table td .t-prod > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   دیدگاه‌ها: خریدار تأییدشده، در انتظار تأیید و صف تأیید توی پنل
   ===================================================================== */
.rv-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; white-space: nowrap; }
.rv-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--saffron-soft); color: var(--warning); font-size: 13.5px; font-weight: 700; line-height: 1.8; }
.rv-adm-list { display: grid; gap: 12px; }
.rv-adm { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.rv-adm.pending { border-color: var(--saffron); background: var(--saffron-soft); }
.rv-adm p { overflow-wrap: anywhere; line-height: 1.9; }
.rv-adm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rv-adm-prod { font-weight: 800; font-size: 14.5px; overflow-wrap: anywhere; }
.rv-adm-acts { justify-content: flex-start; }

/* =====================================================================
   عکس برای پوسترها
   ===================================================================== */
.slide-bg, .promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; user-select: none; -webkit-user-drag: none; }
.slide.has-img { grid-template-columns: minmax(0, 1fr); color: #F7F7F7; }
.slide.has-img::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to left, rgb(8 12 20 / .82) 0%, rgb(8 12 20 / .55) 46%, rgb(8 12 20 / 0) 82%); }
.slide.has-img .slide-txt { max-width: min(560px, 100%); }
.slide.has-img .slide-title { color: #fff; }
.slide.has-img .slide-txt p { color: rgb(255 255 255 / .88); }
.slide.has-img .sticker-img { position: absolute; z-index: 1; top: 22px; inset-inline-end: 26px; inset-inline-start: auto; }
.slide.img-only { display: block; padding: 0; min-height: 0; aspect-ratio: 8 / 3; }
.slide.img-only::before { display: none; }
.slide-link { position: absolute; inset: 0; z-index: 1; }
.promo.has-img, .promos .promo.has-img { background: var(--navy-deep, #1b2430); color: #F7F7F7; justify-content: flex-start; }
.promo.has-img::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to left, rgb(8 12 20 / .78) 0%, rgb(8 12 20 / .45) 50%, rgb(8 12 20 / 0) 85%); }
.promos .promo.has-img .promo-txt small { color: rgb(255 255 255 / .85); }
.promos .promo.has-img .promo-txt strong { color: #fff; }
.promos .promo.has-img .promo-cta { background: linear-gradient(135deg, var(--gold-hi, #f2d27a), var(--gold-lo, #c9a24a)); color: #fff; }
.promo.img-only { display: block; padding: 0; min-height: 0; aspect-ratio: 2 / 1; }
.promo.img-only::before { display: none; }
.poster-thumb { width: 76px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.poster-preview { width: 200px; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line); font-size: 13px; }
.poster-preview.is-slide { width: 260px; aspect-ratio: 8 / 3; }
.poster-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   ویرایشگر سوالات متداول
   ===================================================================== */
.faq-ed-groups { display: grid; gap: 16px; }
.faq-ed-g { display: grid; gap: 12px; margin: 0; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; }
.faq-ed-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.faq-ed-items { display: grid; gap: 10px; }
.faq-ed-i { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.faq-ed-del { justify-self: start; }

/* =====================================================================
   پنل مدیریت روی موبایل
   ===================================================================== */
@media (max-width: 760px) {
  .panel { padding: 16px 14px; gap: 14px; }
  .panel-head { align-items: flex-start; }
  .panel-head > span { width: 100%; }
  .bulk-bar { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; justify-content: center; }
  .panel .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .panel .cat-chips .chip { flex-shrink: 0; white-space: nowrap; }
  .img-pick { flex-direction: column; align-items: stretch; }
  .poster-preview, .poster-preview.is-slide { width: 100%; }
  .faq-ed-head { grid-template-columns: minmax(0, 1fr); }
  .slide.has-img { min-height: 280px; padding: 22px 20px 62px; align-items: end; }
  .slide.has-img::before { background: linear-gradient(to top, rgb(8 12 20 / .86) 0%, rgb(8 12 20 / .5) 60%, rgb(8 12 20 / .1) 100%); }
  .slide.has-img .sticker-img { top: 14px; inset-inline-end: 14px; width: 74px; height: 74px; font-size: 10.5px; }
  .slide.img-only { aspect-ratio: 16 / 9; min-height: 0; }
  .promo.has-img { min-height: 128px; }
  .promo.img-only { aspect-ratio: 16 / 9; min-height: 0; }
}

/* =====================================================================
   باشگاه مشتریان: نشان «سطح | لقب» با رنگ هر سطح
   هر کلاس tc-… این متغیرها رو می‌ده: --tc رنگ اصلی، --tc-on نوشته روی رنگ اصلی، --tc-soft زمینه‌ی کم‌رنگ،
   --tc-ink نوشته روی زمینه‌ی کم‌رنگ، --tc-line لبه. لقب و رنگ هر سطح از پنل انتخاب می‌شه.
   ===================================================================== */
.tc-gray   { --tc: #6B7280; --tc-on: #FFFFFF; --tc-soft: #E4E7EC; --tc-ink: #374151; --tc-line: #C9CED6; }
.tc-yellow { --tc: #F2BE1A; --tc-on: #3A2C00; --tc-soft: #FBF0C2; --tc-ink: #6E5300; --tc-line: #EBCF6A; }
.tc-orange { --tc: #EE7A1F; --tc-on: #2E1400; --tc-soft: #FCE3CF; --tc-ink: #8A3D00; --tc-line: #F2B486; }
.tc-green  { --tc: #22A355; --tc-on: #04260F; --tc-soft: #D9F0E1; --tc-ink: #15603A; --tc-line: #93D3AB; }
.tc-blue   { --tc: #2563EB; --tc-on: #FFFFFF; --tc-soft: #DCE6FB; --tc-ink: #1D44A8; --tc-line: #A3BDF5; }
.tc-purple { --tc: #7C3AED; --tc-on: #FFFFFF; --tc-soft: #EAE1FC; --tc-ink: #5521B0; --tc-line: #C2A8F6; }
.tc-pink   { --tc: #CF2F7E; --tc-on: #FFFFFF; --tc-soft: #F9DEEB; --tc-ink: #93184F; --tc-line: #EBA5C7; }
.tc-red    { --tc: #D92D2D; --tc-on: #FFFFFF; --tc-soft: #F9DDDD; --tc-ink: #931C1C; --tc-line: #EDA3A3; }
:root[data-theme="dark"] .tc-gray   { --tc: #A3AAB6; --tc-on: #15181D; --tc-soft: #353A42; --tc-ink: #D7DBE1; --tc-line: #4F5661; }
:root[data-theme="dark"] .tc-yellow { --tc: #F7CC3B; --tc-on: #2A2000; --tc-soft: #3B3417; --tc-ink: #F9DE85; --tc-line: #6B5A1E; }
:root[data-theme="dark"] .tc-orange { --tc: #F99A4E; --tc-on: #2A1300; --tc-soft: #40291A; --tc-ink: #FCC9A0; --tc-line: #74482A; }
:root[data-theme="dark"] .tc-green  { --tc: #4CCB7D; --tc-on: #03250F; --tc-soft: #1E3A29; --tc-ink: #A8E9C0; --tc-line: #2F6544; }
:root[data-theme="dark"] .tc-blue   { --tc: #6AA2F8; --tc-on: #071A3D; --tc-soft: #1F2F4C; --tc-ink: #BCD4FD; --tc-line: #34528A; }
:root[data-theme="dark"] .tc-purple { --tc: #A98BF9; --tc-on: #1C0B47; --tc-soft: #2F2850; --tc-ink: #D8CCFD; --tc-line: #54468E; }
:root[data-theme="dark"] .tc-pink   { --tc: #F07AB4; --tc-on: #3A0820; --tc-soft: #41233A; --tc-ink: #F9C2DC; --tc-line: #7A3A60; }
:root[data-theme="dark"] .tc-red    { --tc: #F27C7C; --tc-on: #3A0909; --tc-soft: #432426; --tc-ink: #F9C3C3; --tc-line: #7E3B3E; }

/* نشان: بخش پررنگ «سطح ۳» + بخش کم‌رنگ لقب. (.acc-user و .dd-user قاعده‌های span خودشون رو دارن) */
.tier-tag, .acc-user .tier-tag, .dd-user .tier-tag {
  display: inline-flex; align-items: stretch; width: fit-content; max-width: 100%; margin: 0; vertical-align: middle;
  border-radius: 99px; overflow: hidden; white-space: nowrap; text-align: start;
  font-size: 12px; line-height: 1.75; color: var(--tc-ink, var(--fg));
  background: var(--tc-soft, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--tc-line, var(--line));
}
.tier-tag .tier-lv, .tier-tag .tier-tt { font-size: inherit; line-height: inherit; text-align: inherit; }
.tier-tag .tier-lv { flex-shrink: 0; padding: 1px 9px; background: var(--tc, var(--muted)); color: var(--tc-on, #FFFFFF); font-weight: 800; }
.tier-tag .tier-tt { min-width: 0; padding-block: 1px; padding-inline: 9px 11px; color: inherit; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.tier-tag.sm, .acc-user .tier-tag.sm, .dd-user .tier-tag.sm { font-size: 11px; }
.tier-tag.sm .tier-lv { padding-inline: 7px; }
.tier-tag.sm .tier-tt { padding-inline: 7px 8px; }
.acc-user .tier-tag, .dd-user .tier-tag { margin-top: 4px; }
.acc-user .rank + .tier-tag { margin-inline-start: 4px; }
.msg small .tier-tag { margin-inline: 2px; vertical-align: -1px; }
/* نشان‌های قابل کلیک: همون ظاهر tier-tag، فقط کمی روشن‌تر وقتی هاور/فوکوس می‌شن */
button.tier-tag-btn { cursor: pointer; border: 0; padding: 0; font: inherit; }
button.tier-tag-btn:hover, button.tier-tag-btn:focus-visible { filter: brightness(1.06); outline: none; box-shadow: inset 0 0 0 1px var(--tc-line, var(--line)), 0 0 0 3px var(--tc-soft, var(--primary-soft)); }
/* کارت پاپ‌آپی جزئیات سطح (با کلیک روی نشان سطح باز می‌شه) */
.tier-popup { display: grid; gap: 14px; }
.tier-benefits { display: grid; gap: 6px; margin: 8px 0 0; padding-inline-start: 20px; font-size: 13.5px; color: var(--fg); }
.tier-benefits li { line-height: 1.6; }

/* چت پشتیبانی توی پنل: طرف گفتگو (اسم و شماره، زیرش سطح و لقب) | موضوع | وضعیت */
.tk-list { container-type: inline-size; }
.ticket summary.tk-sum { padding: 12px 16px; }
.tk-row { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; }
.tk-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-ava {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--tc-soft, var(--surface-2)); color: var(--tc-ink, var(--fg)); box-shadow: inset 0 0 0 2px var(--tc, var(--line));
  font-size: 18px; font-weight: 800;
}
.tk-id { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.tk-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.tk-name b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.tk-name span { font-size: 12px; font-weight: 500; color: var(--muted); }
.tk-topic { display: grid; gap: 3px; min-width: 0; padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.tk-topic b { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.tk-topic b .ico { vertical-align: -3px; color: var(--muted); }
.tk-topic small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tk-pills { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.ticket summary .tk-pills .pill { margin-inline-start: 0; }
@container (max-width: 640px) {
  .tk-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .tk-who { grid-column: 1; grid-row: 1; }
  .tk-pills { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; }
  .tk-topic { grid-column: 1 / -1; grid-row: 2; padding: 10px 0 0; border-inline-start: 0; border-top: 1px dashed var(--line); }
}

/* لیست کاربرها و صفحه‌ی هر کاربر: نشان سطح زیر اسم */
.who-cell { display: grid; gap: 5px; justify-items: start; }
.is-cards .who-cell { justify-items: end; }
.ph-who { display: grid; gap: 8px; justify-items: start; min-width: 0; }

/* ویرایش سطح‌ها در پنل: هر سطح یک کارت با پیش‌نمایش نشان، لقب، حداقل خرید، تخفیف و رنگ */
.tier-form { display: grid; gap: 14px; }
.tier-rows { display: grid; gap: 10px; }
.tier-row {
  display: grid; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line);
  border-inline-start: 4px solid var(--tc, var(--line)); border-radius: 16px; background: var(--surface);
}
.tier-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.tier-row-head .tier-tag { font-size: 13px; }
.tier-note { font-size: 12.5px; color: var(--faint); text-align: end; }
.tier-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .7fr); gap: 10px; }
.tier-row[data-base] .tier-fields { grid-template-columns: minmax(0, 22rem); }
.tier-f { display: grid; gap: 6px; min-width: 0; }
.tier-f > span, .tier-f-l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tier-f .input { min-height: 44px; }
.tier-colors { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tier-f-l { margin-inline-end: 6px; }
.tier-sw { position: relative; display: inline-grid; cursor: pointer; }
.tier-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tier-sw-dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14);
}
.tier-sw input:checked + .tier-sw-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--tc); }
.tier-sw input:checked + .tier-sw-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tc-on); }
.tier-sw input:focus-visible + .tier-sw-dot { outline: 2.5px solid var(--fg); outline-offset: 6px; }
@media (max-width: 640px) {
  .tier-row { padding: 12px; }
  .tier-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tier-fields .tier-f:first-child { grid-column: 1 / -1; }
  .tier-row[data-base] .tier-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .tier-sw-dot { transition: box-shadow .15s ease; }
}

/* ---------- فروش هر روز (گزارش فروش پنل) و خروجی اکسل ---------- */
.dsales { display: grid; gap: 8px; }
.dsales-read { margin: 0; min-height: 26px; font-size: 14px; font-weight: 700; color: var(--fg); }
.dsales-plot { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; height: 150px; border-bottom: 1px solid var(--line); }
.dbar { display: flex; align-items: flex-end; justify-content: center; min-width: 0; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: none; cursor: pointer; }
.dbar::before { content: ""; display: block; width: min(100%, 26px); height: var(--h); border-radius: 4px 4px 0 0; background: var(--primary); opacity: .8; transition: opacity .12s ease; }
.dbar.is-zero::before { background: var(--line); opacity: 1; }
.dbar:hover, .dbar.on { background: var(--surface-2); }
.dbar:hover::before, .dbar.on::before, .dbar:focus-visible::before { opacity: 1; }
.dbar:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.dsales-axis { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.dsales-table { max-height: 380px; overflow: auto; }
.dsales-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.dsales-table tr.dim td { color: var(--muted); }
.xl-ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@media (max-width: 520px) {
  .xl-ranges { grid-template-columns: minmax(0, 1fr); }
  .dsales-plot { height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .dbar::before { transition: none; } }
.tier-remain { margin: 0; font-size: 14.5px; line-height: 2; color: var(--fg); }
.tier-remain b { font-weight: 900; }

/* ---------- پرداخت ارز دیجیتال و پنل شیوه‌های پرداخت ---------- */
.pill-awaiting_payment { background: var(--saffron-soft); color: var(--warning); }
.crypto-box { display: grid; gap: 12px; margin-block: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); text-align: start; }
.crypto-box h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.crypto-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--saffron-soft); color: var(--warning); font-size: 13.5px; line-height: 1.8; }
.cp-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cp-row small { color: var(--muted); font-size: 12.5px; }
.cp-row .copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-row .copy-row > span { overflow-wrap: anywhere; word-break: break-all; font-size: 13.5px; text-align: left; }
.cp-row .cp-strong { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.crypto-tips { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.crypto-wait { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.crypto-wait .spinner { flex-shrink: 0; }
.crypto-admin { display: grid; gap: 8px; }
.crypto-admin .ca-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.crypto-admin .ca-addr { overflow-wrap: anywhere; word-break: break-all; font-size: 12.5px; }
.crypto-admin .ca-confirm { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); }
.pay-form { display: grid; gap: 14px; }
.pay-b { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.pay-b > span { display: grid; gap: 2px; }
.pay-wallets { display: grid; gap: 10px; }
.pay-wallet { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, .8fr) minmax(220px, 2fr) auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.pay-wallet .pw-on { gap: 8px; justify-content: flex-start; }
.rate-box { display: grid; gap: 12px; }
.rate-err { color: var(--danger, #c0392b); }
.notice.warn { border-color: var(--warning); }
.input.is-invalid { border-color: var(--danger, #c0392b); }
@media (max-width: 760px) { .pay-wallet { grid-template-columns: 1fr; } }

.crypto-warn > svg, .crypto-box h2 > svg { flex-shrink: 0; margin-top: 3px; }
.crypto-wait .spinner { width: 20px; height: 20px; border-width: 3px; }
.crypto-wait > span:last-child { line-height: 1.8; }

.ua-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ua-list { max-height: 520px; overflow: auto; }
