/* X · X-Height — "Type, printed".
   A type foundry for objects: black on paper, a strict grid, and the only color comes from filament.
   Phone-first; breakpoints at 768 (tablet) and 1100 (desktop). Logical properties throughout, so RTL mirrors. */

:root {
  --paper: #f1efe9;
  --paper-2: #e6e3db;
  --ink: #0e0e0e;
  --ink-2: #2b2a27;
  --grey: #5c5a55;
  --grey-ink: #aaa69d;           /* grey text on ink */
  --rule: rgba(14, 14, 14, .2);
  --sand: #d9bf93;
  --charcoal: #34322f;
  --pearl: #fbfaf6;
  --terracotta: #c4673f;
  --f-display: "Anybody", "Vazirmatn", "Arial Narrow", Arial, sans-serif;
  --f-text: "Geist", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 16px;
  --hdr: 56px;
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Shared room viewer */
  --rv-bg: #f1efe9;
  --rv-surface: #fbfaf6;
  --rv-text: #0e0e0e;
  --rv-muted: #5c5a55;
  --rv-line: rgba(14, 14, 14, .22);
  --rv-accent: #0e0e0e;
  --rv-accent-text: #f1efe9;
  --rv-radius: 0px;
  --rv-font: "Geist", "Vazirmatn", system-ui, sans-serif;
  --rv-font-display: "Anybody", "Vazirmatn", sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 48px; --hdr: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--hdr) + 12px); }
html.is-locked { overflow: hidden; }
.i18n-wait body { visibility: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.75; }
html[lang="ar"] body * { letter-spacing: 0 !important; }
svg, canvas { display: block; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }
html[dir="rtl"] .dir-icon { transform: scaleX(-1); }
.skip { position: fixed; inset-inline-start: 8px; top: -80px; z-index: 200; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.1; text-decoration: none; text-align: center;
  transition: background-color .16s, color .16s, transform .1s, border-color .16s;
}
html[lang="ar"] .btn { font-family: "Vazirmatn", sans-serif; font-weight: 700; font-size: 17px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--sand); border-color: var(--sand); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.hbtn svg { width: 22px; height: 22px; flex: none; }
.hbtn:hover { background: var(--paper-2); }
.hbtn:active { transform: translateY(1px); }
.hbtn--line { border: 2px solid var(--ink); }
.hbtn:disabled { opacity: .35; cursor: default; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 600; font-size: 15px;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip svg { width: 16px; height: 16px; }
.chip--on { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-block-end: 1px solid var(--ink); }
.hdr__bar { height: var(--hdr); display: flex; align-items: center; gap: 4px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-inline-end: auto; text-decoration: none; color: var(--ink); }
.logo__mark { width: 19px; height: 25px; flex: none; color: var(--ink); }
.logo__word { font-family: var(--f-display); font-weight: 800; font-stretch: 76%; font-size: 21px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
html[lang="ar"] .logo__word { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 20px; }
.nav { display: none; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 7px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: 2px; }
.hbtn__txt { display: none; font-weight: 500; font-size: 15px; }
.hbtn--lang { font-weight: 600; font-size: 16px; padding: 0 8px; min-width: 48px; }
.hbtn--lang:lang(ar) { font-family: "Vazirmatn", sans-serif; }
.cart__n {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 700 12px/20px var(--f-text); text-align: center;
}
.cart__n.is-zero { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cart.is-bump .cart__n { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } }
.lang { display: inline-flex; box-shadow: inset 0 0 0 2px var(--ink); }
.lang button { min-width: 52px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; }
.lang button:lang(ar) { font-family: "Vazirmatn", sans-serif; font-size: 16px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button[aria-pressed="false"]:hover { background: var(--paper-2); }
.lang--hdr { display: none; margin-inline: 6px; }
@media (max-width: 379px) {
  .logo__word { font-size: 18px; }
  .logo { gap: 6px; }
  .hbtn--lang { min-width: 44px; padding: 0 6px; }
}
@media (min-width: 1100px) {
  .nav { display: block; margin-inline-end: auto; }
  .logo { margin-inline-end: 28px; }
  .logo__word { font-size: 23px; }
  .hbtn__txt { display: inline; }
  .hbtn--search { padding: 0 14px; box-shadow: inset 0 0 0 2px var(--ink); min-width: 120px; justify-content: flex-start; }
  .lang--hdr { display: inline-flex; }
  .hbtn--lang, .menu-btn { display: none; }
}

/* ---------- Sheets (menu + search dialogs) ---------- */
dialog.sheet {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overscroll-behavior: contain;
}
dialog.sheet[open] { animation: sheetIn .26s var(--ease); }
dialog.sheet::backdrop { background: rgba(14, 14, 14, .45); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px); } }
.sheet__in { height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.sheet__top { flex: none; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 8px; border-block-end: 1px solid var(--ink); }
.sheet__nav ul { list-style: none; margin: 0; padding: 0; }
.sheet__nav a {
  display: flex; align-items: center; gap: 14px; min-height: 76px; text-decoration: none; border-block-end: 1px solid var(--rule);
  font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: clamp(32px, 9.5vw, 60px); line-height: 1;
}
html[lang="ar"] .sheet__nav a { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: clamp(28px, 8vw, 52px); line-height: 1.3; }
.sheet__nav a:hover { background: var(--paper-2); }
.sheet__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; }
.sheet__nav a svg { width: 28px; height: 28px; margin-inline-start: auto; flex: none; }
.sheet__no { flex: none; width: 28px; font: 600 14px/1 var(--f-text); color: var(--grey); }
.sheet__foot { margin-top: auto; display: grid; gap: 12px; padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.sheet__search { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; font-weight: 600; font-size: 17px; text-align: start; }
.sheet__search svg { width: 22px; height: 22px; }
.sheet__label { font-size: 14px; font-weight: 600; color: var(--grey); margin-top: 8px; }
.lang--big { display: flex; }
.lang--big button { flex: 1; min-height: 56px; font-size: 18px; }
.sheet__top--search { height: auto; min-height: 76px; padding-block: 8px; }
.sheet__top--search:focus-within { box-shadow: inset 0 -4px 0 var(--terracotta); }
.bigfield {
  flex: 1; width: 100%; min-width: 0; align-self: stretch; border: 0; background: transparent; padding: 0;
  font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: clamp(28px, 7.4vw, 72px); line-height: 1.2;
  caret-color: var(--terracotta);
}
html[lang="ar"] .bigfield { font-family: "Vazirmatn", sans-serif; font-weight: 700; font-size: clamp(26px, 6.6vw, 60px); }
.bigfield:focus, .bigfield:focus-visible { outline: none; }
.bigfield::placeholder { color: #6b6862; opacity: 1; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.sres { padding-block: 16px 48px; }
.sres__count { font-size: 14px; font-weight: 600; color: var(--grey); margin-bottom: 10px; }
.sres__list { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--ink); }
.sres__row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "no name price" "no meta price";
  column-gap: 12px; row-gap: 2px; align-items: baseline; min-height: 68px; padding-block: 12px; text-decoration: none; border-block-end: 1px solid var(--rule);
}
.sres__row:hover { background: var(--paper-2); }
.sres__no { grid-area: no; font: 600 14px/1.4 var(--f-text); color: var(--grey); }
.sres__name { grid-area: name; font-family: var(--f-display); font-weight: 700; font-stretch: 84%; font-size: 21px; line-height: 1.15; }
.sres__meta { grid-area: meta; font-size: 14px; color: var(--grey); }
.sres__price { grid-area: price; font-family: var(--f-display); font-weight: 750; font-size: 19px; white-space: nowrap; }
.sres__none { padding-block: 24px; display: grid; gap: 14px; }
.sres__none-t { font-family: var(--f-display); font-weight: 700; font-stretch: 84%; font-size: 26px; line-height: 1.15; }
html[lang="ar"] .sres__none-t, html[lang="ar"] .sres__name { font-family: "Vazirmatn", var(--f-display); }
.sres__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sres__try > span { font-weight: 600; margin-inline-end: 4px; }
@media (min-width: 1100px) {
  .sres__row { grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) auto; grid-template-areas: "no name meta price"; min-height: 76px; }
  .sres__name { font-size: 30px; }
  .sres__price { font-size: 24px; }
}

