/* Bunni storefront styles. Extracted from local-frontend/index.html (concept-2, KAJU-inspired layout).
   Palette = the six confirmed hues only; Cherry Rust is the only accent (buy controls and the bag). */

:root {
  --ink: #0d3b39;
  --sea: #1f6b64;
  --parch: #f3e4c2;
  --bone: #faf4e6;
  --rust: #b6472f;
  --ink-lift: #104947;           /* tint of Ink Teal, centre of the ground gradient */
  --greige: hsl(42 8% 88%);      /* Bone toned darker — confirmed light-surface default */
  --hair-dark: rgba(243, 228, 194, .22);
  --hair-light: rgba(13, 59, 57, .16);
  --display: "Anton", sans-serif;
  --body: "Rufina", serif;
  --mono: "Space Mono", monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { padding-inline: var(--gutter); }

/* real logo file: master PNG is a padded 1600x1885 canvas around an 842x1222 ink box.
   The crop below shows the ink box only, so the mark is never squashed or shrunk by padding. */
.logo { display: block; position: relative; overflow: hidden; aspect-ratio: 842 / 1222; flex: none; }
.logo img { display: block; width: 100%; height: 100%; } /* files are trimmed to the ink box */

/* ---------- announcement bar ---------- */
.announce { position: relative; display: flex; justify-content: center; align-items: center; padding: 9px 48px; background: var(--ink); color: var(--parch); font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.announce button { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; background: none; border: 0; color: inherit; opacity: .7; transition: opacity .2s var(--ease), transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .announce button:hover { opacity: 1; } }
.announce button:active { transform: scale(.94) translateY(0); }

/* ---------- header: frosted, hides on scroll-down on phones ---------- */
header.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bone) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), transform .25s var(--ease); }
header.top.scrolled { border-bottom-color: var(--hair-light); }
header.top.hide { transform: translateY(-100%); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.top .logo { height: 54px; }
.top nav { display: flex; gap: 40px; position: relative; }
.top nav a { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.top nav.keep a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { border-color: var(--hair-light); } }
.nav-line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--ink); pointer-events: none; transition: transform .25s var(--ease), width .25s var(--ease); }
.nav-line.snap { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav-line { transition: none; } header.top { transition: none; } }
.top .tools { justify-self: end; display: flex; gap: 14px; align-items: center; }
.bagbtn { background: none; border: 0; display: flex; gap: 8px; align-items: center; padding: 12px 4px; min-height: 44px; }
.bagbtn svg { width: 20px; height: 20px; }
.bagbtn b { font-family: var(--mono); font-weight: 400; font-size: 13px; min-width: 14px; }
.bagbtn svg path { transition: fill .2s var(--ease), stroke .2s var(--ease); }
.bagbtn.full svg path { stroke: var(--rust); }
.bagbtn.full svg path:first-child { fill: var(--rust); }
.bagbtn.full svg path { stroke-width: 2; }
.bagbtn.full svg { width: 30px; height: 30px; }
.bagbtn.full { position: relative; padding-right: 10px; }
.bagbtn.full b { position: absolute; top: 4px; right: 0; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--rust); color: var(--bone); border-radius: 999px; line-height: 1; letter-spacing: 0; box-shadow: 0 0 0 2px var(--bone); }
.menubtn { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; transition: transform .16s var(--ease); }
.menubtn:active { transform: scale(.94); } .menubtn svg { width: 26px; height: 26px; }

