/* Arg Sanat «پیشخوان کارخانه» — shared tokens and components (SPEC.md §2, §4, §5).
   Every page links this file. Page-specific layout goes in the page's own <style>.
   Rules kept here: nothing under 16px; focus ring 3px --blue (white only on ink/blue
   surfaces, where blue would fail 3:1), never gold; red only for buying; phones, codes,
   prices and dates sit in .ltr isolates. */

/* ===================== 1. tokens ===================== */
:root{
  --plaster:#F3F0EA; --band:#E9E5DD; --paper:#FFFFFF;
  --ink:#1A1C1F; --ink-2:#50555C; --line:#D6D0C4; --ctl:#77716A;
  --red:#B3222B; --red-2:#8E1A21; --red-tint:#FBE9E6;
  --blue:#1F3F8F; --blue-2:#173070; --blue-3:#C9D6F5; --blue-tint:#E8EDF8;
  --gold:#E2B132; --ok:#1D6B3B;
  --ph-bg:#FCEFC2; --ph-ink:#6B4E00;
  /* derived, for ink surfaces only */
  --on-ink:#F3F0EA; --on-ink-2:#BDB7AC; --ink-line:#3A3D42;
  --fd:'Estedad','Vazirmatn',Tahoma,sans-serif;
  --fb:'Vazirmatn',Tahoma,'Segoe UI',sans-serif;
  --r1:10px; --r2:14px; --r3:20px;
  --shadow:0 1px 0 var(--line),0 12px 32px -18px rgba(26,28,31,.28);
  --gutter:32px;
}