/* ---------- Typography helpers ---------- */
.eyebrow { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { font-size: 15.5px; text-transform: none; }
.eyebrow__no { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: 15px; letter-spacing: 0; padding: 2px 6px; background: var(--ink); color: var(--paper); line-height: 1.2; }
.h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: clamp(38px, 10vw, 96px); line-height: .94; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] .h2 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: clamp(32px, 8.4vw, 78px); line-height: 1.3; }
.lede { font-size: 18px; line-height: 1.5; max-width: 38ch; }
html[lang="ar"] .lede { font-size: 19px; line-height: 1.75; }
.sec { padding-block: 56px; border-block-end: 1px solid var(--ink); }
.sec-head { display: grid; gap: 14px; margin-bottom: 32px; }
.sec-sub { max-width: 52ch; color: var(--grey); font-size: 17px; }
html[lang="ar"] .sec-sub { font-size: 18px; }
@media (min-width: 1100px) {
  .sec { padding-block: 96px; }
  .sec-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; column-gap: 48px; margin-bottom: 48px; }
  .sec-head .eyebrow { grid-column: 1 / -1; }
  .sec-sub { padding-bottom: 6px; }
}

/* ---------- Home: hero ---------- */
.hero { border-block-end: 1px solid var(--ink); }
.hero__grid { display: grid; gap: 18px; padding-block: 18px 0; }
.hero__copy { display: grid; gap: 14px; align-content: start; }
.hero__kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--grey); }
.hero__kicker::before { content: ""; width: 22px; height: 2px; background: var(--ink); flex: none; }
.hero__title { font-family: var(--f-display); font-weight: 820; font-size: clamp(50px, 14.2vw, 180px); line-height: .9; letter-spacing: -.025em; }
.kline { display: block; white-space: nowrap; font-weight: var(--wg, 820); font-stretch: calc(var(--wd, 100) * 1%); }
.kline .ch { font-weight: calc(var(--wg, 820) + var(--lw, 0)); }
html[lang="ar"] .hero__title { font-family: "Vazirmatn", sans-serif; font-size: clamp(46px, 13vw, 150px); line-height: 1.22; letter-spacing: 0; }
html[lang="ar"] .kline { font-weight: var(--wg, 850); }
.hero__ctas { display: flex; gap: 10px; margin-top: 4px; }
.hero__ctas .btn { flex: 1 1 0; padding-inline: 12px; }
.stage { margin: 0 calc(var(--gut) * -1); }
.stage__view {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-block: 1px solid var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(14, 14, 14, .07) 23px 24px);
}
.stage__poster, .stage__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage__poster { transition: opacity .5s; }
.stage__canvas { opacity: 0; transition: opacity .5s; touch-action: pan-y; cursor: grab; }
.stage__canvas:active { cursor: grabbing; }
.stage.is-live .stage__canvas { opacity: 1; }
.stage.is-live .stage__poster { opacity: 0; }
.stage__bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-inline: var(--gut); font-size: 14px; }
.stage__layer { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage__fil { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.stage__fil i { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px var(--ink); background: var(--sw, var(--terracotta)); transition: background-color .3s; }
.stage__hint { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; padding: 6px 10px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-size: 13px; font-weight: 600; pointer-events: none; }
.stage__bar .hbtn { margin-inline-start: auto; }
.stage__bar .hbtn { box-shadow: inset 0 0 0 2px var(--ink); }
.hero__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-block-start: 1px solid var(--ink); }
.hero__specs > div { padding: 14px 0; padding-inline-end: 12px; border-block-end: 1px solid var(--rule); }
.hero__specs dt { font-size: 13px; font-weight: 600; color: var(--grey); }
.hero__specs dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: 24px; line-height: 1.1; }
html[lang="ar"] .hero__specs dd { font-family: "Vazirmatn", var(--f-display); font-size: 22px; }