/* full-screen menu sheet (phones) */
.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: radial-gradient(ellipse at 20% 0%, var(--ink-lift), var(--ink) 70%); color: var(--parch); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; overflow-y: auto; }
.menu.on { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 72px; flex: none; }
.menu-top .logo { height: 48px; } .menu-top button { background: none; border: 0; min-height: 44px; padding: 0 4px; }
.menu-links { display: grid; align-content: center; gap: 2px; flex: 1; padding-block: 24px; }
.menu-links a { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 14vw, 76px); line-height: 1.12; opacity: 0; translate: 0 10px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.menu.on .menu-links a { opacity: 1; translate: 0 0; }
.menu.on .menu-links a:nth-child(2) { transition-delay: 40ms; } .menu.on .menu-links a:nth-child(3) { transition-delay: 80ms; }
.menu.on .menu-links a:nth-child(4) { transition-delay: 120ms; } .menu.on .menu-links a:nth-child(5) { transition-delay: 160ms; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; padding-block: 20px 32px; border-top: 1px solid var(--hair-dark); flex: none; }
.menu .lang { color: var(--parch); border-color: var(--hair-dark); min-height: 44px; padding-inline: 16px; }
@media (min-width: 901px) { .menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu.on { transform: none; transition: opacity .2s ease, visibility 0s .2s; } .menu.on { transition: opacity .2s ease; } .menu-links a { translate: none; transition: opacity .2s ease; } }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--parch); background: radial-gradient(ellipse at 30% 40%, var(--ink-lift), var(--ink) 70%); overflow: hidden; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: 64px 24px; min-height: calc(100vh - 72px - 150px); max-height: 940px; }
.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--parch); opacity: .9; }
.eyebrow i { width: 64px; height: 1px; background: var(--hair-dark); display: block; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 8.4vw, 132px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 28px 0 26px; }
.hero p.lead { max-width: 520px; font-size: 19px; margin: 0 0 36px; opacity: .92; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; min-height: 48px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; transition: transform .16s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.rust { background: var(--rust); color: var(--bone); }
@media (hover: hover) and (pointer: fine) {
  .btn.rust:hover { background: #a03d27; }
  .btn.ghost:hover { background: rgba(243,228,194,.08); }
  .btn.line:hover { background: var(--ink); color: var(--bone); }
}
.btn.ghost { border-color: var(--hair-dark); color: var(--parch); background: transparent; }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.hero-photo { justify-self: center; width: min(100%, 440px); }
.hero-photo a { display: block; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 48px 80px -36px rgba(0,0,0,.65), 0 0 0 1px rgba(243,228,194,.14); }
/* lot hero photo: bleeds off the right edge and fills the hero's full height; only its left edge fades into the headline side */
.hero-in:has(.hero-photo.photo) { grid-template-columns: minmax(0, 1fr); }
.hero-in:has(.hero-photo.photo) > div:first-child { position: relative; z-index: 2; max-width: min(50%, 620px); }
.hero-photo.photo { position: absolute; z-index: 1; top: 0; bottom: 0; right: calc(var(--gutter) * -1); width: min(56vw, 860px); justify-self: auto; }
.hero-photo.photo a { display: block; height: 100%; }
.hero-photo.photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 42%; box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, rgba(0,0,0,.35) 20%, #000 46%), linear-gradient(to bottom, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 4%, rgba(0,0,0,.35) 20%, #000 46%), linear-gradient(to bottom, #000 80%, transparent); mask-composite: intersect; }
/* hero stage (concept A): sun, skyline and the real bag cutout, layered */
.hero-in:has(.hero-photo.stage) { grid-template-columns: minmax(0, 1fr); min-height: clamp(520px, calc(100svh - 120px), 820px); max-height: none; padding-block: 28px 20px; }
.hero-in:has(.hero-photo.stage) h1 { font-size: clamp(46px, 5.8vw, 104px); margin: 22px 0 20px; }
.hero-in:has(.hero-photo.stage) p.lead { margin-bottom: 26px; }
.hero-in:has(.hero-photo.stage) > div:first-child { position: relative; z-index: 2; max-width: min(54%, 660px); }
.hero-photo.stage { position: absolute; z-index: 1; top: 0; bottom: 0; right: calc(var(--gutter) * -1); width: min(60vw, 900px); justify-self: auto; overflow: hidden; }
.st-l { position: absolute; display: block; }
.hero-photo.stage:not(.go) .st-l { visibility: hidden; }
.st-p { width: 100%; height: 100%; }
.st-l svg { display: block; width: 100%; height: 100%; }
.hero-photo.stage img { box-shadow: none; background: none; aspect-ratio: auto; object-fit: contain; }   /* the old photo-card rule (shadow + 1px outline) must not reach the stage images */
.st-sky { left: -4%; bottom: 0; width: 104%; }
.st-sky img { display: block; width: 100%; height: auto; opacity: .5; }
.st-bag { left: 50%; bottom: 7%; height: 76%; aspect-ratio: 640/1173; translate: -50% 0; }
.st-bag img { width: 100%; height: 100%; object-fit: contain; }
.st-bag::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -1.5%; height: 4%; background: radial-gradient(closest-side, rgba(0,0,0,.5), rgba(0,0,0,0)); pointer-events: none; }
@keyframes st-lift { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes st-fade { from { opacity: 0; } to { opacity: .9; } }
@keyframes st-bag { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-l { animation: none !important; } }
/* hero art (default): the packaging scene, sun + man, background keyed out so it sits on the hero ground with no frame */
.hero-in:has(.hero-photo.art) { grid-template-columns: minmax(0, 1fr); min-height: clamp(520px, calc(100svh - 120px), 820px); max-height: none; padding-block: 28px 20px; }
.hero-in:has(.hero-photo.art) > div:first-child { position: relative; z-index: 2; max-width: min(54%, 660px); }
.hero-photo.art { position: absolute; z-index: 1; top: 4%; bottom: 0; right: 0; width: min(46vw, 760px); justify-self: auto; display: flex; align-items: flex-end; }
.hero-photo.art picture { display: block; position: relative; z-index: 1; width: 100%; }
/* Manama skyline behind the packaging art (Mostafa, 2026-10-25): one faded line strip along the hero's floor, wider than the art */
.art-sky { position: absolute; z-index: 0; bottom: 0; right: -6%; width: 190%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); }
.hero-photo.art .art-sky img { display: block; width: 100%; height: auto; max-height: none; opacity: .45; animation: none; }
[dir="rtl"] .art-sky { right: auto; left: -6%; -webkit-mask-image: linear-gradient(to left, transparent, #000 30%); mask-image: linear-gradient(to left, transparent, #000 30%); }
.hero-photo.art img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; aspect-ratio: auto; box-shadow: none; background: none; animation: art-in .9s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-photo.art img { animation: none; } }
/* Arabic: the text sits on the right, so the artwork goes to the left (it was on top of the text) */
@media (min-width: 901px) {
  [dir="rtl"] .hero-photo.art { right: auto; left: 0; }
  [dir="rtl"] .hero-photo.photo, [dir="rtl"] .hero-photo.stage { right: auto; left: calc(var(--gutter) * -1); }
}
@media (max-width: 900px) {
  .hero-in:has(.hero-photo.art) > div:first-child { max-width: none; }
  .hero-photo.art { position: relative; top: auto; right: auto; width: 100%; max-width: 520px; margin-inline: auto; }
}
/* transparent bag cutouts (approved props) floating with a soft shadow */
.hero-photo.cut { width: min(100%, 330px); position: relative; }
.hero-photo.cut::before { content: ""; position: absolute; inset: -8% -30% 4%; background: radial-gradient(closest-side, rgba(243,228,194,.16), transparent); pointer-events: none; }
.hero-photo.cut a { position: relative; }
.hero-photo.cut a::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -1%; height: 4%; background: radial-gradient(closest-side, rgba(0,0,0,.5), rgba(0,0,0,0)); pointer-events: none; }
.hero-photo.cut img { aspect-ratio: auto; object-fit: contain; box-shadow: none; position: relative; width: auto; max-width: 100%; max-height: min(66vh, 560px); margin-inline: auto;  }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-dark); margin-top: 32px; }
.stats div { padding: 28px 0 32px; border-left: 1px solid var(--hair-dark); padding-left: 28px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: .02em; }
.stats span { display: block; margin-top: 10px; opacity: .85; }
.stats em { display: block; font-style: normal; opacity: .72; margin-top: 2px; }

