/* Pi design system — prototype stylesheet.
   Tokens follow plan §10.3. Only white / black / greys; functional colours appear
   only as ≤6px bars or dots. No shadows, no large radii, no coloured buttons. */

/* Site font: Vazirmatn (SIL OFL 1.1, variable weight 100–900) for Persian and Latin alike. */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F4;
  --color-ink: #111111;
  --color-ink-2: #555555;
  --color-ink-3: #9A9A9A;
  --color-line: #E5E5E5;
  --fn-oily: #3B82F6;
  --fn-dry: #F5C400;
  --fn-normal: #22A06B;
  --fn-coffee: #7B4A2D;

  --font-fa: "Vazirmatn", Tahoma, sans-serif;
  --font-en: "Vazirmatn", Tahoma, sans-serif;

  --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 20px; --text-2xl: 32px;
  --tracking-caps: 0.08em;
  --leading-fa: 1.8;
  --measure: 68ch;
  --radius: 2px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --gutter: 16px;
  --max: 1320px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-ink);
  font-family: var(--font-fa); font-size: var(--text-base); line-height: var(--leading-fa);
  font-weight: 400; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 1px solid var(--color-ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Latin caps label — the catalogue's MAIN PURPOSE / KEY FEATURES voice */
.en { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; }
.caps {
  font-family: var(--font-en); font-size: var(--text-xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--color-ink-2); line-height: 1.4; font-weight: 400;
}

/* Catalogue rule: thin vertical line on the reading-start side of a block */
.ruled { border-inline-start: 1px solid var(--color-ink); padding-inline-start: var(--s2); }
.ruled--light { border-inline-start-color: var(--color-line); }

/* Functional colour: bar or dot only */
.fn { display: inline-block; flex: none; width: 4px; height: 16px; background: var(--fn); vertical-align: middle; }
.fn--dot { width: 6px; height: 6px; border-radius: 50%; }
.fn-oily { --fn: var(--fn-oily); } .fn-dry { --fn: var(--fn-dry); }
.fn-normal { --fn: var(--fn-normal); } .fn-coffee { --fn: var(--fn-coffee); }

/* Buttons — soft pill, quiet weight; primary may carry a round arrow chip (.btn--arrow) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 30px; border: 1px solid var(--color-ink); border-radius: 999px;
  font: 500 15px/1 var(--font-fa); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--color-ink);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, padding .35s ease;
}
.btn--primary { background: var(--color-ink); color: var(--color-bg); }
.btn--primary:hover { background: #000; }
.btn:not(.btn--primary):hover { background: var(--color-ink); color: var(--color-bg); }
.btn--ghost { border-color: rgba(17,17,17,.22); background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--color-ink); }
.btn--arrow { padding-inline-end: 8px; }
.btn--arrow::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn--arrow:hover::after { transform: translateX(-4px); }
.btn--block { width: 100%; }
.link-arrow { font-size: var(--text-sm); text-decoration: none; border-bottom: 1px solid var(--color-ink); padding-bottom: 2px; }

/* ---------- Header ---------- */
.topline { border-bottom: 1px solid var(--color-line); font-size: var(--text-xs); color: var(--color-ink-2); }
.topline .wrap { display: flex; justify-content: space-between; gap: var(--s2); padding-block: 6px; }
.topline .hide-sm { display: none; }
@media (min-width: 768px) { .topline .hide-sm { display: inline; } }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s3); height: 64px; }
.logo img { height: 28px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: var(--s3); }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.header-tools { margin-inline-start: auto; display: flex; gap: var(--s3); font-size: var(--text-sm); }
.header-tools a { text-decoration: none; }
.menu-toggle { font-size: var(--text-sm); }
.menu-toggle summary { list-style: none; cursor: pointer; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle[open] .menu-panel { display: block; }
.menu-panel {
  display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--color-bg);
  border-bottom: 1px solid var(--color-line); padding: var(--s3) var(--gutter) var(--s4);
}
.menu-panel ul { list-style: none; display: grid; gap: var(--s2); font-size: var(--text-lg); }
.menu-panel a { text-decoration: none; }
@media (min-width: 1024px) {
  .nav { display: block; margin-inline-start: var(--s4); }
  .menu-toggle { display: none; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--text-xs); color: var(--color-ink-2); padding-block: var(--s2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--color-ink-3); }
.crumbs a { text-decoration: none; }