@media (min-width: 768px) {
  .hero__grid { padding-block: 32px 0; }
  .stage { margin: 0; }
  .stage__view { aspect-ratio: 16 / 9; border: 1px solid var(--ink); }
  .stage__bar { padding-inline: 0; }
  .hero__ctas .btn { flex: 0 0 auto; padding-inline: 26px; }
  .hero__specs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-block-end: 0; }
  .hero__specs > div { border-block-end: 0; border-inline-end: 1px solid var(--rule); padding-inline: 16px; }
  .hero__specs > div:first-child { padding-inline-start: 0; }
  .hero__specs > div:last-child { border-inline-end: 0; }
}
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 56px; padding-block: 28px; min-height: calc(100svh - var(--hdr) - 96px); }
  .hero__copy { gap: 22px; }
  .hero__title { font-size: clamp(84px, 8.4vw, 138px); }
  html[lang="ar"] .hero__title { font-size: clamp(76px, 7.6vw, 124px); }
  .lede { font-size: 20px; }
  .stage__view { aspect-ratio: 4 / 3; }
  .hero__specs dd { font-size: 30px; }
  .hero__specs > div { padding-block: 18px 22px; }
}

/* ---------- Home: steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-block-start: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-block: 16px; border-block-end: 1px solid var(--ink); }
.step__n {
  display: block; height: 108px; font-family: var(--f-display); font-size: 120px; line-height: .9; text-align: center;
  font-weight: calc(160 + 740 * var(--c, 1)); font-stretch: calc((58 + 62 * var(--c, 1)) * 1%);
}
.step h3 { font-family: var(--f-display); font-weight: 750; font-stretch: 86%; font-size: 24px; line-height: 1.1; }
html[lang="ar"] .step h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.4; }
.step p { margin-top: 6px; color: var(--grey); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; align-content: start; padding: 20px 24px 28px; border-inline-end: 1px solid var(--ink); }
  .step__n { height: 190px; font-size: 220px; text-align: start; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:first-child { padding-inline-start: 0; }
  .step:last-child { border-inline-end: 0; }
  .step__n { height: 240px; font-size: 280px; }
}

/* ---------- Home: finder (big typed search) ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.finder__label { font-size: 15px; font-weight: 600; }
.finder__box { display: flex; align-items: center; gap: 12px; border-block-end: 4px solid var(--ink); transition: border-color .15s; }
.finder__box:focus-within { border-color: var(--terracotta); }
.finder__box svg { width: 30px; height: 30px; flex: none; }
.finder__input {
  flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; padding: 6px 0 8px;
  font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: clamp(28px, 7.8vw, 104px); line-height: 1.15; caret-color: var(--terracotta);
}
html[lang="ar"] .finder__input { font-family: "Vazirmatn", sans-serif; font-weight: 700; font-size: clamp(28px, 7.6vw, 84px); line-height: 1.4; }
.finder__input:focus, .finder__input:focus-visible { outline: none; }
.finder__input::placeholder { color: #6b6862; opacity: 1; }
.finder__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; }
.finder__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.finder__none { display: grid; gap: 12px; padding-block: 12px 4px; }
.finder__none-t { font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: clamp(26px, 6vw, 48px); line-height: 1.1; }
html[lang="ar"] .finder__none-t { font-family: "Vazirmatn", sans-serif; line-height: 1.4; }
.finder__clear { flex: none; }

/* ---------- Product cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--col { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid { gap: 20px; } .grid--col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .grid--col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pc[hidden] { display: none; }
.pc__field { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--fld); border-block-end: 1px solid var(--ink); }
.pc__field--ink { color: var(--ink); }
.pc__field--paper { color: var(--paper); }
.pc__field .art { position: absolute; inset-inline: 9%; top: 15%; width: 82%; height: 78%; transition: transform .35s var(--ease); }
.pc__no { position: absolute; z-index: 1; top: 8px; inset-inline-start: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 56%; font-size: 40px; line-height: .9; }
.tag { position: absolute; top: 10px; inset-inline-end: 10px; padding: 5px 7px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font: 700 13px/1 var(--f-text); letter-spacing: .05em; }
.pc__body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 10px 12px 12px; }
.pc__name { font-family: var(--f-display); font-weight: 720; font-stretch: 82%; font-size: 19px; line-height: 1.12; min-height: 2.3em; }
.pc--big .pc__name { min-height: 0; }
html[lang="ar"] .pc__name { line-height: 1.2; }
.pc__link { display: block; min-height: 44px; text-decoration: none; }
.pc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc__link:focus-visible { outline: none; }
.pc:has(.pc__link:focus-visible) { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--paper), 0 0 0 7px var(--ink); }
.pc__by { font-size: 14px; line-height: 1.4; color: var(--grey); }
html[lang="ar"] .pc__by { font-size: 15px; }
.pc__desc { margin-top: 6px; }
.pc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pc__price { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 22px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
html[lang="ar"] .pc__price { font-family: var(--f-display); }
.addbtn { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--paper); transition: background-color .15s, transform .1s; }
.addbtn svg { width: 20px; height: 20px; }
.addbtn:hover { background: var(--ink-2); }
.addbtn:active { transform: scale(.92); }
.addbtn.is-done { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
@media (hover: hover) {
  .pc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 var(--ink); }
  html[dir="rtl"] .pc:hover { box-shadow: 0 0 0 1px var(--ink), -6px 6px 0 var(--ink); }
  .pc:hover .art { transform: translateY(-4px); }
  .pc:hover .pc__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
}
.pc--big .pc__field { aspect-ratio: 16 / 10; }
.pc--big .pc__no { font-size: 92px; font-stretch: 52%; top: 10px; inset-inline-start: 14px; }
.pc--big .art { inset-inline: 14%; width: 72%; }
.pc--big .pc__body { padding: 16px; gap: 4px; }
.pc--big .pc__name { font-size: 28px; font-stretch: 84%; }
.pc--big .pc__price { font-size: 32px; }
@media (min-width: 1100px) {
  .pc--big { flex-direction: row; }
  .pc--big .pc__field { flex: 0 0 48%; aspect-ratio: auto; min-height: 330px; border-block-end: 0; border-inline-end: 1px solid var(--ink); }
  .pc--big .pc__body { padding: 24px 24px 22px; }
  .pc--big .pc__name { font-size: 34px; }
  .pc--big .pc__desc { font-size: 16px; }
  .pc__name { font-size: 21px; min-height: 0; }
  .pc__link { min-height: 28px; }
}
.subsec[hidden] { display: none; }

/* ---------- Home: category index ---------- */
.cats { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--ink); }
.cat {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px; align-items: center; column-gap: 12px;
  min-height: 80px; padding-block: 12px; text-decoration: none; border-block-end: 1px solid var(--ink); transition: background-color .2s;
}
.cat__no { font: 600 14px/1 var(--f-text); color: var(--grey); align-self: start; padding-top: 10px; }
.cat__txt { display: grid; gap: 4px; min-width: 0; }
.cat__name {
  font-family: var(--f-display); font-size: clamp(30px, 8.2vw, 116px); line-height: 1; letter-spacing: -.015em;
  font-weight: 380; font-stretch: 78%; transition: font-weight .4s var(--ease), font-stretch .4s var(--ease);
}
html[lang="ar"] .cat__name { font-family: "Vazirmatn", sans-serif; font-weight: 350; line-height: 1.35; font-size: clamp(28px, 7.4vw, 96px); }
.cat__count { font-size: 14px; color: var(--grey); }
html[lang="ar"] .cat__count { font-size: 15px; }
.cat svg { width: 30px; height: 30px; transition: transform .25s var(--ease); }
.cat:hover .cat__name, .cat:focus-visible .cat__name { font-weight: 860; font-stretch: 96%; }
.cat:hover svg, .cat:focus-visible svg { transform: translateX(6px); }
html[dir="rtl"] .cat:hover svg, html[dir="rtl"] .cat:focus-visible svg { transform: scaleX(-1) translateX(6px); }
@media (min-width: 1100px) {
  .cat { grid-template-columns: 64px minmax(0, 1fr) auto 40px; min-height: 120px; }
  .cat__txt { display: contents; }
  .cat__name { white-space: nowrap; }
  .cat__count { font-size: 16px; padding-inline: 24px; }
  .cat__no { align-self: center; padding: 0; }
  .cat:hover { background: var(--paper-2); }
}