/* ---------- trust strip (static) ---------- */
.strip { background: var(--ink); color: var(--parch); border-block: 1px solid var(--hair-dark); }
.strip-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; padding-block: 18px; }
.strip span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
[id] { scroll-margin-top: 84px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 5.4vw, 76px); line-height: 1; margin: 12px 0 0; max-width: 16ch; }

/* scroll reveal: soft fade-up once (uses `translate` so card hover can still use `transform`) */
/* scroll progress line along the header's bottom edge */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; pointer-events: none; will-change: transform; }
html[dir="rtl"] .progress { transform-origin: right; }
.js .rv { opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease) var(--d, 0ms), translate .3s var(--ease) var(--d, 0ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; translate: none; transition: none; } }

/* size pills with a sliding highlight */
.pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; isolation: isolate; --pill-hl: var(--parch); --pill-line: var(--hair-dark); --pill-fg: var(--parch); --pill-on: var(--ink); }
.pill-hl { position: absolute; left: 0; top: 0; width: 100px; height: 50px; transform-origin: 0 0; opacity: 0; background: var(--pill-hl); z-index: -1; pointer-events: none; transition: transform .2s var(--ease), opacity .2s var(--ease); }   /* moved and sized by transform only (wirePills) */
.pill { position: relative; min-width: 96px; min-height: 48px; padding: 11px 18px; background: transparent; border: 1px solid var(--pill-line); color: var(--pill-fg); font-family: var(--mono); text-align: start; transition: color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
.pill b { display: block; font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.pill small { display: block; font-size: 12px; letter-spacing: .06em; opacity: .8; margin-top: 2px; }
.pill.on { color: var(--pill-on); border-color: var(--pill-hl); }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .pill-hl, .pill { transition: none; } }

/* freshness badge */
.fresh { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.fresh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* shop: filters + lean cards */
.shop { padding-block: 96px 120px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fl { min-height: 44px; padding: 10px 16px; background: transparent; border: 1px solid var(--hair-light); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease); }
.fl small { opacity: .75; margin-inline-start: 4px; font-size: 12px; }
.fl.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.fl:active { transform: scale(.97); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 12px; background: var(--bone); border: 1px solid var(--hair-light); box-shadow: 0 1px 4px rgba(13,59,57,.06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), opacity .3s var(--ease) var(--d, 0ms), translate .3s var(--ease) var(--d, 0ms); }
.card:has(.card-main:active) { transform: scale(.985); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(13,59,57,.12); }
  .card:hover .ph img { transform: scale(1.03); }
}
.card-main { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; color: inherit; }
.card .ph { position: relative; aspect-ratio: 4/5; background: rgba(13,59,57,.06); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card.out .ph img { filter: grayscale(.6) brightness(.76); }
/* second photo fades in on hover/keyboard focus (desktop only; phones never see it, so it carries no information) */
.ph2 { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .card.has-alt:hover .ph2, .card.has-alt:focus-within .ph2 { opacity: 1; }
  .card.has-alt:hover .ph img { transform: none; }
}
/* sold out: the photo is dimmed and a solid bar runs across its bottom edge */
.card .stamp { position: absolute; inset-inline: 0; bottom: 0; top: auto; padding: 13px 14px; text-align: center; background: var(--rust); color: var(--bone); font-size: 13px; font-weight: 700; letter-spacing: .26em; }
/* size pills on a card: equal-width, dark on the light card */
.card .pills { --pill-hl: var(--ink); --pill-line: var(--hair-light); --pill-fg: var(--ink); --pill-on: var(--bone); margin: 16px 0 0; gap: 6px; }
.card .pill { flex: 1 1 0; min-width: 0; padding: 9px 8px; text-align: center; }
.card .cb { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair-light); }
.card .cb h3 { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.3; }
.card .cb .price { white-space: nowrap; font-size: 15px; letter-spacing: .02em; }
.card .cnotes { margin: 6px 0 0; font-size: 14px; opacity: .76; }
.card .fresh { margin-top: 10px; }
.card-add { width: 100%; justify-content: center; margin-top: 14px; height: 48px; padding: 0 10px; }
.card-add[disabled] { opacity: .7; }
.nf-details { margin-top: 10px; border-top: 1px solid var(--hair-light); }
.nf-details summary { list-style: none; cursor: pointer; padding: 14px 0 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nf-details summary::-webkit-details-marker { display: none; }
.nf-details .notify label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dr-foot .note { font-size: 13px; opacity: .75; margin: 12px 0 0; }

/* email forms (footer + notify me) */
.notify label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; opacity: .8; }
.nf-row { display: flex; gap: 8px; }
.nf-row input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--bone); border: 1px solid var(--hair-light); border-radius: 0; padding: 12px 14px; min-height: 48px; }
.nf-row input[type=email]:focus { border-color: var(--ink); outline: none; }
.nf-row .btn { flex: none; padding-inline: 20px; }
.nf-note { min-height: 1.3em; margin: 8px 0 0; font-size: 14px; opacity: .85; }
.nf-note.bad { color: var(--rust); opacity: 1; }

