/* =====================================================================
   فروشگاه خوش‌اخلاق — قالب KhoshStore
   یک فایل CSS دست نویس، بی کتابخانه. موبایل اول؛ فقط ویژگی های منطقی
   (inline/block) تا RTL و LTR بی بازنویسی کار کنند. هیچ رنگی بیرون از
   لایه tokens نوشته نمی شود (تم تیره = یک مجموعه توکن).
   نقاط شکست: 40em (640) · 48em (768) · 64em (1024) · 80em (1280)
   ===================================================================== */
/* زاویه حلقه گرادیان استوری (چرخش با انیمیشن) */
@property --ks-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@layer reset, tokens, base, layout, components, sections, pages, utilities, motion;
/* ------------------------------------------------------------------ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  summary { cursor: pointer; }
  summary::-webkit-details-marker { display: none; }
  :where(ul, ol)[class] { list-style: none; margin: 0; padding: 0; }
}
/* ------------------------------------------------------------------ */
@layer tokens {
  /* پالت روشن «کاغذ و قهوه» (PLAN ۵.۳). کنتراست هر جفت متن/زمینه: tools/contrast.py. زرد و صورتی
     نشان فقط «پر» اند (زمینه با متن --on-fill)، هرگز رنگ متن روی زمینه روشن. */
  :root {
    color-scheme: light;
    --is-dark: 0;

    --bg: #fff8ee;
    --surface: #ffffff;
    --surface-2: #f6ebdd;
    --line: #e8d9c7;
    --ink: #2b201a;
    --ink-2: #6b5a50;
    --ink-3: #857265;
    --link: #a63f1c;
    --link-strong: #86300f;
    --link-soft: #fbe6dc;

    /* زرد نشان و متن روی همه «پر»ها (زرد، صورتی، هلویی، کرافت): در هر دو تم قهوه ای تیره */
    --brand: #fdde00;
    --brand-strong: #f0cf00;
    --on-fill: #2b201a;

    /* زیرتم زنانه (w) / مردانه (m) / جوراب (s) و کرافت برچسب کارتن */
    --w: #ff6694; --w-soft: #ffd9e4; --w-tint: #fff0f4; --w-text: #b0204f;
    --m: #fdde00; --m-soft: #ffec80; --m-tint: #fff7cc; --m-text: #7a5c00;
    --s: #ffb27a; --s-tint: #fff1e6;
    --kraft: #d9b98c; --kraft-soft: #f1e5d4; --kraft-ink: #3b2a1a;

    /* خط جاری (data-line بازتعریفش می کند): پر، نرم، ته رنگ زمینه، رنگ متن */
    --line-fill: var(--brand);
    --line-soft: var(--m-soft);
    --line-tint: var(--surface-2);
    --line-text: var(--link);

    /* نام های پایه قالب که بقیه CSS می خواند */
    --primary: var(--link);
    --primary-strong: var(--link-strong);
    --primary-soft: var(--link-soft);
    --on-primary: #ffffff;
    --accent: #e8875a;
    --photo-bg: #efe4d6;
    --photo-filter: none;

    /* لحظه های تیره (کارت فراخوان، کش کمر، پرده ورود، فوتر): قهوه ای جوهری، در هر دو تم تیره */
    --band: #2b201a;
    --on-band: #fff8ee;
    --night: #2b201a;
    --night-2: #3a2c24;
    --night-line: #54433a;
    --on-night: #fff8ee;
    --on-night-2: #d8c7b7;

    /* نشان: دایره (زرد/صورتی) و دورگیر و R */
    --logo-fill: var(--brand);
    --logo-ink: #2b201a;

    /* وضعیت ها */
    --success: #2a6b3f;
    --danger: #a8261f;
    --danger-soft: #fbe9e7;
    --warning: #7c5400;
    --info: #1e4f8a;
    --info-soft: #e7eef8;

    /* لایه ها، سایه ها و بافت ریب جوراب */
    --glass: color-mix(in srgb, var(--surface) 86%, transparent);
    --overlay: rgb(43 32 26 / .6);
    --overlay-soft: rgb(43 32 26 / .16);
    --shadow-1: 0 1px 2px rgb(43 32 26 / .05), 0 8px 24px rgb(43 32 26 / .07);
    --shadow-2: 0 20px 50px rgb(43 32 26 / .14);
    --rib-ink: rgb(43 32 26 / .045);
    --rib-night: rgb(255 248 238 / .035);

    /* برچسب دوخته .label: نوار پارچه ای به رنگ خط جاری */
    --label-bg: var(--line-fill);
    --label-ink: var(--on-fill);
    --label-weave: rgb(43 32 26 / .05);
    --label-fold: rgb(43 32 26 / .2);
    --label-stitch: rgb(43 32 26 / .42);

    /* اتیکت آویز .hangtag: مقوای کرافت */
    --tag-bg: var(--kraft-soft);
    --tag-ink: var(--kraft-ink);
    --tag-edge: var(--kraft);
    --tag-string: var(--ink-3);


    /* تایپوگرافی */
    --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --fs-hero: clamp(2.4rem, 1.2rem + 6vw, 5.5rem);
    --fs-h1: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
    --fs-h2: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
    --fs-h3: clamp(1.2rem, 1rem + .8vw, 1.6rem);
    --fs-body: clamp(.95rem, .9rem + .2vw, 1.05rem);
    --fs-lead: clamp(1.05rem, .95rem + .5vw, 1.3rem);
    --fs-small: .85rem;

    /* فاصله ها (پایه ۴px) */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem;
    --section-y: clamp(4rem, 7vw, 6.5rem);

    /* شعاع ها */
    --r-sm: 10px;
    --r-md: 14px;
    --r-img: 16px;
    --r-card: 22px;
    --r-pill: 999px;

    /* حرکت */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --dur-1: .2s;
    --dur-2: .45s;
    --dur-3: .9s;

    /* چیدمان */
    --container: 1240px;
    --header-h: 64px;
    --header-top: calc(12px + env(safe-area-inset-top, 0px));
    --header-space: calc(var(--header-h) + var(--header-top) + 1rem);
  }
  /* تم تیره: همان نام ها، قهوه ای گرم. دو بار نوشته می شود (انتخاب دستی، و پیروی از سیستم وقتی کاربر
     «روشن» را برنگزیده)؛ gzip تکرار را تقریبا رایگان می کند. پرها (زرد، صورتی) و --on-fill ثابت اند. */
  :root[data-theme="dark"] {
    color-scheme: dark; --is-dark: 1;
    --bg: #18120f; --surface: #221a16; --surface-2: #2c231e; --line: #43362e;
    --ink: #f6ece1; --ink-2: #c8b6a7; --ink-3: #9c8a7c;
    --link: #f29a72; --link-strong: #f7b79a; --link-soft: #3b2419; --on-primary: #18120f;
    --w-soft: #4a2433; --w-tint: #2e1c23; --w-text: #ff8fb0;
    --m-soft: #4a400e; --m-tint: #2b2611; --m-text: #fdde00;
    --s-tint: #33231a; --kraft-soft: #3d3129; --kraft-ink: #f0e3d2;
    --accent: #c9744c; --photo-bg: #2c231e; --photo-filter: brightness(.92);
    --band: #0f0b09; --on-band: #f6ece1;
    --night: #0f0b09; --night-2: #1f1814; --night-line: #3a2e27; --on-night: #f6ece1; --on-night-2: #c8b6a7;
    --success: #7fd3a2; --danger: #f2948b; --danger-soft: #3a1714;
    --warning: #e9bd62; --info: #93b8f2; --info-soft: #152438;
    --overlay: rgb(0 0 0 / .66); --overlay-soft: rgb(0 0 0 / .25);
    --shadow-1: 0 0 0 1px var(--line);
    --shadow-2: 0 0 0 1px var(--line), 0 18px 48px rgb(0 0 0 / .45);
    --rib-ink: rgb(246 236 225 / .035);
    --label-weave: rgb(43 32 26 / .06); --label-fold: rgb(0 0 0 / .3);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark; --is-dark: 1;
      --bg: #18120f; --surface: #221a16; --surface-2: #2c231e; --line: #43362e;
      --ink: #f6ece1; --ink-2: #c8b6a7; --ink-3: #9c8a7c;
      --link: #f29a72; --link-strong: #f7b79a; --link-soft: #3b2419; --on-primary: #18120f;
      --w-soft: #4a2433; --w-tint: #2e1c23; --w-text: #ff8fb0;
      --m-soft: #4a400e; --m-tint: #2b2611; --m-text: #fdde00;
      --s-tint: #33231a; --kraft-soft: #3d3129; --kraft-ink: #f0e3d2;
      --accent: #c9744c; --photo-bg: #2c231e; --photo-filter: brightness(.92);
      --band: #0f0b09; --on-band: #f6ece1;
      --night: #0f0b09; --night-2: #1f1814; --night-line: #3a2e27; --on-night: #f6ece1; --on-night-2: #c8b6a7;
      --success: #7fd3a2; --danger: #f2948b; --danger-soft: #3a1714;
      --warning: #e9bd62; --info: #93b8f2; --info-soft: #152438;
      --overlay: rgb(0 0 0 / .66); --overlay-soft: rgb(0 0 0 / .25);
      --shadow-1: 0 0 0 1px var(--line);
      --shadow-2: 0 0 0 1px var(--line), 0 18px 48px rgb(0 0 0 / .45);
      --rib-ink: rgb(246 236 225 / .035);
      --label-weave: rgb(43 32 26 / .06); --label-fold: rgb(0 0 0 / .3);
    }
  }
  /* زیرتم خط (PLAN ۵.۳): هر عنصری با data-line چهار توکن خط را برای خودش و فرزندانش بازتعریف می کند */
  [data-line="w"] { --line-fill: var(--w); --line-soft: var(--w-soft); --line-tint: var(--w-tint); --line-text: var(--w-text); }
  [data-line="m"] { --line-fill: var(--m); --line-soft: var(--m-soft); --line-tint: var(--m-tint); --line-text: var(--m-text); }
  [data-line="s"] { --line-fill: var(--s); --line-soft: var(--s); --line-tint: var(--s-tint); --line-text: var(--link); }
}
/* ------------------------------------------------------------------ */
@layer base {
  @font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
  html { scroll-padding-top: var(--header-space); }
  body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.35;
    text-wrap: balance;
    color: var(--ink);
  }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  p { text-wrap: pretty; }
  a { color: var(--primary); text-underline-offset: .35em; }
  a:hover { color: var(--primary-strong); }
  :focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
  }
  ::selection { background: var(--primary-soft); color: var(--ink); }
  /* عکس های محتوا در تم تیره کمی کم نورتر (لوگوها و نقاشی ها SVG درون خطی اند و جدا رنگ می گیرند) */
  img:not([src$=".svg"]) { filter: var(--photo-filter); }
  strong, b { font-weight: 700; }
  small { font-size: var(--fs-small); }
  hr { border: 0; height: 1px; margin-block: 2.5rem; background: var(--line); }
  /* کدها و عددهای لاتین (H1066، تلفن، ایمیل) */
  .ltr, code, kbd {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
  }
}
/* ------------------------------------------------------------------ */
@layer layout {
  .container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
  }
  .container--read { width: min(100% - 2rem, 760px); }
  .site-main {
    display: block;
    min-height: 60vh;
    padding-top: var(--header-space);
  }
  .site-main:focus { outline: none; }
  .is-home .site-main { padding-top: 0; }
  .section { padding-block: var(--section-y); }
  .section--alt { background: var(--surface-2); }
  .section--page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 9vw, 7rem); }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
  }
  /* بافت پارچه (تار و پود، «کاغذ شطرنجی») بسیار کم رنگ؛ از دور دوم فقط پشت هیروی خانه (PLAN ۱۱.۳) */
}
/* ------------------------------------------------------------------ */
@layer components {
  /* --- آیکن ها ---------------------------------------------------- */
  .icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -.25em;
  }
  /* arrow و chevron در اسپرایت رو به «جلو» در LTR اند */
  [dir="rtl"] .icon--arrow,
  [dir="rtl"] .icon--chevron { transform: scaleX(-1); }
  .icon.icon--up { transform: rotate(-90deg); }
  /* --- نشان و نام (KsUi.Logo): دایره نشان بی نوشته + نام سایت به صورت متن ------------------- */
  .mark { display: block; flex: none; aspect-ratio: 1; overflow: visible; }
  .logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
  .logo__mark { width: 2.75rem; height: 2.75rem; }
  .logo__text { display: grid; line-height: 1.3; }
  .logo__name { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
  .logo__tagline { color: var(--ink-2); font-size: .72rem; font-weight: 500; white-space: nowrap; }
  /* --- خط دوخت ---------------------------------------------------- */
  .stitch {
    display: block;
    height: 2px;
    width: 100%;
    background: repeating-linear-gradient(to left, var(--accent) 0 7px, transparent 7px 12px);
  }
  [dir="ltr"] .stitch { background-image: repeating-linear-gradient(to right, var(--accent) 0 7px, transparent 7px 12px); }
  /* --- دکمه ها ----------------------------------------------------- */
  .btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-bd: var(--line);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .65rem 1.45rem;
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--dur-1) var(--ease-out);
  }
  .btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  /* دکمه اصلی: زرد نشان با متن قهوه ای و لبه کمی تیره تر (زرد روی کاغذ بی لبه گم می شود)؛ دوم: قهوه ای جوهری */
  .btn--primary, .btn--brand {
    --btn-bg: var(--brand);
    --btn-fg: var(--on-fill);
    --btn-bd: color-mix(in srgb, var(--brand), var(--on-fill) 16%);
  }
  .btn--primary:hover, .btn--brand:hover { --btn-bg: var(--brand-strong); }
  .btn--ink { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
  .btn--ghost { --btn-bg: transparent; --btn-bd: var(--ink); }
  .btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
  .btn--sm { min-height: 40px; padding: .4rem 1rem; font-size: .88rem; }
  .btn--block { width: 100%; }
  /* حالت ارسال: قرقره ای که می چرخد */
  .btn.is-loading { pointer-events: none; color: transparent; }
  .btn.is-loading > * { visibility: hidden; }
  .btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--btn-fg) 30%, transparent);
    border-top-color: var(--btn-fg);
    animation: spin .8s linear infinite;
  }
  .icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--dur-1) var(--ease-out);
  }
  .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
  .icon-btn .icon { width: 1.3rem; height: 1.3rem; }
  /* انتخاب گر زبان: پیوندهای کوچک؛ در هدر فقط دسکتاپ، در منوی موبایل پایین پرده */
  .langs__list { display: flex; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
  .langs__link {
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--s-3);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: var(--fs-small);
    font-weight: 600;
    text-decoration: none;
  }
  .langs__link:hover { background: var(--surface-2); color: var(--ink); }
  .langs__link.is-active { color: var(--primary); background: var(--primary-soft); }
  /* موبایل: فقط زبان(های) دیگر، کنار کلید تم؛ از ۱۰۲۴px همه زبان ها با زبان جاری برجسته */
  .langs__link.is-active { display: none; }
  .langs__link { padding-inline: var(--s-2); }
  /* هدر موبایل جا ندارد: انتخاب گر نوار فقط از ۱۰۲۴px؛ در موبایل داخل منوی همبرگری با همه زبان ها */
  .site-header__actions > .langs { display: none; }
  .langs--menu .langs__link.is-active { display: inline-flex; }
  .langs--menu .langs__link { padding-inline: var(--s-3); border: 1px solid var(--line); }
  /* کلید تم: ماه و خورشید روی هم؛ --is-dark (۰/۱، از توکن ها) چرخش و جابه جایی شان را می سازد */
  html:not(.js) .theme-toggle { display: none; }
  .theme-toggle { position: relative; overflow: hidden; }
  .theme-toggle .icon { grid-area: 1 / 1; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
  .theme-toggle__moon { opacity: calc(1 - var(--is-dark)); transform: rotate(calc(var(--is-dark) * -90deg)); }
  .theme-toggle__sun { opacity: var(--is-dark); transform: rotate(calc((1 - var(--is-dark)) * 90deg)); }
  /* --- برچسب بافته (eyebrow بالای تیترها؛ PLAN ۱۱.۳) ------------------
     نوار پارچه ای کوتاه: بافت ریز تار و پود، دو سر تاخورده (سایه داخلی) و دو دوخت کوتاه عمودی در دو سر */
  .label,
  .kit-cards h3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: fit-content;
    padding: .2rem 1.15rem;
    border-radius: 2px;
    background:
      repeating-linear-gradient(90deg, var(--label-weave) 0 1px, transparent 1px 3px),
      repeating-linear-gradient(0deg, var(--label-weave) 0 1px, transparent 1px 3px),
      var(--label-bg);
    box-shadow:
      inset .5rem 0 .4rem -.35rem var(--label-fold),
      inset -.5rem 0 .4rem -.35rem var(--label-fold),
      0 1px 2px var(--overlay-soft);
    color: var(--label-ink);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.75;
  }
  .label::before,
  .label::after,
  .kit-cards h3::before,
  .kit-cards h3::after {
    content: "";
    position: absolute;
    inset-block: 4px;
    inset-inline-start: .45rem;
    width: 1.5px;
    background: repeating-linear-gradient(to bottom, var(--label-stitch) 0 3px, transparent 3px 5px);
  }
  .label::after, .kit-cards h3::after { inset-inline-start: auto; inset-inline-end: .45rem; }
  /* --- اتیکت آویز (کد مدل و کد طرح) -----------------------------------
     مقوای کرافت با دو گوشه بریده در سمت سوراخ (گرادیان، نه clip-path تا نخ ::before بیرون از کادر بماند)،
     سوراخ با radial-gradient به رنگ زمینه زیرش (--tag-hole)، و نخ نازک خمیده. متن لاتین است: همیشه LTR. */
  .hangtag {
    --tag-hole: var(--surface);
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.7rem;
    margin-inline-start: .85rem;
    padding: .05rem .75rem .05rem 1.3rem;
    direction: ltr;
    unicode-bidi: isolate;
    background:
      radial-gradient(circle at .58rem 50%, var(--tag-hole) 0 .16rem, var(--tag-edge) .17rem .25rem, transparent .26rem),
      linear-gradient(135deg, transparent .4rem, var(--tag-bg) 0) top / 100% 51% no-repeat,
      linear-gradient(45deg, transparent .4rem, var(--tag-bg) 0) bottom / 100% 51% no-repeat;
    filter: drop-shadow(0 1px 1px var(--overlay-soft));
    color: var(--tag-ink);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
  }
  .hangtag::before {
    content: "";
    position: absolute;
    right: calc(100% - .62rem);
    bottom: 50%;
    width: 1.35rem;
    height: .8rem;
    border-bottom: 1.2px solid var(--tag-string);
    border-left: 1.2px solid var(--tag-string);
    border-bottom-left-radius: 100% 100%;
  }
  /* --- عکس قالب (KsUi.Photo): نقطه تمرکز از --pos -------------------- */
  .photo { object-fit: cover; object-position: var(--pos, 50% 50%); background: var(--photo-bg); }
  /* --- چیپ ها ------------------------------------------------------- */
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 40px;
    padding: .35rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
  }
  .chip:hover,
  .chip.is-active,
  .chip[aria-current] { border-color: var(--ink); color: var(--ink); }
  .chip.is-active, .chip[aria-current] { background: var(--ink); color: var(--bg); }
  /* نقطه رنگ خط (زرد پیش فرض، صورتی/زرد در data-line)؛ لبه تیره تر تا زرد روی سفید دیده شود */
  .dot {
    width: .7rem;
    height: .7rem;
    flex: none;
    border: 1px solid color-mix(in srgb, var(--line-fill), var(--on-fill) 28%);
    border-radius: 50%;
    background: var(--line-fill);
  }
  .chip--line:hover, .chip--line[aria-current] { border-color: color-mix(in srgb, var(--line-fill), var(--on-fill) 28%); background: var(--line-tint); color: var(--ink); }
  /* --- کیت نقش مایه ها (PLAN ۵.۱: «بسته به بسته، از قفسه ما تا مغازه شما») ------------------
     همه بی عکس و فقط از توکن ها؛ رنگ از خط جاری (data-line). حرکت ها در لایه motion و فقط transform/opacity. */
  /* ریب جوراب: راه راه عمودی بسیار کم رنگ روی زمینه هر بخش (فقط background-image؛ رنگ زمینه با خود بخش) */
  .rib { background-image: repeating-linear-gradient(90deg, var(--rib-ink) 0 2px, transparent 2px 7px); }
  /* لبه مچ جوراب: لبه بالای عنصر برآمدگی های نرم پشت سر هم (mask؛ روش Happy Socks)، حداکثر دو جا در صفحه.
     ارتفاع برآمدگی --cuff-r در padding بالای خود عنصر حساب می شود. */
  .cuff-edge {
    --cuff-r: 9px;
    --cuff-w: 24px;
    -webkit-mask:
      linear-gradient(var(--ink) 0 0) 0 var(--cuff-r) / 100% 100% no-repeat,
      radial-gradient(circle at 50% 100%, var(--ink) calc(var(--cuff-r) - .6px), transparent var(--cuff-r)) 50% 0 / var(--cuff-w) var(--cuff-r) repeat-x;
    mask:
      linear-gradient(var(--ink) 0 0) 0 var(--cuff-r) / 100% 100% no-repeat,
      radial-gradient(circle at 50% 100%, var(--ink) calc(var(--cuff-r) - .6px), transparent var(--cuff-r)) 50% 0 / var(--cuff-w) var(--cuff-r) repeat-x;
  }
  /* ریل آویز: میله افقی بالای یک ردیف (قفسه دسته ها، کارت های تماس)؛ فرزندان با .hook-card از آن آویزان اند */
  .hanger-rail { position: relative; padding-top: 1.5rem; }
  .hanger-rail::before {
    content: "";
    position: absolute;
    top: .2rem;
    inset-inline: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--rail, color-mix(in srgb, var(--ink) 22%, transparent));
  }
  /* کارت آویز بسته بندی (euro-hook): سوراخ گرد بالای کارت (رنگ پشتش --hole) با میخ نازکی تا ریل؛ hover = تاب
     خوردن روی میخ. زمینه پر خط جاری با متن قهوه ای. */
  .hook-card {
    --hole: var(--bg);
    position: relative;
    padding: 2.4rem 1.1rem 1.15rem;
    border-radius: 1.6rem 1.6rem var(--r-card) var(--r-card);
    background:
      radial-gradient(circle at 50% 1.05rem, var(--hole) .3rem, color-mix(in srgb, var(--line-fill), var(--on-fill) 30%) .32rem .42rem, transparent .44rem),
      var(--line-fill);
    color: var(--on-fill);
    transform-origin: 50% 1.05rem;
    transition: transform .6s var(--ease-out);
  }
  .hook-card::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 1.05rem);
    left: calc(50% - 1px);
    width: 2px;
    height: 2.1rem;
    border-radius: 2px;
    background: var(--hook, var(--ink-3));
  }
  .hanger-rail > .hook-card { margin-top: .4rem; }
  /* برچسب کارتن: کرافت، نوار چسب روی لبه بالا (با reveal کشیده می شود: scaleX)، بارکد ریز در گوشه پایین و مهر شماره */
  .carton {
    position: relative;
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 6px;
    background: var(--kraft-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kraft) 70%, transparent), var(--shadow-1);
    color: var(--kraft-ink);
  }
  .carton::before {
    content: "";
    position: absolute;
    top: -.55rem;
    inset-inline: 22%;
    height: 1.1rem;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, transparent 0 9px, var(--label-weave) 9px 10px), color-mix(in srgb, var(--brand) 72%, var(--kraft-soft));
    transform-origin: right;
  }
  [dir="ltr"] .carton::before { transform-origin: left; }
  .carton::after {
    content: "";
    position: absolute;
    bottom: .8rem;
    inset-inline-end: .9rem;
    width: 3.2rem;
    height: .9rem;
    opacity: .55;
    background: repeating-linear-gradient(90deg, var(--kraft-ink) 0 1px, transparent 1px 3px, var(--kraft-ink) 3px 5px, transparent 5px 6px, var(--kraft-ink) 6px 7px, transparent 7px 9px);
  }
  .carton__no {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1.5px dashed currentColor;
    border-radius: 50%;
    font-weight: 900;
    rotate: -8deg;
  }
  /* برچسب شمار بسته (به جای قیمت): دایره کوچک پر خط با «×۱۲» */
  .pack-badge {
    display: inline-grid;
    place-items: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding-inline: .3rem;
    border-radius: 50%;
    background: var(--line-fill);
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, var(--line-fill), var(--on-fill) 25%);
    color: var(--on-fill);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  /* برچسب های سایز: چیپ کوچک با سوراخ آویز (لاتین، LTR) */
  .size-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
  .size-tags > * {
    min-width: 2.1rem;
    padding: .3rem .45rem .05rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: radial-gradient(circle at 50% 4px, var(--line) 1.4px, transparent 1.8px), var(--surface);
    color: var(--ink-2);
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    direction: ltr;
    unicode-bidi: isolate;
  }
  /* --- کارت --------------------------------------------------------- */
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: clamp(1.25rem, 3vw, 2rem);
  }
  /* --- فرم ها -------------------------------------------------------- */
  .form { display: grid; gap: 1.15rem; }
  .form--inline { margin-top: 1rem; display: grid; gap: .5rem; justify-items: start; }
  .field { display: grid; gap: .4rem; }
  .field > label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
  .field input,
  .field select,
  .field textarea,
  .input {
    width: 100%;
    min-height: 50px;
    padding: .65rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
  }
  .field textarea { min-height: 140px; resize: vertical; }
  .field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
  .field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--primary); outline-offset: 2px; }
  .field .input-validation-error { border-color: var(--danger); }
  /* placeholder فارسی در کادر LTR ایمیل: تا خالی است جهت متن صفحه را دارد */
  .field input[type="email"]:placeholder-shown { direction: inherit; }
  /* کنترل پیوست (.file): با JS ورودی شفاف روی کل کادر (کلیک و فوکوس همان ورودی)، دکمه و نام فایل
     انتخابی دیده می شوند؛ بی JS همان کنترل خام مرورگر */
  .file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
  .file__btn, .file__name { display: none; }
  html.js .file { min-height: 50px; padding: .4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  html.js .file:has(:focus-visible) { border-color: var(--primary); outline: 2px dashed var(--primary); outline-offset: 2px; }
  html.js .file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  html.js .file__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-size: .88rem; font-weight: 700; }
  html.js .file__name { display: block; min-width: 0; overflow: hidden; color: var(--ink-3); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
  html.js .file.is-set .file__name { color: var(--ink); font-weight: 600; }
  .field__error { font-size: var(--fs-small); color: var(--danger); }
  .field__error:empty { display: none; }
  .check {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    color: var(--ink-2);
  }
  .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); }
  .form__note { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
  .validation-summary-valid { display: none; }
  .validation-summary-errors {
    padding: .75rem 1rem;
    border-radius: var(--r-md);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: .92rem;
  }
  .validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
  /* --- مسیر راهنما --------------------------------------------------- */
  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--fs-small);
    color: var(--ink-2);
  }
  .breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--ink-3); }
  .breadcrumb a { color: inherit; text-decoration: none; }
  .breadcrumb a:hover { color: var(--ink); text-decoration: underline var(--accent); }
  .breadcrumb [aria-current] { color: var(--ink); }
  /* --- صفحه بندی ---------------------------------------------------- */
  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-top: var(--s-7);
  }
  .pagination a,
  .pagination span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: .8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
  }
  .pagination a:hover { border-color: var(--ink); color: var(--ink); }
  .pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .pagination .is-disabled { opacity: .45; }
  /* --- هشدارها ------------------------------------------------------- */
  .alerts {
    position: fixed;
    z-index: 70;
    inset-inline: 1rem;
    top: calc(var(--header-space) - .25rem);
    display: grid;
    gap: .5rem;
    width: min(100% - 2rem, 460px);
    margin-inline: auto;
  }
  .is-free .alerts { top: 1rem; }
  .alert {
    --alert: var(--info);
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem 1rem;
    padding-inline-end: .35rem;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--alert);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
  }
  .alert p { flex: 1; font-size: .93rem; padding-block: .45rem; }
  .alert strong { color: var(--alert); }
  .alert--success { --alert: var(--success); }
  .alert--danger, .alert--error { --alert: var(--danger); }
  .alert--warning { --alert: var(--warning); }
  .alert.is-leaving { opacity: 0; transform: translateY(-8px); }
  /* --- متن غنی برگه ها و مطالب + کیت محتوا --------------------------- */
  .prose {
    font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
    line-height: 2.05;
    color: var(--ink);
    overflow-wrap: break-word;
  }
  .prose > * + * { margin-block-start: 1.15em; }
  .prose :where(h2, h3, h4) { margin-block-start: 2em; scroll-margin-top: var(--header-space); }
  .prose :where(h2, h3, h4) + * { margin-block-start: .6em; }
  .prose h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); }
  .prose h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: .55rem; border-radius: 2px; background: var(--accent); }
  .prose h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
  .prose h4 { font-size: 1.05rem; }
  .prose p, .prose li { color: var(--ink); }
  .prose a:not([class]) { text-decoration: underline var(--accent); text-decoration-thickness: 1.5px; }
  .prose :where(ul, ol):not([class]) { padding-inline-start: 1.4rem; }
  .prose li + li { margin-top: .35em; }
  .prose li::marker { color: var(--primary); }
  .prose img { border-radius: var(--r-img); background: var(--photo-bg); }
  .prose figure img { width: 100%; }
  .prose figcaption { margin-top: .6rem; font-size: var(--fs-small); color: var(--ink-2); text-align: center; }
  .prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
  .prose th, .prose td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); text-align: start; }
  .prose th { background: var(--surface-2); font-weight: 700; }
  .prose iframe { width: 100%; border: 0; border-radius: var(--r-img); }
  .prose blockquote:not([class]),
  .kit-quote {
    position: relative;
    padding: 1.25rem 1.5rem;
    padding-inline-start: 1.75rem;
    border-radius: var(--r-card);
    background: var(--surface-2);
    font-size: 1.12em;
    font-weight: 600;
    line-height: 1.9;
  }
  .prose blockquote:not([class])::before,
  .kit-quote::before {
    content: "";
    position: absolute;
    inset-block: 1.1rem;
    inset-inline-start: .8rem;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
  }
  .kit-lead {
    font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.95;
  }
  .kit-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--s-3);
  }
  .kit-figures > div {
    display: grid;
    gap: .15rem;
    padding: 1.25rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    text-align: center;
  }
  .kit-figures b {
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
  }
  .kit-figures span { font-size: .92rem; color: var(--ink-2); }
  .kit-steps {
    position: relative;
    list-style: none;
    padding-inline-start: 3.4rem;
    counter-reset: step;
  }
  .prose .kit-steps { padding-inline-start: 3.4rem; }
  .kit-steps::before {
    content: "";
    position: absolute;
    inset-block: .6rem;
    inset-inline-start: 1.1rem;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--accent) 0 7px, transparent 7px 12px);
  }
  .kit-steps > li { position: relative; counter-increment: step; }
  .kit-steps > li + li { margin-top: 1.75rem; }
  .kit-steps > li::before {
    content: counter(step, persian);
    position: absolute;
    top: .1rem;
    inset-inline-start: -3.4rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--bg);
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
  }
  [lang]:not([lang="fa"]) .kit-steps > li::before { content: counter(step); }
  .kit-steps h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
  .kit-steps p { margin: 0; color: var(--ink-2); }
  /* عکس اختیاری هر مرحله (<li><figure><img></figure><h3>…): موبایل بالای متن ۱۶:۹؛ ≥۶۴em زیگزاگ
     عکس/متن در ستونی پهن تر از متن خواندنی، با شماره ها روی همان خط دوخت */
  .kit-steps figure { margin: 0 0 .9rem; }
  .kit-steps figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  @media (min-width: 64em) {
    .prose .kit-steps:has(figure) { margin-inline: calc(50% - min(50vw - 1rem, 520px)); container-type: inline-size; }
    .kit-steps > li:has(> figure) {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 35cqi;
      padding-inline-end: 52%;
    }
    .kit-steps > li:nth-child(even):has(> figure) { padding-inline: 52% 0; }
    .kit-steps > li > figure { position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 46.5%; margin: 0; }
    .kit-steps > li:nth-child(even) > figure { inset-inline: 0 auto; }
    .kit-steps figure img { aspect-ratio: 4 / 3; }
  }
  .kit-split {
    display: grid;
    gap: var(--s-5);
    align-items: center;
  }
  .kit-split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  @media (min-width: 48em) {
    .kit-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  }
  .kit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--s-3);
  }
  .kit-cards > div {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .kit-cards > div > :first-child, .contact-card--prose > :first-child { margin-top: 0; }
  .kit-cards h3 { font-size: .92rem; }
  .kit-cards p { color: var(--ink-2); }
  .prose a.kit-btn,
  .kit-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: .65rem 1.45rem;
    border-radius: var(--r-pill);
    border: 1px solid color-mix(in srgb, var(--brand), var(--on-fill) 16%);
    background: var(--brand);
    color: var(--on-fill);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--dur-1) var(--ease-out);
  }
  .prose a.kit-btn:hover, .kit-btn:hover { background: var(--brand-strong); color: var(--on-fill); transform: translateY(-2px); }
  /* پرسش و پاسخ با <details> (بی JS) */
  .prose details {
    border: 1px solid var(--line);
    border-radius: var(--r-img);
    background: var(--surface);
    padding-inline: 1.25rem;
  }
  .prose details + details { margin-top: .75rem; }
  .prose summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    font-weight: 700;
    list-style: none;
  }
  .prose summary::after {
    content: "";
    flex: none;
    width: .8rem;
    height: .8rem;
    background:
      linear-gradient(var(--primary), var(--primary)) center / 100% 2px no-repeat,
      linear-gradient(var(--primary), var(--primary)) center / 2px 100% no-repeat;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .prose details[open] summary::after { transform: rotate(45deg); }
  .prose details > :not(summary) { margin: 0 0 1rem; color: var(--ink-2); }
  /* --- سرتیتر بخش ها و پیوند «بیشتر» ------------------------------- */
  .section-head { display: grid; justify-items: start; gap: .6rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
  .section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
  .section-head--row > div { display: grid; justify-items: start; gap: .6rem; }
  .section-head h2 { max-width: 22ch; }
  .link-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: underline var(--accent);
    text-decoration-thickness: 1.5px;
  }
  .link-more:hover { color: var(--primary); }
  .link-more .icon { transition: translate var(--dur-2) var(--ease-out); }
  .link-more:hover .icon { translate: -4px 0; }
  [dir="ltr"] .link-more:hover .icon { translate: 4px 0; }
  .icon.icon--back { transform: scaleX(-1); }
  [dir="rtl"] :is(.icon--arrow, .icon--chevron).icon--back { transform: none; }
  .icon-btn--line { border: 1px solid var(--line); background: var(--surface); }
  .icon-btn:disabled { opacity: .35; cursor: default; }
  /* --- کارت محصول (PLAN ۶.۱۳) ----------------------------------------- */
  .pcard { position: relative; height: 100%; }
  .pcard__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow var(--dur-2) var(--ease-out);
  }
  .pcard__link:hover { color: var(--ink); }
  .pcard__media { position: relative; display: block; aspect-ratio: 8 / 7; overflow: hidden; background: var(--photo-bg); }
  .pcard__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.035; transition: scale .7s var(--ease-out); }
  .pcard__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .4s, scale .7s var(--ease-out); }
  .pcard__empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
  .pcard__empty .icon { width: 3rem; height: 3rem; }
  .pcard__view {
    position: absolute;
    bottom: .75rem;
    inset-inline-start: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .9rem;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--bg);
    font-size: .8rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(140%);
    transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
  }
  .pcard__body { display: grid; justify-items: start; gap: .3rem; padding: .85rem 1rem 1.1rem; }
  .pcard__brand { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
  .pcard__title { font-size: 1rem; line-height: 1.55; }
  .pcard .hangtag { margin-top: .25rem; }
  .pcard__pack { position: absolute; top: .7rem; inset-inline-end: .7rem; }
  .pack-badge b { font-size: 1rem; font-weight: 900; line-height: 1; }
  .pack-badge small { font-size: .6rem; font-weight: 700; }
  .pcard__sizes { margin-top: .3rem; }
  .pcard__link:focus-visible .pcard__view { opacity: 1; transform: none; }
  @media (hover: hover) {
    .pcard__link:hover { box-shadow: var(--shadow-2); }
    .pcard__link:hover .pcard__media img { scale: 1.09; }
    .pcard__link:hover .pcard__view { opacity: 1; transform: none; }
    .pcard__link:hover .pcard__alt { opacity: 1; }
  }
  /* --- ریل افقی محصولات (PLAN ۶.۸) ------------------------------------ */
  .rail__list {
    position: relative;
    display: flex;
    gap: 1rem;
    margin-inline: -1rem;
    padding: .5rem 1rem 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }
  .rail__list::-webkit-scrollbar { display: none; }
  .rail__item { flex: 0 0 72%; scroll-snap-align: start; }
  .rail.is-dragging .rail__list { scroll-snap-type: none; cursor: grabbing; user-select: none; }
  .rail.is-dragging a { pointer-events: none; }
  .rail__foot { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
  /* متر خیاطی: درجه بندی ریز، و نوار پیشرفت به اندازه بخش دیده شده */
  .rail__meter {
    position: relative;
    flex: 1;
    height: 12px;
    border-bottom: 1px solid var(--ink-3);
    background: repeating-linear-gradient(to left, var(--ink-3) 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat;
  }
  .rail__meter span {
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(var(--rail, 1));
    transform-origin: right;
    transition: transform .15s linear;
  }
  [dir="ltr"] .rail__meter span { transform-origin: left; }
  .rail__nav { display: none; gap: .5rem; }
  @media (min-width: 40em) {
    .rail__item { flex-basis: calc((100% - 2rem) / 3); }
  }
  @media (min-width: 64em) {
    .rail__item { flex-basis: calc((100% - 3rem) / 4); }
    .rail__nav { display: flex; }
  }
  /* --- تب ها --------------------------------------------------------- */
  .tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
  .tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .35rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 700;
    font-size: .92rem;
  }
  .tabs__tab:hover { border-color: var(--ink); color: var(--ink); }
  .tabs__tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
  /* --- کارت مطلب ------------------------------------------------------ */
  .post-grid { display: grid; gap: 1.25rem; }
  .post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--photo-bg); }
  .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
  .post-card:hover .post-card__media img { scale: 1.06; }
  .post-card__body { display: grid; justify-items: start; gap: .45rem; padding: 1.1rem 1.25rem 1.4rem; }
  .post-card__cat { color: var(--primary); font-size: .8rem; font-weight: 700; text-decoration: none; }
  .post-card__title { font-size: 1.12rem; line-height: 1.65; }
  .post-card__title a { color: var(--ink); text-decoration: none; }
  .post-card__title a:hover { text-decoration: underline var(--accent); }
  .post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ink-2); font-size: .85rem; }
  @media (min-width: 40em) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 64em) {
    .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  /* وبلاگ خانه بر پایه شمار: ۱ = افقی پهن، ۲ = دو نیمه، ۳ = ویژه + دو کارت افقی کنارش */
  .post-grid--home[data-posts="1"] { grid-template-columns: none; }
  .post-grid--home:is([data-posts="1"], [data-posts="3"]) > :first-child .post-card__title { font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem); }
  @media (min-width: 40em) {
    .post-grid--home[data-posts="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid--home[data-posts="3"] > :first-child { grid-column: 1 / -1; }
    .post-grid--home[data-posts="1"] .post-card { flex-direction: row; }
    .post-grid--home[data-posts="1"] .post-card__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 17rem; }
    .post-grid--home[data-posts="1"] .post-card__body { align-content: center; padding: 2rem; }
  }
  @media (min-width: 64em) {
    .post-grid--home[data-posts="3"] { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .post-grid--home[data-posts="3"] > :first-child { grid-column: auto; grid-row: span 2; }
    .post-grid--home[data-posts="3"] > :first-child .post-card__media { flex: 1; aspect-ratio: auto; min-height: 16rem; }
    .post-grid--home[data-posts="3"] > :not(:first-child) .post-card { flex-direction: row; }
    .post-grid--home[data-posts="3"] > :not(:first-child) .post-card__media { flex: 0 0 40%; aspect-ratio: auto; }
    .post-grid--home[data-posts="3"] > :not(:first-child) .post-card__body { align-content: center; }
  }
}
/* ------------------------------------------------------------------ */
@layer sections {
  /* --- پرش به محتوا -------------------------------------------------- */
  .skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    inset-inline-start: .75rem;
    padding: .6rem 1.1rem;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--dur-1) var(--ease-out);
  }
  .skip-link:focus { transform: none; color: var(--bg); }
  /* --- هدر قرصی شناور (PLAN ۶.۲) -------------------------------------
     بالای صفحه بی زمینه؛ پس از ۵۰px (site.js: .is-scrolled) قرص شیشه ای با لبه مویی و سایه نرم. فقط opacity
     لایه زمینه (::before) تغییر می کند؛ اندازه و جای قرص ثابت است (بی جابه جایی چیدمان). */
  .site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    inset-inline: 0;
    padding-top: var(--header-top);
    padding-inline: 1rem;
    pointer-events: none;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .site-header > * { pointer-events: auto; }
  .site-header.is-hidden { transform: translateY(-130%); }
  .site-header__bar {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: var(--s-2);
    max-width: var(--container);
    height: var(--header-h);
    margin-inline: auto;
    padding-inline: .5rem .4rem;
    border-radius: var(--r-pill);
  }
  /* شیشه مات روی شبه عنصر، تا backdrop-filter برای پرده منوی موبایل (fixed) قاب نسازد */
  .site-header__bar::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-radius: inherit;
    background: var(--glass);
    box-shadow: var(--shadow-1);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    opacity: 0;
    transition: opacity var(--dur-2) var(--ease-out);
  }
  .site-header.is-scrolled .site-header__bar::before,
  .site-header:has(.mmenu[open]) .site-header__bar::before,
  html:not(.js) .site-header__bar::before { opacity: 1; }
  .site-header__brand {
    position: relative;
    z-index: 2;
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    padding: .2rem;
    border-radius: var(--r-pill);
    color: var(--ink);
    text-decoration: none;
  }
  .site-header__brand:hover { color: var(--ink); }
  .site-header__brand .logo__mark { transition: transform var(--dur-3) var(--ease-out); }
  .site-header__brand:hover .logo__mark { transform: rotate(-12deg); }
  .site-header .logo__tagline { display: none; }
  /* نام بلند در عرض کم روی کنش ها نمی افتد: برند کوچک می شود و نام با ... کوتاه می شود */
  .site-header__brand .logo { max-width: 100%; }
  .site-header__brand .logo__text { min-width: 0; }
  .site-header__brand .logo__name { overflow: hidden; text-overflow: ellipsis; }
  .site-header__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: .15rem;
    margin-inline-start: auto;
  }
  .site-header__partner { display: none; }
  /* --- منوی دسکتاپ --------------------------------------------------- */
  .nav { display: none; }
  .nav__list { display: flex; align-items: center; gap: .1rem; }
  .nav__item { position: relative; }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .8rem;
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
  }
  .nav__link:hover,
  .nav__link[aria-current],
  .nav__link.is-active,
  .has-sub:is(:hover, :focus-within) > .nav__link { color: var(--ink); }
  /* نشان صفحه جاری: نقطه رنگ خط زیر پیوند (زنانه صورتی، مردانه زرد، بقیه سفالی) */
  .nav__link::after {
    content: "";
    position: absolute;
    bottom: .05rem;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-text);
    opacity: 0;
    transform: scale(0);
    transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out);
  }
  .nav__item[data-line] > .nav__link::after { background: var(--line-fill); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-fill), var(--on-fill) 30%); }
  .nav__link[aria-current]::after,
  .nav__link.is-active::after { opacity: 1; transform: none; }
  .nav__caret { width: .9rem; height: .9rem; transition: transform var(--dur-2) var(--ease-out); }
  .nav__link .nav__caret { transform: rotate(90deg); }
  .has-sub:hover .nav__caret, .has-sub:focus-within .nav__caret { transform: rotate(-90deg); }
  /* زیرمنوی ساده (منوی برگه top-menu بی خط) و منوی بزرگ زنانه/مردانه: پنهان تا hover/focus-within */
  .nav__sub,
  .mega {
    position: absolute;
    top: calc(100% + 16px);
    inset-inline-start: -.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-img);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out), visibility 0s var(--dur-2);
  }
  .nav__sub { min-width: 230px; padding: .5rem; }
  /* پل نامرئی تا فاصله بین پیوند و زیرمنو hover را قطع نکند */
  .nav__sub::before, .mega::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 18px; }
  .has-sub:hover > :is(.nav__sub, .mega),
  .has-sub:focus-within > :is(.nav__sub, .mega) {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav__sub a {
    display: block;
    padding: .5rem .8rem;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-size: .93rem;
    text-decoration: none;
  }
  .nav__sub a:hover, .nav__sub a[aria-current] { background: var(--surface-2); color: var(--ink); }
  /* منوی بزرگ: لبه بالا میله رنگ خط (ریل آویز) و قلاب چوب لباسی که پنل از آن آویزان است؛ ستون نوع ها + کارت عکس «همه» */
  .mega {
    width: min(36rem, calc(100vw - 2rem));
    padding: .75rem;
    border-top: 4px solid var(--line-fill);
    border-radius: 6px 6px var(--r-card) var(--r-card);
  }
  /* قلاب چوب لباسی (ماسک SVG به رنگ --ink-3) که پنل از آن آویزان است */
  .mega__hook {
    position: absolute;
    bottom: calc(100% + 2px);
    inset-inline-start: 2.2rem;
    width: 14px;
    height: 18px;
    background: var(--ink-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M7 18v-7.2a3.6 3.6 0 1 0-3.6-3.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M7 18v-7.2a3.6 3.6 0 1 0-3.6-3.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transform-origin: 50% 100%;
  }
  .mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 14.5rem; gap: .75rem; }
  .mega__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .15rem; }
  .mega__type {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .35rem .5rem;
    border-radius: var(--r-md);
    color: var(--ink);
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur-1);
  }
  .mega__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--line-tint);
    color: var(--ink);
    transition: background-color var(--dur-1), transform var(--dur-2) var(--ease-out);
  }
  .mega__type:hover, .mega__type[aria-current] { background: var(--line-tint); color: var(--ink); }
  .mega__type:hover .mega__icon, .mega__type[aria-current] .mega__icon { background: var(--line-fill); color: var(--on-fill); transform: rotate(-8deg); }
  .mega__cta {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 15rem;
    overflow: hidden;
    border-radius: var(--r-img);
    background: var(--photo-bg);
    color: var(--on-fill);
    text-decoration: none;
  }
  .mega__photo { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
  .mega__cta:hover .mega__photo { transform: scale(1.05); }
  .mega__cta-text {
    position: relative;
    display: grid;
    gap: .1rem;
    margin: .6rem;
    padding-block: .55rem .6rem;
    padding-inline: .85rem 2.5rem;
    border-radius: var(--r-md);
    background: var(--line-fill);
  }
  .mega__cta-title { font-weight: 800; font-size: .95rem; }
  .mega__cta-sub { font-size: .75rem; font-weight: 500; line-height: 1.6; }
  .mega__arrow {
    position: absolute;
    top: calc(50% - .625em);
    inset-inline-end: .8rem;
    color: var(--on-fill);
    transition: translate var(--dur-2) var(--ease-out);
  }
  .mega__cta:hover .mega__arrow { translate: -4px 0; }
  [dir="ltr"] .mega__cta:hover .mega__arrow { translate: 4px 0; }
  /* --- منوی موبایل (details) ----------------------------------------- */
  .mmenu__toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    list-style: none;
  }
  .burger { position: relative; display: block; width: 18px; height: 12px; }
  .burger i {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
  }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 5px; }
  .burger i:nth-child(3) { top: 10px; }
  .mmenu[open]:not(.is-closing) .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .mmenu[open]:not(.is-closing) .burger i:nth-child(2) { opacity: 0; }
  .mmenu[open]:not(.is-closing) .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .mmenu__panel {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: calc(var(--header-space) + .25rem) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
  }
  .mmenu__nav { display: grid; gap: var(--s-4); }
  /* دو بخش رنگی زنانه / مردانه: ته رنگ خط، نقطه پر، چیپ نوع ها */
  .mmenu__lines { display: grid; gap: .75rem; }
  .mline { padding: .9rem 1rem 1rem; border-radius: var(--r-card); background: var(--line-tint); }
  .mline__head {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
  }
  .mline__dot {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    border-radius: 50%;
    background: var(--line-fill);
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px color-mix(in srgb, var(--line-fill), var(--on-fill) 25%);
  }
  .mline__all { display: inline-flex; align-items: center; gap: .25rem; margin-inline-start: auto; color: var(--line-text); font-size: .88rem; font-weight: 700; }
  .mline__types { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
  .mline__types a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 42px;
    padding: .3rem .85rem .3rem .7rem;
    border: 1px solid color-mix(in srgb, var(--line-fill) 50%, var(--line));
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mline__types a[aria-current] { border-color: var(--line-fill); background: var(--line-fill); color: var(--on-fill); }
  .mmenu__list { display: grid; }
  .mmenu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .6rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(1.15rem, 1rem + 1.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    list-style: none;
  }
  .mmenu__link[aria-current] { color: var(--primary); }
  .mmenu__caret { width: 1.2rem; height: 1.2rem; transform: rotate(90deg); transition: transform var(--dur-2) var(--ease-out); }
  .mmenu__group[open] .mmenu__caret { transform: rotate(-90deg); }
  .mmenu__sub { display: grid; padding-block: .4rem .8rem; }
  .mmenu__sub a {
    display: block;
    padding-block: .45rem;
    color: var(--ink-2);
    font-size: 1.05rem;
    text-decoration: none;
  }
  .mmenu__sub a[aria-current] { color: var(--primary); }
  .mmenu__foot { display: grid; gap: var(--s-3); margin-top: auto; }
  .mmenu__contacts { display: grid; gap: .4rem; }
  .mmenu__contact {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem .3rem .3rem .9rem;
    padding-inline: .9rem .3rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
  }
  .mmenu__contact-title { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; }
  .mmenu__contact[data-line] .mmenu__contact-title::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--line-fill); }
  .mmenu__phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-inline-start: auto;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }
  /* --- جستجو --------------------------------------------------------- */
  .search-panel {
    max-width: 720px;
    margin: .6rem auto 0;
  }
  .search-panel__form {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem;
    padding-inline-start: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-2);
  }
  .search-panel__icon { color: var(--ink-3); }
  .search-panel input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
  }
  .search-panel input:focus-visible { outline: none; }
  .search-panel__form:focus-within { border-color: var(--primary); }
  @media (max-width: 23.5em) {
    .site-header .logo__mark { width: 2.4rem; height: 2.4rem; }
    .site-header .logo__name { font-size: .95rem; }
  }
  @media (min-width: 40em) {
    .site-header__partner { display: inline-flex; }
  }
  @media (min-width: 64em) {
    .langs__link.is-active { display: inline-flex; }
    .langs__link { padding-inline: var(--s-3); }
    .site-header__actions > .langs { display: block; }
    .site-header__bar { padding-inline: .6rem .45rem; }
    .nav { display: block; margin-inline: auto; }
    .site-header__actions { margin-inline-start: 0; }
    .mmenu { display: none; }
  }
  @media (min-width: 64em) and (max-width: 79.99em) {
    .nav__link { padding-inline: .5rem; font-size: .9rem; }
    .site-header__partner { padding-inline: .8rem; }
  }
  @media (min-width: 80em) {
    .site-header .logo__tagline { display: block; }
  }
  /* --- سرصفحه صفحه های داخلی ----------------------------------------- */
  .page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  }
  /* زمینه: ریب جوراب که پایینش محو می شود */
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--rib-ink) 0 2px, transparent 2px 7px);
    -webkit-mask-image: linear-gradient(to bottom, var(--ink) 0%, transparent 85%);
    mask-image: linear-gradient(to bottom, var(--ink) 0%, transparent 85%);
    pointer-events: none;
  }
  .page-hero[data-line]::before { background-color: var(--line-tint); }
  .page-hero__inner { position: relative; display: grid; }
  .page-hero__text {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: .85rem;
  }
  .page-hero .breadcrumb { margin-bottom: .5rem; }
  .page-hero__title {
    max-width: 24ch;
    margin: 0;
    font-size: var(--fs-h1);
    line-height: 1.3;
  }
  .page-hero__lead { max-width: 62ch; color: var(--ink-2); font-size: var(--fs-lead); }
  .page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
    color: var(--ink-2);
    font-size: .9rem;
  }
  .page-hero__meta li { display: inline-flex; align-items: center; gap: .4rem; }
  .page-hero__meta .icon { color: var(--primary); }
  /* نخ کوتاه زیر تیتر به رنگ خط، با سر گرد مثل گره */
  .page-hero__thread {
    position: relative;
    display: block;
    width: 4.5rem;
    height: 4px;
    margin-top: .2rem;
    border-radius: 2px;
    background: var(--line-fill);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-fill), var(--on-fill) 18%);
  }
  /* جمع وجور (فهرست محصولات، PLAN R4): بی بافت؛ نخستین ردیف کارت ها در دید اول ۱۴۴۰×۹۰۰ */
  .page-hero--compact { padding-block: .5rem .75rem; }
  .page-hero--compact::before { display: none; }
  .page-hero--compact .page-hero__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
  .page-hero--compact .page-hero__lead { max-width: 100ch; font-size: 1rem; }
  .page-hero--compact .page-hero__thread { display: none; }
  .section--shop { padding-block-start: 1rem; }
  .section--shop .shop { gap: .75rem; }
  /* با عکس (PLAN ۱۱.۴): دو نیمه، زمینه روشن بی بافت؛ موبایل عکس ۱۶:۹ زیر متن تا ۲۴۰px */
  .page-hero--split::before { display: none; }
  .page-hero--split .page-hero__inner { gap: var(--s-5); }
  .page-hero__media {
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--photo-bg);
  }
  .page-hero__media img { width: 100%; height: min(240px, 56.25vw); }
  @media (min-width: 48em) {
    .page-hero--split .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
    .page-hero__media { border-radius: calc(var(--r-card) * 2); }
    .page-hero__media img { height: auto; aspect-ratio: 3 / 2; }
  }
  /* --- فوتر (PLAN ۶.۳ بند ۱۳) --------------------------------------
     قهوه ای جوهری در هر دو تم؛ لبه بالا موج مچ جوراب (.cuff-edge)؛ کارت های تماس دو بخش از ریل آویزان اند. */
  .site-footer {
    --rib-ink: var(--rib-night);
    --hole: var(--night);
    --hook: var(--on-night-2);
    --rail: var(--night-line);
    position: relative;
    margin-top: clamp(1rem, 3vw, 2rem);
    padding-top: calc(var(--cuff-r, 9px) + clamp(2.5rem, 6vw, 4rem));
    background: var(--night);
    color: var(--on-night-2);
  }
  .site-footer :where(h2, h3, h4) { color: var(--on-night); }
  .site-footer a { color: var(--on-night-2); text-decoration: none; }
  .site-footer a:hover { color: var(--on-night); text-decoration: underline var(--brand); }
  .site-footer :focus-visible { outline-color: var(--brand); }
  /* خبرنامه: نوار ریب با نشان پاکت در دایره زرد */
  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4) var(--s-6);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid var(--night-line);
    border-radius: var(--r-card);
    background-color: var(--night-2);
  }
  .footer-top__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-fill);
    font-size: 1.3rem;
  }
  .footer-top h2 { font-size: var(--fs-h3); margin-bottom: .35rem; }
  .newsletter__label { display: block; margin-bottom: .5rem; color: var(--on-night); font-weight: 600; font-size: .92rem; }
  .newsletter__row {
    display: flex;
    gap: .35rem;
    padding: .35rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r-pill);
    background: var(--night);
  }
  .newsletter__row:focus-within { border-color: var(--brand); }
  .newsletter input {
    flex: 1;
    min-width: 0;
    padding-inline: 1rem;
    border: 0;
    background: transparent;
    color: var(--on-night);
  }
  .newsletter input::placeholder { color: var(--on-night-2); opacity: .7; }
  .newsletter input:focus-visible { outline: none; }
  .newsletter__msg { min-height: 1.6em; margin-top: .5rem; font-size: .9rem; color: var(--on-night); }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-5);
    padding-block: var(--s-7) var(--s-6);
  }
  .footer-about, .footer-lines, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-col h3 { margin-bottom: 1rem; font-size: 1rem; }
  .footer-col h3::after { content: ""; display: block; width: 1.6rem; height: 3px; margin-top: .45rem; border-radius: 2px; background: var(--brand); }
  .footer-about p { max-width: 40ch; margin-top: 1rem; font-size: .93rem; }
  .footer-brand { display: block; width: fit-content; }
  .footer-brand .logo { color: var(--on-night); }
  .footer-brand .logo__mark { width: 3.25rem; height: 3.25rem; }
  .footer-brand .logo__name { font-size: 1.2rem; }
  .footer-brand .logo__tagline { color: var(--on-night-2); }
  .site-footer .footer-brand:hover { text-decoration: none; }
  .footer-links { display: grid; gap: .65rem; font-size: .93rem; }
  .footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
  .footer-links a::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--night-line); transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
  .site-footer .footer-links a:hover { text-decoration: none; }
  .footer-links a:hover::before { background: var(--brand); transform: scale(1.3); }
  /* کارت های تماس دو بخش: کارت آویز پر خط (صورتی / زرد) روی ریل */
  .footer-lines__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .9rem; }
  .line-card__title { margin-bottom: .55rem; color: var(--on-fill); font-size: 1rem; text-align: center; }
  .site-footer .line-card__title { color: var(--on-fill); }
  .line-card__list { display: grid; gap: .15rem; }
  .site-footer .line-card a {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.5rem;
    padding-inline: .5rem;
    border-radius: var(--r-sm);
    color: var(--on-fill);
    font-size: .88rem;
    font-weight: 700;
  }
  .site-footer .line-card a:hover { background: color-mix(in srgb, var(--surface) 35%, transparent); color: var(--on-fill); text-decoration: none; }
  .line-card .icon { flex: none; width: 1.1rem; height: 1.1rem; }
  .line-card .ltr { letter-spacing: -.01em; }
  @media (max-width: 26em) {
    .footer-lines__list { gap: .6rem; }
    .footer-lines .hook-card { padding-inline: .55rem; }
    .site-footer .line-card a { gap: .35rem; padding-inline: .3rem; font-size: .8rem; }
  }
  /* تماس عمومی: آیکن در نشان گرد */
  .contact-list { display: grid; gap: .85rem; font-size: .93rem; }
  .contact-list li { display: flex; align-items: center; gap: .75rem; }
  .contact-list .icon {
    box-sizing: content-box;
    padding: .5rem;
    border: 1px solid var(--night-line);
    border-radius: 50%;
    background: var(--night-2);
    color: var(--brand);
  }
  .site-footer .contact-list__more { display: block; width: fit-content; margin-top: .2rem; font-size: .85rem; color: var(--brand); }
  .contact-list__row { display: block; }
  .contact-list__row b { color: var(--on-night); font-weight: 600; }
  .footer-trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
  .footer-trust img { border-radius: var(--r-sm); background: var(--surface); }
  .socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
  .socials a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: .6rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r-pill);
    font-size: .85rem;
    transition: transform var(--dur-1) var(--ease-out);
  }
  .site-footer .socials a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-fill); text-decoration: none; transform: translateY(-2px); }
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--night-line);
    font-size: var(--fs-small);
  }
  .footer-bottom > p { flex: 1 1 16rem; }
  .site-footer .footer-bottom__partner { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand); font-weight: 700; }
  .footer-bottom__top {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .95rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r-pill);
    background: none;
    color: var(--on-night-2);
    transition: border-color var(--dur-1), color var(--dur-1);
  }
  .footer-bottom__top:hover { border-color: var(--brand); color: var(--on-night); }
  .footer-credit {
    margin-block: 0;
    padding-block: 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    color: var(--on-night-2);
    font-size: var(--fs-small);
    text-align: center;
  }
  @media (min-width: 64em) {
    .footer-top { grid-template-columns: auto 1fr minmax(0, 440px); align-items: center; }
    .footer-grid { grid-template-columns: 1.25fr .8fr 1.55fr 1.2fr; gap: var(--s-6); }
    .footer-about, .footer-lines, .footer-grid > :last-child { grid-column: auto; }
  }
}
/* ------------------------------------------------------------------ */
@layer pages {
  /* =================== صفحه اصلی (PLAN ۴.۳ و ۶) =================== */
  .is-home .site-main { position: relative; }
  .lead { font-size: var(--fs-lead); color: var(--ink-2); }
  /* پارالاکس: --p از موتور اسکرول؛ بی JS یا reduced-motion = ۰.۵ یعنی بی جابه جایی.
     زیر ۷۶۸px نیمه. */
  [data-scroll] { --k: .5; --par: calc((.5 - var(--p, .5)) * var(--shift, 0px) * var(--k)); }
  @media (min-width: 48em) {
    [data-scroll] { --k: 1; }
  }
  /* --- کارت عکس دار آویز (سرصفحه برند؛ پیش از فاز ۴ در قهرمان خانه) ------------------------ */
  .hero-card {
    position: relative;
    display: grid;
    gap: .5rem;
    padding: .35rem .35rem .5rem;
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    color: var(--ink);
    text-decoration: none;
    rotate: var(--r, 0deg);
    transition: rotate var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out);
  }
  .hero-card:hover { color: var(--ink); }
  .hero-card__media { display: block; aspect-ratio: 8 / 7; overflow: hidden; border-radius: 14px; background: var(--photo-bg); }
  .hero-card__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.035; }
  .hero-card__label { display: flex; align-items: center; gap: .45rem; min-width: 0; padding-inline: .45rem; font-size: .8rem; font-weight: 700; }
  .hero-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-card .hangtag { position: absolute; top: .8rem; inset-inline-end: .7rem; margin: 0; font-size: .72rem; min-height: 1.5rem; }
  @media (min-width: 64em) {
    .hero-card { padding: .4rem .4rem .55rem; border-radius: 16px; }
    .hero-card__media { border-radius: 11px; }
    .hero-card__label { font-size: .82rem; padding-inline: .3rem; }
    .hero-card:hover { rotate: 0deg; translate: 0 -10px; }
  }
  /* بالای خانه: هدر شناور شفاف است؛ فاصله زیر آن را این قاب می دهد (استوری ها یا، نبودشان، اسلایدر) */
  .home-top { padding-top: var(--header-space); }
  /* بخش های پایین خانه تا نزدیک شدن به دید رندر نمی شوند: نخستین style/layout صفحه بلند خانه (۸۰۰ms روی
     CPU کند) کوتاه می شود. اندازه جای خالی تقریبی است و auto اندازه واقعی را پس از نخستین رندر نگه می دارد.
     عکس صفحه کامل این بخش ها را خالی می گیرد مگر content-visibility: visible تزریق شود (tools/shots.js). */
  :is(.shelf, .arrivals, .brand-wall, .wholesale, .store-block, .stats, .blog-teaser, .owners) { content-visibility: auto; contain-intrinsic-block-size: auto 50rem; }
  /* --- ۱. استوری ها (پورت DahuaNet، PLAN ۸.۳) ----------------------------
     دایره ها با حلقه زرد ← صورتی که با hover آرام می چرخد؛ دیده شده ها خاکستری. */
  .stories { padding-block: .25rem .9rem; }
  .stories__inner { position: relative; }
  .stories__rail {
    display: flex;
    gap: clamp(.6rem, 1.6vw, 1.25rem);
    margin: 0;
    padding: .4rem .25rem .25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .stories__rail::-webkit-scrollbar { display: none; }
  .stories__rail > li { flex: none; scroll-snap-align: start; }
  .story {
    --story-size: clamp(64px, 6.6vw, 84px);
    display: grid;
    justify-items: center;
    gap: .45rem;
    width: calc(var(--story-size) + 16px);
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .story__ring {
    --ks-angle: 0deg;
    display: grid;
    place-items: center;
    width: var(--story-size);
    height: var(--story-size);
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from var(--ks-angle), var(--brand), var(--w), var(--s), var(--brand));
    transition: transform var(--dur-2) var(--ease-out);
  }
  .story__ring img {
    width: 100%;
    height: 100%;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--photo-bg);
    object-fit: cover;
  }
  .story__label {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .story:hover .story__ring, .story:focus-visible .story__ring { transform: translateY(-3px) scale(1.04); }
  .story:focus-visible { outline: none; }
  .story:focus-visible .story__ring { outline: 2px solid var(--ink); outline-offset: 3px; }
  .story.is-seen .story__ring { background: color-mix(in srgb, var(--ink) 22%, transparent); }
  .story.is-seen .story__label { color: var(--ink-2); }
  .stories__nav {
    position: absolute;
    top: calc(.4rem + clamp(64px, 6.6vw, 84px) / 2);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
    color: var(--ink);
    transform: translateY(-50%);
    transition: opacity var(--dur-2);
  }
  .stories__nav:disabled { opacity: 0; pointer-events: none; }
  .stories__nav .icon { width: 1.1rem; height: 1.1rem; }
  .stories__nav--prev { inset-inline-start: -.5rem; }
  .stories__nav--next { inset-inline-end: -.5rem; }
  @media (hover: none) and (pointer: coarse) { .stories__nav { display: none; } }
  /* نمایشگر استوری: پرده جوهری، کارت ۹:۱۶ */
  .story-viewer {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--on-night);
    overflow: hidden;
  }
  .story-viewer::backdrop { background: color-mix(in srgb, var(--night) 90%, transparent); backdrop-filter: blur(14px); }
  .story-viewer[open] { display: grid; place-items: center; }
  .story-viewer__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  }
  .story-viewer__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 420px, calc((100dvh - 24px) * 9 / 16));
    aspect-ratio: 9 / 16;
    max-height: 100%;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--night);
    box-shadow: var(--shadow-2);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .story-viewer__bars { position: absolute; inset-inline: 12px; top: 10px; z-index: 3; display: flex; gap: 4px; }
  .story-viewer__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--on-night) 32%, transparent); }
  .story-viewer__bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform: scaleX(0); transform-origin: right center; }
  [dir="ltr"] .story-viewer__bar > i { transform-origin: left center; }
  .story-viewer__bar.is-done > i { transform: scaleX(1); }
  .story-viewer__head {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 12px 28px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--night) 70%, transparent), transparent);
  }
  .story-viewer__avatar { width: 36px; height: 36px; border: 2px solid var(--brand); border-radius: 50%; object-fit: cover; }
  .story-viewer__who { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
  .story-viewer__who strong { overflow: hidden; color: var(--on-night); font-size: .9rem; white-space: nowrap; text-overflow: ellipsis; }
  .story-viewer__who span { color: var(--on-night-2); font-size: .75rem; }
  .story-viewer__btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--on-night);
  }
  .story-viewer__btn:hover { background: color-mix(in srgb, var(--on-night) 16%, transparent); }
  .story-viewer :focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  .story-viewer__pause { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
  .story-viewer.is-paused .story-viewer__pause { width: 0; height: 0; border-inline: 0; border-block: 7px solid transparent; border-left: 12px solid currentColor; }
  .story-viewer__media { position: relative; flex: 1; overflow: hidden; }
  .story-viewer__backdrop {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    max-width: none;
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(28px) saturate(1.2) brightness(.65);
  }
  .story-viewer__img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
  .story-viewer.is-loading .story-viewer__img { opacity: 0; }
  .story-viewer__spinner {
    position: absolute;
    inset: 0;
    width: 38px;
    height: 38px;
    margin: auto;
    border: 3px solid color-mix(in srgb, var(--on-night) 25%, transparent);
    border-top-color: var(--brand);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s;
  }
  .story-viewer.is-loading .story-viewer__spinner { opacity: 1; animation: spin .8s linear infinite; }
  .story-viewer__foot {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 48px 16px 18px;
    background: linear-gradient(to top, color-mix(in srgb, var(--night) 82%, transparent), transparent);
    pointer-events: none;
  }
  .story-viewer__foot:not(:has(:not([hidden]))) { display: none; }
  .story-viewer__caption {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--on-night);
    font-size: .92rem;
    line-height: 1.9;
    text-align: center;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
  .story-viewer__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--on-fill);
    font-size: .92rem;
    font-weight: 800;
    pointer-events: auto;
    transition: transform var(--dur-1) var(--ease-out);
  }
  .story-viewer__cta:hover { color: var(--on-fill); transform: translateY(-2px); }
  .story-viewer__step {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--on-night) 14%, transparent);
    color: var(--on-night);
  }
  .story-viewer__step:hover { background: color-mix(in srgb, var(--on-night) 26%, transparent); }
  .story-viewer__step:disabled { opacity: .25; cursor: default; }
  @media (max-width: 40em) {
    .story-viewer__stage { padding: 0; }
    .story-viewer__step { display: none; }
    .story-viewer__card { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
    .story-viewer__bars { top: max(10px, env(safe-area-inset-top, 0px)); }
    .story-viewer__head { padding-top: max(24px, calc(env(safe-area-inset-top, 0px) + 14px)); }
  }
  /* --- ۲. اسلایدر «تازه ها» (PLAN ۶.۳ بند ۲) ------------------------------
     قاب گرد ته رنگ خط با ریب جوراب؛ هر اسلاید: عکس در «دایره نشان» (حلقه پر خط + دورگیر جوهری) و متن زیر برچسب
     دوخته. بی JS: ردیف scroll-snap. با JS (html.js پیش از رنگ آمیزی): همه اسلایدها روی هم در یک خانه گرید
     (بلندی = بلندترین، بی جابه جایی) و فقط فعال دیده می شود؛ گذار دایره ای در لایه motion. */
  .slider { position: relative; padding-bottom: .5rem; }
  .slider__kicker {
    position: absolute;
    z-index: 3;
    top: clamp(1rem, 2.4vw, 1.75rem);
    inset-inline: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .1rem .55rem;
    padding-inline: clamp(.5rem, 3vw, 2rem);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.7;
    pointer-events: none;
  }
  .slider__tag { color: var(--ink-2); font-weight: 500; }
  .slider__track {
    display: flex;
    margin-inline: clamp(.5rem, 1.5vw, 1.25rem);
    overflow-x: auto;
    border-radius: clamp(24px, 3vw, 40px);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  html.js .slider__track { display: grid; overflow: hidden; touch-action: pan-y; }
  .slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: repeating-linear-gradient(90deg, var(--rib-ink) 0 2px, transparent 2px 7px), var(--line-tint);
  }
  html.js .slide { grid-area: 1 / 1; visibility: hidden; }
  html.js .slide.is-active, html.js .slide.is-leaving { visibility: visible; }
  html.js .slide.is-active { z-index: 1; }
  /* عکس اسلایدهای دیگر تا site.js آنها را «آماده» نکند رندر نمی شود، پس lazy آن ها در بار نخست نمی آید */
  html.js .slide:not(.is-active, .is-leaving, .is-primed) .slide__img { display: none; }
  .slide__inner {
    display: grid;
    gap: .5rem;
    padding-block: calc(clamp(1rem, 2.4vw, 1.75rem) + 3.4rem) clamp(1.75rem, 4vw, 3rem);
  }
  .slide__visual { position: relative; width: min(68vw, 330px); aspect-ratio: 1; margin-inline: auto; padding: clamp(.8rem, 1.6vw, 1.2rem); }
  .slide__visual::before {
    content: "";
    position: absolute;
    inset: -2%;
    border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
    border-radius: 50%;
  }
  .slide__disc {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: var(--photo-bg);
    box-shadow: 0 0 0 clamp(.5rem, 1.1vw, .85rem) var(--line-fill), 0 0 0 calc(clamp(.5rem, 1.1vw, .85rem) + 3px) var(--logo-ink);
  }
  .slide__disc picture, .slide__img { display: block; width: 100%; height: 100%; }
  .slide__img { object-fit: cover; }
  .slide__no {
    position: absolute;
    z-index: 1;
    bottom: 3%;
    inset-inline-end: 3%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3rem, 5vw, 4rem);
    aspect-ratio: 1;
    border: 1.5px dashed var(--ink-2);
    border-radius: 50%;
    background: var(--surface);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    rotate: -8deg;
  }
  .slide__no small { color: var(--ink-2); font-size: .62em; font-weight: 700; }
  .slide__text { display: grid; justify-items: start; align-content: center; gap: .9rem; }
  .slide__label { --label-bg: var(--line-fill); transform-origin: 50% -.6rem; rotate: -3deg; }
  .slide__title { max-width: 15ch; font-size: var(--fs-h1); line-height: 1.3; }
  .slide__lead { max-width: 42ch; color: var(--ink-2); font-size: var(--fs-lead); }
  .slide .actions { margin-top: .35rem; }
  .slide .btn--primary { --btn-bg: var(--line-fill); --btn-bd: color-mix(in srgb, var(--line-fill), var(--on-fill) 16%); }
  .slide .btn--primary:hover { --btn-bg: color-mix(in srgb, var(--line-fill), var(--on-fill) 8%); }
  @media (min-width: 48em) {
    .slide__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem; }
    .slide__text { grid-area: 1 / 1; }
    .slide__visual { grid-area: 1 / 2; width: min(38vw, 470px); }
  }
  @media (min-width: 64em) { .slide__visual { width: min(34vw, 470px); } }
  .slider__nav { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .75rem; }
  html:not(.js) .slider__nav { display: none; }
  .slider__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
  }
  .slider__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 3; }
  [dir="rtl"] .slider__ring { scale: 1 -1; }
  .slider__ring circle { stroke: var(--line); }
  .slider__ring .slider__ring-fill { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
  .slider__pp { width: 10px; height: 12px; border-inline: 3.5px solid currentColor; }
  .slider.is-stopped .slider__pp { width: 0; height: 0; margin-inline-start: 3px; border-inline: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
  .slider__dots { display: flex; align-items: center; gap: .15rem; }
  .slider__dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; }
  .slider__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--ink) 25%, transparent);
    transition: width var(--dur-2) var(--ease-out);
  }
  .slider__dot[aria-current]::before { width: 24px; background: var(--ink); }
  .slider__toggle:focus-visible, .slider__dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  /* --- ۳. نوار کش کمر: جوهری با متن زرد و بافت کش باف ------------------- */
  .marquee {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 56px;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, var(--rib-night) 0 2px, transparent 2px 6px), var(--band);
    color: var(--brand);
  }
  .marquee::before,
  .marquee::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: repeating-linear-gradient(to left, color-mix(in srgb, var(--brand) 55%, transparent) 0 7px, transparent 7px 12px);
  }
  .marquee::before { top: 6px; }
  .marquee::after { bottom: 6px; }
  .marquee__track { display: flex; width: max-content; }
  .marquee__group { display: flex; }
  .marquee li {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding-inline-end: 2.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    white-space: nowrap;
  }
  .marquee li::after { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
  /* --- ۴. دو در: زنانه | مردانه (PLAN ۶.۳ بند ۴) -------------------------
     دو پنل پر خط با حرف لاتین بزرگ کم رنگ پشت (مثل لوگوهای mens / womens)؛ در دسکتاپ محتوای هر پنل به لبه
     بیرونی چسبیده تا درز وسط برای بسته محصول آزاد بماند. کل پنل پیوند CTA است (::after)؛ چیپ ها رویش. */
  /* overflow-x: clip: پنل ها پیش از آشکار شدن ۸٪ به پهلو جابه جا اند و صفحه موبایل را افقی اسکرول پذیر می کردند */
  .doors { padding-block: var(--section-y) calc(var(--section-y) * .5); overflow-x: clip; }
  .doors__inner { position: relative; display: grid; gap: 1rem; }
  .door {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 1.1rem;
    min-height: clamp(19rem, 32vw, 26rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    overflow: hidden;
    border-radius: clamp(24px, 3vw, 36px);
    background: repeating-linear-gradient(90deg, var(--rib-ink) 0 2px, transparent 2px 7px), var(--line-fill);
    color: var(--on-fill);
    transition: scale .6s var(--ease-out);
  }
  .door::before {
    content: var(--door-letter);
    position: absolute;
    z-index: -1;
    bottom: -.22em;
    inset-inline-end: .04em;
    color: color-mix(in srgb, var(--on-fill) 8%, transparent);
    font-size: clamp(10rem, 24vw, 19rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
  }
  .door[data-line="w"] { --door-letter: "W"; }
  .door[data-line="m"] { --door-letter: "M"; }
  .door__head { display: flex; align-items: center; gap: 1rem; }
  .door__mark { width: clamp(3.4rem, 5vw, 4.4rem); height: auto; --logo-fill: var(--on-band); }
  .door__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .24em; }
  .door__title { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.4rem); line-height: 1.3; }
  .door__text { max-width: 38ch; }
  .door__types { display: flex; flex-wrap: wrap; gap: .45rem; }
  .door__chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .3rem .95rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--on-band) 62%, var(--line-fill));
    color: var(--on-fill);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--dur-1);
  }
  .door__chip:hover { background: var(--on-band); color: var(--on-fill); }
  .door__chip .icon { width: 1.15rem; height: 1.15rem; }
  .door__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: auto; }
  .door__count { font-weight: 700; }
  .door__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .6rem 1.35rem;
    border-radius: var(--r-pill);
    background: var(--on-fill);
    color: var(--line-fill);
    font-weight: 800;
    text-decoration: none;
  }
  .door__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .door__cta:hover { color: var(--line-fill); }
  .door__cta:focus-visible { outline: none; }
  .door:has(.door__cta:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
  .door :is(.door__chip):focus-visible { outline: 2px solid var(--on-fill); outline-offset: 2px; }
  @media (hover: hover) {
    .door:hover { scale: 1.012; }
    .door:hover .door__cta .icon { translate: -4px 0; }
    [dir="ltr"] .door:hover .door__cta .icon { translate: 4px 0; }
  }
  .seam {
    position: absolute;
    z-index: 2;
    top: 50%;
    inset-inline-end: 1.25rem;
    width: clamp(7rem, 12vw, 10.5rem);
    aspect-ratio: 1;
    translate: 0 -50%;
  }
  .seam__disc {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--logo-ink), var(--shadow-2);
    transition: transform .6s var(--ease-out);
  }
  .seam__disc img { width: 100%; height: 100%; object-fit: cover; }
  .seam__pack { position: absolute; top: 0; inset-inline-start: -.3rem; }
  .seam:hover .seam__disc { transform: rotate(-6deg) scale(1.04); }
  .seam:focus-visible { outline: none; }
  .seam:focus-visible .seam__disc { outline: 3px solid var(--ink); outline-offset: 10px; }
  @media (max-width: 47.99em) {
    .door:first-child { padding-bottom: 4.5rem; }
    .door + .door { padding-top: 4.5rem; }
  }
  @media (min-width: 48em) {
    .doors__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .door + .door { justify-items: end; text-align: end; }
    .door + .door :is(.door__head, .door__types, .door__foot) { justify-content: flex-end; }
    .door + .door .door__head { flex-direction: row-reverse; }
    .door + .door::before { inset-inline: .04em auto; }
    .seam { inset-inline-start: 50%; inset-inline-end: auto; translate: -50% -50%; }
    [dir="rtl"] .seam { translate: 50% -50%; }
  }
  /* --- ۵. قفسه دسته ها (PLAN ۶.۳ بند ۵) ----------------------------------
     هر کاشی از چوب لباسی (آیکن hanger) روی میله ریل آویزان است؛ میله تکه تکه روی هر آیتم کشیده می شود تا
     درون ریل اسکرولی پیوسته بماند. hover: دایره خط از پایین عکس بزرگ می شود (multiply) و برچسب بالا می آید. */
  .shelf { background-color: var(--surface-2); }
  .shelf .section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
  /* تب های data-tabs-all (قفسه، تازه ترین بار): بی JS همه پنل ها با تیتر خودشان، بی فهرست تب */
  .section-head--row > .tabs { display: flex; margin: 0; }
  html:not(.js) [data-tabs-all] .tabs { display: none; }
  html.js [data-tabs-all]:not(.is-tabbed) .tabs__panel ~ .tabs__panel { display: none; }
  html.js .tabs__caption { display: none; }
  .tabs__caption { margin-bottom: .75rem; font-size: var(--fs-h3); }
  [data-tabs-all] .tabs__panel + .tabs__panel { margin-top: 2.5rem; }
  html.js [data-tabs-all] .tabs__panel + .tabs__panel { margin-top: 0; }
  .shelf__list {
    display: flex;
    gap: 1rem;
    margin-inline: -1rem;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }
  .shelf__list::-webkit-scrollbar { display: none; }
  .shelf__item { position: relative; flex: 0 0 42vw; max-width: 14rem; padding-top: 2.5rem; scroll-snap-align: start; }
  .shelf__item::before {
    content: "";
    position: absolute;
    top: .55rem;
    inset-inline: -.5rem;
    height: 5px;
    background: color-mix(in srgb, var(--ink) 24%, transparent);
  }
  .shelf__item:first-child::before { inset-inline-start: 0; border-start-start-radius: 3px; border-end-start-radius: 3px; }
  .shelf__item:last-child::before { inset-inline-end: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; }
  .shelf-tile { position: relative; display: block; color: var(--ink); text-decoration: none; }
  .shelf-tile__hook {
    position: absolute;
    top: -2.45rem;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--ink-2);
    translate: -50% 0;
    transform-origin: 50% 12%;
  }
  .shelf-tile__media {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-img);
    background: var(--line-tint);
    box-shadow: var(--shadow-1);
  }
  .shelf-tile__media img { width: 100%; height: 100%; object-fit: cover; }
  .shelf-tile__media::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 130%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--line-fill);
    mix-blend-mode: multiply;
    translate: -50% 50%;
    scale: 0;
    transition: scale .6s var(--ease-out);
  }
  .shelf-tile__label {
    position: absolute;
    z-index: 1;
    inset-inline: .55rem;
    bottom: .55rem;
    display: grid;
    padding: .45rem .75rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    transition: translate .5s var(--ease-out);
  }
  .shelf-tile__name { display: flex; align-items: center; gap: .35rem; font-size: .95rem; font-weight: 800; }
  .shelf-tile__name .icon { width: 1.15rem; height: 1.15rem; color: var(--line-text); }
  .shelf-tile__count { color: var(--ink-2); font-size: .78rem; font-weight: 600; }
  .shelf-tile:hover .shelf-tile__media::after, .shelf-tile:focus-visible .shelf-tile__media::after { scale: 1; }
  .shelf-tile:hover .shelf-tile__label, .shelf-tile:focus-visible .shelf-tile__label { translate: 0 -.5rem; }
  .shelf-tile:focus-visible { outline: none; }
  .shelf-tile:focus-visible .shelf-tile__media { outline: 3px solid var(--ink); outline-offset: 3px; }
  .shelf__more { margin-top: .75rem; }
  @media (min-width: 40em) { .shelf__item { flex-basis: 27vw; } }
  @media (min-width: 64em) {
    .shelf__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0 0 1rem; overflow: visible; }
    .shelf__item { max-width: none; }
  }
  /* --- ۶. تازه ترین بار: تب خط + ریل محصولات (تب ها مثل قفسه، data-tabs-all) ------------- */
  .arrivals__more { margin-top: .25rem; }
  /* --- ۷. دیوار برندها: کارت های آویز روی ریل؛ هر کارت تکه ای از میله ردیفش را می کشد --------
     موبایل ۳ ستون و ۱۲ کارت، تبلت ۴ و ۱۶، دسکتاپ ۶ و همه. هر سومین آویز کرافت. */
  .brand-wall { background: var(--surface-2); }
  .brand-wall__list { --gap: .75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem var(--gap); margin: 0; padding: 0; list-style: none; }
  .brand-wall__item { position: relative; padding-top: 1.6rem; }
  .brand-wall__item::before { content: ""; position: absolute; top: .3rem; inset-inline: calc(var(--gap) / -2); height: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
  .brand-wall__item:nth-child(n+13) { display: none; }
  .brand-tag {
    --hole: var(--surface-2);
    --tag-fill: var(--surface);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .35rem;
    height: 100%;
    min-height: 7.5rem;
    padding: 2.1rem .5rem 1rem;
    background: radial-gradient(circle at 50% 1.05rem, var(--hole) .3rem, var(--line) .32rem .42rem, transparent .44rem), var(--tag-fill);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
  }
  .brand-wall__item:nth-child(3n+2) .brand-tag { --tag-fill: var(--kraft-soft); }
  .brand-tag:hover { color: var(--ink); }
  .brand-tag__name { font-size: clamp(.95rem, .85rem + .45vw, 1.2rem); font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
  .brand-tag__logo { width: 100%; max-width: 8rem; height: 3rem; object-fit: contain; }
  .brand-tag__meta { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-2); font-size: .75rem; font-weight: 600; }
  .brand-tag .dot { width: .55rem; height: .55rem; }
  @media (min-width: 40em) {
    .brand-wall__list { --gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .brand-wall__item:nth-child(-n+16) { display: block; }
  }
  @media (min-width: 64em) {
    .brand-wall__list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1.25rem; }
    .brand-wall__item:nth-child(n) { display: block; }
  }
  /* --- ۸. همکاری عمده: چهار کارتن روی نوار نقاله (خط نقطه چین پشتشان) + نوار شرایط بارنامه ------ */
  .wholesale__steps { position: relative; display: grid; gap: 1.75rem 1.25rem; margin: 0 0 2rem; padding: .6rem 0 0; list-style: none; }
  .wholesale .carton { display: grid; align-content: start; gap: .4rem; padding-bottom: 2.6rem; }
  .carton__icon { position: absolute; top: 1.35rem; inset-inline-end: 1.1rem; width: 2.4rem; height: 2.4rem; opacity: .7; }
  .carton__title { margin-top: .35rem; color: var(--kraft-ink); font-size: 1.15rem; }
  .carton__text { color: var(--kraft-ink); font-size: .92rem; line-height: 1.8; }
  .terms { display: grid; gap: 1.25rem; padding: 1.25rem; border: 1.5px dashed var(--kraft); border-radius: var(--r-card); background: var(--surface); }
  .terms__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
  .terms__item { display: flex; align-items: flex-start; gap: .75rem; }
  .terms__item strong { display: block; font-weight: 800; }
  .terms__item > span > span { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.8; }
  .terms__icon { flex: none; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: var(--kraft-soft); color: var(--kraft-ink); }
  .terms__actions { margin: 0; }
  @media (min-width: 40em) { .wholesale__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64em) {
    .wholesale__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wholesale__steps::before { content: ""; position: absolute; top: 55%; inset-inline: -1rem; border-top: 2px dashed var(--kraft); }
    .wholesale .carton:nth-child(odd) { rotate: -1deg; }
    .wholesale .carton:nth-child(even) { rotate: 1.2deg; translate: 0 .6rem; }
    .terms { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.5rem 2rem; }
    .terms__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
    .terms__actions { flex-direction: column; align-items: stretch; }
  }
  /* --- ۹. فروشگاه ما: ویدئو در قاب گرد | متن، سه طبقه در دایره های نشان، نشانی و مسیریابی ------ */
  .store-block { background: var(--surface-2); }
  .store-block__inner { display: grid; gap: 2.5rem; align-items: center; }
  .store-video { position: relative; margin: 0; }
  .store-video__media, .store-video__play { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--night); }
  .store-video__play { position: absolute; inset: 0 0 auto; overflow: hidden; padding: 0; border: 0; cursor: pointer; }
  .store-video__play img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
  .store-video__btn {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 .55rem color-mix(in srgb, var(--brand) 38%, transparent);
    color: var(--on-fill);
    translate: -50% -50%;
    transition: scale var(--dur-2) var(--ease-out);
  }
  .store-video__btn .icon { width: 1.7rem; height: 1.7rem; translate: 2px 0; }
  .store-video__play:hover img { scale: 1.03; }
  .store-video__play:hover .store-video__btn { scale: 1.08; }
  .store-video__play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .store-video__cap { margin-top: .75rem; color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; text-align: center; }
  .floors { display: flex; gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
  .floor { display: grid; flex: 1; justify-items: center; align-content: start; gap: .6rem; text-align: center; }
  .floor:first-child { --line-fill: var(--ink); }
  .floor__disc { display: block; width: clamp(5.25rem, 22vw, 7rem); aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 6px var(--line-fill); }
  .floor__disc img { width: 100%; height: 100%; object-fit: cover; }
  .floor__name { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; line-height: 1.5; }
  .store-block__facts { display: grid; gap: .6rem; margin: 0 0 1.5rem; }
  .store-block__facts > div { display: flex; align-items: flex-start; gap: .6rem; }
  .store-block__facts dt .icon { width: 1.25rem; height: 1.25rem; margin-top: .3rem; color: var(--link); }
  .store-block__facts dd { margin: 0; }
  .store-block__hours { display: block; }
  @media (min-width: 64em) { .store-block__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; } }
  /* --- ۱۰. آمار: هر عدد در دایره نشان؛ حلقه همراه شمارش کشیده می شود (ادامه زمینه فروشگاه) ----- */
  .stats { padding-top: 0; background: var(--surface-2); }
  .stats__title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--fs-h3); text-align: center; }
  .stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; margin: 0; }
  .stat { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
  .stat__label { order: 2; color: var(--ink-2); font-weight: 700; }
  .stat__value { position: relative; display: grid; place-items: center; width: clamp(7.5rem, 15vw, 10rem); aspect-ratio: 1; margin: 0; border-radius: 50%; background: var(--surface); }
  .stat__ring { position: absolute; inset: 0; rotate: -90deg; fill: none; stroke: var(--line); stroke-width: 4; }
  .stat__ring-fill { stroke: var(--brand); stroke-dasharray: 1; stroke-linecap: round; }
  .stat__num { position: relative; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
  .stat__num small { font-size: .55em; font-weight: 800; }
  .stat__value [data-count] { display: inline-block; min-width: calc(var(--ch, 1) * .62em); }
  @media (min-width: 48em) { .stats__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
  /* --- ۱۲. فراخوان مغازه داران: کارت جوهری؛ لبه مچ جوراب روی لایه زمینه (mask خود کارت بسته بیرون
     زده را می برید)، بسته در دایره نشان از لبه بالا بیرون زده ----------------------------------- */
  .owners { padding-top: clamp(5rem, 9vw, 7rem); }
  .owners__card { position: relative; isolation: isolate; display: grid; gap: 1.5rem; padding: 3rem clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem); color: var(--on-band); }
  .owners__card.has-pack { padding-top: 6.5rem; }
  .owners__bg { --rib-ink: var(--rib-night); position: absolute; z-index: -1; inset: 0; border-radius: 0 0 var(--r-card) var(--r-card); background-color: var(--band); }
  .owners__pack { position: absolute; top: -3.5rem; inset-inline-end: clamp(1.25rem, 5vw, 4rem); width: 8.5rem; }
  .owners__disc { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--line-tint); box-shadow: 0 0 0 5px var(--band), 0 0 0 9px var(--line-fill), var(--shadow-2); }
  .owners__disc img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
  .owners__pack:hover img { scale: 1.06; }
  .owners__badge { position: absolute; top: 0; inset-inline-start: -.4rem; box-shadow: 0 0 0 3px var(--band); }
  .owners h2 { max-width: 22ch; color: var(--on-band); }
  .owners__text p { max-width: 54ch; margin-top: .75rem; color: var(--on-night-2); font-size: var(--fs-lead); }
  .owners__actions { margin: 0; }
  .owners :focus-visible { outline-color: var(--on-band); }
  @media (min-width: 64em) {
    .owners__card, .owners__card.has-pack { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-top: 4rem; }
    .owners__card.has-pack { padding-inline-end: 17rem; }
    .owners__pack { top: -4.5rem; width: 12rem; }
    .owners__actions { flex-direction: column; align-items: stretch; }
  }
  .btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-band); --btn-bd: color-mix(in srgb, var(--on-band) 60%, transparent); }
  .btn--outline-light:hover { --btn-bg: color-mix(in srgb, var(--on-band) 12%, transparent); }
  /* --- مطلب ---------------------------------------------------------- */
  .post-cover { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
  .post-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-card);
    background: var(--photo-bg);
  }
  /* --- خطا: کد درشت که «۰»اش دایره نشان است --------------------------- */
  .error-page { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem); }
  .error-page__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
  .error-page__art { display: grid; place-items: center; padding-block: 1rem; }
  .error-code {
    display: flex;
    align-items: center;
    gap: .06em;
    color: var(--ink);
    font-size: clamp(5rem, 2.5rem + 12vw, 12.5rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .error-code__o { display: block; width: .86em; height: .86em; }
  .error-code__o .mark { width: 100%; height: 100%; filter: drop-shadow(0 .06em .08em var(--overlay-soft)); }
  .error-page__text { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1rem; }
  .error-page__text h1 { font-size: var(--fs-h1); }
  .error-page__lines .chip { min-height: 44px; }
  .search-inline {
    display: flex;
    align-items: center;
    gap: .35rem;
    width: min(100%, 480px);
    padding: .3rem;
    padding-inline-start: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
  }
  .search-inline__icon { color: var(--ink-3); }
  .search-inline:focus-within { border-color: var(--primary); }
  .search-inline input { flex: 1; width: 0; min-width: 0; min-height: 40px; border: 0; background: transparent; }
  .search-inline input:focus-visible { outline: none; }
  @media (min-width: 64em) {
    .error-page__inner { grid-template-columns: 1fr 1fr; }
  }
  /* --- ورود (لایه بی هدر): پرده قهوه ای ریب، عکس فروشگاه در «دایره نشان» با حلقه زرد ------ */
  .auth { display: grid; grid-template-rows: auto 1fr; min-height: 100svh; }
  .auth__aside {
    --rib-ink: var(--rib-night);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--band);
    color: var(--on-band);
  }
  .auth__brand { display: block; width: fit-content; border-radius: var(--r-pill); text-decoration: none; }
  .auth__brand .logo { color: var(--on-band); }
  .auth__brand .logo__tagline { color: var(--on-night-2); }
  .auth__visual, .auth__quote { display: none; }
  .auth__panel {
    display: grid;
    place-items: center;
    padding: 2rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
  .auth__card { display: grid; gap: .25rem; width: min(100%, 440px); }
  .auth__card > h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
  .auth__card > .label { margin-bottom: .5rem; }
  .auth__lead { margin-bottom: 1.25rem; color: var(--ink-2); }
  .auth__card > .form { margin-top: .25rem; }
  .auth__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1.5rem;
    font-size: .92rem;
  }
  @media (min-width: 64em) {
    .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
    .auth__aside { justify-content: space-between; padding: 2.5rem 3rem; }
    .auth__brand .logo__mark { width: 3.25rem; height: 3.25rem; }
    .auth__brand .logo__name { font-size: 1.2rem; }
    .auth__visual {
      position: relative;
      display: grid;
      place-items: center;
      width: min(100%, 25rem, 52vh);
      aspect-ratio: 1;
      margin-inline: auto;
    }
    .auth__ring, .auth__photo { grid-area: 1 / 1; border-radius: 50%; }
    .auth__ring { width: 100%; height: 100%; border: 1.5px dashed var(--night-line); }
    .auth__photo {
      width: 88%;
      height: 88%;
      overflow: hidden;
      box-shadow: 0 0 0 .9rem var(--brand), 0 0 0 1.1rem var(--logo-ink);
      background: var(--night-2);
    }
    .auth__photo img { width: 100%; height: 100%; }
    .auth__mark { position: absolute; bottom: 2%; inset-inline-end: 4%; width: 24%; height: auto; filter: drop-shadow(0 .4rem .8rem var(--overlay)); }
    .auth__quote { display: block; max-width: 20ch; font-size: clamp(1.3rem, .9rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.7; }
  }
}
/* ------------------------------------------------------------------ */
@layer utilities {
  [hidden] { display: none !important; }
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .ltr { display: inline-block; }
  .nobr { white-space: nowrap; }
  html.is-locked { overflow: hidden; }
  html.is-locked .chat-fab { visibility: hidden; }
}
/* ------------------------------------------------------------------ */
@layer motion {
  @keyframes spin { to { transform: rotate(1turn); } }
  @keyframes line-up { from { transform: translateY(110%); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes fill-in { from { fill-opacity: 0; } }
  @keyframes marquee { to { transform: translateX(50%); } }
  @keyframes marquee-ltr { to { transform: translateX(-50%); } }
  @keyframes logo-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
  @keyframes rise { from { transform: translateY(18px); } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes tab-in { from { opacity: 0; transform: translateY(12px); } }
  @keyframes cut-open { from { clip-path: var(--cut); } to { clip-path: inset(0); } }
  @keyframes hook-swing { 0% { transform: rotate(-14deg); } 55% { transform: rotate(6deg); } 100% { transform: none; } }
  @keyframes mark-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
  @keyframes story-spin { to { --ks-angle: 360deg; } }
  @keyframes slide-open { from { clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); } to { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); } }
  @keyframes disc-zoom { from { scale: 1.06; } }
  @keyframes tag-sway { 22% { rotate: -7deg; } 48% { rotate: 4.5deg; } 72% { rotate: -2deg; } }
  @keyframes tag-swing { 0% { rotate: -18deg; opacity: 0; } 35% { opacity: 1; rotate: 7deg; } 65% { rotate: -6deg; } 100% { rotate: -3deg; } }
  @keyframes ring-fill { to { stroke-dashoffset: 0; } }
  @keyframes cut-run { 0% { translate: 0; opacity: 1; } 88% { opacity: 1; } 100% { translate: calc(var(--cut-dir, 1) * 100%); opacity: 0; } }
  /* تیتر سطری: متن از زیر لبه سطر بالا می آید */
  .line { display: block; overflow: clip; padding-block: .14em; margin-block: -.14em; }
  .line > span { display: block; }
  @media (prefers-reduced-motion: no-preference) {
    .line > span { animation: line-up var(--dur-3) var(--ease-out) .1s both; }
    /* نقاشی خطی هنگام بارگذاری «کشیده» می شود */
    /* نام برند حرف به حرف نوشته می شود (--i شماره حرف) */
    /* رنگ ها پس از خط ها؛ گل ها خطشان کشیده و سپس رنگشان پیدا می شود */
    /* آشکارسازی با اسکرول: حالت پنهان فقط وقتی JS هست */
    html.js [data-reveal] {
      transition:
        opacity var(--dur-3) var(--ease-out),
        transform var(--dur-3) var(--ease-out),
        clip-path 1.4s var(--ease-in-out);
      transition-delay: calc(var(--i, 0) * 70ms);
    }
    html.js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
    html.js [data-reveal="fade"]:not(.is-in) { opacity: 0; }
    html.js [data-reveal="zoom"]:not(.is-in) { opacity: 0; transform: scale(.96); }
    /* فرزندان پلکانی: سرور --i هر فرزند را می نویسد */
    html.js [data-reveal-stagger] > * {
      transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
      transition-delay: calc(var(--i, 0) * 70ms);
    }
    html.js [data-reveal-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }
    /* «دوختن»: خط از آغاز سطر تا پایانش آشکار می شود */
    html.js[dir="rtl"] [data-reveal="sew"]:not(.is-in) { clip-path: inset(0 0 0 100%); }
    html.js[dir="ltr"] [data-reveal="sew"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
    /* منوی موبایل با JS: پرده دایره ای از محل دکمه */
    html.js .mmenu__panel {
      clip-path: circle(0 at var(--mx, 100%) var(--my, 0));
      transition: clip-path .6s var(--ease-in-out);
    }
    html.js .mmenu.is-open .mmenu__panel { clip-path: circle(150vmax at var(--mx, 100%) var(--my, 0)); }
    html.js .mmenu__list > li {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
      transition-delay: calc(var(--i, 0) * 50ms + .15s);
    }
    html.js .mmenu.is-open .mmenu__list > li { opacity: 1; transform: none; }
    /* --- صفحه اصلی ---------------------------------------------------- */
    /* استوری: حلقه با hover آرام می چرخد، هنگام باز شدن تند */
    .story:is(:hover, :focus-visible) .story__ring { animation: story-spin 6s linear infinite; }
    .story.is-opening .story__ring { animation: story-spin .8s linear infinite; }
    .story-viewer[open] { animation: fade-in .3s var(--ease-out); }
    /* اسلایدر: اسلاید تازه با دایره ای از مرکز دایره عکس باز می شود (--cx/--cy از site.js)، عکس آرام از ۱٫۰۶ به
       اندازه خود می آید، برچسب دوخته تاب می خورد و می نشیند، متن بالا می آید. حلقه پیشرفت ۶ ثانیه. */
    .slide.is-entering { animation: slide-open 1.1s var(--ease-in-out) both; }
    .slide.is-leaving .slide__disc { scale: .94; transition: scale 1.1s var(--ease-in-out); }
    .slide.is-in .slide__img { animation: disc-zoom 1.8s var(--ease-out) both; }
    .slide.is-in .slide__label { animation: tag-swing 1.1s var(--ease-out) .3s both; }
    .slide.is-in :is(.slide__title, .slide__lead, .actions) { animation: rise-in .7s var(--ease-out) .4s both; }
    .slide.is-in .slide__lead { animation-delay: .5s; }
    .slide.is-in .actions { animation-delay: .6s; }
    .slider__ring-fill.is-running { animation: ring-fill 6s linear forwards; }
    .slider.is-paused .slider__ring-fill { animation-play-state: paused; }
    /* قفسه: چوب لباسی با hover یک بار تاب می خورد */
    .shelf-tile:is(:hover, :focus-visible) .shelf-tile__hook { animation: hook-swing .7s var(--ease-out); }
    .marquee__track { animation: marquee 40s linear infinite; }
    [dir="ltr"] .marquee__track { animation-name: marquee-ltr; }
    .marquee:hover .marquee__track { animation-play-state: paused; }
    /* پنل های برند از دو سو باز می شوند */
    html.js[dir="rtl"] [data-reveal="start"]:not(.is-in),
    html.js[dir="ltr"] [data-reveal="end"]:not(.is-in) { opacity: 0; transform: translateX(8%); clip-path: inset(0 0 0 30%); }
    html.js[dir="rtl"] [data-reveal="end"]:not(.is-in),
    html.js[dir="ltr"] [data-reveal="start"]:not(.is-in) { opacity: 0; transform: translateX(-8%); clip-path: inset(0 30% 0 0); }
    /* لوگوی برند: دور شکل کشیده می شود، سپس پر می شود و خط محو */
    /* «برش» (PLAN ۱۱.۳): عکس از لبه شروع تا لبه پایان با clip-path باز می شود و یک خط چین با قیچی لبه
       بازشونده را دنبال می کند و در پایان محو می شود. بی JS یا با reduced-motion عکس از اول کامل است
       (این قاعده ها فقط زیر html.js و no-preference اند). حداکثر یک cut در هر نما. */
    html.js [data-reveal="cut"] { position: relative; }
    /* باز شدن با انیمیشن، نه transition: سرصفحه بالای خط تا پیش از نخستین رسم .is-in می گیرد و transition
       حالت آغازی ندارد (عکس یکباره پیدا می شد و فقط خط و قیچی می دویدند) */
    html.js [data-reveal="cut"] > img { --cut: inset(0 0 0 100%); }
    html.js[dir="ltr"] [data-reveal="cut"] > img { --cut: inset(0 100% 0 0); }
    html.js [data-reveal="cut"]:not(.is-in) > img { clip-path: var(--cut); }
    html.js [data-reveal="cut"].is-in > img { animation: cut-open var(--dur-3) var(--ease-out); }
    /* خط و قیچی: جعبه های تمام اندازه ظرف که نقششان در لبه شروع است و با translate (نه inset) جلو می روند،
       تا حرکتشان جابه جایی چیدمان (CLS) نشمارد؛ ظرف overflow: hidden دارد. RTL آینه ای (scale) و رو به چپ. */
    html.js [data-reveal="cut"]::before,
    html.js [data-reveal="cut"]::after {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      opacity: 0;
      pointer-events: none;
    }
    html.js [data-reveal="cut"]::before {
      background: repeating-linear-gradient(to bottom, var(--accent) 0 7px, transparent 7px 12px) 0 0 / 2px 100% no-repeat;
    }
    html.js [data-reveal="cut"]::after {
      background: var(--accent);
      -webkit-mask: var(--scissors) 0 50% / 2rem no-repeat;
      mask: var(--scissors) 0 50% / 2rem no-repeat;
      --scissors: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='7' r='2.6'/%3E%3Ccircle cx='6' cy='17' r='2.6'/%3E%3Cpath d='M8.3 8.4 20 17M8.3 15.6 20 7'/%3E%3C/svg%3E");
    }
    html.js[dir="rtl"] [data-reveal="cut"]::before,
    html.js[dir="rtl"] [data-reveal="cut"]::after { scale: -1 1; --cut-dir: -1; }
    html.js [data-reveal="cut"].is-in::before,
    html.js [data-reveal="cut"].is-in::after { animation: cut-run var(--dur-3) var(--ease-out) both; }
    .tabs__panel.is-entering .rail__item { animation: tab-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
    html.js .search-panel { transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out); }
    /* قلاب منوی بزرگ یک بار تاب می خورد و پنل روی ریل می نشیند */
    .has-mega:is(:hover, :focus-within) .mega__hook { animation: hook-swing .7s var(--ease-out); }
    .has-mega:is(:hover, :focus-within) .mega__types > li { animation: rise-in .45s var(--ease-out) both; }
    .has-mega .mega__types > li:nth-child(2) { animation-delay: 30ms; }
    .has-mega .mega__types > li:nth-child(3) { animation-delay: 60ms; }
    .has-mega .mega__types > li:nth-child(4) { animation-delay: 90ms; }
    .has-mega .mega__types > li:nth-child(n+5) { animation-delay: 120ms; }
    /* کارت آویز: تاب روی میخ با hover (فقط نشانگر دقیق) */
    @media (hover: hover) {
      .hook-card:hover { transform: rotate(-3deg); }
      .hook-card:nth-child(even):hover { transform: rotate(3deg); }
    }
    /* برچسب کارتن: نوار چسب با آشکار شدن کشیده می شود */
    html.js :is(.carton[data-reveal], [data-reveal-stagger] > .carton)::before { transition: transform .8s var(--ease-out) calc(var(--i, 0) * 120ms + .3s); }
    html.js :is(.carton[data-reveal]:not(.is-in), [data-reveal-stagger]:not(.is-in) > .carton)::before { transform: scaleX(0); }
    /* آمار: حلقه دایره نشان همراه شمارش کشیده می شود */
    html.js .stat__ring-fill { transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--i, 0) * 120ms + .2s); }
    html.js .stats__list:not(.is-in) .stat__ring-fill { stroke-dashoffset: 1; }
    /* آویز برند: تاب میرا روی قلاب */
    .brand-tag:is(:hover, :focus-visible) { animation: tag-sway 1.3s var(--ease-out); }
    /* صفحه خطا: دایره نشان جای «۰» آرام تاب می خورد؛ حلقه پرده ورود آرام می چرخد */
    .error-code__o .mark { animation: mark-sway 6s var(--ease-in-out) infinite; }
    .auth__ring { animation: spin 60s linear infinite; }
    html.js .search-panel:not(.is-open) { opacity: 0; transform: translateY(-10px); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }
    .btn.is-loading::after { animation: none; }
    .marquee { overflow-x: auto; }
    .marquee__track { animation: none; }
  }
}
/* =====================================================================
   فاز ۴ — محصولات: فیلترها، شبکه، صفحه برند، صفحه محصول، نمایشگر
   ===================================================================== */
@layer components {
  .pagination__gap { border: 0; background: none; }
  /* کنترل تفکیکی (برند) و چیپ رادیویی (دسته): input پنهان، برچسب قابل کلیک */
  .chip--radio { position: relative; cursor: pointer; }
  .chip--radio input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .chip--radio:has(input:focus-visible) { outline: 2px dashed var(--primary); outline-offset: 2px; }
  .chip--radio:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
  .chip small { font-size: .78em; opacity: .7; font-variant-numeric: tabular-nums; }
  .note { margin-bottom: 1rem; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--info-soft); color: var(--info); font-size: .92rem; }
  .empty { display: grid; justify-items: center; gap: .75rem; padding-block: clamp(2.5rem, 7vw, 4rem); text-align: center; }
  .empty__icon { width: 3.5rem; height: 3.5rem; color: var(--ink-3); }
  .empty__title { font-size: var(--fs-h3); }
  .empty p { max-width: 46ch; color: var(--ink-2); }
  .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.25rem); }
  @media (min-width: 48em) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 64em) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (max-width: 39.99em) {
    .product-grid .pcard__body { padding: .65rem .7rem .85rem; }
    .product-grid .pcard__title { font-size: .92rem; }
  }
  /* اشتراک گذاری */
  .share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .share__label { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
  .share__status { color: var(--success); font-size: .85rem; }
  /* نمایشگر تمام صفحه */
  .lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--night) 96%, transparent);
    color: var(--on-night);
  }
  .lightbox::backdrop { background: var(--overlay); }
  .lightbox[open] { display: grid; place-items: center; }
  .lightbox__figure { display: grid; justify-items: center; gap: .6rem; max-width: 100%; max-height: 100%; padding: 4rem 1rem 3rem; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
  .lightbox__figure img { max-width: min(100%, 1400px); max-height: calc(100dvh - 8rem); width: auto; height: auto; border-radius: var(--r-img); background: var(--photo-bg); }
  .lightbox__caption { color: var(--on-night-2); font-size: .9rem; text-align: center; }
  .lightbox .icon-btn { position: fixed; color: var(--on-night); background: color-mix(in srgb, var(--on-night) 12%, transparent); }
  .lightbox .icon-btn:hover { background: color-mix(in srgb, var(--on-night) 22%, transparent); }
  .lightbox__close { top: calc(1rem + env(safe-area-inset-top, 0px)); inset-inline-end: 1rem; }
  .lightbox__nav { top: 50%; translate: 0 -50%; }
  .lightbox__nav--prev { inset-inline-start: 1rem; }
  .lightbox__nav--next { inset-inline-end: 1rem; }
  .lightbox__count { position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); inset-inline: 0; text-align: center; font-size: .85rem; color: var(--on-night-2); }
}
@layer pages {
  /* --- فیلترها (PLAN ۶.۱۵) ------------------------------------------------ */
  .shop { display: grid; gap: 1.25rem; }
  .filters { display: grid; gap: .75rem; }
  .filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
  .filters__count { color: var(--ink-2); font-size: .92rem; }
  .filters__sort { display: flex; align-items: center; gap: .6rem; }
  .filters__sort label { color: var(--ink-2); font-size: .85rem; font-weight: 700; }
  .filters__sort select { width: auto; min-height: 42px; padding-block: .3rem; }
  html.js .filters__sort [type="submit"] { display: none; }
  /* موبایل با JS: فرم در کشو است؛ دکمه «فیلترها» و پنهان بودن فرم درون صفحه از CSS می آید (نه از JS پس از
     نخستین رنگ آمیزی) تا چیدمان جابه جا نشود */
  .filters__open { display: none; }
  @media (max-width: 63.99em) {
    html.js .filters__open { display: inline-flex; }
    html.js .filters__dialog:not(:modal) { display: none; }
  }
  .filters__badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .75rem; }
  /* بی JS (یا دسکتاپ): dialog باز و درون صفحه */
  .filters__dialog:not(:modal) {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
  }
  .filters__form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; }
  .filters__head { display: none; }
  .filters__group { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
  .filters__group > legend, .filters__group > label { padding: 0; margin-bottom: .4rem; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
  .filters__group--sort select { min-height: 46px; padding-block: .4rem; width: auto; min-width: 11rem; }
  .filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
  html.js .filters__form.is-auto [data-filters-submit] { display: none; }
  @media (min-width: 64em) {
    html.js .filters__actions:not(:has(a)) { display: none; }
  }
  .filters__active { margin-top: .25rem; }
  /* فیلتر طرح پارچه: <details> (بسته = عکس ها بار نمی شوند)، نمونه های دایره ای رادیویی، بی JS کار می کند */
  @media (min-width: 64em) {
    .filters__dialog:not(:modal) {
      padding: .85rem 1.1rem;
      border: 1px solid var(--line);
      border-radius: var(--r-card);
      background: var(--surface);
    }
  }
  /* موبایل با JS: کشوی پایین صفحه */
  .filters__dialog:modal {
    width: 100%;
    max-width: 640px;
    max-height: 86dvh;
    margin: auto auto 0;
    padding: 1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: var(--r-card) var(--r-card) 0 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-2);
  }
  .filters__dialog::backdrop { background: var(--overlay); }
  .filters__dialog:modal .filters__form { display: grid; gap: 1.25rem; }
  .filters__dialog:modal .filters__head { display: flex; align-items: center; justify-content: space-between; }
  .filters__dialog:modal .filters__title { font-weight: 800; font-size: 1.1rem; }
  .filters__dialog:modal .filters__group--sort select { width: 100%; }
  .filters__dialog:modal .filters__actions .btn { flex: 1; }
  /* --- صفحه فرود برند (PLAN ۴.۵) ---------------------------------------- */
  .brand-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: calc(var(--header-space) * -1);
    padding: calc(var(--header-space) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
    background: var(--night);
    color: var(--on-night);
  }
  .brand-hero__inner { display: grid; }
  .brand-hero__text { display: grid; justify-items: start; align-content: center; gap: .9rem; }
  /* دسکتاپ: نیمه پایان = عکس دوتُن برند در قاب گرد + سه کارت بادبزنی که از لبه پایین قاب بیرون می زنند */
  .brand-hero__visual { display: none; }
  @media (min-width: 64em) {
    .brand-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: var(--s-6); }
    .brand-hero__visual { position: relative; display: flex; align-items: flex-end; min-height: 25rem; }
    .brand-hero__cards { position: relative; display: flex; justify-content: center; width: 100%; }
    .brand-hero__cards li { flex: 0 0 33%; margin-inline: -2%; }
    .brand-hero__cards li:nth-child(1) { --r: 6deg; margin-top: 1.4rem; }
    .brand-hero__cards li:nth-child(2) { --r: -1deg; z-index: 1; }
    .brand-hero__cards li:nth-child(3) { --r: -7deg; margin-top: 1.8rem; }
  }
  .brand-hero .breadcrumb ol { color: var(--on-night-2); }
  .brand-hero .breadcrumb [aria-current] { color: var(--on-night); }
  .brand-hero .breadcrumb a:hover { color: var(--on-night); }
  .brand-hero__title { color: var(--on-night); font-size: var(--fs-h1); }
  .brand-hero__line { max-width: 46ch; color: var(--on-night-2); font-size: var(--fs-lead); }
  .brand-hero__count { padding: .2rem .8rem; border-radius: 8px; background: color-mix(in srgb, var(--on-night) 12%, transparent); font-size: .85rem; font-weight: 700; }
  .brand-hero .chip { border-color: color-mix(in srgb, var(--on-night) 30%, transparent); background: transparent; color: var(--on-night); }
  .brand-hero .chip:hover { border-color: var(--on-night); color: var(--on-night); }
  .brand-hero .chip[aria-current] { background: var(--on-night); border-color: var(--on-night); color: var(--brand); }
  .brand-hero__stitch { width: min(100%, 260px); margin-top: .5rem; background-image: repeating-linear-gradient(to left, var(--line-fill) 0 7px, transparent 7px 12px); }
  /* --- صفحه محصول (PLAN ۴.۴ و ۶.۱۴) ------------------------------------ */
  .product { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
  .product__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.25rem; }
  .product__gallery { display: grid; gap: .75rem; align-content: start; min-width: 0; }
  .product__stage {
    position: relative;
    aspect-ratio: 8 / 7;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--photo-bg);
  }
  .product__zoom { display: block; height: 100%; cursor: zoom-in; }
  /* ذره بین دایره ای (JS، فقط نشانگر دقیق): مرکز زیر نشانگر؛ left/top فیزیکی اند چون مختصات پیکسل است */
  .product__lens {
    position: absolute;
    left: 0;
    top: 0;
    width: 9rem;
    height: 9rem;
    translate: calc(var(--lx, 0px) - 50%) calc(var(--ly, 0px) - 50%);
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--photo-bg) no-repeat;
    box-shadow: var(--shadow-2);
    opacity: 0;
    pointer-events: none;
  }
  .product__stage.is-zooming .product__lens { opacity: 1; }
  .product__stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.035;
    view-transition-name: var(--vt, none);
  }
  .product__hint { position: absolute; bottom: .75rem; inset-inline-end: .75rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glass); color: var(--ink); pointer-events: none; }
  .product__empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
  .product__empty .icon { width: 4rem; height: 4rem; }
  .product__thumbs { display: flex; gap: .5rem; overflow-x: auto; }
  .product__thumbs a { display: block; width: 84px; aspect-ratio: 8 / 7; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--photo-bg); }
  .product__thumbs img { width: 100%; height: 100%; object-fit: cover; scale: 1.035; }
  .product__thumbs a[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
  .product__info { display: grid; justify-items: start; align-content: start; gap: 1.1rem; min-width: 0; }
  .product__brand { display: inline-flex; align-items: center; gap: .5rem; height: 40px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
  .product__title { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.4rem); line-height: 1.45; }
  .product__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
  .product__tags .hangtag { --tag-hole: var(--bg); }
  .product__block { display: grid; gap: .6rem; width: 100%; }
  .product__label { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 800; }
  .features { display: grid; gap: .45rem; }
  .features li { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink); }
  .features .icon { margin-top: .3em; color: var(--primary); }
  .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; width: 100%; }
  .specs > div { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .specs dt { color: var(--ink-2); font-size: .8rem; font-weight: 600; }
  .specs dd { margin: 0; font-weight: 700; }
  /* نمادهای نگهداری (فیلد care) */
  .care { display: flex; flex-wrap: wrap; gap: .5rem; }
  .care li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2); font-size: .85rem; }
  /* «همین طرح»: نمونه های دایره ای مثل نمونه رنگ */
  .product__cta { display: flex; flex-wrap: wrap; gap: .6rem; width: 100%; }
  .product__note { color: var(--ink-2); font-size: .88rem; }
  .product__desc { display: grid; gap: .75rem; max-width: 760px; margin-top: clamp(2.5rem, 6vw, 4rem); }
  /* نوار چسبان استعلام در موبایل */
  .inquiry-bar {
    position: sticky;
    z-index: 20;
    bottom: 0;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  @media (min-width: 64em) {
    .product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
    .product__gallery { position: sticky; top: var(--header-space); }
    .inquiry-bar { display: none; }
  }
}
@layer motion {
  /* کارت → صفحه محصول: عکس «پرواز» می کند (View Transitions بین سندها؛ Chrome/Edge). نام فقط روی کارتی
     که زیر نشانگر یا در تمرکز است، تا نام تکراری در صفحه (یک محصول در دو ریل) گذار را باطل نکند. */
  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }
    .pcard__link:is(:hover, :focus-visible) .pcard__media img { view-transition-name: var(--vt, none); }
    ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
    html.js .lightbox[open] { animation: fade-in .3s var(--ease-out); }
    html.js .filters__dialog:modal { animation: sheet-up .4s var(--ease-out); }
  }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
