/* Neeb website v0.4 — minimal frame, the packages bring the colour.
   Layout: one-line hero → two drifting rows of bags → bag grid → one wholesale line.
   Tokens from ../brand/neeb.css (olive, cream, stone, ink, roast…). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Hold the frame until site.js has put the visitor's copy in (see the <head> snippet). Max 3 s. */
.i18n-wait body > * { visibility: hidden; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 17px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-family: var(--f-arabic); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--f-arabic); font-weight: 600; }
em { font-style: italic; color: var(--olive); }
html[dir="rtl"] em { font-style: normal; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.label { font: 600 12px var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--olive); }
html[dir="rtl"] .label { font-family: var(--f-arabic); letter-spacing: 0; font-size: 14px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; text-decoration: none; font: 600 14px var(--f-sans); letter-spacing: .03em; border: 1px solid transparent; cursor: pointer; transition: transform var(--t-ui) var(--ease-pour), background var(--t-ui) var(--ease-settle), color var(--t-ui); }
html[dir="rtl"] .btn { font-family: var(--f-arabic); letter-spacing: 0; font-size: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn.ink { background: var(--ink); color: var(--stone); }
.btn.ink:hover { background: var(--olive); }
.btn.line { border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--stone); }
.btn.cream { background: var(--cream); color: var(--olive-deep); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: color-mix(in srgb, var(--stone) 88%, transparent); backdrop-filter: blur(10px); }
.nav-mark { width: 92px; color: var(--olive); display: block; }
/* Reserve the logo boxes before the SVGs are fetched (no layout shift). Ratios = the files' viewBox. */
.nav-mark [data-logo] { display: block; aspect-ratio: 149.332 / 88.403; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a, .nav .lang { font: 600 12px var(--f-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px 0; }
.nav nav a[aria-current="page"] { color: var(--olive); border-bottom: 1px solid var(--olive); }
.nav .lang { font-family: var(--f-arabic); letter-spacing: 0; font-size: 15px; text-transform: none; }
html[dir="rtl"] .nav nav a { font-family: var(--f-arabic); letter-spacing: 0; font-size: 15px; }
html[dir="rtl"] .nav .lang { font-family: var(--f-sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

/* hero */
.hero { text-align: center; padding: 72px 20px 48px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 108px); line-height: .98; letter-spacing: -0.015em; }
html[dir="rtl"] .hero h1 { line-height: 1.3; font-size: clamp(38px, 6vw, 84px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.rise { animation: rise var(--t-hero) var(--ease-pour) var(--d, 0s) both; }
/* .01, not 0: Chrome skips opacity-0 text for LCP and would wait for the web-font swap (~3s on 4G). */
@keyframes rise { from { opacity: .01; transform: translateY(22px); } }

/* drifting rows of bags */
.drift-wrap { position: relative; --bag: clamp(150px, 17vw, 230px); }
.drift { display: grid; gap: 16px; padding-block: 8px 96px; overflow: hidden; direction: ltr; }
.row { display: flex; gap: 16px; width: max-content; min-height: calc(var(--bag) * 1044 / 871); animation: drift 80s linear infinite; }
.row.rev { animation-direction: reverse; animation-duration: 95s; }
.drift:hover .row, .drift.paused .row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.bag { width: var(--bag); aspect-ratio: 871 / 1044; flex: none; background: var(--c, var(--olive)); overflow: hidden; }
/* pause / play for the drifting rows (WCAG 2.2.2) */
.drift-toggle { position: absolute; bottom: 36px; inset-inline-start: 32px; /* start side: the chat button owns the end corner (RTL overlap at 390px) */ width: 36px; height: 36px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background var(--t-ui), color var(--t-ui); }
.drift-toggle:hover { background: var(--ink); color: var(--stone); }
.drift-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.drift-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; margin-left: 3px; }
.bag img { width: 100%; height: 100%; object-fit: cover; }

/* coffee grid */
.coffee { padding-block: 40px 120px; }
.coffee-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.coffee-head h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { font: 600 12px var(--f-sans); letter-spacing: .16em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: background var(--t-ui), color var(--t-ui); }
html[dir="rtl"] .tabs button { font-family: var(--f-arabic); letter-spacing: 0; font-size: 14px; }
.tabs button span { font: 400 11px var(--f-mono); opacity: .6; margin-inline-start: 6px; }
.tabs button.on { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; background: var(--c); color: var(--k); transition: transform var(--t-reveal) var(--ease-pour); animation: rise .9s var(--ease-pour) both; animation-delay: calc(var(--i, 0) * 50ms); }
.tile:hover { transform: translateY(-6px); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tile .pic { aspect-ratio: 871 / 1044; overflow: hidden; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-pour); }
.tile:hover .pic img { transform: scale(1.04); }
.tile .cap { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .cap b { font: 500 24px/1.1 var(--f-display); }
html[dir="rtl"] .tile .cap b { font: 600 19px/1.4 var(--f-arabic); }
.tile .cap span { font: 400 12px var(--f-mono); opacity: .8; }
html[dir="rtl"] .tile .cap span { font: 400 13px var(--f-arabic); }
.tile .plain { aspect-ratio: 871 / 1044; display: grid; place-items: center; }
.tile .plain div { width: 46%; color: var(--k); opacity: .9; }

/* wholesale band */
.band { background: var(--olive); color: var(--cream); padding-block: 56px; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { margin: 0; font: 500 clamp(28px, 3.4vw, 44px)/1.15 var(--f-display); }
html[dir="rtl"] .band p { font: 600 clamp(22px, 2.6vw, 32px)/1.5 var(--f-arabic); }
.band em { color: var(--cream); } /* crema on olive fails contrast (2.94, brand §contrast) */

/* product sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.sheet-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); animation: fade .3s ease both; }
.sheet-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--stone); animation: rise .5s var(--ease-pour) both; }
.sheet-art { background: var(--c, var(--olive)); display: grid; place-items: center; min-height: 360px; }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; }
.sheet-art .plain { width: 40%; color: var(--k); }
.sheet-body { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sheet-body h3 { font-size: clamp(34px, 4vw, 48px); line-height: 1.02; }
.type { font: 400 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--olive); }
.close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--ink); color: var(--stone); font-size: 22px; cursor: pointer; line-height: 1; }
.facts { margin: 6px 0 4px; display: grid; gap: 6px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); padding-block: 8px; }
.facts dt { font: 600 12px var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }
html[dir="rtl"] .facts dt { font-family: var(--f-arabic); letter-spacing: 0; font-size: 14px; }
.facts dd { margin: 0; text-align: end; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; }
.notes span { background: color-mix(in srgb, var(--c, var(--olive)) 35%, var(--stone)); padding: 6px 13px; border-radius: 999px; font-size: 14px; }
.prices { margin-top: 6px; }
.prices div { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.prices b { font: 400 16px var(--f-mono); color: var(--roast); font-variant-numeric: tabular-nums; }
.sheet-body .btn { align-self: flex-start; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }

/* wholesale page */
.ws-hero { padding-block: 64px 0; }
.ws-hero h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; margin: 16px 0 36px; }
html[dir="rtl"] .ws-hero h1 { line-height: 1.3; }
.ws-hero h1 { margin-bottom: 28px; }
.ws-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; font-size: 17px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 12px var(--f-mono); color: var(--roast); margin-bottom: 6px; }
.ws-strip { display: flex; height: 140px; overflow: hidden; }
.ws-strip img { height: 100%; flex: 1 1 0; min-width: 0; object-fit: cover; }
.pricing { padding-block: 72px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
.tier-table, .calc-box { background: var(--paper); padding: 32px; }
.tier-table .label { margin-bottom: 14px; }
#tierTable { min-height: 280px; } /* 5 tiers × 56px, reserved before pricing.json arrives */
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); transition: background var(--t-ui), color var(--t-ui); }
.tier .r { font: 400 14px var(--f-mono); }
.tier b { font: 400 16px var(--f-mono); color: var(--roast); }
.tier.on { background: var(--olive); color: var(--cream); }
.tier.on b { color: var(--cream); }
.fine { font-size: 13px; color: var(--ink); margin: 16px 0 0; }
.calc-box { display: flex; flex-direction: column; gap: 10px; }
.calc-box label { font: 600 11px var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-top: 8px; }
html[dir="rtl"] .calc-box label { font-family: var(--f-arabic); letter-spacing: 0; font-size: 14px; }
.calc-box select { width: 100%; min-width: 0; }
.calc-box input[type="range"] { accent-color: var(--olive); padding: 0; border: 0; background: none; }
#coffee, #pricing, #enquiry { scroll-margin-top: 84px; }
.calc-box output { font: 400 28px var(--f-mono); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: 6px; }
.calc-out div { background: var(--stone); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); }
.calc-out b { font: 400 21px var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-out .save b { color: var(--roast); }
.calc-out b { direction: ltr; unicode-bidi: isolate; align-self: flex-start; } /* "11.960 OMR" keeps its order in Arabic */
.calc-out .tot b { font-weight: 600; }
.calc-out .tot { box-shadow: inset 0 -2px 0 var(--olive); }
.calc-out span { overflow-wrap: anywhere; }
.calc-box .fine { margin: 4px 0 0; }
.next { min-height: 24px; color: var(--olive); margin: 6px 0; }
.calc-box .btn { align-self: flex-start; }
.terms { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.terms li { border-top: 2px solid var(--olive); padding-top: 12px; font-size: 15px; color: var(--ink); }
.enquiry { background: var(--paper); padding-block: 88px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.enquiry h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font: 600 11px var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
html[dir="rtl"] form label { font: 600 14px var(--f-arabic); letter-spacing: 0; }
form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; width: auto; min-height: 0; animation: none; } /* the drift strip's .row rule (max-content, animated) must not reach the form: it pushed the AR form 20 px off screen */
input, select, textarea { width: 100%; font: 16px var(--f-sans); color: var(--ink); background: var(--stone); border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding: 13px; border-radius: 2px; text-transform: none; letter-spacing: 0; }
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { font-family: var(--f-arabic); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--olive); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status { min-height: 26px; margin: 12px 0 0; }
.status.ok { color: var(--olive); } .status.err { color: var(--roast); }
.form-privacy { margin: 4px 0 0; font-size: 14px; }
.form-privacy a { color: var(--ink); text-underline-offset: 4px; display: inline-block; padding-block: 8px; }

/* privacy note */
.legal { padding-block: 72px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 14px 0 20px; }
html[dir="rtl"] .legal h1 { line-height: 1.3; font-size: clamp(34px, 5vw, 60px); }
.legal .lead { font-size: 19px; margin: 0 0 36px; }
.legal section { border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-block: 22px 6px; }
.legal h2 { font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
html[dir="rtl"] .legal h2 { font-size: 22px; line-height: 1.5; }
.legal p { margin: 0 0 16px; }
.legal .fine { margin-block: 28px 32px; }
/* terms of sale: the "last updated" line sits under the title (hidden until the build fills it); the contact buttons wrap on a phone */
.legal .tos-updated { margin: 0 0 20px; }
.legal [data-iu]:empty { display: none; }
.legal .tos-contact { display: flex; flex-wrap: wrap; gap: 12px; }
.legal section .fine { margin-block: 4px 16px; }
/* Unconfirmed facts stay visibly marked until Arash answers (Q-029). */
.legal mark { background: var(--cream); color: var(--ink); outline: 1px dashed var(--ink); padding: 0 4px; }

/* ---------- online shop (D-058): bag link, sheet buy box, bag + checkout, return pages ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav .nav-bag { display: inline-flex; align-items: center; gap: 6px; }
.bag-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--olive); color: var(--cream); font: 600 12px/1 var(--f-mono); letter-spacing: 0; }
.shop-strip { margin: 10px 0 0; font: 400 13px var(--f-mono); color: var(--olive); }
html[dir="rtl"] .shop-strip { font: 400 14px var(--f-arabic); }
/* the sheet's buy box */
.buy { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.buy fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.buy legend { margin-bottom: 8px; padding: 0; }
.buy .size { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-bottom-width: 0; cursor: pointer; font: 400 16px var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
html[dir="rtl"] .buy .size { font: 400 16px var(--f-arabic); }
.buy .size:last-child { border-bottom-width: 1px; }
.buy .size input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--olive); flex: none; }
.buy .size span { flex: 1; }
.buy .size b { font: 400 16px var(--f-mono); color: var(--roast); font-variant-numeric: tabular-nums; }
.buy .size:has(input:checked) { background: var(--paper); box-shadow: inset 3px 0 0 var(--olive); }
html[dir="rtl"] .buy .size:has(input:checked) { box-shadow: inset -3px 0 0 var(--olive); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; direction: ltr; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font: 400 22px/1 var(--f-sans); cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.stepper output { min-width: 28px; text-align: center; font: 400 17px var(--f-mono); }
.buy .btn { align-self: stretch; margin: 0; }
.added { margin: 0; padding: 12px 14px; background: var(--olive); color: var(--cream); font-size: 15px; }
.added a { color: var(--cream); font-weight: 600; text-underline-offset: 4px; }
/* Bag rows are ".lines > .line": a bare ".line" also matched the ".btn.line" buttons and laid them out as a
   three-column grid ("Order / on / WhatsApp" on phones). The sheet's WhatsApp button is one line, full width. */
.sheet-body .btn.line.wa { margin-top: 2px; align-self: stretch; white-space: nowrap; }
/* bag + checkout */
.shop { padding-block: 48px 96px; }
.shop h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 12px 0 28px; }
html[dir="rtl"] .shop h1 { line-height: 1.3; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.lines > .line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-block: 16px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.thumb { aspect-ratio: 871 / 1044; background: var(--c, var(--leaf)); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.what b { font: 500 22px/1.15 var(--f-display); }
html[dir="rtl"] .what b { font: 600 18px/1.45 var(--f-arabic); }
.what small { font-size: 14px; color: var(--ink); }
.ctl { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.ctl .q { font: 400 15px var(--f-mono); }
.rm { background: none; border: 0; padding: 10px 4px; color: var(--ink); font: 14px var(--f-sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html[dir="rtl"] .rm { font-family: var(--f-arabic); }
.amt { font: 400 16px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 4px; direction: ltr; unicode-bidi: isolate; }
.bag-empty { padding: 32px 0; display: grid; gap: 16px; justify-items: start; }
.bag-empty p { margin: 0; font-size: 19px; }
/* D-096 checkout: two cards on the left (delivery address, payment method), a sticky order summary on the right. Cards are paper on the stone page (BRAND-GUIDE §3).
   Logical properties only, so Arabic mirrors by itself. The total is ink and large; olive marks the selected payment method; the +968 chip is leaf with ink text (9.8:1). */
.checkout { margin: 0; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.co-main { display: grid; gap: 24px; min-width: 0; }
.co-card { background: var(--paper); padding: 28px; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); min-width: 0; }
.co-summary { position: sticky; top: clamp(-160px, calc(100vh - 920px), 96px); } /* a tall summary on a short screen slides up so Pay stays in view */
.co-h { font-size: 28px; line-height: 1.15; margin: 0 0 20px; }
html[dir="rtl"] .co-h { font-size: 22px; line-height: 1.5; }
.co-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
.co-row > label { min-width: 0; }
.checkout label small { font: 400 13px/1.5 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
html[dir="rtl"] .checkout label small { font-family: var(--f-arabic); font-size: 14px; }
.checkout select { margin-top: 0; }
.checkout textarea { resize: vertical; min-height: 64px; }
.tel { display: flex; align-items: stretch; background: var(--stone); border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 2px; }
.tel:focus-within { border-bottom-color: var(--olive); outline: 2px solid var(--olive); outline-offset: 2px; }
.tel .cc { display: grid; place-items: center; align-self: center; min-height: 32px; padding-inline: 12px; margin-inline: 8px 0; font: 400 15px var(--f-mono); letter-spacing: 0; color: var(--ink); background: var(--leaf); border-radius: 999px; }
.tel input { border-bottom: 0; direction: ltr; text-align: left; background: transparent; }
.tel input:focus-visible { outline: none; }
/* D-083: the area dropdown (grouped by wilayat) and the notes under it */
.checkout .area-note { margin: -8px 0 14px; font-size: 14px; color: var(--ink); }
.checkout .area-note:empty { display: none; }
.checkout .area-note a { color: var(--olive); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.checkout select option:disabled { color: color-mix(in srgb, var(--ink) 50%, transparent); }
/* payment method: one selected card (D-093: prepaid card through Thawani, nothing else) */
.pm { display: flex; flex-direction: row; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px 18px; background: var(--stone); border: 2px solid var(--olive); border-radius: 2px; cursor: default; font: 400 16px var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
html[dir="rtl"] .pm { font-family: var(--f-arabic); }
.pm input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--olive); flex: none; order: 3; margin-inline-start: auto; }
.pm-ic { flex: none; color: var(--olive); }
.pm-t { display: grid; gap: 2px; }
.pm-t b { font: 600 16px var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
html[dir="rtl"] .pm-t b { font-family: var(--f-arabic); }
.pm-t small { font: 400 14px var(--f-sans); }
.pm-note { margin: 0; font-size: 14px; color: var(--ink); }
/* order summary */
.co-summary .lines { border-top: 0; }
.co-summary .lines > .line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; }
.co-summary .what b { font-size: 20px; }
html[dir="rtl"] .co-summary .what b { font-size: 17px; }
.sum { margin: 8px 0 0; display: grid; }
.sum[hidden] { display: none; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.sum dt { font-size: 15px; display: grid; gap: 2px; }
.sum dt small { font: 400 13px/1.45 var(--f-sans); color: var(--ink); }
html[dir="rtl"] .sum dt small { font-family: var(--f-arabic); font-size: 13px; }
.sum dt small:empty { display: none; }
.sum dd { margin: 0; font: 400 16px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; } /* amounts read "78.000 OMR" in Arabic too */
.sum .tot { border-bottom: 0; padding-block: 16px 8px; align-items: center; }
.sum .tot dt { font-weight: 700; font-size: 17px; }
.sum .tot dd { font-size: 28px; color: var(--ink); }
.lead-line { margin: 8px 0 8px; font-size: 14px; }
.co-summary .remote-note { margin: 0 0 14px; font-size: 14px; color: var(--ink); }
.co-summary .remote-note:empty { display: none; }
.consent { font-size: 14px; margin: 14px 0 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.consent a { color: var(--ink); text-underline-offset: 4px; display: inline-block; padding-block: 6px; }
.checkout .pay { width: 100%; padding-block: 17px; font-size: 15px; gap: 10px; }
.checkout .pay .lock { flex: none; }
.checkout .pay[disabled] { opacity: .7; cursor: progress; transform: none; }
.status { text-align: start; }
.secure { font-size: 13px; margin: 10px 0 0; text-align: center; }
.done-sum { max-width: 420px; margin: 0 0 24px; }
/* notices: shop paused (sheet, bag) and "don't pay again" (success page). Ink on paper; one accent bar. */
.notice { margin: 0 0 24px; padding: 16px 18px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-inline-start: 4px solid var(--olive); display: grid; gap: 12px; justify-items: start; color: var(--ink); }
.notice[hidden] { display: none; }
.notice p { margin: 0; font-size: 16px; }
.notice b { font: 600 16px var(--f-sans); }
html[dir="rtl"] .notice b { font-family: var(--f-arabic); }
.notice.alert { border-inline-start-color: var(--roast); }
.notice:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.sheet-body .notice { margin: 4px 0 2px; }
.shop > .wrap > .notice { max-width: 760px; }
.shop-done .notice { margin: 0 0 24px; padding: 20px 22px; }
.shop-done .notice b { font-size: 20px; }
.shop-done .notice p { font-size: 19px; }
html[dir="rtl"] .shop-done .notice b { font-size: 20px; }
@media (max-width: 760px) { .shop > .wrap > .notice .btn { align-self: stretch; text-align: center; } }
/* return pages */
.shop-done { padding-block: 72px 96px; }
.shop-done .wrap { max-width: 760px; }
.shop-done h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 14px 0 20px; }
html[dir="rtl"] .shop-done h1 { line-height: 1.3; font-size: clamp(34px, 5vw, 60px); }
.shop-done .lead { font-size: 19px; margin: 0 0 24px; }
.shop-done .hero-cta { justify-content: flex-start; margin-top: 28px; }
.shop-done .lines.mini { margin-top: 8px; }
.shop-done .lines.mini .line { grid-template-columns: 48px minmax(0, 1fr) auto; }
.demo-note { display: inline-block; background: var(--cream); outline: 1px dashed var(--ink); padding: 6px 10px; font-size: 14px; }
.done-wa { margin-top: 28px; font-size: 15px; }
.done-wa a { color: var(--ink); text-underline-offset: 4px; }
.done-wa + .done-wa { margin-top: 8px; }

/* footer */
.foot { background: var(--olive-deep); color: var(--cream); text-align: center; padding: 72px 20px 56px; display: grid; justify-items: center; gap: 10px; }
.foot .label { color: var(--leaf); }
.foot .dim { opacity: 1; } /* leaf on olive deep 5.9 at full strength; at .65 it fell to 3.5 (§3) */
/* D-074: the legal entity, small and plain (not a label). Leaf on olive deep, same 5.9 contrast as the credit line. */
.foot-legal { color: var(--leaf); font: 400 12px/1.5 var(--f-sans); letter-spacing: .02em; max-width: 52ch; }
html[dir="rtl"] .foot-legal { font-family: var(--f-arabic); font-size: 13px; letter-spacing: 0; }
.foot-links { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; margin-block: 6px; }
.foot-links a { color: var(--cream); font: 600 14px var(--f-sans); letter-spacing: .03em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 10px 4px; }
html[dir="rtl"] .foot-links a { font-family: var(--f-arabic); letter-spacing: 0; font-size: 15px; }
.foot-links a:hover { color: var(--leaf); }
/* Phone action bar (wholesale only): hidden above 760px */
.mbar { display: none; }
.foot-mark { width: 130px; margin-bottom: 16px; aspect-ratio: 149.332 / 138.387; }

/* 404 */
.nf { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding: 72px 20px 96px; }
.nf h1 { font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -0.015em; }
html[dir="rtl"] .nf h1 { line-height: 1.3; font-size: clamp(36px, 5.6vw, 76px); }
.nf .hero-cta { margin-top: 16px; }

/* phone */
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .nav { padding: 12px 18px; }
  .nav nav { gap: 16px; }
  .nav nav a { letter-spacing: .12em; }
  .hero { padding-top: 48px; }
  .drift { padding-bottom: 64px; gap: 10px; }
  .drift-toggle { bottom: 16px; inset-inline-start: 18px; }
  .row { gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile .cap b { font-size: 19px; }
  .sheet-card { grid-template-columns: 1fr; }
  .sheet-art { min-height: 0; max-height: 46vh; overflow: hidden; }
  .sheet-art img { max-height: 46vh; } /* the art used to spill over the coffee name on phones */
  .sheet-body { padding: 28px 22px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .calc, .two, form .row { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr 1fr; } /* six cells in three rows; the amounts shrink so "1,234.567 OMR" fits a 390 px phone */
  .calc-out div { padding: 12px; }
  .calc-out b { font-size: 17px; }
  .ws-strip { height: 96px; }
  .ws-cta .btn { flex: 1 1 auto; }
  .mbar { position: fixed; z-index: 50; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); background: var(--olive-deep); box-shadow: 0 -8px 24px -16px color-mix(in srgb, var(--ink) 60%, transparent); transition: transform var(--t-ui) var(--ease-settle), visibility 0s; }
  .mbar.away { transform: translateY(110%); visibility: hidden; transition: transform var(--t-ui) var(--ease-settle), visibility 0s var(--t-ui); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; text-decoration: none; font: 600 14px var(--f-sans); letter-spacing: .03em; }
  html[dir="rtl"] .mbar a { font-family: var(--f-arabic); letter-spacing: 0; font-size: 15px; }
  .mbar-tasting { background: var(--cream); color: var(--olive-deep); }
  .mbar-wa { color: var(--cream); border: 1px solid color-mix(in srgb, var(--cream) 55%, transparent); }
  body[data-page="wholesale"] .foot { padding-bottom: 96px; }
  .shop { padding-top: 28px; }
  .co-grid { grid-template-columns: 1fr; gap: 20px; }
  .co-card { padding: 22px 16px; margin-inline: -18px; border-inline-width: 0; }
  .co-summary { position: static; }
  .co-row { grid-template-columns: 1fr; }
  .lines > .line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .shop-done { padding-top: 40px; }
  .shop-done .hero-cta .btn { flex: 1 1 auto; }
}
/* Small phones: four nav items don't fit beside the logo; the logo goes home, the coffees are one tap away. */
@media (max-width: 430px) {
  .nav nav { gap: 12px; }
  .nav nav a[href$="#coffee"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .row { animation: none; }
  .drift-toggle { display: none; }
  .mbar, .mbar.away { transition: none; }
  .rise, .tile { animation: none; }
}

/* Stock on the Asyad shelf (D-085): out of stock, only N left */
.buy .size em.stock, .line small.stock { font: 600 12px var(--f-sans); font-style: normal; letter-spacing: .04em; margin-inline-start: 8px; }
html[dir="rtl"] .buy .size em.stock, html[dir="rtl"] .line small.stock { font-family: var(--f-arabic); }
.buy .size em.stock.out { color: var(--roast); }
.buy .size em.stock.low, .line small.stock.low { color: var(--roast); }
.buy .size:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.low-note { margin: 8px 0 0; color: var(--roast); font-size: 14px; }
.low-note[hidden] { display: none; }
.stock-note p { margin: 0 0 8px; }
.stock-note a { color: var(--olive-deep, var(--olive)); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.tile.oos .cap span { color: var(--roast); font-weight: 600; }
.fresh-note { margin: 12px 0 0; font-size: 14px; color: var(--ink); }
.fresh-note:empty { display: none; }