/* brew guide (cream section) */
.brew { background: var(--parch); padding-block: 104px; }
.brew-note { max-width: 34ch; margin: 0; opacity: .8; }
.brew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brew-card { background: var(--bone); border: 1px solid var(--hair-light); padding: 28px; }
.ic { flex: none; }
.brew-card h3 { display: flex; align-items: center; gap: 12px; }
.brew-card h3 .ic { color: var(--rust); }
.brew-card dt { display: flex; align-items: center; gap: 7px; }
.brew-card dt .ic { opacity: .85; }
.brew-card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1.05; margin: 0 0 18px; }
.brew-card dl { margin: 0 0 16px; border-top: 1px solid var(--hair-light); }
.brew-card dl div { display: grid; grid-template-columns: 96px 1fr; padding: 11px 0; border-bottom: 1px solid var(--hair-light); }
.brew-card dt { opacity: .74; } .brew-card dd { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.brew-card p { margin: 0; font-size: 15px; opacity: .85; }

/* trust row */
.trust { border-block: 1px solid var(--hair-light); background: var(--bone); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-in div { padding: 34px 28px; border-left: 1px solid var(--hair-light); }
.trust-in div:first-child { border-left: 0; padding-left: 0; }
.trust-in b { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.trust-in p { margin: 0; font-size: 15px; opacity: .8; }

/* story */
.story { padding-block: 128px; background: var(--greige); }
.story-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.story h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; margin: 14px 0 0; }
.story p { font-size: 20px; margin: 0 0 20px; max-width: 34em; }
.story p.small { font-size: 16px; opacity: .75; }

/* footer */
footer { background: radial-gradient(ellipse at 20% 0%, var(--ink-lift), var(--ink) 70%); color: var(--parch); padding: 80px var(--gutter) 36px; }
.foot-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: center; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--hair-dark); }
.foot-sub h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 8px; }
.foot-sub p { margin: 0; opacity: .8; }
.foot-form .nf-row input[type=email] { background: transparent; color: var(--parch); border-color: var(--hair-dark); }
.foot-form .nf-row input[type=email]:focus { border-color: var(--parch); }
.foot-form .nf-row input::placeholder { color: var(--parch); opacity: .5; }
.foot-in { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--hair-dark); }
footer .logo { height: 120px; }
footer h5 { margin: 0 0 16px; font-weight: 400; opacity: .6; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: 15px; }
footer ul a { display: inline-flex; align-items: center; min-height: 44px; }   /* 44px tap rows (Apple's minimum) */
@media (hover: hover) and (pointer: fine) { footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; opacity: .6; }

/* ---------- overlays ---------- */
.veil { position: fixed; inset: 0; background: rgba(13, 59, 57, .55); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 60; }
.veil.on { opacity: 1; pointer-events: auto; }
/* blur the page behind the bag only while it's open, and only where the page shows beside it (the drawer is full-width under 441px) */
@media (min-width: 441px) {
  .veil { transition: opacity .2s var(--ease), -webkit-backdrop-filter .2s var(--ease), backdrop-filter .2s var(--ease); }
  .veil.on { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bone); z-index: 80; transform: translateX(102%); visibility: hidden; transition: transform .2s var(--ease), visibility 0s .2s; display: flex; flex-direction: column; }
.drawer.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.32, .72, 0, 1); }   /* iOS sheet curve */
.drawer.drag { transition: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--hair-light); }
.dr-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; margin: 0; }
.dr-head button { background: none; border: 0; min-height: 44px; padding: 0 4px; }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair-light); align-items: center; }
.line-item img { width: 72px; height: 90px; object-fit: cover; }
.line-item h4 { margin: 0 0 4px; font-weight: 400; font-size: 16px; }
.qty { display: inline-flex; border: 1px solid var(--hair-light); margin-top: 8px; }
.qty button { background: none; border: 0; width: 44px; height: 44px; transition: background .15s var(--ease), transform .16s var(--ease); }
.qty button:active { transform: scale(.94); } .qty button:disabled { opacity: .35; }
.qty span { width: 32px; text-align: center; font-family: var(--mono); font-size: 13px; line-height: 44px; }
.empty { padding: 56px 0; text-align: center; opacity: .7; }
.dr-foot { padding: 22px 28px 28px; border-top: 1px solid var(--hair-light); background: var(--greige); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.row span:last-child { white-space: nowrap; }
.meter { height: 3px; background: var(--hair-light); margin: 6px 0 14px; }
.meter i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .3s var(--ease); }
[dir="rtl"] .meter i { transform-origin: right center; }
.dr-foot .btn { width: 100%; justify-content: center; margin-top: 14px; }
.pay { display: none; margin-top: 16px; padding: 18px; border: 1px solid var(--ink); background: var(--bone); font-size: 15px; }
.pay.on { display: block; }
.pay b { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .drawer { transform: none; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; } .drawer.on { opacity: 1; transition: opacity .2s ease; } .veil { transition: opacity .2s ease; } }   /* fade, no slide */