/* ---------- Product: top ---------- */
.pdp-top { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
@media (min-width: 1024px) {
  .pdp-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
  .pdp-buy { position: sticky; top: calc(64px + var(--s4)); }
}

/* Gallery: horizontal snap strip on mobile, stacked editorial column on desktop */
.gallery { margin-inline: calc(var(--gutter) * -1); }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery figure { scroll-snap-align: start; background: var(--color-surface); aspect-ratio: 1 / 1; position: relative; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; inset-inline-start: var(--s2); bottom: var(--s2);
  font-size: var(--text-xs); color: var(--color-ink-2); background: rgba(255,255,255,.86); padding: 2px 8px;
}
.gallery-count { display: flex; justify-content: center; gap: 6px; padding-top: var(--s2); }
.gallery-count span { width: 16px; height: 1px; background: var(--color-line); }
.gallery-count span.is-on { background: var(--color-ink); }
@media (min-width: 1024px) {
  .gallery { margin-inline: 0; }
  .gallery-track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; gap: var(--s1); }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery-count { display: none; }
}
/* A product video, when one exists, sits in the first frame; its poster is the cover photo. */
@media (prefers-reduced-motion: reduce) { .gallery video { display: none; } .gallery video + img { display: block; } }

.pdp-buy { display: grid; gap: var(--s3); }
.pdp-title { font-size: 26px; line-height: 1.5; font-weight: 700; letter-spacing: -0.005em; }
.pdp-title small { display: block; font-size: var(--text-lg); font-weight: 400; color: var(--color-ink-2); margin-top: 4px; }
@media (min-width: 1024px) { .pdp-title { font-size: var(--text-2xl); } }
.answer { font-size: var(--text-base); color: var(--color-ink); max-width: var(--measure); }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--text-sm); color: var(--color-ink-2); }
.facts b { color: var(--color-ink); font-weight: 500; }

.variants { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.variants legend { margin-bottom: var(--s1); }
.variant {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 var(--s2);
  border: 1px solid var(--color-line); border-radius: var(--radius); cursor: pointer; font-size: var(--text-sm);
}
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant .v-name { font-weight: 500; font-size: var(--text-base); }
.variant .v-note { color: var(--color-ink-2); margin-inline-start: auto; font-size: var(--text-xs); }
.variant:has(input:checked) { border-color: var(--color-ink); }
.variant:has(input:focus-visible) { outline: 1px solid var(--color-ink); outline-offset: 3px; }
.variant .fn { height: 24px; }

.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-top: var(--s1); border-top: 1px solid var(--color-line); }
.price { font-size: 24px; font-weight: 500; }
.price span { font-size: var(--text-sm); color: var(--color-ink-2); font-weight: 400; }
.stock { font-size: var(--text-sm); color: var(--color-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); }
.buy-actions { display: grid; gap: var(--s1); }
.assure { list-style: none; display: grid; gap: 6px; font-size: var(--text-xs); color: var(--color-ink-2); }
.assure li::before { content: "—"; margin-inline-end: 8px; color: var(--color-ink-3); }

/* In-page index (replaces tabs: everything stays in HTML, no clicks needed) */
.toc { border-block: 1px solid var(--color-line); position: sticky; top: 64px; z-index: 10; background: var(--color-bg); }
.toc ul { list-style: none; display: flex; gap: var(--s3); overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { text-decoration: none; font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.toc a:hover { color: var(--color-ink); }

/* ---------- Content sections ---------- */
.section { padding-block: var(--s5); border-bottom: 1px solid var(--color-line); scroll-margin-top: 120px; }
.section:last-of-type { border-bottom: 0; }
.sec-head { display: grid; gap: 4px; margin-bottom: var(--s4); }
.sec-head h2 { font-size: var(--text-lg); font-weight: 500; line-height: 1.6; }
@media (min-width: 1024px) {
  .section--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); }
  .section--split .sec-head { margin-bottom: 0; align-self: start; position: sticky; top: 140px; }
}
.prose { max-width: var(--measure); color: var(--color-ink); }
.prose p + p { margin-top: var(--s2); }
.muted { color: var(--color-ink-2); }

.features { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); } }
.features li { display: grid; gap: 4px; }
.features b { font-weight: 500; }
.features span { color: var(--color-ink-2); font-size: var(--text-sm); }

.specs { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; font-size: var(--text-sm); }
.specs dt, .specs dd { padding-block: 12px; border-bottom: 1px solid var(--color-line); }
.specs dt { color: var(--color-ink-2); }
.pending { color: var(--color-ink-3); }