/* =====================================================================
   فاز ۵ — تماس، وبلاگ، مقاله، دیدگاه ها، استخدام
   ===================================================================== */
@layer components {
  .form__row { display: grid; gap: 1.15rem; }
  @media (min-width: 40em) {
    .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .field input[type="file"] { min-height: auto; padding: .55rem .75rem; }
  .field input[type="file"]::file-selector-button { margin-inline-end: .75rem; padding: .35rem .9rem; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; }
  .is-zoomable { cursor: zoom-in; }
}
@layer pages {
  /* --- تماس --------------------------------------------------------- */
  .contact { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
  .contact__info { display: grid; gap: .85rem; align-content: start; }
  .contact-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .contact-card > .icon { width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
  .contact-card h2 { margin-bottom: .2rem; font-size: 1rem; }
  .contact-card p, .contact-card li { color: var(--ink-2); }
  .contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
  .contact-card a:hover { color: var(--primary); }
  .contact-card--accent { border-color: var(--primary); background: var(--primary-soft); }
  .contact-card--prose { display: block; font-size: 1rem; }
  .contact-card .chips { gap: .4rem; margin-top: .5rem; }
  .contact-card .link-more { margin-top: .4rem; }
  .contact-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; color: var(--ink-2); }
  .contact-hours dd { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
  .contact__title { font-size: var(--fs-h3); }
  .contact__form { display: grid; gap: .6rem; align-content: start; }
  .contact__form .form { margin-top: .75rem; }
  @media (min-width: 64em) {
    .contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
    .contact__info { position: sticky; top: var(--header-space); }
  }
  /* --- وبلاگ -------------------------------------------------------- */
  .blog { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
  .post-feature {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .post-feature__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--photo-bg); }
  .post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
  .post-feature:hover .post-feature__media img { scale: 1.05; }
  .post-feature__body { display: grid; justify-items: start; align-content: center; gap: .7rem; padding: clamp(1.25rem, 3vw, 2.5rem); }
  .post-feature__title { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); line-height: 1.5; }
  .post-feature__title a { color: var(--ink); text-decoration: none; }
  .post-feature__title a:hover { text-decoration: underline var(--accent); }
  .post-feature__excerpt { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  @media (min-width: 48em) {
    .post-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .post-feature__media { aspect-ratio: auto; min-height: 340px; }
  }
  /* --- مقاله -------------------------------------------------------- */
  .read-progress {
    position: fixed;
    z-index: 55;
    inset-inline: 0;
    top: 0;
    height: 6px;
    pointer-events: none;
    background: repeating-linear-gradient(to left, var(--ink-3) 0 1px, transparent 1px 10px) bottom / 100% 3px no-repeat;
    opacity: .9;
  }
  .read-progress span {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(var(--read, 0));
    transform-origin: right;
  }
  [dir="ltr"] .read-progress span { transform-origin: left; }
  html:not(.js) .read-progress { display: none; }
  .article { display: grid; gap: 1.5rem; width: min(100% - 2rem, 760px); }
  .article__body { min-width: 0; }
  .article .prose { max-width: 72ch; }
  .toc__box { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: .25rem 1.1rem; }
  .toc summary { display: flex; align-items: center; gap: .5rem; padding-block: .75rem; font-weight: 800; cursor: pointer; }
  .toc summary .icon { color: var(--primary); }
  .toc ol { display: grid; gap: .1rem; margin: 0 0 .9rem; padding: 0; list-style: none; counter-reset: toc; }
  .toc li { counter-increment: toc; }
  .toc a { display: flex; gap: .5rem; padding: .35rem .5rem; border-radius: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.7; text-decoration: none; }
  .toc a::before { content: counter(toc, persian) "."; color: var(--ink-3); }
  [lang]:not([lang="fa"]) .toc a::before { content: counter(toc) "."; }
  .toc a:hover { color: var(--ink); background: var(--surface-2); }
  .toc a[aria-current] { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
  @media (min-width: 64em) {
    .article--toc { grid-template-columns: minmax(0, 72ch) 260px; justify-content: center; width: min(100% - 2rem, var(--container)); column-gap: clamp(2rem, 4vw, 4rem); }
    .article--toc .toc { grid-column: 2; grid-row: 1; position: sticky; top: var(--header-space); align-self: start; }
    .article--toc .article__body { grid-column: 1; grid-row: 1; }
  }
  .article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: var(--s-7); padding-top: 1.25rem; border-top: 1px solid var(--line); }
  /* --- دیدگاه ها ---------------------------------------------------- */
  .comments { display: grid; gap: 1.25rem; margin-top: var(--s-7); }
  .comments__title { display: flex; align-items: baseline; gap: .5rem; font-size: var(--fs-h3); }
  .comments__title small { color: var(--ink-3); }
  .comments__list { display: grid; gap: .75rem; list-style: none; padding: 0; }
  .comment { padding: 1rem 1.2rem; border-radius: var(--r-card); background: var(--surface-2); }
  .comment__head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin-bottom: .3rem; }
  .comment__head time { color: var(--ink-2); font-size: .85rem; }
  .comment__text { white-space: pre-line; }
  .comments__form h3 { font-size: 1.1rem; }
  .comments__msg { font-size: .92rem; color: var(--success); }
  .comments__msg.is-error { color: var(--danger); }
  .comments__msg:empty { display: none; }
}
@layer components {
  .contact-card__label { color: var(--ink-3); font-size: .85rem; }
  .contact-card.contact-card--map { display: block; padding: 0; overflow: hidden; }
  .contact-map { display: block; height: 11rem; overflow: hidden; }
  .contact-map .photo { width: 100%; height: 100%; }
  .contact-map__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 1rem; }
  /* دو بخش تماس: کارت پر رنگ هر خط */
  .contact-lines-section { padding-block-end: 0; }
  .contact-lines { display: grid; gap: .85rem; }
  .contact-line { padding: 1.1rem 1.3rem; border-radius: var(--r-card); background: var(--line-fill); color: var(--on-fill); }
  .contact-line__title { margin-bottom: .6rem; color: var(--on-fill); font-size: 1.15rem; }
  .contact-line ul { display: grid; gap: .1rem; list-style: none; padding: 0; }
  .contact-line a { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; color: var(--on-fill); font-weight: 600; text-decoration: none; }
  .contact-line a:hover { text-decoration: underline; }
  .contact-line .icon { flex: none; width: 1.15rem; height: 1.15rem; }
  @media (min-width: 40em) { .contact-lines { grid-template-columns: 1fr 1fr; } }
  /* دکمه شناور گفتگو با فروشگاه: سمت راست پایین (فیزیکی، در هر زبان)، بدنه جوهری، نشان زرد */
  .chat-fab { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  @media (max-width: 63.99em) { body:has(.inquiry-bar) .chat-fab { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); } }
  .chat-fab__toggle {
    display: flex;
    align-items: center;
    gap: .7rem;
    height: 3.5rem;
    padding: .3rem 1.2rem .3rem .3rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r-pill);
    background: var(--night);
    color: var(--on-night);
    font: inherit;
    font-weight: 700;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .chat-fab__toggle:hover { transform: translateY(-2px); }
  .chat-fab__badge { position: relative; isolation: isolate; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--brand); color: var(--on-fill); }
  .chat-fab__badge .icon { width: 1.4rem; height: 1.4rem; }
  .chat-fab__label { display: grid; line-height: 1.35; text-align: start; }
  .chat-fab__label small { color: var(--on-night-2); font-size: .72rem; font-weight: 500; }
  @media (max-width: 36em) {
    .chat-fab__toggle { width: 3.5rem; padding: .3rem; }
    .chat-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  .chat-fab__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .8rem);
    width: min(20rem, calc(100vw - 2rem));
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(.5rem) scale(.97);
    transform-origin: bottom right;
    transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .chat-fab.is-open .chat-fab__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .chat-fab__head { padding: .9rem 1.1rem; border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; background: var(--night); color: var(--on-night); }
  .chat-fab__head h2 { margin: 0; color: var(--on-night); font-size: 1rem; }
  .chat-fab__head p { margin: .15rem 0 0; color: var(--on-night-2); font-size: .8rem; }
  .chat-fab__list { display: grid; gap: .15rem; }
  .chat-fab__body { display: grid; gap: .15rem; max-height: min(60vh, 28rem); padding: .5rem .6rem .7rem; overflow-y: auto; }
  .chat-fab__group { display: flex; align-items: center; gap: .45rem; margin: .5rem .5rem .1rem; color: var(--ink-2); font-size: .75rem; font-weight: 800; }
  /* هر بخش (زنانه / مردانه) ته رنگ خودش را دارد و نشان آیکن هایش پر خط است */
  .chat-fab__line { padding: .2rem .25rem .35rem; border-radius: var(--r-md); background: var(--line-tint); }
  .chat-fab__line + .chat-fab__line { margin-top: .4rem; }
  .chat-fab__line .chat-fab__icon { background: var(--line-fill); color: var(--on-fill); }
  .chat-fab__line .chat-fab__item:is(:hover, :focus-visible) { background: var(--surface); color: var(--ink); }
  .chat-fab__item, .chat-fab__map {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .3rem .5rem;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: .85rem;
    text-decoration: none;
  }
  .chat-fab__item:hover, .chat-fab__map:hover, .chat-fab__item:focus-visible, .chat-fab__map:focus-visible { background: var(--surface-2); color: var(--ink); }
  .chat-fab__item b { flex: 1; min-width: 0; }
  .chat-fab__num { flex: none; color: var(--ink-2); font-weight: 600; }
  .chat-fab__icon { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
  .chat-fab__icon .icon { width: 1rem; height: 1rem; }
  .chat-fab__map { margin-top: .4rem; border: 1px solid var(--line); }
  .chat-fab__map span:last-child { display: grid; line-height: 1.4; }
  .chat-fab__map small { color: var(--ink-2); font-size: .75rem; }
  .chat-fab__hours { display: flex; gap: .6rem; padding: .3rem .5rem; color: var(--ink-2); font-size: .85rem; }
  .chat-fab__hours > .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--ink-2); }
  .chat-fab__hours dl { display: grid; flex: 1; gap: .15rem; margin: 0; }
  .chat-fab__hours dl div { display: flex; justify-content: space-between; gap: .5rem; }
  .chat-fab__hours dd { margin: 0; color: var(--ink); font-weight: 700; }
  .chat-fab__prose { flex: 1; }
  .chat-fab__prose > :first-child { margin-top: 0; }
  .chat-fab__prose > :last-child { margin-bottom: 0; }
  @media (prefers-reduced-motion: reduce) {
    .chat-fab__toggle, .chat-fab__panel { transition: none; }
  }
}
/* جلب توجه دکمه گفتگو: موج زرد نرم دور نشان و یک تکان کوتاه هر چند ثانیه؛ با باز شدن پنل یا کاهش حرکت متوقف می شود */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .chat-fab:not(.is-open) .chat-fab__toggle { animation: chat-nudge 8s var(--ease-out) 3s infinite; }
    .chat-fab:not(.is-open) .chat-fab__badge::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: 50%;
      background: var(--brand);
      animation: chat-ring 2.6s ease-out infinite;
    }
  }
  @keyframes chat-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.8); opacity: 0; } }
  @keyframes chat-nudge { 0%, 90%, 100% { transform: none; } 93% { transform: translateY(-6px); } 96% { transform: translateY(0); } 98% { transform: translateY(-2px); } }
}