/* ---------- product page ---------- */
.crumb { padding-block: 24px 0; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pdp-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; padding-block: 16px 104px; align-items: start; }
.gallery { position: sticky; top: 96px; min-width: 0; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--greige); overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 18px; }
.g-slide:first-child { view-transition-name: lot-img; }
.g-slide img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; margin: auto; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.g-thumb { width: 72px; padding: 0; background: none; border: 1px solid var(--hair-light); opacity: .6; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.g-thumb img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.g-thumb.on { opacity: 1; border-color: var(--ink); }
.pdp-name { font-family: var(--body); font-weight: 700; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; margin: 10px 0 14px; }
.pdp-info .pr { font-family: var(--mono); font-size: 18px; letter-spacing: .04em; margin: 12px 0 18px; }
.pdp-blurb { max-width: 34em; margin: 0 0 22px; opacity: .88; }
.pdp-l { display: block; opacity: .7; }
.pdp-info .pills { --pill-hl: var(--ink); --pill-line: var(--hair-light); --pill-fg: var(--ink); --pill-on: var(--bone); margin-bottom: 16px; }
.pdp-info .btn.rust { width: 100%; justify-content: center; padding: 20px; }
.pdp-free { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .78; margin: 14px 0 0; }
.pdp-sold { margin: 0 0 20px; opacity: .85; } .pdp-sold a { text-decoration: underline; text-underline-offset: 4px; }
#leftNote:empty { display: none; }
.pdp-info .left-note { margin: 0 0 14px; }
.acc { margin-top: 32px; border-top: 1px solid var(--hair-light); }
.acc details { border-bottom: 1px solid var(--hair-light); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--mono); }
.acc details[open] summary::after { content: "–"; }
.acc .body { padding: 0 0 22px; font-size: 16px; display: grid; gap: 8px; opacity: .88; }

/* sticky buy bar (phones) */
.buybar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--bone) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--hair-light); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); translate: 0 100%; transition: translate .3s var(--ease); }
.bb-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bb-t { display: grid; min-width: 0; } .bb-t b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bb-t span { font-size: 12px; opacity: .75; }
.bb-in .btn { flex: none; padding: 14px 22px; }
@media (prefers-reduced-motion: reduce) { .buybar { transition: opacity .2s ease; opacity: 0; } .buybar.on { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .top-in { grid-template-columns: 1fr auto; height: 64px; }
  .top .logo { height: 46px; }
  .top nav:not(.keep) { display: none; }
  .top .tools { gap: 6px; } .top .tools .lang { padding-inline: 10px; }
  .menu-foot .lang { display: none; }  /* phones switch language from the header, not the menu (Mostafa, 2026-10-25) */
  .top-in:has(nav.keep) { grid-template-columns: auto 1fr auto; gap: 12px; } .top nav.keep { justify-content: center; gap: 12px; }
  .menubtn { display: inline-flex; }
  .hero-in, .story-in, .pdp-in, .foot-sub { grid-template-columns: 1fr; gap: 40px; }
  .hero-in { padding-top: 40px; min-height: 0; max-height: none; }
  .hero-photo { width: min(78%, 340px); }
  .hero-in:has(.hero-photo.photo) > div:first-child, .hero-in:has(.hero-photo.stage) > div:first-child { max-width: none; }
  .hero-photo.stage { position: relative; top: auto; bottom: auto; right: auto; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); height: min(112vw, 560px); }
  .hero-photo.photo { position: relative; top: auto; bottom: auto; right: auto; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); height: min(125vw, 640px); }
  .hero-photo.photo img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); object-position: 50% 45%; }
  .hero-photo.cut { width: min(56%, 230px); }
  .stats b { font-size: 32px; } .stats div { padding-left: 16px; }
  .brew-grid { grid-template-columns: 1fr; }
  .story, .brew { padding-block: 80px; } .shop { padding-block: 72px 88px; }
  .strip-in { justify-content: center; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust-in div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-in div { border-top: 1px solid var(--hair-light); } .trust-in div:nth-child(-n+2) { border-top: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .gallery { position: static; }
  .pdp-in { padding-top: 8px; gap: 28px; }
  .buybar { display: block; } .buybar.on { translate: 0 0; }
  .brew-card { padding: 22px; }
}
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .sec-head { margin-bottom: 28px; } .announce { font-size: 10.5px; letter-spacing: .06em; padding-inline: 40px; } }