.actives { list-style: none; display: grid; gap: 0; }
.active {
  display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s2); align-items: baseline;
  padding-block: var(--s2); border-bottom: 1px solid var(--color-line); text-decoration: none;
}
.active:first-child { border-top: 1px solid var(--color-line); }
.active .a-fa { font-weight: 500; }
.active .a-en { grid-column: 1; justify-self: start; font-size: var(--text-xs); color: var(--color-ink-2); }
.active .a-role { grid-column: 1; font-size: var(--text-sm); color: var(--color-ink-2); }
.active .a-go { grid-row: 1 / span 3; grid-column: 2; align-self: center; font-size: var(--text-sm); }
a.active:hover .a-fa { text-decoration: underline; }

details.inci > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); padding-block: 12px; border-block: 1px solid var(--color-line); }
details.inci > summary::-webkit-details-marker { display: none; }
details.inci > summary::after { content: "−"; }
details.inci:not([open]) > summary::after { content: "+"; }
.inci-list { list-style: none; columns: 1; column-gap: var(--s5); padding-top: var(--s2); font-size: var(--text-sm); }
@media (min-width: 640px) { .inci-list { columns: 2; } }
.inci-list { text-align: left; }
.inci-list li { break-inside: avoid; padding-block: 4px; display: flex; gap: 10px; }
.inci-list li::before { content: ""; flex: none; width: 3px; height: 3px; margin-top: 9px; background: var(--color-ink); border-radius: 50%; }
.inci-note { font-size: var(--text-xs); color: var(--color-ink-2); margin-top: var(--s2); }

.steps { list-style: none; counter-reset: s; display: grid; gap: var(--s3); max-width: var(--measure); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--s2); }
.steps li::before { content: "0" counter(s); font-family: var(--font-en); font-size: var(--text-sm); color: var(--color-ink-2); letter-spacing: var(--tracking-caps); padding-top: 3px; direction: ltr; }

.cautions { list-style: none; display: grid; gap: var(--s2); max-width: var(--measure); }
.cautions li { padding-inline-start: var(--s2); border-inline-start: 1px solid var(--color-line); }

.faq details { border-bottom: 1px solid var(--color-line); }
.faq details:first-child { border-top: 1px solid var(--color-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); padding-block: var(--s2); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s3); color: var(--color-ink-2); max-width: var(--measure); }

.reviews-empty { display: grid; gap: var(--s2); max-width: var(--measure); }

/* Buyer reviews */
.rv-grid { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .rv-grid { grid-template-columns: 280px 1fr; gap: var(--s5); align-items: start; } .rv-summary { position: sticky; top: 72px; } }
.rv-summary { display: grid; gap: var(--s1); padding-bottom: var(--s3); border-bottom: 1px solid var(--color-line); }
@media (min-width: 1024px) { .rv-summary { border-bottom: 0; } }
.rv-avg { display: flex; align-items: baseline; gap: 8px; }
.rv-avg b { font-size: var(--text-2xl, 2.25rem); font-weight: 400; line-height: 1; letter-spacing: 0; }
.rv-avg span { color: var(--color-ink-2); font-size: var(--text-sm); }
.stars { display: inline-flex; gap: 2px; font-size: 14px; line-height: 1; color: var(--color-ink); direction: ltr; }
.stars i { font-style: normal; }
.stars i.off { color: var(--color-line); }
.rv-dist { list-style: none; display: grid; gap: 6px; margin-top: var(--s1); font-size: var(--text-xs); color: var(--color-ink-2); }
.rv-dist li { display: grid; grid-template-columns: 14px 1fr 24px; gap: 10px; align-items: center; }
.rv-dist .d-bar { display: block; height: 4px; background: var(--color-surface); }
.rv-dist .d-bar i { display: block; height: 100%; background: var(--color-ink); }
.rv-dist .d-n { text-align: end; }
.rv-note { font-size: var(--text-xs); color: var(--color-ink-3); margin-top: var(--s1); }
.reviews { list-style: none; display: grid; }
.review { display: grid; gap: 8px; padding-block: var(--s3); border-bottom: 1px solid var(--color-line); max-width: var(--measure); }
.reviews > .review:first-child { padding-top: 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rv-name { font-weight: 500; }
.rv-verified { font-size: var(--text-xs); color: var(--color-ink-2); border: 1px solid var(--color-line); border-radius: 2px; padding: 1px 6px; }
.rv-meta { font-size: var(--text-xs); color: var(--color-ink-2); display: flex; gap: 10px; }
.rv-variant::before { content: "·"; margin-inline-end: 10px; }
.rv-text { color: var(--color-ink); }
.rv-like { justify-self: start; background: none; border: 1px solid var(--color-line); border-radius: 2px; padding: 5px 10px; font: inherit; font-size: var(--text-xs); color: var(--color-ink-2); cursor: pointer; }
.rv-like:hover { border-color: var(--color-ink); color: var(--color-ink); }
.rv-like[aria-pressed="true"] { border-color: var(--color-ink); color: var(--color-ink); background: var(--color-surface); }
.rv-more > summary { cursor: pointer; list-style: none; padding-block: var(--s2); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 4px; }
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more[open] > summary { display: none; }

.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.compare th, .compare td { text-align: start; padding: 12px var(--s1); border-bottom: 1px solid var(--color-line); vertical-align: top; }
.compare thead th { font-weight: 500; border-bottom-color: var(--color-ink); }
.compare tbody th { font-weight: 400; color: var(--color-ink-2); width: 30%; }
.compare .is-this { background: var(--color-surface); }
.table-scroll { overflow-x: auto; }

.routine { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-line); margin-top: var(--s4); font-size: var(--text-sm); }
.routine li { padding: var(--s2) var(--s1) 0; border-inline-start: 1px solid var(--color-line); color: var(--color-ink-2); }
.routine li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.routine li b { display: block; font-weight: 500; color: var(--color-ink); }
.routine li.is-this b::after { content: " ← این محصول"; font-weight: 400; color: var(--color-ink-2); font-size: var(--text-xs); }
@media (max-width: 639px) { .routine { grid-template-columns: 1fr 1fr; row-gap: var(--s3); } .routine li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }

/* Product cards */
.cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s2); }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: var(--s4) var(--s3); } }
.card a { text-decoration: none; display: grid; gap: 6px; }
.card .card-img { background: var(--color-surface); aspect-ratio: 4 / 5; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card a:hover img { opacity: .9; }
.card .caps { margin-top: 6px; }
.card .c-name { font-size: var(--text-sm); font-weight: 500; line-height: 1.6; }
.card .c-meta { font-size: var(--text-xs); color: var(--color-ink-2); display: flex; align-items: center; gap: 6px; }
.card .c-price { font-size: var(--text-sm); }

.guide-link { display: grid; gap: var(--s1); padding: var(--s3) 0; border-block: 1px solid var(--color-ink); text-decoration: none; max-width: 720px; }
.guide-link b { font-size: var(--text-lg); font-weight: 500; }
.guide-link span { color: var(--color-ink-2); font-size: var(--text-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #D6D6D6; margin-top: var(--s6); padding-block: var(--s5) var(--s4); font-size: var(--text-sm); }
.site-footer a { text-decoration: none; color: #FFFFFF; }
.site-footer .caps { color: #9A9A9A; margin-bottom: var(--s2); }
.foot-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid ul { list-style: none; display: grid; gap: 6px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: var(--s2); max-width: 360px; }
@media (min-width: 1024px) { .foot-brand { grid-column: auto; } }
.foot-brand img { height: 28px; width: auto; filter: invert(1); }
.foot-legal { border-top: 1px solid #333; margin-top: var(--s5); padding-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); color: #9A9A9A; font-size: var(--text-xs); }

/* Mobile buy bar: appears once the main buy block scrolls away */
.buybar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--color-bg); border-top: 1px solid var(--color-line);
  display: flex; align-items: center; gap: var(--s2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .2s ease;
}
.buybar.is-on { transform: none; }
.buybar .bb-info { display: grid; font-size: var(--text-xs); color: var(--color-ink-2); line-height: 1.5; }
.buybar .bb-info b { font-size: var(--text-base); color: var(--color-ink); font-weight: 500; }
.buybar .btn { margin-inline-start: auto; min-height: 48px; }
@media (min-width: 1024px) { .buybar { display: none; } }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

/* Mobile first screen (plan §10.5): photo, name, variant, price and buy button above the fold;
   the quotable answer follows directly after (it stays first in the HTML source for crawlers). */
@media (max-width: 1023px) {
  .gallery figure { aspect-ratio: 4 / 3; }
  .pdp-top { gap: var(--s3); }
  .pdp-buy > :nth-child(1) { order: 1; }
  .pdp-buy .variants { order: 2; }
  .pdp-buy .price-row { order: 3; }
  .pdp-buy .buy-actions { order: 4; }
  .pdp-buy .answer { order: 5; }
  .pdp-buy .facts { order: 6; }
  .pdp-buy .assure { order: 7; }
  .variant { min-height: 48px; }
  .pdp-title small { font-size: var(--text-base); }
  .crumbs { padding-block: 10px; }
  .pdp-buy { gap: var(--s2); }
}

/* ---------- Home ---------- */
.hero { position: relative; background: var(--color-surface); }
.hero-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: var(--s4) var(--gutter) var(--s5); background: var(--color-bg); display: grid; gap: var(--s3); }
.hero-copy h1 { font-size: 26px; line-height: 1.6; font-weight: 700; max-width: 18ch; }
.hero-copy p { color: var(--color-ink-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s1); }
.hero-pause {
  position: absolute; inset-inline-end: var(--s2); bottom: var(--s2); z-index: 2;
  font: 400 var(--text-xs)/1 var(--font-fa); background: rgba(255,255,255,.9); color: var(--color-ink);
  border: 1px solid var(--color-line); border-radius: var(--radius); padding: 8px 12px; cursor: pointer;
}
@media (min-width: 768px) {
  .hero-media { aspect-ratio: auto; height: min(84vh, 760px); min-height: 520px; }
  .hero-copy {
    position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 1; width: min(46%, 560px);
    align-content: center; padding: var(--s5) var(--gutter); background: linear-gradient(to left, rgba(255,255,255,.92) 55%, rgba(255,255,255,0));
  }
  .hero-copy h1 { font-size: 36px; line-height: 1.55; }
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } .hero-pause { display: none; } }

.paths { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.path h2 { font-size: var(--text-lg); font-weight: 500; margin: 4px 0 var(--s3); }
.linklist { list-style: none; border-top: 1px solid var(--color-line); }
.linklist a { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--color-line); text-decoration: none; font-size: var(--text-sm); }
.linklist a:hover span:first-of-type { text-decoration: underline; }
.linklist .go { margin-inline-start: auto; color: var(--color-ink-3); }
.linklist .fn { height: 20px; }
.linklist .note { color: var(--color-ink-2); font-size: var(--text-xs); }

.proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-ink); }
@media (min-width: 1024px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof li { padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--color-line); display: grid; gap: 6px; align-content: start; }
.proof li:nth-child(even) { padding-inline-start: var(--s2); border-inline-start: 1px solid var(--color-line); }
@media (min-width: 1024px) {
  .proof li { border-bottom: 0; padding-inline: var(--s3); border-inline-start: 1px solid var(--color-line); }
  .proof li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}
.proof .big { font-size: 40px; line-height: 1.2; font-weight: 300; }
.proof .big.en { font-size: 34px; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.proof span:last-child { color: var(--color-ink-2); font-size: var(--text-sm); }

.feature { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 1024px) { .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5); } }
.feature-img { background: var(--color-surface); aspect-ratio: 1 / 1; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: grid; gap: var(--s3); max-width: 520px; }
.feature-copy h2 { font-size: 24px; line-height: 1.6; font-weight: 500; }

