/* فروشگاه نازنین رییسی، نسخه ۲
   سبک و چیدمان از ui-ux-pro-max (Vibrant & Block-based، Portfolio Grid)، فونت Vazirmatn.
   پالت از ۱۱-۱۱ همان Ocean Breezeِ lemonai است (پالتِ رز و طلاییِ اسکیل را دایی رد کرد). */

@font-face {
  font-family: Vazirmatn;
  src: url(/static/fonts/Vazirmatn-var.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Quiet Luxury، نسخهٔ پالازو (حکمِ دایی ۱۴۰۵-۰۸-۱۴): کرم و کارت همان ماند؛ سرتیره اسپرسو شد،
     دکمهٔ خرید سرخِ آنکورا، برچسب و نخِ دوخت برنجی، زیتونی سوخته برای «موجود» و دستهٔ فعال.
     مودبورد و قبل/بعد: _design/nazanin-luxury-palettes. پنل این‌ها را زیرِ body.panel با پالتِ lemonai عوض می‌کند. */
  --head: #1C1411;      /* اسپرسو: هدر، نوارِ دسته‌ها؛ کرم رویش ۱۶٫۱:۱ */
  --head-hi: #33261F;
  --head-line: #120C0A;
  --brand: #7E1426;     /* سرخِ آنکورا، دکمهٔ خرید؛ سفید رویش ۱۰٫۴:۱ */
  --brand-d: #66101E;
  --brand-dd: #4A0A14;
  --brand2: #4F5A2B;
  --sky: #4F5A2B;       /* زیتونیِ سوخته، تزئینی و حلقهٔ فوکوس؛ روی کرم ۶٫۶:۱ */
  --brand-l: #CFC5B6;
  --brand-100: #DED6CA;
  --brand-50: #F5F1EA;
  --mint: #C9A25A;      /* برنجی، فقط روی اسپرسو، ۷٫۶:۱ */
  --amber: #C9A25A;     /* برنجی: «آخرین تکه»، نوارِ مزیت‌ها؛ متنِ تیره رویش ۷٫۶:۱ */
  --amber-50: #F7EFDD;
  --amber-bord: #E4CF9E;
  --amber-ink: #6B4A1E;
  --ink: #1A1512;
  --ink-2: #4A4540;
  --muted: #6B6158;
  --line: #DED6CA;
  --line-2: #CFC5B6;
  --card: #FFFCF8;
  --bg: var(--brand-50);
  --ok: #4F5A2B;
  --ok-soft: #EEF0E3;
  --bad: #A2412E;
  --bad-soft: #FBF1EE;
  --bad-bord: #EBCFC6;
  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgb(26 21 18 / .06), 0 10px 28px -16px rgb(28 20 17 / .35);
  --shadow-lg: 0 30px 60px -28px rgb(28 20 17 / .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);
  --top-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 14px; height: 14px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }

/* ── نوار بالا ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(28 20 17 / .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(201 162 90 / .35);
}
.top .icon-btn { color: var(--brand-50); }
.top .icon-btn:hover { background: var(--head-hi); color: var(--mint); }
.top .badge { border-color: var(--head); }
.top-in { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; }
.top-act { display: flex; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--brand-100); color: var(--brand); }
.badge {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge[hidden] { display: none; }
.badge.bump { animation: bump .45s var(--back); }
@keyframes bump { 50% { transform: scale(1.35); } }

/* لوگوی واقعی نازنین (بازسازی برداری از tools/trace_logo.py) */
.brand-logo { display: block; height: 42px; width: auto; }
.foot-logo { display: block; width: 190px; height: auto; }
.nf-logo { width: min(260px, 70vw); height: auto; }

/* ── دکمه‌ها ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
/* دکمهٔ اصلی مثلِ lemonai: برقِ نرمِ بالا + سایهٔ هم‌رنگ؛ موزاییکش از pixel-btn.js (حکمِ دایی ۱۱-۱۴)، رنگ همان قهوه‌ایِ سایت */
.btn-primary { background: linear-gradient(180deg, rgb(255 255 255 / .17), rgb(255 255 255 / 0) 58%), var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 22px -8px rgb(28 20 17 / .55), 0 2px 6px rgb(28 20 17 / .16); }
.btn-primary:hover { background: linear-gradient(180deg, rgb(255 255 255 / .17), rgb(255 255 255 / 0) 58%), var(--brand-d); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 14px 30px -10px rgb(28 20 17 / .62), 0 3px 8px rgb(28 20 17 / .2); transform: translateY(-1px); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: #CFC6B9; color: #4A4540; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ink { background: linear-gradient(180deg, rgb(255 255 255 / .15), rgb(255 255 255 / 0) 58%), var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 22px -10px rgb(26 21 18 / .5); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dd); }
.btn-light:hover { background: var(--mint); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .7); }
.btn-outline-light:hover { background: rgb(255 255 255 / .14); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.06rem; border-radius: 18px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── قهرمان ── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(45% 40% at 12% 18%, rgb(201 162 90 / .16), transparent 70%),
    radial-gradient(90% 70% at 100% 0%, var(--brand2) 0%, transparent 60%),
    radial-gradient(80% 80% at 0% 100%, var(--head-line) 0%, transparent 65%),
    var(--head);
}
.hero::after { content: ""; position: absolute; inset-inline: 12px; bottom: 10px; border-top: 2px dashed rgb(255 255 255 / .4); pointer-events: none; }
.hero-in { display: grid; gap: 26px; padding-block: 30px 40px; position: relative; }
/* روی گوشی تیتر دو خطِ طراحی‌شده و وسط‌چین است، نه شکستنِ تصادفیِ راست‌چین */
.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-cta { justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; background: rgb(255 255 255 / .14); padding: 6px 12px; border-radius: 99px; }
.eyebrow .ic { width: 18px; height: 18px; color: var(--mint); }
.hero h1 { font-size: clamp(2.15rem, 9vw, 4.1rem); font-weight: 900; line-height: 1.18; margin-top: 14px; }
.hl { white-space: nowrap; color: var(--mint); }
.h1-line { display: block; }
.lead { margin-top: 14px; font-size: 1.06rem; max-width: 36ch; color: rgb(255 255 255 / .94); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-cta .ic { width: 20px; height: 20px; }

.hero-art { position: relative; height: 270px; }
.quilt {
  position: absolute; inset: 18px -40px -40px -40px;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 54px; gap: 6px;
  transform: rotate(-8deg); opacity: .5;
}
.quilt span {
  border-radius: 10px;
  background: var(--sky);
  outline: 1.5px dashed rgb(255 255 255 / .5); outline-offset: -6px;
  animation: quilt 14s ease-in-out infinite;
  animation-delay: calc(var(--d) * -.6s);
}
.quilt span:nth-child(3n) { background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / .22) 0 2px, transparent 2px 9px); }
.quilt span:nth-child(4n+1) { background-image: radial-gradient(circle at 50% 50%, rgb(255 255 255 / .35) 0 3px, transparent 4px); background-size: 14px 14px; }
@keyframes quilt {
  0%, 100% { background-color: var(--sky); }
  25% { background-color: var(--mint); }
  50% { background-color: var(--brand-dd); }
  75% { background-color: var(--brand2); }
}
.hero-card {
  position: absolute; display: block; border-radius: 22px; padding: 8px; overflow: hidden;
  background: linear-gradient(165deg, #FAF6F0 0%, #E6DED1 100%);
  border: 1px solid rgb(255 255 255 / .55);
  box-shadow: 0 30px 50px -24px rgb(4 20 52 / .7); transition: transform .35s var(--back);
}
.hero-card img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-code { position: absolute; bottom: 10px; inset-inline-start: 10px; background: var(--head); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 8px; }
.hc-0 { width: 44%; height: 250px; inset-inline-start: 28%; top: 6px; z-index: 3; }
.hc-1 { width: 34%; height: 190px; inset-inline-start: 0; top: 50px; transform: rotate(5deg); z-index: 2; }
.hc-2 { width: 34%; height: 190px; inset-inline-end: 0; top: 50px; transform: rotate(-5deg); z-index: 2; }
.hero-card:hover { transform: translateY(-6px) rotate(0); }

/* ── نوار ویژگی‌ها ── */
.strip { background: var(--amber); color: var(--head); }
.strip-in { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-block: 14px; font-weight: 700; font-size: .92rem; }
.strip-in::-webkit-scrollbar { display: none; }
.strip-in span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.strip-in .ic { color: var(--head); width: 20px; height: 20px; }

/* ── فروشگاه ── */
.shop { padding-block: 34px 56px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-head h2, .how h2, .related h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 900; }
.chips {
  position: sticky; top: var(--top-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 14px -16px 18px; padding: 10px 16px;
  background: linear-gradient(var(--bg) 70%, rgb(232 246 255 / 0));
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  scroll-snap-align: start; flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 99px; background: #fff; border: 2px solid var(--line);
  font-weight: 800; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.chip b { font-size: .78rem; color: var(--muted); font-weight: 800; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.chip.is-on b { color: var(--amber-50); }

/* flex نه grid: ردیفِ آخرِ ناقص وسط می‌نشیند، نه چسبیده به راست (حکمِ دایی ۱۱-۰۴) */
.grid { --cols: 2; --gap: 12px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > .card { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.card { min-width: 0; }
.card[hidden] { display: none; }
.card-link {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; position: relative;
  transition: transform .3s var(--back), box-shadow .3s var(--ease), border-color .2s var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-l); }
.card-img { aspect-ratio: 4 / 5; background: var(--card); display: grid; place-items: center; padding: 6px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card:has(.pill-out) .card-img img { opacity: .55; }
.noimg { color: var(--line-2); }
.noimg .ic { width: 48px; height: 48px; }
.card .pill { position: absolute; top: 10px; inset-inline-start: 10px; }
.card-body { padding: 10px 10px 14px; display: grid; gap: 6px; justify-items: center; text-align: center; border-top: 1px solid var(--line); }
.card-body h3 { font-size: .96rem; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.35; }
.card-meta { display: flex; align-items: center; justify-content: center; gap: 6px 8px; flex-wrap: wrap; }
.price { font-weight: 900; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 600; font-size: .72em; color: var(--muted); }
.code { font-size: .74rem; font-weight: 800; color: var(--brand-d); background: var(--brand-50); border: 1px solid var(--line); padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

.pill { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.pill-in { background: var(--ok); color: #fff; }
.pill-last { background: var(--amber); color: var(--ink); }
.pill-held { background: var(--ink); color: #fff; }
.pill-uncounted { background: #fff; color: var(--muted); border: 1px solid var(--line-2); }
.pill-out { background: #E7E0D5; color: #4A4540; }
.pill-status { background: var(--amber); color: var(--ink); font-size: .9rem; padding: 8px 14px; }

/* ── راهنمای خرید ── */
.how { padding-block: 48px 64px; background: #fff; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--brand-50); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.steps b { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; color: #fff; background: var(--brand); outline: 2px dashed rgb(255 255 255 / .55); outline-offset: -6px; }
.steps li:nth-child(2) b { background: var(--amber); color: var(--ink); outline-color: rgb(26 21 18 / .3); }
.steps li:nth-child(3) b { background: var(--head); }
.steps h3 { font-size: 1.1rem; font-weight: 900; }
.steps p { color: var(--muted); margin-top: 4px; }

/* ── پانویس ── */
.foot { background: var(--ink); color: #E7E0D5; padding-block: 36px 20px; }
.foot-in { display: grid; gap: 22px; }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-brand p { color: #CFC6B9; font-size: .9rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.foot-links a:hover { color: var(--mint); }
.foot-links .ic { color: var(--mint); }
.enamad { width: 110px; min-height: 120px; background: #fff; border-radius: 14px; display: grid; place-items: center; padding: 6px; }
.enamad-slot { background: transparent; border: 2px dashed rgb(255 255 255 / .35); color: #9C948A; font-size: .78rem; text-align: center; line-height: 1.6; padding: 10px; }
.foot-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .82rem; color: #9C948A; }

/* ── صفحه محصول ── */
.crumbs { display: flex; align-items: center; gap: 6px; padding-block: 10px; font-size: .88rem; color: var(--muted); font-weight: 700; }
.crumbs a:hover { color: var(--brand); }
.pdp-grid { display: grid; gap: 4px; }
.gallery { margin-inline: -16px; background: #fff; position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--card); }
.g-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ai-note { margin: 8px 16px 0; font-size: .78rem; color: var(--muted); text-align: center; }
.g-empty { color: var(--line-2); }
.g-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 14px; background: #fff; }
.g-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .25s var(--ease), background .25s var(--ease); }
.g-dots i.is-on { width: 24px; background: var(--brand); }
.g-thumbs { display: none; }
.info { padding-block: 18px 8px; min-width: 0; }
.info-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: .82rem; font-weight: 800; color: var(--brand-d); background: var(--brand-100); padding: 4px 12px; border-radius: 99px; }
.code-chip { font-size: .86rem; font-weight: 900; color: #fff; background: var(--ink); padding: 4px 12px; border-radius: 10px; }
.info h1 { font-size: clamp(1.55rem, 6vw, 2.3rem); font-weight: 900; margin-top: 12px; }
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.price-big { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.price-big small { font-size: .55em; color: var(--muted); font-weight: 700; }
.picker { margin-top: 18px; display: grid; gap: 16px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { font-weight: 900; margin-bottom: 8px; padding: 0; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  min-height: 48px; min-width: 64px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line-2);
  background: #fff; font-weight: 800; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.opt-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.opt-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-btn:disabled { color: #9C948A; background: #FBF8F3; text-decoration: line-through; cursor: not-allowed; }
.opt-btn:active:not(:disabled) { transform: scale(.96); }
.opt-msg { font-size: .92rem; color: var(--muted); min-height: 1.6em; }
.opt-msg.is-warn { color: var(--amber-ink); font-weight: 700; }
.opt-msg a { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
/* رنگ‌های یک مدل: هر دایره عکسِ همان رنگ است و به صفحهٔ آن می‌رود */
.opt-colors legend b { font-weight: 800; color: var(--ink-2); }
.sw-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.sw { display: grid; justify-items: center; gap: 6px; width: 64px; color: var(--ink-2); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sw-dot {
  display: block; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
}
.sw-dot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-name { font-size: .8rem; font-weight: 800; line-height: 1.3; text-align: center; }
.sw:hover .sw-dot { box-shadow: 0 0 0 2px var(--brand); }
.sw.is-on .sw-dot { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.sw.is-on .sw-name { color: var(--ink); }
.sw.is-out .sw-dot { opacity: .5; }
.sw.is-out .sw-name::after { content: " (تمام)"; font-weight: 600; color: var(--muted); }
.sw:active .sw-dot { transform: scale(.94); }
.sw:focus-visible { outline: none; }
.sw:focus-visible .sw-dot { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sky); }
.card-sw { display: inline-flex; align-items: center; gap: 4px; min-height: 16px; }
.card-sw i { width: 14px; height: 14px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgb(37 35 33 / .28); }
.card-sw i.is-on { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--ink-2); }
.card-sw i.is-multi { background: conic-gradient(#BF262D, #E8C53A, #3F7A4A, #3A6FB0, #6A3F9E, #BF262D); }
.card-sw small { font-size: .76rem; font-weight: 800; color: var(--muted); margin-inline-start: 3px; }
.buy-inline { margin-top: 6px; display: none; }
.desc { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.desc h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; }
.desc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.desc li { position: relative; padding-inline-start: 20px; }
.desc li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 8px; background: var(--sky); transform: rotate(45deg); border-radius: 2px; }
.desc li:nth-child(3n+2)::before { background: var(--amber); }
.desc li:nth-child(3n)::before { background: var(--ink); }
.insta-link {
  margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg);
  color: #fff; font-weight: 800; background: linear-gradient(120deg, #F58529, #DD2A7B 45%, #8134AF 80%);
}
.insta-link span { flex: 1; }
.assure { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.assure li { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--muted); }
.assure li .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-100); color: var(--brand); }
.assure b { display: block; color: var(--ink); }
.related { padding-block: 36px 24px; }
.related h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 5vw, 2rem); }

.buybar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgb(28 20 17 / .35);
}
.buybar[hidden] { display: none; }
.bb-price { flex: 1; min-width: 0; display: grid; }
.bb-price small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: none; min-width: 52%; min-height: 52px; }
.has-buybar main { padding-bottom: 92px; }

/* ── سبد و پرداخت ── */
.pg-title { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; margin: 22px 0 16px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.line img { width: 72px; height: 90px; object-fit: contain; background: #fff; border-radius: 10px; }
.line-body { display: grid; gap: 2px; min-width: 0; }
.line-body b { font-weight: 800; line-height: 1.4; }
.line-body .muted { font-size: .86rem; }
.line-warn { grid-column: 1 / -1; font-size: .88rem; font-weight: 700; color: var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 6px 10px; }
.line.is-bad { border-color: var(--bad-bord); }
.line-act { display: grid; gap: 6px; justify-items: end; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 22px; text-align: center; font-weight: 900; }
.rm { width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.rm:hover { background: var(--bad-soft); color: var(--bad); }
.totals { margin: 14px 0 0; display: grid; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.totals div { display: flex; justify-content: space-between; align-items: center; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .tt { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.totals .tt dt { color: var(--ink); font-weight: 900; }
.totals .tt .price { font-size: 1.2rem; color: var(--brand-d); }
.cart-empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 14px; justify-items: center; }
.cart-empty .ic { width: 56px; height: 56px; color: var(--brand); }
.skel { height: 112px; border-radius: var(--r); background: linear-gradient(90deg, #fff 0%, var(--brand-100) 50%, #fff 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

.holdbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--amber-50); border: 2px solid var(--amber-bord); color: var(--amber-ink); font-weight: 700; margin-bottom: 14px; }
.holdbar .ic { color: var(--amber-ink); }
.holdbar p { flex: 1; }
.holdbar b { font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--amber-ink); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.holdbar.is-urgent { background: var(--bad-soft); border-color: var(--bad-bord); color: var(--bad); }
.holdbar.is-urgent b, .holdbar.is-urgent .ic { color: var(--bad); }
.holdbar.is-over { background: #F2EDE4; border-color: #CFC6B9; color: var(--ink); }
.sumbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 14px 14px; margin-bottom: 16px; }
.sumbox summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 800; cursor: pointer; }
.sumbox summary::-webkit-details-marker { display: none; }
.sumbox .totals { border: 0; padding: 10px 0 0; }
.coform { display: grid; gap: 16px; }
.step { border: 1px solid var(--line); background: #fff; border-radius: var(--r-lg); padding: 16px; margin: 0; min-width: 0; display: grid; gap: 14px; }
.step legend { float: inline-start; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; padding: 0; margin-bottom: 4px; }
.step legend b { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .lbl { font-weight: 800; font-size: .95rem; }
.opt-l { font-weight: 500; color: var(--muted); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; border-radius: 14px;
  border: 2px solid var(--line-2); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field.has-err input, .field.has-err textarea, .field.has-err .drop { border-color: var(--bad); }
.hint { font-size: .84rem; color: var(--muted); }
.err { font-size: .87rem; color: var(--bad); font-weight: 700; }
.err:empty { display: none; }
.err-form { text-align: center; background: var(--bad-soft); border-radius: 12px; padding: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paytabs { display: flex; gap: 8px; }
.paytab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; border: 2px solid var(--line-2); font-weight: 800; cursor: pointer; }
.paytab input { position: absolute; opacity: 0; pointer-events: none; }
.paytab.is-on, .paytab:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay-how { color: var(--muted); }
.pay-how b { color: var(--ink); }
.paycard { border-radius: 20px; padding: 18px; color: #fff; display: grid; gap: 14px; background: radial-gradient(120% 100% at 0% 0%, var(--brand2) 0%, transparent 60%), linear-gradient(135deg, var(--ink) 0%, var(--head) 100%); box-shadow: var(--shadow-lg); }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.pc-top .ic { color: var(--mint); width: 30px; height: 30px; }
.pc-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgb(255 255 255 / .12); border: 1px dashed rgb(255 255 255 / .4); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.pc-num.copied { background: var(--ok); border-style: solid; }
.pc-name { font-size: .95rem; color: var(--brand-100); }
.notice { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.notice-warn { background: var(--amber-50); border-color: var(--amber-bord); color: var(--amber-ink); font-weight: 700; }
.drop { position: relative; display: grid; place-items: center; min-height: 140px; border: 2px dashed var(--brand-l); border-radius: 18px; background: var(--brand-50); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); overflow: hidden; }
.drop:hover { border-color: var(--brand); background: var(--brand-100); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px; pointer-events: none; }
.drop-empty .ic { width: 40px; height: 40px; color: var(--brand); }
.drop-empty small { color: var(--muted); }
.drop-prev { max-height: 240px; width: auto; margin: 10px auto; border-radius: 12px; pointer-events: none; }
.drop.has-file .drop-empty { display: none; }

/* ── پیگیری سفارش ── */
.orderpg { display: grid; gap: 16px; padding-bottom: 40px; }
.ok-hero { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 30px 16px 26px; margin-top: 18px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(90% 90% at 100% 0%, var(--brand2) 0%, transparent 60%), var(--head); position: relative; overflow: hidden; }
.ok-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; }
.ok-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 0 0 8px rgb(255 255 255 / .2); animation: pop .6s var(--back); }
.ok-badge .ic { width: 38px; height: 38px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ocode { font-size: 1.4rem; font-weight: 900; background: rgb(255 255 255 / .16); padding: 2px 12px; border-radius: 10px; }
.timeline { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.timeline li { display: grid; justify-items: center; gap: 6px; text-align: center; font-weight: 800; font-size: .88rem; color: var(--muted); position: relative; }
.timeline li::before { content: ""; position: absolute; top: 18px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--brand); }
.timeline i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--brand-50); border: 2px solid var(--line-2); z-index: 1; position: relative; }
.timeline li.done i { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline li.done { color: var(--ink); }
.timeline .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.addr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.addr h2 { font-size: 1rem; font-weight: 900; margin-bottom: 4px; }
.nf { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 64px; }
.nf h1 { font-size: 1.5rem; font-weight: 900; }

.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 440px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: var(--shadow-lg); animation: up .35s var(--back); }
.toast a { margin-inline-start: auto; color: var(--mint); font-weight: 900; white-space: nowrap; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }

/* ── ظاهر شدن با اسکرول (Stagger List از اسکیل) ── */
.js .reveal { opacity: 0; transform: translateY(16px) scale(.96); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .42s var(--ease) calc(var(--i, 0) * 60ms), transform .42s var(--back) calc(var(--i, 0) * 60ms); }

/* ── ۱۱-۱۲: صفحهٔ اول با جست‌وجو و کاشی‌های دسته (مثلِ banklebas)، لوک‌بوک اولین کاشی ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-bar { margin: 0; padding: 6px 16px; background: var(--amber-50); color: var(--amber-ink); border-bottom: 1px solid var(--amber-bord); font-size: .8rem; font-weight: 700; text-align: center; }
.hello { padding-block: 14px 22px; }
.search { display: flex; align-items: center; background: #fff; border: 2px solid var(--line-2); border-radius: var(--r); transition: border-color .2s var(--ease); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 0; background: none; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 52px; height: 50px; display: grid; place-items: center; border: 0; background: none; color: var(--brand); }
.tiles { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: grid; grid-template-columns: 38% 1fr; min-height: 0; aspect-ratio: 5 / 6;
  border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--brand-100) 100%);
  border: 1px solid var(--line); transition: transform .3s var(--back), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: auto; height: 190px; justify-self: center; width: 70%; }
.tile-img { display: grid; place-items: center; padding: 10px; min-width: 0; min-height: 0; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* نوارِ اسمِ دسته با خطِ دوختِ نقطه‌چین، برای کارِ دست‌دوز */
.tile-band {
  position: relative; order: -1; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 8px 12px 8px 14px;
  background: var(--head); color: #fff; text-align: center;
}
.tile-band::before { content: ""; position: absolute; inset-block: 8px; inset-inline-end: 5px; border-inline-end: 2px dashed rgb(201 162 90 / .85); }
.tile-band b { font-size: 1.08rem; font-weight: 900; line-height: 1.35; color: var(--mint); text-wrap: balance; }
.tile-band small { font-size: .78rem; color: #CDBFA8; white-space: nowrap; }
.tile-lb { grid-column: 1 / -1; aspect-ratio: auto; height: 210px; grid-template-columns: 36% 1fr; background: linear-gradient(270deg, #F3EEE6 0%, #EAE3D8 45%, #F8F5F0 100%); }
.tile-lb .tile-band small { letter-spacing: .3em; font-size: .62rem; color: #CDBFA8; }
.tile-lb .tile-band b { font-size: 1.5rem; }
.tile-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .74rem; font-weight: 700; color: #fff; text-wrap: balance; }
.tile-figs { position: relative; overflow: hidden; min-height: 0; }
.tile-figs img {
  position: absolute; bottom: 8px; width: auto; height: calc(90% - var(--k) * 13%);
  inset-inline-start: calc(4% + var(--k) * 19%); filter: blur(calc(var(--k) * .8px)); opacity: calc(1 - var(--k) * .14); z-index: calc(10 - var(--k));
}
.js .tile-figs img { animation: fig-walk 5s var(--ease) infinite; animation-delay: calc(var(--k) * -1.2s); }
@keyframes fig-walk { 0%, 100% { translate: 0 0; } 50% { translate: 7px 0; } }
.rows { padding-top: 6px; }
.row { margin-top: 26px; }
.row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-head h2 { font-size: 1.35rem; font-weight: 900; margin-inline-end: auto; }
.row-nav { display: inline-flex; gap: 6px; }
.row-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s, opacity .2s; }
.row-btn:hover { background: var(--brand-100); }
.row-btn[data-dir="-1"] .ic { transform: scaleX(-1); }
.row-btn:disabled { opacity: .35; cursor: default; }
.row-all { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; color: var(--brand); }
/* ردیف داخلِ کادر، با فاصلهٔ یکسان از دو طرف و فقط کارتِ کامل: هم‌عرض و هم‌ستونِ شبکهٔ «همه مدل‌ها» (۲، ۳، ۴ تایی).
   حکمِ دایی ۱۱-۱۴: لبهٔ بریده در یک طرف و هم‌تراز نبودنِ دو طرف «بهم‌ریخته» است. ورق با دکمهٔ قبلی/بعدی یا کشیدن. */
.hrow { --n: 2; --gap: 12px; list-style: none; margin: 0; padding: 4px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .card { scroll-snap-align: start; }
/* کارتِ «همهٔ …» تهِ ردیف؛ در ردیفِ کوتاه جای خالی را پر می‌کند */
.card-more { display: flex; }
.more-link {
  flex: 1; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 18px; text-align: center;
  border-radius: var(--r-lg); background: var(--head); color: #fff; transition: transform .3s var(--back), box-shadow .3s var(--ease);
}
.more-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.more-link small { font-size: .82rem; color: #CDBFA8; }
.more-link b { font-size: 1.35rem; font-weight: 900; color: var(--mint); text-wrap: balance; }
.more-link span { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / .1); font-weight: 800; font-size: .9rem; }
.search-clear { margin-top: 10px; }
.search-clear a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--brand); }

/* نوارِ پایینِ گوشی */
.tabbar { display: none; }
@media (max-width: 899px) {
  .tabbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 44; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 26px -18px rgb(28 20 17 / .4);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 1px; padding: 4px 0; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
  .tabbar a:hover, .tabbar a:focus-visible { color: var(--brand); }
  .tabbar .badge { top: -2px; inset-inline-end: calc(50% - 24px); }
  body:not(.has-buybar):not(.pg-checkout):not(.pg-lookbook) main { padding-bottom: 70px; }
  .has-buybar .tabbar, .pg-checkout .tabbar { display: none; }
}

/* پرداخت: کارت به کارت یا اسنپ‌پی */
.paytab-snapp.is-on, .paytab-snapp:has(input:checked) { border-color: #5C604F; background: #5C604F; }
.snapp-dot { width: 12px; height: 12px; border-radius: 50%; background: #5C604F; box-shadow: 0 0 0 3px #DFE1D6; }
.paytab-snapp:has(input:checked) .snapp-dot { background: #fff; box-shadow: none; }
.paypane { display: grid; gap: 14px; }
.snapp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.snapp-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.snapp-steps li > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #ECEDE4; color: #474A3C; font-weight: 900; }
.amount-copy { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 10px 14px; border-radius: 14px; border: 1px dashed #A9AD9A; background: #F3F2EC; color: var(--ink); }
.amount-copy span { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.amount-copy small { margin-inline-end: auto; color: var(--muted); font-weight: 700; }
.amount-copy.copied { background: var(--ok-soft); border-color: var(--ok); }
.btn-snapp { background: linear-gradient(180deg, rgb(255 255 255 / .17), rgb(255 255 255 / 0) 58%), #5C604F; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 8px 22px -10px rgb(92 96 79 / .55); }
.btn-snapp:hover { background: linear-gradient(180deg, rgb(255 255 255 / .17), rgb(255 255 255 / 0) 58%), #474A3C; }

/* پیگیری سفارش */
.sub-t { font-size: 1.05rem; margin: 6px 0 8px; }
.mine { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mine a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
.mine small { margin-inline-start: auto; color: var(--muted); font-weight: 600; }

/* ── تبلت و دسکتاپ ── */
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; }
  .tile { aspect-ratio: 3 / 4; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .tile-band { order: 0; padding: 12px 6px; }
  .tile-band::before { inset-block: auto; top: 5px; inset-inline: 10px; border-inline-end: 0; border-top: 2px dashed rgb(201 162 90 / .85); }
  .tile:last-child:nth-child(even) { grid-column: auto; width: auto; height: auto; aspect-ratio: 3 / 4; }
  .tile-lb { grid-column: 1 / -1; height: 260px; aspect-ratio: auto; grid-template-columns: 26% 1fr; grid-template-rows: 1fr; }
  .tile-lb .tile-band { order: -1; }
  .tile-lb .tile-band::before { top: 12px; bottom: 12px; inset-inline: auto; inset-inline-end: 6px; border-top: 0; border-inline-end: 2px dashed rgb(201 162 90 / .85); }
  .tile-figs img { inset-inline-start: calc(5% + var(--k) * 17%); height: calc(92% - var(--k) * 10%); }
  .hrow { --n: 3; --gap: 18px; }
  .wrap { padding-inline: 24px; }
  .grid { --cols: 3; --gap: 18px; }
  .chips { margin-inline: -24px; padding-inline: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .foot-in { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: start; }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; align-items: center; padding-block: 64px 76px; gap: 40px; }
  .hero-copy { justify-items: start; text-align: start; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-art { height: 430px; }
  .hc-0 { height: 400px; top: 10px; }
  .hc-1, .hc-2 { height: 300px; top: 70px; }
  .quilt { grid-auto-rows: 72px; inset: -10px -60px -60px -60px; opacity: .55; }
  .strip-in { justify-content: center; gap: 48px; }
  .pdp-grid { grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: start; padding-top: 6px; }
  .gallery { margin-inline: 0; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; position: sticky; top: calc(var(--top-h) + 16px); }
  .g-thumbs { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
  .g-thumb { width: 64px; height: 80px; padding: 2px; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
  .g-thumb img { width: 100%; height: 100%; object-fit: contain; }
  .g-thumb.is-on { border-color: var(--brand); }
  .g-dots { display: none; }
  .info { padding-top: 10px; }
  .buy-inline { display: block; }
  .pg-product .buybar { display: none; }
  .pg-product.has-buybar main { padding-bottom: 0; }
  .grid-rel { --cols: 4; }
}
@media (min-width: 1100px) {
  .grid { --cols: 4; --gap: 22px; }
  .hrow { --n: 4; --gap: 22px; }
  .hrow[data-c="2"] .card-more { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.buybar .bb-add { min-width: 0; width: 56px; padding: 0; gap: 0; }
.buybar .bb-add .ic-xs { margin-inline-start: -6px; margin-top: -12px; }
.buybar [data-buy] { min-width: 46%; }

/* دوخت اختصاصی: گزینه‌ها با قیمت و روزِ آماده‌شدن، زیتونی تا با «آخرین تکه»ی کهربایی قاطی نشود */
.pill-made { background: var(--brand2); color: #fff; }
.opt-made legend { display: flex; align-items: center; gap: 6px; }
.made-intro { margin: -2px 0 10px; font-size: .88rem; color: var(--muted); }
.made-list { display: grid; gap: 8px; }
.made-btn {
  display: grid; gap: 4px; text-align: start; width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.made-btn:hover { border-color: var(--brand2); }
.made-btn:active { transform: scale(.98); }
.made-btn[aria-pressed="true"] { border-color: var(--brand2); background: var(--ok-soft); box-shadow: inset 0 0 0 1px var(--brand2); }
.mb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mb-top .price { font-weight: 900; white-space: nowrap; }
.mb-note { font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.mb-lead { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 800; color: var(--brand2); }
.made-line { display: flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--brand2); }
.notice-made { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); border-color: #CBD1BC; color: var(--ink); margin: 12px 0; }
.notice-made .ic { color: var(--brand2); flex: none; margin-top: 3px; }
.notice-made p { margin: 0; }
.size-note { margin: -4px 0 12px; }

/* لودینگ: لوگو با قلم‌مو کشیده می‌شود (public/brand/loader.svg، ساخت با tools/build_loader.js).
   حکمِ دایی ۱۱-۱۴: سرِ هر تغییرِ صفحه. بی JS نمی‌آید؛ اگر اسکریپت نرسید، خودِ CSS پرده را بعد از ۲ ثانیه برمی‌دارد. */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  animation: loader-off .01s linear 2.2s forwards;
}
.loader img { width: min(72vw, 420px); height: auto; }
.loader.out { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
@keyframes loader-off { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .loader { display: none; } }

/* ── ۱۱-۱۴ شب: کاشی‌های عکس‌دار به‌جای سطحِ قهوه‌ایِ ساده (حکمِ دایی). عکس‌ها از tools/gen_tile_photos.py ── */
.tile-lb { display: block; height: 320px; background: #2A221D; }
.lb-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.lb-m { position: relative; overflow: hidden; min-height: 0; }
.lb-m0 { grid-row: 1 / -1; }
.lb-m img, .more-link.has-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform .9s var(--ease); }
.tile-lb:hover .lb-m img, .more-link.has-pic:hover img { transform: scale(1.05); }
.tile-lb .tile-band { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 64px 16px 18px; background: linear-gradient(0deg, rgb(20 14 10 / .88) 0%, rgb(20 14 10 / .55) 55%, rgb(20 14 10 / 0) 100%); }
.tile-lb .tile-band::before { display: none; }
.tile-lb .tile-band b { font-size: 1.7rem; color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .45); }
.tile-lb .tile-band small { color: #E9DCC6; }
.more-link.has-pic { position: relative; overflow: hidden; align-content: end; padding: 18px 12px 16px; background: #2A221D; }
.more-link.has-pic::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(20 14 10 / .9) 0%, rgb(20 14 10 / .45) 45%, rgb(20 14 10 / 0) 75%); }
.more-link.has-pic > :not(img) { position: relative; z-index: 2; }
.more-link.has-pic small { color: #E9DCC6; }
.more-link.has-pic b { color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .5); }
.more-link.has-pic span { background: rgb(255 255 255 / .18); backdrop-filter: blur(6px); }
@media (min-width: 700px) {
  .tile-lb { height: 400px; }
  .lb-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .lb-m0 { grid-row: auto; }
  .lb-m img { object-position: 50% 22%; }
}

/* ── ۱۱-۰۵: صفحه‌های دسته (سئو). متنِ ثابت از src/category_copy.js؛ خواناییِ متنِ بلند بر تزئین مقدم است ── */
.hello-h1 { font-size: .92rem; font-weight: 800; color: var(--muted); margin: 0 0 10px; text-wrap: balance; }
.h1-code { font-size: .5em; font-weight: 800; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.related .rel-head h2 { margin-bottom: 0; }
.cat-head { padding-block: 2px 4px; }
.cat-head h1 { font-size: clamp(1.6rem, 6.4vw, 2.6rem); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.cat-intro { max-width: 780px; margin-top: 12px; display: grid; gap: 10px; color: var(--ink-2); line-height: 2; }
.cat-price { margin-top: 12px; font-weight: 800; color: var(--brand); }
.cat-shop { padding-block: 22px 40px; }
.cat-guide { max-width: 860px; margin-bottom: 28px; padding-block: 22px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cat-guide h2 { font-size: 1.2rem; font-weight: 900; margin: 18px 0 8px; }
.cat-guide h2:first-child { margin-top: 0; }
.cat-guide p { margin: 0 0 10px; line-height: 2; color: var(--ink-2); }
.cat-intro a, .cat-guide a { color: var(--brand); font-weight: 800; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.cat-intro a:hover, .cat-guide a:hover { text-decoration-color: var(--brand); }
.cat-more { padding-bottom: 44px; }
.cat-more h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: 10px; }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-cats h2 { font-size: .95rem; font-weight: 900; color: var(--mint); margin-bottom: 4px; }
.foot-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-cats a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.foot-cats a:hover { color: var(--mint); }
@media (min-width: 700px) {
  .foot-cats ul { display: grid; gap: 0; }
  .cat-guide { padding-inline: 28px; }
}