/* ---------- additions for the live store ---------- */
.lang { background: none; border: 1px solid var(--hair-light); padding: 6px 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
@media (hover: hover) and (pointer: fine) { .lang:hover { background: rgba(13,59,57,.06); } }
.left-note { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--rust); letter-spacing: .04em; }
.loading { padding: 80px 0; text-align: center; opacity: .6; }
.toast { position: fixed; bottom: 20px; left: 50%; translate: -50% 12px; opacity: 0; display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--parch); padding: 14px 20px; z-index: 100; font-size: 15px; max-width: calc(100vw - 32px); transition: opacity .2s var(--ease), translate .25s var(--ease); }
.toast.in { opacity: 1; translate: -50% 0; }
.toast button { flex: none; min-height: 32px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid currentColor; color: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
body.has-buybar .toast { bottom: 92px; }
@media (prefers-reduced-motion: reduce) { .toast { translate: -50% 0; transition: opacity .2s ease; } }
/* added-to-bag card (phone) */
.added { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 100; background: var(--bone); color: var(--ink); border: 1px solid var(--hair-light); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); padding: 16px 16px 14px; translate: 0 calc(100% + 24px); opacity: 0; transition: translate .2s var(--ease), opacity .2s var(--ease); touch-action: none; }
.added.in { translate: 0 0; opacity: 1; transition: translate .32s var(--ease), opacity .2s var(--ease); }   /* enters at .32s, leaves faster at .2s */
.added.drag { transition: none; }
.added-top { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.added-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--parch); font-size: 12px; }
.added-x { margin-inline-start: auto; width: 36px; height: 36px; background: none; border: 0; font-size: 24px; line-height: 1; color: inherit; }
.added-item { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.added-img { flex: none; width: 56px; height: 72px; overflow: hidden; }
.added-img picture { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.added-img img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; box-shadow: none; }
.added-name { font-size: 17px; line-height: 1.25; }
.added-meta { font-size: 12px; opacity: .75; margin-top: 3px; }
.added-free { font-size: 11px; opacity: .75; margin-bottom: 6px; }
.added-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.added-btns .btn { justify-content: center; min-height: 48px; padding-inline: 10px; }
body.has-buybar .added { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .added, .added.in { translate: 0 0; transition: opacity .2s ease; } }   /* fade only, no slide */
.skip, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--bone); padding: 8px 12px; }
html { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
[hidden] { display: none !important; }
/* sale prices: regular price struck through, sale price next to it */
.was { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; margin-inline-end: 4px; }
.now { color: var(--rust); font-weight: 700; }
.pill small .was { display: inline; font-size: inherit; }
.pill small .now { color: inherit; }
.pic-empty { aspect-ratio: 597 / 800; width: 100%; background: var(--hair-light); }
/* discount code box at checkout */
.codebox { margin: 18px 0 0; }
.codebox label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--hair-light); background: #fff; font: inherit; letter-spacing: .08em; text-transform: uppercase; }
.code-on { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .06em; padding: 10px 12px; border: 1px dashed var(--ink); }
.code-on button { background: none; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lang { min-height: 44px; min-width: 44px; }
/* faint paper grain over everything (the hero has its own stronger layer) */
body::after { content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .045; background-image: url("/assets/grain.png"); background-image: image-set(url("/assets/grain.webp") type("image/webp"), url("/assets/grain.png") type("image/png")); background-size: 256px 256px; }

/* floating WhatsApp button (hidden until SITE_WHATSAPP is set in common.js) */
.wa { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 35; width: 54px; height: 54px; display: grid; place-items: center; background: var(--ink); color: var(--parch); border-radius: 50%; box-shadow: 0 10px 24px rgba(13,59,57,.35); transition: transform .16s var(--ease), translate .25s var(--ease); }
.wa svg { width: 26px; height: 26px; } .wa:active { transform: scale(.94); }
body.has-buybar .wa { translate: 0 -76px; }

/* cross-page photo transition: tapped card photo grows into the product page */
@view-transition { navigation: auto; }
::view-transition-group(lot-img) { animation-duration: .4s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* checkout */
.co { padding-block: 48px 96px; }
.co h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: 1; margin: 12px 0 32px; }
.co-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.co fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.co legend { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 0; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.field label small { text-transform: none; letter-spacing: 0; opacity: .8; font-size: 12px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bone); border: 1px solid var(--hair-light); border-radius: 0; padding: 13px 14px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field.bad input, .field.bad textarea { border-color: var(--rust); }
.field .err { display: none; color: var(--rust); font-size: 13px; margin-top: 4px; }
.field.bad .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
/* order summary: teal, as in the first checkout design */
.summary { background: var(--ink); color: var(--parch); --hair-light: var(--hair-dark); padding: 28px; position: sticky; top: 96px; }
.summary .paybox { background: transparent; border-color: var(--hair-dark); color: var(--parch); }
.summary .now { color: var(--parch); }
.summary .btn.line { color: var(--parch); border-color: var(--hair-dark); }
.summary .code-on { border-color: var(--parch); }
.summary .nf-note.bad { color: #ffb4a2; }
.summary .code-row input { background: rgba(243,228,194,.08); color: var(--parch); border-color: var(--hair-dark); }
.summary .code-row input::placeholder { color: rgba(243,228,194,.55); }
.sum-toggle { display: none; }
.summary h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; margin: 0 0 12px; }
.summary .line-item { grid-template-columns: 56px 1fr auto; padding: 14px 0; }
.summary .line-item img { width: 56px; height: 70px; }
.paybox { margin-top: 18px; padding: 18px; border: 1px solid var(--ink); background: var(--bone); font-size: 15px; }
.paybox b { font-family: var(--mono); letter-spacing: .04em; }
.co .btn.rust { width: 100%; justify-content: center; padding: 20px; }
.co-more { margin: 0 0 28px; border-block: 1px solid var(--hair-light); }
.co-more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.co-more summary::-webkit-details-marker { display: none; }
.co-more summary::after { content: "+"; } .co-more[open] summary::after { content: "–"; }
.co-more .fields { padding-bottom: 20px; }
.co-submit { margin-top: 8px; }
.co-total { display: none; justify-content: space-between; font-size: 13px; padding-bottom: 8px; }
.xfer { display: grid; gap: 0; border: 1px solid var(--ink); background: var(--bone); margin: 0 0 18px; }
.xrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair-light); }
.xrow:last-child { border-bottom: 0; }
.xrow .mono { grid-column: 1 / -1; opacity: .65; font-size: 11px; }
.xrow b { font-family: var(--mono); font-size: 20px; letter-spacing: .04em; }
.xrow .copy { margin: 0; min-height: 44px; padding: 0 14px; }
.sent { margin-top: 22px; display: grid; gap: 12px; }
.sent p { margin: 0; }
.sent .btn { width: auto; }
.form-err { color: var(--rust); margin: 14px 0 0; font-size: 15px; }
.done { max-width: 640px; }
.done .code { font-family: var(--mono); font-size: clamp(28px, 6vw, 44px); letter-spacing: .08em; margin: 6px 0 22px; }
.done .paybox { font-size: 17px; }
.done ol { padding-inline-start: 20px; display: grid; gap: 10px; }
.copy { background: none; border: 1px solid var(--ink); min-height: 36px; padding: 4px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; margin-inline-start: 8px; vertical-align: middle; }