.ingredients-strip { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
@media (min-width: 1024px) { .ingredients-strip { grid-template-columns: repeat(3, 1fr); gap: 0 var(--s5); } }
.ingredients-strip a { display: grid; gap: 2px; padding-block: var(--s2); border-bottom: 1px solid var(--color-line); text-decoration: none; }
.ingredients-strip b { font-weight: 500; font-size: var(--text-sm); }
.ingredients-strip .en { font-size: var(--text-xs); color: var(--color-ink-2); }

.guides { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guides a { display: grid; gap: var(--s1); text-decoration: none; padding-top: var(--s2); border-top: 1px solid var(--color-ink); }
.guides b { font-size: var(--text-base); font-weight: 500; line-height: 1.7; }
.guides span { font-size: var(--text-sm); color: var(--color-ink-2); }
.guides a:hover b { text-decoration: underline; }

.trust { display: grid; gap: var(--s4); padding: var(--s5) 0; border-block: 1px solid var(--color-line); }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { display: grid; gap: 6px; font-size: var(--text-sm); }
.trust b { font-weight: 500; font-size: var(--text-base); }
.trust span { color: var(--color-ink-2); }

/* ---------- Product story (scroll narrative) ---------- */
.story { border-top: 1px solid var(--color-line); }
.story-stage { display: none; }
.chapter { display: grid; gap: var(--s3); padding-block: var(--s5); border-bottom: 1px solid var(--color-line); }
.chapter--last { border-bottom: 0; }
.ch-media { background: var(--color-surface); aspect-ratio: 4 / 3; overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.ch-media img { width: 100%; height: 100%; object-fit: cover; }
.ch-text { display: grid; gap: var(--s2); max-width: 560px; }
.ch-text h2 { font-size: 24px; line-height: 1.55; font-weight: 700; }
.ch-no { color: var(--color-ink); margin-inline-end: 12px; }
.ch-foot { font-size: var(--text-sm); }
.ch-text .steps { margin-top: var(--s1); }
.ch-buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s2); }

.panel { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--s2); padding: var(--s4); text-align: center; }
.panel-big { font-size: 72px; line-height: 1; font-weight: 300; letter-spacing: 0.04em; }
.panel-sub { font-size: var(--text-sm); color: var(--color-ink-2); }
.panel--split { gap: var(--s3); }
.split-item { display: flex; align-items: center; gap: 14px; font-size: 28px; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.split-item .fn { height: 32px; }
.panel--list { justify-items: start; text-align: left; gap: 6px; font-size: var(--text-sm); direction: ltr; }
.panel--list .caps { margin-top: var(--s2); color: var(--color-ink); }
.panel--list .caps:first-child { margin-top: 0; }
.panel--routine ol { list-style: none; display: grid; gap: var(--s2); font-size: var(--text-lg); text-align: start; }
.panel--routine li { display: flex; gap: var(--s2); align-items: baseline; color: var(--color-ink-3); }
.panel--routine li .en { font-size: var(--text-sm); }
.panel--routine li.is-this { color: var(--color-ink); font-weight: 500; }

.formula-list { list-style: none; display: grid; border-top: 1px solid var(--color-line); }
.formula-list li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s2); align-items: center; padding-block: var(--s2); border-bottom: 1px solid var(--color-line); }
.formula-list .fn { height: 40px; }
.formula-list div { display: grid; gap: 2px; font-size: var(--text-sm); }
.formula-list b { font-size: var(--text-base); font-weight: 500; }
.formula-list span:not(.fn) { color: var(--color-ink-2); }
.formula-list a { font-size: var(--text-sm); }