/* ---------- Home: seller band (the 90% poster) ---------- */
.band { display: grid; border-block-end: 1px solid var(--ink); }
.band__field { background: var(--terracotta); color: var(--ink); padding-block: 40px 36px; }
.band__field .wrap { display: grid; gap: 14px; }
.band__field .h2 { font-size: clamp(44px, 12vw, 120px); }
.band__poster { background: var(--ink); color: var(--paper); padding-block: 24px 44px; overflow: hidden; }
.band__poster .wrap { display: grid; gap: 16px; }
.band__big {
  font-family: var(--f-display); font-size: clamp(120px, 36vw, 330px); line-height: .82; letter-spacing: -.03em; white-space: nowrap;
  font-weight: calc(400 + 500 * var(--c, 1)); font-stretch: calc((66 + 56 * var(--c, 1)) * 1%);
  margin-inline-start: -.04em;
}
.band__of { font-family: var(--f-display); font-weight: 700; font-stretch: 84%; font-size: clamp(26px, 6.4vw, 44px); line-height: 1.05; }
html[lang="ar"] .band__of { font-family: "Vazirmatn", sans-serif; line-height: 1.4; }
.band__text { max-width: 44ch; font-size: 17px; color: #d8d5cd; }
.band__poster .btn { justify-self: start; }
.band__field .eyebrow__no { background: var(--ink); color: var(--terracotta); }
@media (min-width: 1100px) {
  .band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .band__field, .band__poster { padding-block: 72px; }
  .band__field .wrap { padding-inline-end: 24px; max-width: none; margin-inline: 0; padding-inline-start: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
  .band__poster .wrap { max-width: none; margin-inline: 0; padding-inline: 56px var(--gut); }
  html[dir="rtl"] .band__poster .wrap { padding-inline: 56px var(--gut); }
  .band__big { font-size: min(19vw, 290px); }
}

/* ---------- Home: trust list ---------- */
.trustlist { list-style: none; margin: 0; padding: 0; display: grid; border-block-start: 2px solid var(--ink); counter-reset: t; }
.trust__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding-block: 20px; border-block-end: 1px solid var(--ink); }
.trust__no { font-family: var(--f-display); font-weight: 800; font-stretch: 55%; font-size: 52px; line-height: .85; }
.trust__item h3 { font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: 25px; line-height: 1.1; }
html[lang="ar"] .trust__item h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.4; }
.trust__item p { margin-top: 6px; color: var(--grey); max-width: 46ch; }
@media (min-width: 768px) {
  .trustlist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .trustlist { column-gap: 56px; }
  .trust__item { grid-template-columns: 96px minmax(0, 1fr); padding-block: 32px; }
  .trust__no { font-size: 104px; }
  .trust__item h3 { font-size: 34px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding-top: 48px; }
.foot__grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot__brand { grid-column: 1 / -1; display: grid; gap: 6px; }
.foot__tag { font-family: var(--f-display); font-weight: 750; font-stretch: 84%; font-size: 30px; line-height: 1.05; max-width: 16ch; }
html[lang="ar"] .foot__tag { font-family: "Vazirmatn", sans-serif; line-height: 1.4; font-size: 26px; }
.foot__domain { color: var(--grey-ink); font-weight: 500; }
.foot__col h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-ink); margin-bottom: 4px; }
html[lang="ar"] .foot__col h2 { font-size: 15px; text-transform: none; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--paper); }
.foot__col a:hover { text-decoration: underline; }
.foot__langs { grid-column: 1 / -1; }
.foot .lang { box-shadow: inset 0 0 0 2px var(--paper); margin-top: 6px; }
.foot .lang button { color: var(--paper); }
.foot .lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.foot .lang button[aria-pressed="false"]:hover { background: var(--ink-2); }
.foot :focus-visible { outline-color: var(--paper); }
.foot__mark { display: grid; overflow: hidden; margin-top: 44px; border-block: 1px solid #3a3936; padding-block: 8px 14px; user-select: none; }
.foot__word {
  display: block; white-space: nowrap; text-align: center; color: var(--paper);
  font-family: var(--f-display); font-size: 15.4vw; line-height: .95; letter-spacing: -.03em;
  font-weight: calc(300 + 600 * var(--p, .6)); font-stretch: calc((70 + 30 * var(--p, .6)) * 1%);
}
.foot__word--ar { font-family: "Vazirmatn", sans-serif; font-size: 11vw; line-height: 1.35; color: var(--sand); letter-spacing: 0; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 20px calc(24px + env(safe-area-inset-bottom)); color: var(--grey-ink); font-size: 14px; }
@media (min-width: 1100px) {
  .foot { padding-top: 72px; }
  .foot__grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 2fr); }
  .foot__brand, .foot__langs { grid-column: auto; }
  .foot__tag { font-size: 40px; }
  .foot__word { font-size: min(15.4vw, 222px); }
  .foot__word--ar { font-size: min(11vw, 158px); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 120; inset-inline: 12px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: 460px; margin-inline: auto; padding: 14px 16px;
  background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 6px 6px 0 var(--terracotta);
  transform: translateY(150%); opacity: 0; transition: transform .3s var(--ease), opacity .3s; pointer-events: none;
}
.toast svg { width: 20px; height: 20px; flex: none; color: var(--sand); }
.toast.is-on { transform: none; opacity: 1; }
.has-bar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: flex; align-items: center; font-size: 15px; }
.crumbs li + li::before { content: "/"; color: var(--grey); padding-inline: 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 2px; color: var(--grey); text-decoration: underline; text-decoration-color: var(--rule); }
.crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- Product page ---------- */
.pdp__grid { display: grid; gap: 20px; padding-bottom: 40px; }
.viewer { min-width: 0; margin-inline: calc(var(--gut) * -1); }
.viewer__box {
  position: relative; aspect-ratio: 1 / .82; overflow: hidden; border-block: 1px solid var(--ink);
  background-color: var(--pearl);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center center;
}
.viewer__poster, .viewer__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.viewer__poster { transition: opacity .5s; padding: 8% 18%; }
.viewer__canvas { opacity: 0; transition: opacity .5s; touch-action: pan-y; cursor: grab; }
.viewer__canvas:active { cursor: grabbing; }
.viewer.is-live .viewer__canvas { opacity: 1; }
.viewer.is-live .viewer__poster { opacity: 0; }
.viewer__dim { position: absolute; font: 700 13px/1 var(--f-text); color: var(--ink); background: var(--pearl); padding: 3px 5px; pointer-events: none; }
.viewer__dim--w { bottom: 10px; left: 50%; transform: translateX(-50%); }
.viewer__dim--h { top: 12px; inset-inline-start: 10px; }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 8px var(--gut) 0; }
.viewer__hint { font-size: 14px; color: var(--grey); line-height: 1.35; flex: 1; }
.viewer__btns { display: flex; gap: 6px; flex: none; }
.viewer__btns .hbtn { box-shadow: inset 0 0 0 2px var(--ink); }
.viewer__note { padding: 8px var(--gut) 0; font-size: 14px; color: var(--grey); }
.buy { display: grid; gap: 14px; align-content: start; min-width: 0; }
.buy__no { font-size: 14px; font-weight: 600; color: var(--grey); letter-spacing: .04em; }
.buy__title { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(40px, 11vw, 84px); line-height: .92; letter-spacing: -.02em; }
html[lang="ar"] .buy__title { line-height: 1.05; }
.buy__by { color: var(--grey); margin-top: -6px; }
.buy__price { font-family: var(--f-display); font-weight: 800; font-stretch: 92%; font-size: clamp(44px, 11vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.buy__mat { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-block: 1px solid var(--rule); }
.buy__mat dt { font-size: 14px; font-weight: 600; color: var(--grey); min-width: 64px; }
.buy__mat dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.buy__mat b { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1; }
.buy__mat span { font-size: 14px; color: var(--grey); }
.swatches { border: 0; margin: 0; padding: 0; min-width: 0; }
.swatches legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.swatches legend b { font-weight: 700; }
.swgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sw { position: relative; display: flex; align-items: flex-end; min-height: 64px; padding: 10px 12px; background: var(--fld); cursor: pointer; box-shadow: inset 0 0 0 1px var(--ink); transition: box-shadow .15s; }
.sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw__name { position: relative; font-weight: 700; font-size: 15px; line-height: 1.2; }
.sw--ink { color: var(--ink); }
.sw--paper { color: var(--paper); }
.sw__tick { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--paper); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.sw__tick svg { width: 16px; height: 16px; }
.sw:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.sw:has(input:checked) .sw__tick { opacity: 1; transform: none; }
.sw--paper .sw__tick { background: var(--paper); color: var(--ink); }
.sw:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 8px; }
.sw:hover { box-shadow: inset 0 0 0 3px var(--ink); }
.buy__pod { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--paper); font-weight: 600; }
.buy__pod::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--sand); }
.buy__row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: flex; align-items: stretch; box-shadow: inset 0 0 0 2px var(--ink); flex: none; }
.qty button { width: 44px; min-height: 52px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button:hover { background: var(--paper-2); }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 48px; border: 0; background: transparent; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; -moz-appearance: textfield; }
.qty input:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.btn--add { flex: 1; }
.btn--room { width: 100%; }
.buy__true { margin-top: -6px; font-size: 14px; color: var(--grey); text-align: center; }
@media (min-width: 768px) {
  .viewer { margin: 0; }
  .viewer__box { border: 1px solid var(--ink); aspect-ratio: 4 / 3; }
  .viewer__bar, .viewer__note { padding-inline: 0; }
  .swgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pdp__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: start; padding-bottom: 72px; }
  .viewer { position: sticky; top: calc(var(--hdr) + 16px); }
  .viewer__box { aspect-ratio: auto; height: min(calc(100svh - var(--hdr) - 140px), 720px); min-height: 460px; }
  .buy { padding-top: 8px; }
  .swgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw { min-height: 84px; }
}