/* policies */
.policy { padding-block: 56px 96px; max-width: 760px; }
.policy h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0 0 24px; }
.policy h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; margin: 40px 0 10px; }
.policy .draft { border: 1px dashed var(--rust); color: var(--rust); padding: 10px 14px; font-size: 14px; margin-bottom: 24px; }

@media (max-width: 900px) {
  .co-in { grid-template-columns: 1fr; gap: 24px; }
  .summary { position: static; order: -1; padding: 0; background: none; }
  .sum-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; background: var(--ink); color: var(--parch); border: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
  .sum-toggle b { font-weight: 700; }
  .sum-toggle::after { content: "+"; margin-inline-start: 12px; } .summary.open .sum-toggle::after { content: "–"; }
  .sum-body { display: none; padding: 8px 18px 20px; background: var(--ink); color: var(--parch); --hair-light: var(--hair-dark); }
  .summary.open .sum-body { display: block; }
  .fields { grid-template-columns: 1fr 1fr; }
  /* total + place-order stay in reach on phones */
  .co-submit { position: sticky; bottom: 0; z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bone) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--hair-light); }
  .co-total { display: flex; }
  .co .btn.rust { padding: 16px; }
}

/* ---------- Arabic ---------- */
/* Brand spec (P-48, 2026-10-07): Noto Kufi Arabic Black headlines, Amiri body. Arabic runs ~0.62x the
   Latin headline size with ~1.6x the line-height. Letter-spacing breaks Arabic
   joining, so it is always zero. */
:root[lang="ar"] { --display: "Noto Kufi Arabic", "Bunni Digits", "Anton", sans-serif; --body: "Amiri", "Bunni Digits", "Rufina", serif; --mono: "Amiri", "Bunni Digits", "Rufina", serif; }
:root[lang="ar"] * { letter-spacing: 0 !important; }
:root[lang="ar"] .mono, :root[lang="ar"] .btn { font-size: 15px; }
:root[lang="ar"] .hero h1 { font-weight: 900; font-size: clamp(34px, 5.2vw, 82px); line-height: 1.5; }
:root[lang="ar"] .sec-head h2, :root[lang="ar"] .story h2 { font-weight: 900; font-size: clamp(26px, 3.5vw, 52px); line-height: 1.5; }
:root[lang="ar"] .co h1, :root[lang="ar"] .policy h1 { font-weight: 900; font-size: clamp(26px, 3vw, 44px); line-height: 1.5; }
:root[lang="ar"] .dr-head h3, :root[lang="ar"] .summary h2, :root[lang="ar"] .policy h2 { font-weight: 900; line-height: 1.5; }
:root[lang="ar"] .stats b { font-family: "Bunni AR Digits", var(--display); font-weight: 900; font-size: 56px; -webkit-text-stroke: .045em currentColor; paint-order: stroke fill; }  /* hero numbers: Amiri Bold digits (Mostafa, 2026-10-25) */
@media (max-width: 900px) { :root[lang="ar"] .stats b { font-size: 42px; } }
:root[lang="ar"] .pdp-name { font-size: clamp(26px, 3vw, 42px); line-height: 1.5; }
:root[lang="ar"] .brew-card h3, :root[lang="ar"] .foot-sub h3, :root[lang="ar"] .menu-links a { font-weight: 900; line-height: 1.5; }
:root[lang="ar"] .menu-links a { font-size: clamp(34px, 10vw, 56px); }
:root[lang="ar"] .strip span, :root[lang="ar"] .announce, :root[lang="ar"] .fl, :root[lang="ar"] .pill { font-size: 15px; }
:root[lang="ar"] body { line-height: 1.8; }

/* right-to-left layout */
[dir="rtl"] .stats div, [dir="rtl"] .trust-in div { border-left: 0; padding-left: 0; border-right: 1px solid var(--hair-dark); padding-right: 28px; }
[dir="rtl"] .trust-in div { border-right-color: var(--hair-light); }
[dir="rtl"] .stats div:first-child, [dir="rtl"] .trust-in div:first-child { border-right: 0; padding-right: 0; }
[dir="rtl"] .card-main, [dir="rtl"] .sizes button { text-align: right; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-102%); }
[dir="rtl"] .drawer.on { transform: none; }
[dir="rtl"] .bagbtn.full { padding-right: 0; padding-left: 10px; }
[dir="rtl"] .bagbtn.full b { right: auto; left: 0; }
.band { direction: ltr; }
.logo { direction: ltr; }
[dir="rtl"] .toast { direction: rtl; }
@media (max-width: 900px) {
  [dir="rtl"] .trust-in div:nth-child(3) { border-right: 0; padding-right: 0; }
  [dir="rtl"] .stats div { padding-right: 16px; }
}
.dr-foot:empty { display: none; }