@layer pages {
  /* --- فاز ۶: /Brands، صفحه محصول، نوار استعلام -------------------------------- */
  .brand-index.brand-wall { background: var(--bg); }
  .brand-index__bar { display: grid; gap: .75rem; margin-bottom: 1rem; }
  .brand-index__search { display: flex; gap: .5rem; max-width: 30rem; }
  .brand-index__search .input { flex: 1; min-width: 0; }
  html.js .brand-index__search [type="submit"] { display: none; }
  .brand-index__count { margin-bottom: .75rem; color: var(--ink-2); font-size: .92rem; }
  .brand-index__letters { margin-bottom: 1.5rem; }
  .brand-index__group { margin-top: clamp(1.5rem, 4vw, 2.5rem); scroll-margin-top: var(--header-space); }
  .brand-index__letter {
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    margin-bottom: .5rem;
    padding-inline: .5rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-fill);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
  }
  .brand-index .brand-tag { --hole: var(--bg); }
  .brand-wall__list--all .brand-wall__item:nth-child(n) { display: block; }
  .brand-wall__list--all .brand-wall__item[hidden] { display: none; }
  .size-tags--lg > * { min-width: 2.6rem; padding-top: .4rem; font-size: .9rem; }
  @media (max-width: 63.99em) { .inquiry-bar { display: flex; gap: .5rem; } }
  .inquiry-bar .btn { flex: 1; justify-content: center; }
  .inquiry-bar .btn--primary { flex: 1.6; }
}