/* ===================== 2. base ===================== */
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:light;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--plaster);color:var(--ink);font:400 18px/1.9 var(--fb);overflow-x:hidden}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--blue);text-underline-offset:4px}
h1,h2,h3,h4{font-family:var(--fd);font-weight:800;margin:0;line-height:1.45}
p{margin:0}
ul,ol{margin:0;padding:0}
/* the hidden attribute always wins, even over a page class that sets display */
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.on-dark :focus-visible{outline-color:#fff}
/* light surfaces inside a dark section (the tracking card in the blue band, toasts): blue ring again */
.on-dark .tcard :focus-visible,.on-dark .on-light :focus-visible{outline-color:var(--blue)}
/* placeholders keep 4.5:1 (SPEC §5), so they never hold a sample value: examples go in the help line */
::placeholder{color:#6B655E;opacity:1}
.wrap{max-width:1312px;margin-inline:auto;padding-inline:var(--gutter)}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;inset-inline-start:16px;top:-80px;z-index:90;background:var(--ink);color:#fff;padding:10px 16px;border-radius:var(--r1)}
.skip:focus{top:8px}
/* LTR isolate for phones, codes, prices with unit, dates, URLs (SPEC §4) */
.ltr{direction:ltr;unicode-bidi:isolate;white-space:nowrap;display:inline-block}
.ico{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.display{font-family:var(--fd);font-weight:800}
.muted{color:var(--ink-2)}
.lead{font-size:19px;line-height:1.95;color:var(--ink-2)}
/* visible placeholder for a fact we do not have yet */
.ph{background:var(--ph-bg);color:var(--ph-ink);font-weight:500;border-radius:6px;padding:0 .35em;border-bottom:1.5px dashed #B88A00;-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* list separator: a short rule, never a middle dot next to Persian digits */
.sep{display:inline-block;width:1.5px;height:.95em;background:var(--ctl);margin:0 .55em;vertical-align:-.12em}

/* ===================== 3. buttons, chips ===================== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:8px 22px;border-radius:var(--r1);border:2px solid transparent;font:700 18px/1.3 var(--fb);text-decoration:none;text-align:center;background:none;transition:background-color .15s,border-color .15s,color .15s}
.btn .ico{width:22px;height:22px}
.btn-lg{min-height:56px;padding-inline:26px}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-2)}
.btn-line{background:var(--paper);color:var(--ink);border-color:var(--ink)}
.btn-line:hover{background:var(--ink);color:#fff}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-2)}
.btn-quiet{background:var(--paper);color:var(--ink);border-color:var(--ctl)}
.btn-quiet:hover{border-color:var(--ink)}
.btn-block{width:100%}
.btn .ltr{font-weight:800}
.chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border:2px solid var(--ctl);border-radius:999px;background:var(--paper);color:var(--ink);font:500 16px/1.4 var(--fb);text-decoration:none;white-space:nowrap}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"],.chip[aria-current="page"]{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:700}
.chip .ico{width:20px;height:20px}
.chip small{font-size:16px;color:var(--ink-2)}
.chip[aria-pressed="true"] small{color:var(--on-ink-2)}
.link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;color:var(--blue);text-decoration:none;white-space:nowrap}
.link:hover{text-decoration:underline}
.link .ico{width:20px;height:20px}

/* ===================== 4. top bar, header, category bar ===================== */
/* ---- SHARED HEADER: copy the markup between "SHARED HEADER" comments in index.html ---- */
.topbar{background:var(--ink);color:var(--on-ink);font-size:16px;line-height:1.5}
.topbar__in{display:flex;align-items:center;gap:24px;min-height:44px}
.topbar a{color:var(--on-ink);text-decoration:none}
.topbar__shop{display:flex;align-items:center;gap:8px;font-weight:700}
.topbar__shop .ico{width:20px;height:20px;color:var(--gold)}
.topbar__place{color:var(--on-ink-2)}
.topbar__links{margin-inline-start:auto;display:flex;align-items:center;gap:22px}
.topbar__links a{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(243,240,234,.45)}
.topbar__tel{font-weight:800;text-decoration:none!important;gap:8px!important}
.topbar__tel .ico{width:20px;height:20px;color:var(--gold)}
.hdr{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.hdr__in{display:flex;align-items:center;gap:24px;min-height:80px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);flex:none}
.seal{width:52px;height:52px;flex:none}
.wordmark{display:flex;flex-direction:column;line-height:1.2}
.wordmark b{font:800 28px/1.15 var(--fd);color:var(--red)}
.wordmark small{font:500 16px/1.4 var(--fb);color:var(--ink-2);margin-top:2px}
.hdr__tel{display:none}
.search{position:relative;flex:1;min-width:0;max-width:620px;display:flex;margin-inline-start:auto}
.search input{flex:1;min-width:0;min-height:52px;padding:0 18px;border:2px solid var(--ctl);border-inline-end:0;border-start-start-radius:var(--r1);border-end-start-radius:var(--r1);background:var(--paper);font-size:18px;outline:none}
.search input:focus{border-color:var(--blue)}
.search:focus-within{outline:3px solid var(--blue);outline-offset:2px;border-radius:var(--r1)}
.search>button{display:inline-flex;align-items:center;gap:8px;padding:0 20px;min-height:52px;border:0;background:var(--ink);color:#fff;font-weight:700;border-start-end-radius:var(--r1);border-end-end-radius:var(--r1)}
.search>button:focus-visible{outline-offset:-5px;outline-color:#fff}
.suggest{position:absolute;top:calc(100% + 6px);inset-inline:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--r2);box-shadow:var(--shadow);list-style:none;margin:0;padding:6px;z-index:60;max-height:70vh;overflow:auto}
.suggest a{display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center;padding:6px 8px;border-radius:8px;color:var(--ink);text-decoration:none}
.suggest a:hover,.suggest a:focus-visible{background:var(--plaster)}
.suggest .thumb{width:56px;height:56px;border-radius:8px;background:var(--band);display:grid;place-items:center;overflow:hidden}
.suggest .thumb img{max-height:50px;max-width:50px;mix-blend-mode:multiply}
.suggest b{display:block;font-size:17px;line-height:1.5;font-weight:700}
.suggest small{font-size:16px;color:var(--ink-2)}
.suggest .empty{padding:12px;font-size:16px;color:var(--ink-2)}
.cartbtn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;border:2px solid var(--red);border-radius:var(--r1);background:var(--red);color:#fff;text-decoration:none;font-weight:700;flex:none}
.cartbtn:hover{background:var(--red-2);border-color:var(--red-2)}
.cbadge{min-width:28px;height:28px;border-radius:14px;background:#fff;color:var(--red-2);font:800 16px/28px var(--fd);text-align:center;padding:0 7px}
/* empty cart: no badge (a lone Persian zero reads as a dot, SPEC §4); the label «سبد خرید» stays */
.cbadge.is-zero{display:none}
.catbar{border-top:1px solid var(--line);background:var(--paper)}
/* all 12 groups stay visible: the row wraps instead of hiding groups in a sideways scroller */
.catbar ul{display:flex;flex-wrap:wrap;gap:2px;list-style:none}
.catbar a{display:flex;align-items:center;min-height:48px;padding:0 12px;white-space:nowrap;text-decoration:none;color:var(--ink);font-weight:500;font-size:17px;border-radius:8px}
.catbar a:hover{background:var(--plaster)}
.catbar a[aria-current="page"]{font-weight:700;box-shadow:inset 0 -3px 0 var(--ink)}
.catbar li:first-child a{padding-inline-start:0}
.catbar__more{display:none}
/* ---- /SHARED HEADER ---- */

/* ===================== 5. sections ===================== */
.sec{padding:72px 0}
.sec--tight{padding:48px 0}
.sec--paper{background:var(--paper)}
.sec--band{background:var(--band)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.sec-head h2{font-size:34px;line-height:1.45}
.sec-head p{color:var(--ink-2);font-size:17px;margin-top:6px;max-width:46em}
.eyebrow{display:flex;align-items:center;gap:10px;font:700 17px/1.5 var(--fb);color:var(--ink-2);margin-bottom:10px}
.eyebrow::before{content:"";width:28px;height:4px;border-radius:2px;background:var(--gold)}
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.stack{display:flex;flex-direction:column;gap:12px}

/* ===================== 6. cards, photo cards, price, badges ===================== */
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r2)}
.card--pad{padding:24px}
/* photo on the --band backdrop: white catalogue backgrounds disappear (multiply) */
.photo-band{position:relative;display:block;background:var(--band);overflow:hidden;isolation:isolate}
.photo-band img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain;mix-blend-mode:multiply}
.photo-band--cover img{inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:normal}
/* the whole card opens the product: the title link is stretched over the card (photo included);
   the add button / stepper and the 3D badge sit above it and keep their own action */
.pcard{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:var(--r2);display:flex;flex-direction:column;overflow:hidden;list-style:none;transition:border-color .15s}
.pcard:hover{border-color:var(--ink)}
@supports selector(:has(a)){
  .pcard:has(.pcard__title a:focus-visible){outline:3px solid var(--blue);outline-offset:2px}
  .pcard__title a:focus-visible{outline:0}
}
.pcard .photo-band{aspect-ratio:1/1;isolation:auto}
.pcard .codechip,.pcard span.badge{pointer-events:none}
.pcard__body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.pcard__title{font:700 18px/1.6 var(--fb);margin:0}
.pcard__title a{color:var(--ink);text-decoration:none}
.pcard__title a::after{content:"";position:absolute;inset:0;z-index:1}
.pcard:hover .pcard__title a{text-decoration:underline}
.pcard .addbox,.pcard button,.pcard .pcard__buy a{position:relative;z-index:2}
.pcard .photo-band .badge{z-index:2}
/* visible "this opens" cue; the stretched title link does the work, so it is not a second tab stop */
.pcard__more{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:16px;font-weight:700;color:var(--blue);text-decoration:underline;text-underline-offset:4px;line-height:1.6}
.pcard__more .ico{width:18px;height:18px}
.pcard__meta{font-size:16px;color:var(--ink-2);line-height:1.6}
.pcard__buy{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:6px}
.codechip{position:absolute;z-index:2;top:10px;inset-inline-start:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:0 10px;font:700 16px/1.75 var(--fb);color:var(--ink-2)}
.codechip .ltr{color:var(--ink)}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:0 10px;font:700 16px/1.75 var(--fb);white-space:nowrap}
.badge .ico{width:18px;height:18px}
.badge-3d{background:var(--blue);color:#fff;border:0}
button.badge-3d{min-height:44px;padding:0 12px}
button.badge-3d:hover{background:var(--blue-2)}
.badge-soon{background:var(--ph-bg);color:var(--ph-ink)}
.badge-ok{background:#E3F0E7;color:var(--ok)}
.badge-finish{background:var(--plaster);color:var(--ink-2);border:1px solid var(--line)}
.photo-band .badge{position:absolute;z-index:2;bottom:10px;inset-inline-end:10px}
.stock{display:inline-flex;align-items:center;gap:6px;color:var(--ok);font-weight:700;font-size:16px}
.stock::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--ok)}
/* price: Estedad numerals, unit in text face */
.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:16px;color:var(--ink-2)}
.price b{font:800 25px/1.25 var(--fd);color:var(--ink)}
.price--lg b{font-size:38px}
.price-note{font-size:16px;color:var(--ink-2);line-height:1.6}
/* hanging price tag (k1) */
.ptag{background:var(--paper);border-radius:12px;padding:24px 18px 14px;box-shadow:0 2px 4px rgba(26,28,31,.08),0 10px 24px rgba(26,28,31,.10);position:relative}
.ptag::before{content:"";position:absolute;top:9px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--band);box-shadow:inset 0 1px 2px rgba(0,0,0,.28)}

/* ===================== 7. add button -> stepper (shop.js) ===================== */
.addbox{min-height:52px}
.stepper{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:52px;border:2px solid var(--red);border-radius:var(--r1);padding:0 4px;background:var(--red-tint)}
.stepper button{width:44px;height:44px;border:0;border-radius:8px;background:var(--paper);color:var(--red);display:grid;place-items:center;box-shadow:0 1px 2px rgba(26,28,31,.14)}
.stepper button:hover{background:var(--red);color:#fff}
.stepper span{font-size:16px;font-weight:700;color:var(--ink);text-align:center;line-height:1.35}
.stepper b{font:800 20px/1 var(--fd)}

/* ===================== 8. inputs ===================== */
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-weight:700;font-size:17px}
.input{min-height:52px;border:2px solid var(--ctl);border-radius:var(--r1);background:var(--paper);padding:0 16px;font-size:18px;width:100%}
.input:focus{border-color:var(--blue);outline:3px solid var(--blue);outline-offset:2px}
.input[aria-invalid="true"]{border-color:var(--red)}
.input-ltr{direction:ltr;text-align:center;font:700 22px/1 var(--fd);letter-spacing:.06em}
.input-ltr::placeholder{font-weight:500;letter-spacing:0;font-size:18px}
.msg-err{color:var(--red-2);font-weight:700;font-size:16px}

/* ===================== 9. turntable stage (stage.js builds the inside) ===================== */
.stage{position:relative}
.stage__box{position:relative;height:var(--stage-h,480px);border-radius:var(--r3);overflow:hidden;isolation:isolate;
  background:linear-gradient(to bottom,#EFEBE4 0,var(--band) 58%,#E1DCD2 100%)}
.stage__cv{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:grab;border-radius:var(--r3);outline-offset:-3px}
.stage__cv:active{cursor:grabbing}
.stage__photo{position:absolute;inset:68px 24px 76px;margin:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.stage__photo img{max-height:calc(100% - 34px);max-width:100%;width:auto;mix-blend-mode:multiply}
.stage__photo figcaption{font-size:16px;color:var(--ink-2);line-height:1.5}
.stage.is-photo .stage__photo{display:flex}
.stage.is-photo .stage__cv,.stage.is-photo .stage__marks,.stage.is-photo .stage__rot,.stage.is-photo .stage__pause,.stage.is-photo .stage__dims{visibility:hidden}
.stage__top{position:absolute;top:12px;inset-inline-end:12px;z-index:4;display:flex;gap:8px}
.seg{display:inline-flex;background:var(--paper);border:2px solid var(--ink);border-radius:var(--r1);padding:2px;gap:2px}
.seg button{border:0;background:transparent;min-height:44px;padding:4px 14px;border-radius:7px;font:700 16px/1.3 var(--fb);display:flex;align-items:center;gap:7px;color:var(--ink)}
.seg button .ico{width:20px;height:20px}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.stage__bot{position:absolute;bottom:12px;inset-inline:12px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.stage__bot>*{pointer-events:auto}
.stage__rot,.stage__pause{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0 16px;border:2px solid var(--ctl);border-radius:999px;background:rgba(255,255,255,.96);color:var(--ink);font:700 16px/1.3 var(--fb)}
.stage__rot:hover,.stage__pause:hover{border-color:var(--ink)}
.stage__rot .ico,.stage__pause .ico{width:20px;height:20px}
.stage__pause{border-color:transparent;background:rgba(255,255,255,.8);color:var(--ink-2)}
.stage__pause[hidden]{display:none}
.stage__lite{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:5;display:none;font-size:16px;white-space:nowrap}
.stage.is-lite .stage__lite{display:inline-flex}
.stage.is-lite .stage__bot{visibility:hidden}
.stage.no3d .stage__top,.stage.no3d .stage__bot{display:none}
.stage__marks{position:absolute;inset:0;pointer-events:none;z-index:3}
.mark{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border:0;background:transparent;pointer-events:auto;display:grid;place-items:center;padding:0}
.mark span{width:32px;height:32px;border-radius:16px;background:var(--ink);color:#fff;font:800 16px/1 var(--fd);display:grid;place-items:center;box-shadow:0 0 0 3px #fff;transition:transform .15s}
.mark[aria-pressed="true"] span{background:var(--blue);transform:scale(1.12)}
/* a hotspot facing away is hidden from sight, pointer, keyboard and screen reader alike */
.mark.off{opacity:0;visibility:hidden;pointer-events:none}
.stage.is-plan .stage__box{background:var(--blue)}
.stage.is-plan .mark{display:none}
.stage__dims{position:absolute;inset:0;pointer-events:none;z-index:2}
.dim{position:absolute;left:0;top:0;transform:translate(-50%,-50%);background:var(--ph-bg);color:var(--ph-ink);font:700 16px/1.4 var(--fb);padding:2px 10px;border-radius:8px;white-space:nowrap}
.stage__tag{position:absolute;z-index:5;top:20px;inset-inline-start:20px;width:220px;background:var(--paper);border-radius:12px;padding:26px 18px 14px;box-shadow:0 2px 4px rgba(26,28,31,.08),0 10px 24px rgba(26,28,31,.10);transform:rotate(1.8deg);transform-origin:50% 0;display:flex;flex-direction:column}
.stage__tag::before{content:"";position:absolute;top:10px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--band);box-shadow:inset 0 1px 2px rgba(0,0,0,.28)}
.stage__tag-code{font-size:16px;color:var(--ink-2);font-weight:500}
.stage__tag-name{font:800 19px/1.5 var(--fd);margin-top:2px}
.stage__tag-sub{font-size:16px;color:var(--ink-2);line-height:1.5}
.stage__tag-price{display:flex;align-items:baseline;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line);font-size:16px;color:var(--ink-2)}
.stage__tag-price b{font:800 27px/1.2 var(--fd);color:var(--ink)}
.stage.is-plan .stage__tag{display:none}
.stage__callout{margin-top:10px;font-size:16px;line-height:1.7;background:var(--paper);border:1px solid var(--line);border-radius:var(--r1);padding:8px 14px}
.stage__callout .n{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:14px;background:var(--blue);color:#fff;font:800 16px/1 var(--fd);margin-inline-end:8px;vertical-align:1px}
.stage__honest{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:16px;line-height:1.7;color:var(--ink-2)}
.stage__honest .ico{width:20px;height:20px;margin-top:3px;color:var(--blue)}
/* tier chips (stage.js fills the fieldset) */
.tiers{border:0;margin:0;padding:0;min-width:0}
.tiers legend{font-weight:700;font-size:16px;padding:0;margin-bottom:6px}
.tierchips{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.tierchip{position:relative;display:block}
.tierchip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;width:100%;height:100%}
.tierchip span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;padding:4px 6px;border:2px solid var(--ctl);border-radius:var(--r1);background:var(--paper);text-align:center;line-height:1.3}
.tierchip b{font-weight:700;font-size:17px}
.tierchip small{font-size:16px;color:var(--ink-2)}
.tierchip input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.tierchip input:checked+span small{color:var(--on-ink-2)}
.tierchip input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}

/* ===================== 10. ink price board «نرخ‌نامه» (k6 information design) ===================== */
.board{background:var(--ink);color:var(--on-ink);border-radius:var(--r3);padding:28px 32px}
.board__head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding-bottom:14px;border-bottom:2px solid var(--on-ink)}
.board__head h3{font-size:26px;color:#fff}
.board__date{font-size:16px;color:var(--on-ink-2)}
.board__list{list-style:none}
.board-row{display:grid;grid-template-columns:auto minmax(0,auto) 1fr auto;align-items:center;column-gap:14px;min-height:64px;border-bottom:1px solid var(--ink-line)}
.board-row__code{font-size:16px;font-weight:700;color:var(--blue-3);min-width:72px}
.board-row__name{font-size:18px;font-weight:500;line-height:1.5}
.board-row__name small{display:block;font-size:16px;color:var(--on-ink-2);font-weight:400}
.board-row__dots{border-bottom:3px dotted #6E6A63;height:0;min-width:24px;align-self:center;margin-top:8px}
.board-row__price{font:800 26px/1 var(--fd);color:#fff;white-space:nowrap}
.board-row__price small{font:500 16px/1 var(--fb);color:var(--on-ink-2);margin-inline-start:6px}
.board__foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;padding-top:16px;font-size:16px;color:var(--on-ink-2);line-height:1.7}
.board .link{color:#fff}

/* ===================== 11. FAQ ===================== */
.faq details{background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
.faq summary{list-style:none;cursor:pointer;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;font-weight:700;font-size:18px;border-radius:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;background:var(--plaster);display:grid;place-items:center;font:600 24px/32px var(--fb);text-align:center}
.faq details[open] summary::after{content:"−"}
.faq details>div{padding:0 20px 18px;color:var(--ink-2)}

/* ===================== 12. footer ===================== */
/* ---- SHARED FOOTER ---- */
.ftr{background:var(--ink);color:var(--on-ink);padding:56px 0 32px;font-size:17px}
.ftr__grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);gap:36px}
.ftr h3{font:700 18px/1.5 var(--fb);margin:0 0 10px;color:#fff}
.ftr a{color:var(--on-ink);text-decoration:none}
.ftr a:hover{text-decoration:underline}
.ftr ul{list-style:none;display:grid}
.ftr ul a{display:inline-flex;align-items:center;gap:.3em;min-height:44px}
.ftr address{font-style:normal;color:var(--on-ink-2);margin:12px 0;line-height:1.8}
.ftr .wordmark b{color:#fff}
.ftr .wordmark small{color:var(--on-ink-2)}
.ftr dl{margin:0;display:grid;gap:4px}
.ftr dl div{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ftr dt{color:var(--on-ink-2)}
.ftr dd{margin:0;font-weight:700}
.ftr .ph{background:#3B3423;color:#F5DE96;border-bottom-color:#8A6D1C}
.trustph{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.trustph div{width:104px;height:104px;border:1.5px dashed #8C8478;border-radius:12px;display:grid;place-items:center;text-align:center;font-size:16px;color:var(--on-ink-2);line-height:1.5;padding:8px}
.ftr__base{margin-top:36px;padding-top:18px;border-top:1px solid var(--ink-line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--on-ink-2);font-size:16px}
/* ---- /SHARED FOOTER ---- */

/* ---- STAFF HEADER / FOOTER (panel.html, packing.html; built by _work/pp-build.py) ----
   Staff pages carry no search, cart, category bar, public footer or bottom bar. */
.shdr{background:var(--ink);color:var(--on-ink);border-bottom:3px solid var(--gold);position:sticky;top:0;z-index:40}
.shdr__in{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;min-height:72px}
.shdr .brand{color:#fff}
.shdr .seal{width:44px;height:44px}
.shdr .wordmark b{color:#fff;font-size:24px}
.shdr .wordmark small{color:var(--on-ink-2);font-weight:700}
.shdr__links{margin-inline-start:auto;display:flex;align-items:center;flex-wrap:wrap;gap:4px 22px;font-size:16px}
.shdr__links a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--on-ink);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(243,240,234,.45)}
.shdr__links a[aria-current="page"]{color:#fff;font-weight:700;text-decoration-color:var(--gold);text-decoration-thickness:3px}
.shdr__links .ico{width:20px;height:20px;color:var(--on-ink-2)}
.shdr__who{display:inline-flex;align-items:center;gap:6px;color:var(--on-ink-2)}
.sftr{background:var(--ink);color:var(--on-ink-2);padding:22px 0 24px;font-size:16px;line-height:1.7}
.sftr__in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px}
.sftr a{color:var(--on-ink);min-height:44px;display:inline-flex;align-items:center}
.shdr .ph,.sftr .ph{background:#3B3423;color:#F5DE96;border-bottom-color:#8A6D1C}

/* ===================== 13. toast, mobile bottom bar ===================== */
.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,16px);opacity:0;visibility:hidden;background:var(--ink);color:#fff;border-radius:14px;padding:8px 10px 8px 16px;display:flex;gap:12px;align-items:center;z-index:80;transition:.2s;max-width:calc(100% - 32px);box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:16px}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.toast .ico{color:#8FD3A8}
.toast a{background:var(--paper);color:var(--ink);border-radius:10px;min-height:44px;padding:0 14px;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;text-decoration:none}
.toast a:focus-visible{outline-color:#fff}
/* ---- SHARED BOTTOM BAR (mobile): always text labels ---- */
.mbar{display:none}

/* ===================== 14. responsive ===================== */
@media (max-width:1180px){
  .topbar__place{display:none}
  .grid-6{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1020px){
  .grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ftr__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:719px){
  :root{--gutter:16px}
  body{font-size:17px;padding-bottom:84px}
  .topbar__in{gap:12px;min-height:40px}
  .topbar__shop .lbl-long,.topbar__links .hide-m,.topbar__tel{display:none!important}
  .topbar__links{gap:14px}
  .hdr{position:static}
  .hdr__in{flex-wrap:wrap;gap:10px;padding-block:10px 12px;min-height:0}
  .seal{width:38px;height:38px}
  .brand{gap:8px}
  .wordmark b{font-size:22px}
  .wordmark small{font-size:16px}
  .hdr__tel{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;min-height:44px;font-weight:800;color:var(--ink);text-decoration:none;font-size:16px}
  .hdr__tel .ico{width:18px;height:18px;color:var(--blue)}
  /* the cart lives in the labelled bottom bar on phones, so the header row has room for the phone number */
  .cartbtn{display:none}
  .search{order:3;flex:1 0 100%;max-width:none;margin:0}
  .search>button span{display:none}
  .search>button{padding:0 16px}
  .catbar{border-top:0}
  .catbar ul{gap:8px;padding:0 0 12px}
  .catbar a{font-size:16px;padding:0 14px;background:var(--plaster);border-radius:999px;min-height:44px;border:1px solid var(--line)}
  .catbar li:first-child a{padding-inline-start:14px}
  /* phones: a labelled «همهٔ ۱۲ گروه» button first, then two groups (and the page's own group).
     shop.js adds .catbar--fold; without JS all 12 simply wrap. Open: all 12 in two columns. */
  .catbar__more-li{order:-1}
  .catbar--fold .catbar__more{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:2px solid var(--ink);border-radius:999px;background:var(--paper);color:var(--ink);font:700 16px/1.3 var(--fb);white-space:nowrap}
  .catbar__more .ico{width:20px;height:20px;transition:transform .15s}
  .catbar__more[aria-expanded="true"] .ico{transform:rotate(180deg)}
  .catbar--fold:not(.is-open) li:nth-child(n+3):not(.catbar__more-li){display:none}
  .catbar--fold:not(.is-open) li:has(a[aria-current="page"]){display:block}
  .catbar--fold.is-open ul{display:grid;grid-template-columns:1fr 1fr}
  .catbar--fold.is-open .catbar__more-li{grid-column:1/-1}
  .catbar--fold.is-open a,.catbar--fold.is-open .catbar__more{width:100%;justify-content:center}
  .sec{padding:40px 0}
  .sec-head{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:20px}
  .sec-head h2{font-size:26px}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .grid-4,.grid-6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid{gap:12px}
  .lead{font-size:17px}
  .pcard__body{padding:10px 12px 12px}
  .pcard__title{font-size:16px;line-height:1.55}
  .price b{font-size:21px}
  .pcard .btn{font-size:16px;padding-inline:8px;gap:6px}
  .pcard .btn .ico{width:20px;height:20px}
  .stepper button{width:40px;height:44px}
  .codechip{top:8px;inset-inline-start:8px;padding:0 7px}
  .stage__box{height:min(var(--stage-h-m,340px),52vh)}
  .stage__top{top:10px;inset-inline-end:10px}
  .seg button{padding:4px 10px}
  .stage__bot{bottom:10px;inset-inline:10px}
  .stage__rot{padding:0 12px}
  /* icon-only on phones, but the name stays for screen readers (visually hidden, not display:none) */
  .stage__pause span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .stage__pause{width:48px;padding:0;justify-content:center}
  .stage__photo{inset:62px 12px 66px}
  .stage__tag{position:relative;top:auto;inset-inline-start:auto;width:auto;transform:none;margin-top:10px;padding:10px 16px;padding-inline-start:40px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"code price" "name price";align-items:center;column-gap:12px;border:1px solid var(--line);box-shadow:none}
  .stage__tag::before{left:auto;inset-inline-start:15px;top:50%;margin:-5px 0 0}
  .stage__tag-code{grid-area:code}
  .stage__tag-name{grid-area:name;font-size:18px;margin:0}
  .stage__tag-sub{display:none}
  .stage__tag-price{grid-area:price;margin:0;padding:0;border:0;flex-direction:column;align-items:flex-end;gap:0;line-height:1.3}
  .stage__tag-price b{font-size:25px}
  .board{padding:20px 16px;border-radius:var(--r2)}
  .board__head{flex-direction:column;align-items:flex-start;gap:4px}
  .board__head h3{font-size:22px}
  .board-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "code price";row-gap:2px;padding:10px 0;min-height:0}
  .board-row__code{grid-area:code}
  .board-row__name{grid-area:name;font-size:17px}
  .board-row__dots{display:none}
  .board-row__price{grid-area:price;font-size:21px}
  .faq summary{font-size:17px;padding:10px 16px}
  .faq details>div{padding:0 16px 16px}
  .ftr{padding:40px 0 28px}
  .ftr__grid{grid-template-columns:1fr 1fr;gap:20px 16px}
  .ftr__grid>div:first-child,.ftr__grid>div:last-child{grid-column:1/-1}
  .ftr ul a{min-height:44px}
  .trustph div{width:96px;height:80px}
  .toast{bottom:96px}
  .mbar{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:50;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(26,28,31,.08)}
  .mbar a{min-height:56px;border-radius:var(--r1);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;text-decoration:none;font-size:16px;line-height:1.25}
  .mbar .ico{width:22px;height:22px}
  .mbar__call,.mbar__track{flex:0 0 auto;padding:0 12px;border:2px solid var(--ink);color:var(--ink);background:var(--paper);flex-direction:column;gap:0}
  .mbar__call .ico,.mbar__track .ico{width:20px;height:20px}
  /* empty cart: an outline button, not a red call to a dead action; red once something is in it (shop.js .has-items) */
  .mbar__cart{flex:1;padding:0 12px;background:var(--paper);color:var(--ink);border:2px solid var(--ink)}
  .mbar__cart small{color:var(--ink-2)}
  .mbar__cart.has-items{background:var(--red);border-color:var(--red);color:#fff}
  .mbar__cart.has-items small{color:#fff}
  .mbar__cart span{display:flex;flex-direction:column;align-items:flex-start}
  .mbar__cart small{font-size:16px;font-weight:500}
  /* staff pages have no bottom bar */
  body.staff{padding-bottom:0}
  .shdr{position:static}
  .shdr__in{min-height:0;padding-block:10px;gap:6px 16px}
  .shdr .seal{width:38px;height:38px}
  .shdr .wordmark b{font-size:21px}
  .shdr__links{width:100%;margin:0;gap:0 18px}
  .sftr__in{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