/* payment choice (checkout) */
/* BenefitPay app icon (official, from the App Store listing; redrawn from it as SVG), shown beside the transfer option */
.bp-ico { width: 36px; height: 36px; flex: none; }
.bp-ico.sm { display: inline-block; width: 20px; height: 20px; vertical-align: -5px; margin-inline-end: 4px; }
.pm-legend { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.pay-only { margin: 0 0 28px; }
.pm-only { cursor: default; align-items: center; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pm { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--hair-light); background: var(--bone); margin-top: 10px; cursor: pointer; }
.pm:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pm input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.pm span { display: grid; gap: 2px; } .pm small { opacity: .7; font-size: 13px; }
.act-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* one-tap payment buttons (checkout) */
.express { margin: 8px 0 4px; }
.wallets { position: relative; display: grid; gap: 10px; margin-top: 10px; }
.wslot { min-height: 48px; }
.wslot > * { width: 100%; }
.wbtn { width: 100%; height: 48px; border: 0; border-radius: 8px; font: 600 17px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
.wbtn.apple, .wbtn.google { background: #000; color: #fff; }
.wbtn.benefit { background: var(--ink); color: var(--bone); }
.wlock { position: absolute; inset: 0; width: 100%; border: 1px dashed var(--ink); background: color-mix(in srgb, var(--bone) 88%, transparent); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 8px; cursor: pointer; }
.wlock[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; opacity: .7; margin: 16px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--hair-light); }
dialog.bp { border: 1px solid var(--ink); padding: 24px; max-width: 420px; width: calc(100% - 32px); background: var(--parch); color: var(--ink); }
dialog.bp::backdrop { background: rgb(0 0 0 / .45); }
dialog.bp h2 { margin-top: 0; }

/* phones (audit 2026-10-16): no always-on blur while scrolling, and the grain sits in the page background
   instead of a fixed full-screen layer over everything */
@media (max-width: 900px) {
  header.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bone); }
  .buybar, .co-submit { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bone); }
  body::after { display: none; }
  body { background-image: linear-gradient(rgba(250,244,230,.955), rgba(250,244,230,.955)), url("/assets/grain.png"); background-image: linear-gradient(rgba(250,244,230,.955), rgba(250,244,230,.955)), image-set(url("/assets/grain.webp") type("image/webp"), url("/assets/grain.png") type("image/png")); background-size: auto, 256px 256px; }
}
.drawer { touch-action: pan-y; }   /* vertical scroll stays native; sideways swipes reach swipeBag() */

/* tap targets: footer links were 17-25px tall */
footer li a, footer ul a { display: inline-block; padding-block: 10px; }

/* confirmation screen as a boarding pass (2026-10-27) */
.done.pass { max-width: 460px; margin: -24px auto 0; background: var(--ink); color: var(--bone); border-radius: 24px; padding: 22px 18px 26px; }
.pass-top { color: var(--parch); margin-bottom: 16px; }
.ticket { background: var(--bone); color: var(--ink); border-radius: 14px; overflow: hidden; }
.t-head { padding: 20px 18px 18px; }
.done.pass h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 8.5vw, 38px); line-height: 1.05; margin: 4px 0 16px; }
.t-pair { display: flex; justify-content: space-between; gap: 12px; }
.t-pair b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.t-end { text-align: end; }
.tear { position: relative; border-top: 2px dashed var(--hair-light); margin: 0 14px; }
.tear::before, .tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.tear::before { inset-inline-start: -25px; } .tear::after { inset-inline-end: -25px; }
.ticket { overflow: visible; }
.t-stub { border: 0; margin: 0; padding: 4px 18px 8px; background: none; }
.t-stub .xrow { padding: 12px 0; }
.t-stub .xrow b { font-size: 17px; }
.t-stub .copy { background: var(--rust); color: var(--bone); border: 0; }
.done.pass .sent { margin-top: 14px; }
.done.pass .btn.rust { width: 100%; justify-content: center; }
.done.pass .btn.line { border-color: var(--parch); color: var(--parch); width: 100%; justify-content: center; margin-top: 18px; }
.done.pass #doneLines { margin-top: 22px; color: var(--parch); }
.done.pass #doneLines .row { border-color: var(--hair-dark) !important; }
.done.pass p { color: var(--parch); font-size: 15px; }
.x-hint { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.4; opacity: .75; }
.t-pair b, :root[lang="ar"] .t-pair b { font-family: "Anton", sans-serif; font-weight: 400; }
.done.pass #saveOrder { margin-top: 0; }
:root[lang="ar"] .xrow b, :root[lang="ar"] .t-stub b { font-family: "Space Mono", monospace; }
.pdp-pay { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.pdp-pay .bp-ico { flex: none; margin-top: 1px; }

/* phone-first product page (2026-10-27): a shorter photo so name, price and sizes show on the first screen */
@media (max-width: 900px) {
  .g-slide { padding: 10px; }
  .g-slide img { max-height: 42vh; }
  .g-thumbs { margin-top: 8px; }
  .g-thumb { width: 52px; }
  .pdp-in { gap: 18px; }
  .pdp-name { font-size: 30px; margin: 6px 0 8px; }
  .pdp-info .pr { margin: 6px 0 12px; }
}