/* Gentle reveal; only when JS is on and motion is allowed */
.js-story .ch-text { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-story .chapter.is-in .ch-text { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); }
  .js-story .story-stage {
    display: block; position: sticky; top: calc(64px + var(--s4)); height: calc(100vh - 64px - var(--s4) * 2);
    max-height: 760px; background: var(--color-surface); overflow: hidden; align-self: start; margin-block: var(--s5);
  }
  .story-stage > * { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
  .story-stage > .is-on { opacity: 1; }
  .story-stage img { width: 100%; height: 100%; object-fit: cover; }
  .js-story .chapter { min-height: 82vh; align-content: center; border-bottom: 0; padding-block: var(--s6); }
  .js-story .chapter .ch-media { display: none; }
  .chapter .ch-media { margin-inline: 0; }
  .ch-text h2 { font-size: 30px; }
  .panel-big { font-size: 112px; }
  .split-item { font-size: 40px; }
  .panel--list { font-size: var(--text-base); }
  .panel--routine ol { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-story .ch-text { opacity: 1; transform: none; transition: none; }
  .story-stage > * { transition: none; }
}
.ch-text > .caps:first-child { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-no { margin-inline-end: 0; }
.ch-media:has(.panel--list) { aspect-ratio: auto; }
@media (max-width: 1023px) { .panel { padding: var(--s3) var(--gutter); } }

/* ---------- Generated pages ---------- */
.panel-big--long { font-size: 40px; line-height: 1.3; letter-spacing: 0.02em; }
@media (min-width: 1024px) { .panel-big--long { font-size: 56px; } }
.panel-big.en { text-transform: uppercase; }
.stock--out::before { background: var(--color-ink-3); }
.variants--chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.variants--chips legend { width: 100%; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: var(--radius); font-size: var(--text-sm); cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--color-ink); }
.chip:has(input:focus-visible) { outline: 1px solid var(--color-ink); outline-offset: 3px; }
.chip .fn { height: 16px; }
.chip .v-name { font-weight: 400; font-size: var(--text-sm); }
.card .panel { aspect-ratio: 4 / 5; padding: var(--s2); }
.card .panel-big--long { font-size: 18px; }
.shop-head { padding-block: var(--s3) var(--s4); display: grid; gap: var(--s1); }
.shop-head h1 { font-size: var(--text-2xl); font-weight: 700; }
.gallery figure .panel { height: 100%; }
/* Mobile hero using the 16:9 cut: keep the jar (left third of the frame) in view */
.hero-media.is-cropped video { object-position: 22% center; }