/* Specimen sheet */
.specs { display: grid; gap: 40px; }
.specs__side { display: grid; gap: 28px; align-content: start; }
.spec__head { display: grid; gap: 14px; }
.sheetlist { margin: 0; display: grid; border-block-start: 2px solid var(--ink); }
.sheetlist > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 14px; border-block-end: 1px solid var(--ink); }
.sheetlist dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
html[lang="ar"] .sheetlist dt { font-size: 15px; text-transform: none; }
.sheetlist dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-stretch: 84%; font-size: 24px; line-height: 1.15; }
html[lang="ar"] .sheetlist dd { font-family: "Vazirmatn", var(--f-display); font-size: 21px; line-height: 1.5; }
.sheetlist .big dd { margin-top: 8px; font-weight: 850; font-stretch: 70%; font-size: clamp(56px, 16vw, 132px); line-height: .92; letter-spacing: -.02em; }
html[lang="ar"] .sheetlist .big dd { font-family: var(--f-display); line-height: 1.1; }
.about { display: grid; gap: 14px; max-width: 62ch; }
.about h3, .petg h3 { font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: 30px; line-height: 1.1; }
html[lang="ar"] .about h3, html[lang="ar"] .petg h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; line-height: 1.4; font-size: 26px; }
.about p { font-size: 18px; }
html[lang="ar"] .about p { font-size: 18.5px; }
.petg { display: grid; gap: 12px; padding: 20px; background: var(--charcoal); color: var(--paper); }
.petg__line { font-size: 18px; font-weight: 500; }
.petg dl { margin: 0; display: grid; gap: 10px; }
.petg dl div { display: grid; gap: 2px; padding-top: 10px; border-block-start: 1px solid #5d5a55; }
.petg dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
html[lang="ar"] .petg dt { font-size: 15px; text-transform: none; }
.petg dd { margin: 0; }
@media (min-width: 1100px) {
  .specs { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; }
  .sheetlist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .sheetlist .big { grid-column: 1 / -1; }
  .specs__side { display: grid; gap: 32px; align-content: start; }
  .petg { padding: 28px; }
}

/* Horizontal rows */
.rowwrap { position: relative; }
.rowhead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rowhead .sec-head { margin: 0; }
.rowbtns { display: none; gap: 8px; }
.rowbtns .hbtn { box-shadow: inset 0 0 0 2px var(--ink); width: 48px; height: 48px; }
.row {
  list-style: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 16px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(74%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.row > .pc { scroll-snap-align: start; }
@media (min-width: 768px) { .row { grid-auto-columns: calc((100% - 40px) / 2.4); gap: 20px; } }
@media (min-width: 1100px) {
  .rowwrap.has-scroll .rowbtns { display: flex; }
  .row { grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; }
}

/* Sticky buy bar (phones and tablets) */
.buybar {
  position: fixed; z-index: 45; inset-inline: 0; bottom: 0; background: var(--paper); border-block-start: 2px solid var(--ink);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .28s var(--ease); visibility: hidden;
}
.buybar.is-on { transform: none; visibility: visible; }
.buybar__in { display: flex; align-items: center; gap: 8px; max-width: var(--max); margin-inline: auto; }
.buybar__info { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.buybar__price { font-family: var(--f-display); font-weight: 800; font-size: 22px; white-space: nowrap; }
.buybar__color { font-size: 14px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.buybar__color i { width: 12px; height: 12px; flex: none; background: var(--sw, var(--sand)); box-shadow: inset 0 0 0 1px var(--ink); }
.buybar .hbtn { box-shadow: inset 0 0 0 2px var(--ink); width: 52px; height: 52px; }
.buybar .btn { min-height: 52px; padding-inline: 18px; }
.pdp-page main { padding-bottom: 0; }
.pdp-page .foot { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  .buybar { display: none; }
  .pdp-page .foot { padding-bottom: 0; }
}

/* ---------- Sell page ---------- */
.shero { border-block-end: 1px solid var(--ink); }
.shero__grid { display: grid; gap: 28px; padding-block: 20px 40px; }
.shero__copy { display: grid; gap: 16px; align-content: start; }
.shero__title { font-family: var(--f-display); font-weight: 820; font-size: clamp(50px, 14vw, 168px); line-height: .9; letter-spacing: -.025em; }
html[lang="ar"] .shero__title { font-family: "Vazirmatn", sans-serif; font-size: clamp(46px, 12.6vw, 140px); line-height: 1.22; letter-spacing: 0; }
.shero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.textlink svg { width: 18px; height: 18px; }
/* The equation: AED 100 split into three fields */
.eq { display: grid; gap: 12px; margin: 0; }
.eq__label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .eq__label { text-transform: none; font-size: 15px; }
.eq__total { font-family: var(--f-display); font-weight: 850; font-stretch: 74%; font-size: clamp(64px, 19vw, 150px); line-height: .85; letter-spacing: -.02em; }
.eq__bar { display: flex; height: 64px; box-shadow: 0 0 0 1px var(--ink); }
.eq__bar span { display: block; height: 100%; }
.eq__bar .m { flex: 73 0 0; background: var(--pearl); }
.eq__bar .y { flex: 24.3 0 0; background: var(--terracotta); box-shadow: inset 1px 0 0 var(--ink); }
.eq__bar .u { flex: 2.7 0 0; background: var(--ink); }
.eq__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-block-start: 1px solid var(--ink); }
.eq__parts li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding-block: 12px; border-block-end: 1px solid var(--rule); }
.eq__parts li i { width: 14px; height: 14px; align-self: center; box-shadow: inset 0 0 0 1px var(--ink); }
.eq__parts b { font-weight: 700; }
.eq__parts small { display: block; font-size: 14px; color: var(--grey); }
.eq__parts strong { font-family: var(--f-display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq__cap { font-size: 14px; color: var(--grey); }
@media (min-width: 1100px) {
  .shero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: center; padding-block: 56px 72px; min-height: calc(100svh - var(--hdr) - 40px); }
  .shero__title { font-size: clamp(80px, 7.6vw, 128px); }
  html[lang="ar"] .shero__title { font-size: clamp(72px, 7vw, 116px); }
  .eq { padding: 32px; box-shadow: inset 0 0 0 2px var(--ink); background: var(--pearl); }
  .eq__parts strong { font-size: 34px; }
}
/* Six steps */
.ssteps { list-style: none; margin: 0; padding: 0; display: grid; border-block-start: 2px solid var(--ink); }
.sstep { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding-block: 18px; border-block-end: 1px solid var(--ink); align-items: start; }
.sstep__n { display: block; height: 84px; font-family: var(--f-display); font-size: 96px; line-height: .86; text-align: center; font-weight: calc(160 + 740 * var(--c, 1)); font-stretch: calc((58 + 62 * var(--c, 1)) * 1%); }
.sstep h3 { font-family: var(--f-display); font-weight: 750; font-stretch: 86%; font-size: 22px; line-height: 1.12; padding-top: 6px; }
html[lang="ar"] .sstep h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.45; }
.sstep p { margin-top: 6px; color: var(--grey); }
@media (min-width: 768px) {
  .ssteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sstep { grid-template-columns: 1fr; padding: 20px 24px 28px; border-inline-end: 1px solid var(--ink); }
  .sstep__n { height: 150px; font-size: 170px; text-align: start; }
}
@media (min-width: 1100px) {
  .ssteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sstep:nth-child(3n + 1) { padding-inline-start: 0; }
  .sstep:nth-child(3n) { border-inline-end: 0; }
}
/* Calculator */
.calc { display: grid; gap: 28px; }
.calc__form { display: grid; gap: 28px; margin: 0; min-width: 0; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.field__label, .field legend { display: flex; align-items: baseline; gap: 10px; padding: 0; font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: 24px; line-height: 1.15; }
html[lang="ar"] .field__label, html[lang="ar"] .field legend { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 21px; line-height: 1.5; }
.field__label .n, .field legend .n { font: 700 14px/1 var(--f-text); padding: 3px 6px; background: var(--ink); color: var(--paper); align-self: center; }
.drop { display: grid; gap: 4px; justify-items: start; padding: 16px; box-shadow: inset 0 0 0 2px var(--ink); background-image: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(14, 14, 14, .05) 10px 11px); }
.drop.is-over { background-color: var(--sand); }
.drop svg { width: 26px; height: 26px; }
.drop b { font-weight: 700; }
.drop span { font-size: 14px; color: var(--grey); }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.file { position: relative; display: grid; gap: 2px; align-content: start; min-height: 76px; padding: 12px; box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); cursor: pointer; }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.file b { font-weight: 700; font-size: 15px; line-height: 1.25; }
.file span { font-size: 13px; color: var(--grey); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.file:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.file:has(input:checked) { background: var(--ink); color: var(--paper); }
.file:has(input:checked) span { color: #cfccc4; }
.file:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.est { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--paper-2); font-size: 15px; line-height: 1.45; min-height: 68px; }
html[lang="ar"] .est { font-size: 16px; line-height: 1.7; }
.est svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.est.is-reading { color: var(--grey); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 0 0 2px var(--ink); }
.seg label { position: relative; display: grid; gap: 2px; justify-items: center; align-content: center; min-height: 64px; padding: 8px; cursor: pointer; text-align: center; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.seg b { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1; }
.seg span { font-size: 13px; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: -6px; }
.field__help { font-size: 15px; }
.field__help a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.price { display: flex; align-items: center; gap: 12px; border-block-end: 4px solid var(--ink); }
.price:focus-within { border-color: var(--terracotta); }
.price__cur { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--grey); }
.price input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-family: var(--f-display); font-weight: 820; font-size: clamp(48px, 13vw, 96px); line-height: 1.1; font-variant-numeric: tabular-nums; caret-color: var(--terracotta); }
.price input:focus, .price input:focus-visible { outline: none; }
.price.is-bad { border-color: var(--ink); border-block-end-style: dashed; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-weight: 600; }
.msg svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.msg.is-ok { background: var(--paper-2); }
.msg.is-bad { background: var(--ink); color: var(--paper); }
.msg.is-bad svg { color: var(--sand); }
.suggest { justify-self: start; }
.result { display: grid; gap: 0; align-content: start; box-shadow: inset 0 0 0 2px var(--ink); background: var(--pearl); }
.result__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-block-end: 2px solid var(--ink); }
.result__top h3 { font-size: 15px; font-weight: 700; }
.rates { display: inline-flex; padding: 4px 8px; background: var(--sand); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.result dl { margin: 0; }
.result__big { display: grid; gap: 4px; padding: 16px 18px; border-block-end: 1px solid var(--ink); }
.result__big dt { font-size: 14px; font-weight: 700; }
.result__big dt small { font-weight: 500; color: var(--grey); font-size: 14px; }
.result__big dd { margin: 0; font-family: var(--f-display); font-weight: 850; font-stretch: 84%; font-size: clamp(48px, 13vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.result__big--earn { background: var(--terracotta); color: var(--ink); }
.result__big--earn dt small { color: var(--ink); }
.result__pair { display: grid; grid-template-columns: 1fr 1fr; border-block-end: 1px solid var(--ink); }
.result__pair > div { padding: 14px 18px; display: grid; gap: 2px; grid-template-rows: 1fr auto; }
.result__pair > div + div { border-inline-start: 1px solid var(--ink); }
.result__pair dt { font-size: 14px; font-weight: 700; }
.result__pair dt small { display: block; font-weight: 500; color: var(--grey); font-size: 13px; }
.result__pair dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 6vw, 30px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.split { display: flex; height: 18px; margin: 16px 18px 0; box-shadow: 0 0 0 1px var(--ink); }
.split span { display: block; height: 100%; transition: flex-basis .35s var(--ease); flex: 0 0 0; }
.split .m { background: var(--paper-2); }
.split .y { background: var(--terracotta); }
.split .u { background: var(--ink); }
.breakdown { padding: 8px 18px 18px; }
.breakdown summary { display: flex; align-items: center; min-height: 48px; font-weight: 700; cursor: pointer; }
.breakdown dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-block-end: 1px solid var(--rule); font-size: 15px; }
.breakdown dt small { display: block; color: var(--grey); font-size: 13px; }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.breakdown .tot { border-block-end: 0; font-weight: 800; }
.estnote { display: grid; gap: 8px; padding: 18px; background: var(--paper-2); }
.estnote h3 { font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: 22px; line-height: 1.15; }
html[lang="ar"] .estnote h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.5; }
.calc__side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.calcstrip {
  position: fixed; z-index: 44; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper);
  transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease);
}
.calcstrip.is-on { transform: none; visibility: visible; }
.calcstrip > div { display: grid; line-height: 1.2; }
.calcstrip small { font-size: 13px; color: var(--grey-ink); }
.calcstrip b { font-family: var(--f-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.calcstrip .is-bad { color: var(--sand); }
.calc-sec { padding-bottom: calc(56px + 64px); }
@media (min-width: 1100px) {
  .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: start; }
  .calc__side { position: sticky; top: calc(var(--hdr) + 20px); }
  .files { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calcstrip { display: none; }
  .calc-sec { padding-bottom: 96px; }
}
/* Material guide */
.guide { display: grid; border-block-start: 2px solid var(--ink); }
.guide__head, .guide__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide__head > div { padding: 16px 14px 18px; display: grid; gap: 6px; align-content: start; }
.guide__head .pla { background: var(--sand); color: var(--ink); }
.guide__head .petg { background: var(--charcoal); color: var(--paper); }
.guide__head b { font-family: var(--f-display); font-weight: 850; font-stretch: 80%; font-size: clamp(48px, 14vw, 120px); line-height: .9; }
.guide__head span { font-size: 15px; font-weight: 500; line-height: 1.35; }
.guide__row { margin: 0; border-block-end: 1px solid var(--ink); }
.guide__row > dt { grid-column: 1 / -1; padding: 12px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
html[lang="ar"] .guide__row > dt { text-transform: none; font-size: 15px; }
.guide__row > dd { margin: 0; padding: 4px 14px 14px; font-size: 15.5px; line-height: 1.45; }
.guide__row > dd + dd { border-inline-start: 1px solid var(--rule); }
html[lang="ar"] .guide__row > dd { font-size: 16.5px; line-height: 1.7; }
.guide__row > dd:first-of-type { padding-inline-start: 0; }
.notes { display: grid; gap: 12px; margin-top: 24px; }
.note { display: grid; gap: 6px; padding: 18px; box-shadow: inset 0 0 0 2px var(--ink); }
.note h3 { font-family: var(--f-display); font-weight: 780; font-stretch: 86%; font-size: 24px; line-height: 1.15; }
html[lang="ar"] .note h3 { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 21px; line-height: 1.5; }
.note--ink { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (min-width: 1100px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__head, .guide__row { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr); }
  .guide__head::before { content: ""; }
  .guide__row > dt { grid-column: auto; padding: 18px 0; }
  .guide__row > dd { padding: 18px 20px; font-size: 16px; }
  .guide__row > dd:first-of-type { padding-inline-start: 20px; border-inline-start: 1px solid var(--rule); }
  .guide__head > div { padding: 24px 20px 28px; }
  .notes { grid-template-columns: 1fr 1fr; gap: 20px; }
}
/* Rules + CTA */
.rules { display: grid; gap: 28px; }
.rules__text { font-size: 18px; max-width: 52ch; }
.banned { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--ink); }
.banned li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-block: 12px; border-block-end: 1px solid var(--ink); font-family: var(--f-display); font-weight: 700; font-stretch: 84%; font-size: clamp(22px, 5.6vw, 40px); line-height: 1.1; }
html[lang="ar"] .banned li { font-family: "Vazirmatn", sans-serif; line-height: 1.45; }
.banned li svg { width: 26px; height: 26px; flex: none; }
.banned__t { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
html[lang="ar"] .banned__t { text-transform: none; font-size: 15px; }
@media (min-width: 1100px) { .rules { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; } }
.scta { background: var(--terracotta); color: var(--ink); padding-block: 64px; }
.scta .wrap { display: grid; gap: 18px; justify-items: start; }
.scta h2 { font-family: var(--f-display); font-weight: 820; font-stretch: 84%; font-size: clamp(40px, 10vw, 112px); line-height: .95; letter-spacing: -.02em; max-width: 14ch; }
html[lang="ar"] .scta h2 { font-family: "Vazirmatn", sans-serif; line-height: 1.35; }
.scta p { color: var(--ink); font-size: 18px; }
.scta .scta__note { font-size: 14px; color: var(--ink); }

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

/* Small helpers */
.back { display: inline-flex; transform: rotate(180deg); }
/* The typed search leads straight into the results */
#shop { border-block-end: 0; padding-bottom: 8px; }
#shop + #collection { padding-top: 32px; }
@media (min-width: 1100px) { #shop + #collection { padding-top: 56px; } }
