/* Shared structure for every theme. Themes set the tokens below and add their own section styles. */
@font-face { font-family: Marcellus; src: url(/fonts/marcellus.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; src: url(/fonts/fraunces-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; src: url(/fonts/fraunces.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Jost; font-weight: 100 900; src: url(/fonts/jost.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; src: url(/fonts/plex-arabic-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; src: url(/fonts/plex-arabic-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Amiri; font-weight: 400; src: url(/fonts/amiri-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Amiri; font-weight: 700; src: url(/fonts/amiri-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Markazi Text"; font-weight: 400 700; src: url(/fonts/markazi.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 100 900; src: url(/fonts/noto-kufi.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #0F2730;
  --deep: #0A1C23;
  --copper: #C4814F;
  --ivory: #F3EADA;
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #5a6a6c;
  --line: rgba(15, 39, 48, .16);
  --surface: #fff;
  --accent: var(--copper);
  --accent-fg: var(--ink);
  --field-bg: #fff;
  --field-line: rgba(15, 39, 48, .3);
  --error: #b42318;
  --ok: #1f6f3f;
  --radius: 4px;
  --track: .2em;
  --font-body: Jost, "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: Marcellus, Amiri, Georgia, serif;
  --font-italic: Fraunces, Georgia, serif;
  --f: var(--copper);
  --f-on: var(--ink);
}
html[lang="ar"] { --track: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; display: block; }
svg { direction: ltr; }
.sprite { position: absolute; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.4; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }
.page { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page.narrow { max-width: 860px; }
.page > h1, .prose h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6em; }
.it { font-family: var(--font-italic); font-style: italic; }
html[lang="ar"] .it { font-style: normal; }
.eyebrow { font-size: .74rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; margin: 0 0 1.2em; }
html[lang="ar"] .eyebrow { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--ink); color: var(--ivory); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price.big { font-size: 1.6rem; margin: 0; }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mark { width: auto; height: 100%; }
.wordmark, .beans-word { width: auto; height: 100%; }

/* Design-preview switcher (only in --preview builds) */
.preview-bar { background: #000; color: #fff; font: 500 12px/1.3 system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 6px clamp(12px, 3vw, 24px); }
.preview-links { display: flex; gap: 14px; }
.preview-links a { color: #bbb; text-decoration: none; }
.preview-links a[aria-current] { color: #fff; text-decoration: underline; }
.preview-note { border: 1px dashed currentColor; padding: 8px 12px; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--fg)); border-bottom: 1px solid var(--header-line, var(--line)); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 68px; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo, inherit); height: 44px; }
.logo-en { display: grid; justify-items: center; gap: 5px; }
.logo-en .wordmark { height: 17px; }
.logo-en .beans-word { height: 5.5px; opacity: .9; }
.logo-ar { font-family: Amiri, serif; font-weight: 700; font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.main-nav { order: 3; flex-basis: 100%; display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.main-nav a, .lang-toggle, .cart-link { text-decoration: none; font-size: .8rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; white-space: nowrap; padding-block: 6px; }
html[lang="ar"] :is(.main-nav a, .cart-link) { font-size: 1rem; }
.main-nav a[aria-current="page"], .main-nav a:hover { box-shadow: inset 0 -1px currentColor; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; }
.lang-toggle { letter-spacing: 0; text-transform: none; font-size: .9rem; opacity: .8; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; background: var(--accent); color: var(--accent-fg); font-size: .75rem; letter-spacing: 0; }
@media (min-width: 860px) { .main-nav { order: 0; flex-basis: auto; padding-bottom: 0; } }

/* Buttons */
.button, .add { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-fg);
  font-size: .82rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
html[lang="ar"] :is(.button, .add) { font-size: 1rem; font-weight: 600; }
.button:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.wide { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.add { min-height: 40px; padding: 8px 16px; background: transparent; color: inherit; border-color: currentColor; font-size: .72rem; }
.add:hover, .add.is-added { background: var(--f); color: var(--f-on); border-color: var(--f); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Section furniture shared by home pages */
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.sec-head .sub { margin: .8em 0 0; max-width: 46ch; opacity: .8; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.perks li { padding: 16px 14px; font-size: .8rem; letter-spacing: var(--track); text-transform: uppercase; text-align: center; }
html[lang="ar"] .perks li { font-size: .98rem; }
@media (min-width: 860px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.pouch, .pouch-set { width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .28)); overflow: visible; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } .also .grid { grid-template-columns: repeat(3, 1fr); } .also .card-art { padding-inline: 26%; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-art { display: block; padding: 8% 16% 4%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art { transform: translateY(-10px) rotate(-2deg); }
.card h3 { font-size: 1.5rem; }
.card-tag { font-size: .95rem; opacity: .75; }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .66rem; letter-spacing: var(--track); text-transform: uppercase; padding: 4px 10px; border: 1px solid currentColor; border-radius: 99px; }
html[lang="ar"] .badge { font-size: .8rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps h3 { font-size: 1.5rem; margin-bottom: .3em; }
.steps p { margin: 0; opacity: .85; }
.step-no { font-size: 3rem; line-height: 1; }
.ritual-grid, .set-grid, .story-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kanaka { width: min(100%, 320px); margin-inline: auto; }
.seal { width: 100%; height: auto; }
.set-text h2, .story-text h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .5em; }
.set-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 1.2em 0 0; }
.save { font-size: .9rem; opacity: .8; }
@media (min-width: 860px) {
  .ritual-grid { grid-template-columns: 1fr 1.5fr; }
  .set-grid { grid-template-columns: 1.15fr 1fr; }
  .story-grid { grid-template-columns: 260px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.footer-word { display: none; }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.assurances li { padding-inline-start: 18px; position: relative; }
.assurances li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 2px; background: var(--accent-text, currentColor); }
.save strong { font-weight: 600; opacity: 1; }
.faq { padding-block: clamp(56px, 8vw, 110px); }
.faq-list { border-top: 1px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 64ch; }
@media (min-width: 860px) { .faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }
/* A buy bar pinned to the bottom of product pages on small screens */
.buy-bar { display: none; }
@media (max-width: 859px) {
  .buy-bar { position: fixed; z-index: 15; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ivory); color: var(--ink); border-top: 1px solid rgba(15, 39, 48, .25); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
  .buy-bar .button { min-height: 44px; padding: 8px 20px; background: var(--ink); border-color: var(--ink); color: var(--ivory); }
  .page-product .site-footer { padding-bottom: 72px; }
  .page-product .toast { bottom: 80px; }
}

/* Product page */
.crumbs { padding-block: 22px 8px; font-size: .85rem; opacity: .75; }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: 28px; padding-bottom: clamp(40px, 6vw, 80px); }
.product-art { width: 100%; max-width: 480px; justify-self: center; display: grid; gap: 14px; }
.product-front { padding: 6% 14%; }
.product-front:has(.pouch-set) { padding: 12% 4%; }
.product-views { margin: 0; display: grid; gap: 14px; padding: 18px; }
.views-row { display: flex; align-items: flex-end; gap: 14px; }
.view { min-width: 0; }
.view-face { flex: 200 1 0; max-width: 46%; }
.view-side { flex: 76 1 0; }
.view-bottom { flex: 200 1 0; }
.view .pouch { filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .2)); }
.product-views figcaption { font-size: .9rem; opacity: .85; }
.product-motif { width: 56px; margin-bottom: 10px; color: var(--f); }
.product-info h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .3em; }
.product-info h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.specs { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: .85rem; }
.add-form { display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.qty-row { display: grid; gap: 4px; }
.qty-row label { font-size: .8rem; opacity: .75; }
.qty-row input { width: 92px; }
.status { margin: 0; min-height: 1.5em; color: var(--ok); font-weight: 500; }
.status:empty { display: none; }
.assure { margin: 0; font-size: .88rem; opacity: .8; }
.also { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .product { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
  .product-art { position: sticky; top: 100px; max-width: none; }
}

/* Forms */
input, select, textarea { font: inherit; color: var(--field-fg, var(--ink)); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius); padding: 10px 12px; min-height: 48px; width: 100%; }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--error); }
.field { display: grid; gap: 4px; margin-bottom: 16px; }
.field label { font-weight: 500; }
.hint { margin: 0; font-size: .85rem; opacity: .7; }
.field-error, .form-error { margin: 0; color: var(--error); font-size: .9rem; font-weight: 500; }
.form-error { background: #fdecea; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px 6px; margin: 0 0 18px; min-width: 0; }
fieldset legend { font-family: var(--font-display); font-size: 1.25rem; padding-inline: 8px; }
.pay-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; }
.pay-option input { margin-top: 6px; }
.pay-option.disabled { opacity: .55; cursor: not-allowed; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 99px; font-size: .72rem; padding: 0 8px; margin-inline-start: 6px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 6px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Cart, checkout and confirmation */
.checkout { display: grid; gap: 24px; }
.checkout .summary { order: -1; }
.pay-total { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 12px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } .checkout .summary { order: 0; position: sticky; top: 100px; } }
.summary, .cart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; }
.summary h2 { font-size: 1.3rem; margin: 14px 0 4px; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line img { width: 64px; }
.line h3 { font-size: 1.15rem; }
.line p { margin: 0; font-size: .9rem; }
.line-total { font-weight: 500; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.stepper button, .link-button { cursor: pointer; }
.stepper button:not(.link-button) { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--field-line); background: transparent; font-size: 1.1rem; }
.stepper output { min-width: 28px; text-align: center; font-weight: 500; }
.link-button { background: none; border: 0; text-decoration: underline; padding: 4px 6px; margin-inline-start: 8px; opacity: .75; }
.totals { margin: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.totals dt { opacity: .75; }
.totals dd { margin: 0; text-align: end; font-weight: 500; }
.totals .grand { font-family: var(--font-display); font-size: 1.35rem; opacity: 1; }
.order { text-align: center; }
.order-seal { width: 130px; margin: 0 auto 24px; color: var(--accent); }
.order-number { font-size: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: inline-block; }
.order .summary { text-align: start; margin-bottom: 24px; }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose li { margin-bottom: 6px; }
.prose a { color: inherit; }
.facts { display: grid; gap: 4px 20px; }
.facts dt { font-weight: 600; margin-top: 12px; }
.facts dd { margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: 220px 1fr; } .facts dt { margin-top: 0; } }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: start; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Footer */
.site-footer { background: var(--footer-bg, var(--deep)); color: var(--footer-fg, #c9d2d0); font-size: .92rem; padding-top: clamp(36px, 5vw, 64px); }
.site-footer a { color: inherit; }
.site-footer h2 { font-family: var(--font-body); font-size: .76rem; letter-spacing: var(--track); text-transform: uppercase; font-weight: 500; margin: 0 0 14px; color: var(--footer-head, var(--copper)); }
html[lang="ar"] .site-footer h2 { font-size: 1rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .footer-logo { margin-bottom: 18px; color: var(--footer-head, var(--copper)); }
.site-footer .copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin: 36px auto 0; padding-block: 18px; font-size: .82rem; opacity: .7; }

.toast { position: fixed; z-index: 30; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 460px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  background: var(--ivory); color: var(--ink); border-radius: 6px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55); border-inline-start: 4px solid var(--copper);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s; }
.toast.is-open { opacity: 1; visibility: visible; transform: none; }
.toast a { font-weight: 600; white-space: nowrap; }

/* Scroll reveal and motion: progressive enhancement only */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
  .steam { animation: steam 3.2s ease-in-out infinite; }
  .steam.s2 { animation-delay: .9s; }
  .steam.s3 { animation-delay: 1.8s; }
}

/* Theme V4 — Galata Hours. Lapis, cream and saffron; each flavour is an hour of the day (colours in themes/v4-art.js). */
@font-face { font-family: Gloock; src: url(/fonts/gloock.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; src: url(/fonts/instrument-sans-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; src: url(/fonts/instrument-sans-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "El Messiri"; font-weight: 700; src: url(/fonts/el-messiri-700.woff2) format("woff2"); font-display: swap; }
@property --sky { syntax: "<color>"; inherits: true; initial-value: #F3A266; }
@property --sun { syntax: "<color>"; inherits: true; initial-value: #FBC35A; }

:root {
  --lapis: #1E2C64;
  --night: #141D45;
  --cream: #F5ECDC;
  --gold: #E3A73C;
  --ink: var(--lapis);
  --ivory: var(--cream);
  --deep: var(--night);
  --copper: var(--gold);
  --bg: var(--cream);
  --fg: var(--lapis);
  --muted: #59618A;
  --line: rgba(30, 44, 100, .15);
  --surface: #FBF7EF;
  --accent: var(--lapis);
  --accent-fg: var(--cream);
  --accent-text: var(--gold);
  --field-bg: #FFFDF8;
  --field-line: rgba(30, 44, 100, .28);
  --radius: 14px;
  --track: .14em;
  --font-body: "Instrument Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: Gloock, "El Messiri", Georgia, serif;
  --font-italic: "Instrument Serif", "El Messiri", Georgia, serif;
  --header-bg: rgba(245, 236, 220, .88);
  --footer-bg: var(--night);
  --footer-fg: rgba(245, 236, 220, .78);
  --footer-head: var(--gold);
  --f: var(--gold);
  --f-on: var(--lapis);
  --disc: var(--cream);
}
html[lang="ar"] { --track: 0; }
html[lang="ar"] :is(h1, h2, h3, .faq summary, fieldset legend, .pay-total, .totals .grand) { font-family: "El Messiri", var(--font-display); font-weight: 700; }
html[lang="ar"] .it { font-family: "El Messiri", serif; }
::selection { background: var(--gold); color: var(--lapis); }
.it { font-weight: 400; }

/* Header */
.site-header { backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.logo .mark, .footer-logo .mark { width: 40px; height: 40px; }
.logo-en { gap: 4px; }
.logo-en .wordmark { height: 19px; }
.logo-en .beans-word { height: 5.6px; }
.logo-ar { font-family: "El Messiri", serif; font-size: 1.55rem; }
.cart-count { background: var(--gold); color: var(--lapis); font-weight: 600; }
.main-nav a, .cart-link { font-weight: 600; }

/* Buttons: pills */
.button, .add { border-radius: 999px; font-weight: 600; letter-spacing: .1em; }
html[lang="ar"] :is(.button, .add) { letter-spacing: 0; }
.button:hover { background: var(--night); border-color: var(--night); }
.button.ghost:hover { background: var(--lapis); color: var(--cream); border-color: var(--lapis); }
.add { padding-inline: 18px; }

/* ---------- Hero: the hour picker ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hour-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sky, .hero-grid { transition: --sky 1.1s ease, --sun 1.1s ease, color .6s; }
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--sky), #fff 26%), var(--sky) 62%); }
.stars { position: absolute; inset: 0 0 30% 0; opacity: 0; transition: opacity 1s;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, #0000), radial-gradient(1px 1px at 28% 64%, #fff 99%, #0000), radial-gradient(1.5px 1.5px at 44% 12%, #fff 99%, #0000),
    radial-gradient(1px 1px at 58% 40%, #fff 99%, #0000), radial-gradient(1.5px 1.5px at 76% 18%, #fff 99%, #0000), radial-gradient(1px 1px at 88% 52%, #fff 99%, #0000),
    radial-gradient(1px 1px at 6% 48%, #fff 99%, #0000), radial-gradient(1.5px 1.5px at 66% 70%, #fff 99%, #0000), radial-gradient(1px 1px at 36% 36%, #fff 99%, #0000); }
#hour-plain:checked ~ .sky .stars { opacity: .8; }

.hero-grid { color: var(--hero-ink, var(--lapis)); transition: color .6s; display: grid; padding-block: clamp(18px, 4vw, 56px) clamp(28px, 4vw, 56px);
  grid-template-areas: "copy" "dial" "stage" "picks" "lead"; gap: 18px; }
.hero-copy { grid-area: copy; }
.hero-copy .eyebrow { margin-bottom: .8em; opacity: .85; }
.hero h1 { font-size: clamp(2.3rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.01em; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero-lead { grid-area: lead; max-width: 40ch; margin: 0; font-size: 1.05rem; opacity: .9; }
.dial { grid-area: dial; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dial label { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 18px; cursor: pointer; text-align: center;
  transition: background .4s, color .4s, border-color .4s, transform .2s; }
.dial label:hover { transform: translateY(-2px); }
.dial-sun { width: 26px; height: 26px; border-radius: 50%; margin-bottom: 4px; box-shadow: 0 0 0 1.5px var(--cream);
  background: radial-gradient(circle at 50% 70%, var(--disc) 0 46%, var(--f) 47%); }
.dial-time { font-family: var(--font-italic); font-style: italic; font-size: 1.02rem; line-height: 1.1; }
html[lang="ar"] .dial-time { font-style: normal; font-family: "El Messiri", serif; font-size: .95rem; }
.dial-name { font-size: .68rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; opacity: .8; }
html[lang="ar"] .dial-name { font-size: .82rem; }

.stage, .picks { display: grid; }
.stage { grid-area: stage; justify-items: center; align-items: end; position: relative; --sun-size: min(90vw, 420px);
  --sun-mint: translate(-24%, 0); --sun-hazelnut: translate(8%, -16%); --sun-orange: translate(8%, 20%); --sun-plain: translate(-34%, -34%) scale(.5); }
/* The sun sits behind the bag and moves with the hour; the striped horizon runs the full width in front of it. */
.stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--sun-size); aspect-ratio: 1; margin: calc(var(--sun-size) / -2) 0 0 calc(var(--sun-size) / -2); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun), #fff 30%), var(--sun) 70%); transition: transform 1.3s cubic-bezier(.3, .7, .15, 1); }
.stage::after { content: ""; position: absolute; z-index: -1; top: 74%; height: 200vh; left: -100vw; right: -100vw;
  background: linear-gradient(var(--sky), var(--sky)) 0 66px / 100% 100% no-repeat, repeating-linear-gradient(to bottom, var(--sky) 0 11px, transparent 11px 17px); }
.picks { grid-area: picks; }
.bag, .pick { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, transform .9s cubic-bezier(.3, .7, .15, 1), visibility 0s .9s; }
.bag { width: min(54vw, 250px); transform: translateY(42px) rotate(-3deg); }
.bag .pouch { filter: drop-shadow(0 24px 22px rgba(20, 29, 69, .35)); }
.pick { transform: translateY(14px); align-self: start; }
.pick-time { font-size: 1.25rem; margin: 0; opacity: .9; }
.pick h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .1em 0 .2em; }
.pick-tag { margin: 0 0 14px; opacity: .9; }
.pick-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pick-buy .price { font-family: var(--font-display); font-size: 1.8rem; }
.hero .button { background: var(--hero-ink); color: var(--hero-contrast); border-color: var(--hero-ink); }
.hero .button:hover { background: var(--hero-contrast); color: var(--hero-ink); }
@media (max-width: 599px) {
  .hero-grid { gap: 14px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hero-copy .eyebrow { margin-bottom: .4em; }
  .pick-time { display: none; }
  .pick h2 { font-size: 1.55rem; }
  .dial label { padding-block: 7px 6px; }
  .pick-buy .button { flex: 1; }
}
@media (min-width: 960px) {
  .stage { --sun-size: min(36vw, 540px); --sun-mint: translate(-14%, 2%); }
  .hero-grid { min-height: min(820px, calc(100svh - 70px)); grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: 56px; row-gap: 26px; align-content: center;
    grid-template-areas: "copy stage" "lead stage" "dial stage" "picks stage"; }
  .stage { align-self: center; }
  .bag { width: min(30vw, 400px); }
  .dial { max-width: 520px; }
}

/* Ribbon of perks */
.ribbon { background: var(--lapis); color: var(--cream); }
.ribbon .perks li { color: var(--gold); padding-block: 18px; font-weight: 600; font-size: .74rem; }
html[lang="ar"] .ribbon .perks li { font-size: .95rem; }
.ribbon .perks li + li { box-shadow: inset 1px 0 rgba(245, 236, 220, .14); }

/* ---------- The day: one card per hour ---------- */
.lineup { padding-block: clamp(56px, 8vw, 120px); }
.sec-head .eyebrow { color: var(--muted); }
.day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 860px) { .day { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } }
@media (max-width: 599px) {
  .hour { border-radius: 22px; padding: 12px 12px 14px; }
  .hour-art { padding: 6% 6% 4%; }
  .hour h3 { font-size: 1.45rem; }
  .hour-time, .hour-tag { font-size: .85rem; }
  .hour-buy { flex-wrap: wrap; gap: 8px; }
  .hour-buy .add { width: 100%; }
}
.hour { position: relative; display: flex; flex-direction: column; background: var(--f); color: var(--f-on); border-radius: 28px; padding: 18px 20px 20px; overflow: hidden; isolation: isolate; }
.hour::before { content: ""; position: absolute; z-index: -1; width: 86%; aspect-ratio: 1; border-radius: 50%; left: 7%; top: 4%; background: var(--disc); opacity: .9; transition: transform .6s cubic-bezier(.3, .7, .15, 1); }
.hour-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.hour-art { display: block; padding: 10% 14% 6%; transition: transform .5s cubic-bezier(.3, .7, .15, 1); }
.hour:hover .hour-art { transform: translateY(-8px) rotate(-2deg); }
.hour:hover::before { transform: translateY(10px); }
.hour-time { font-size: 1.1rem; opacity: .9; }
.hour h3 { font-size: 2rem; }
.hour-tag { font-size: .95rem; opacity: .85; }
.hour-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.hour-buy .price { font-family: var(--font-display); font-size: 1.3rem; }
.hour .add { border-color: currentColor; }
.hour .add:hover, .hour .add.is-added { background: var(--f-on); color: var(--f); border-color: var(--f-on); }

/* ---------- Discovery Set ---------- */
.set { background: var(--night); color: var(--cream); padding-block: clamp(56px, 8vw, 120px); position: relative; overflow: hidden; }
.set::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: repeating-linear-gradient(to bottom, var(--lapis) 0 3px, transparent 3px 6px); }
.set .eyebrow { color: var(--gold); }
.set-text h2 { color: var(--cream); }
.set .button { background: var(--gold); border-color: var(--gold); color: var(--lapis); }
.set .button:hover { background: var(--cream); border-color: var(--cream); }
.set .button.ghost { background: transparent; color: var(--cream); border-color: rgba(245, 236, 220, .5); }
.set .button.ghost:hover { background: var(--cream); color: var(--lapis); }
.set-price .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); }
.pouch-set { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .4)); }

/* ---------- Ritual ---------- */
.ritual { padding-block: clamp(56px, 8vw, 120px); }
.ritual .kanaka { color: var(--lapis); width: min(100%, 380px); }
.ritual .steam { stroke: var(--gold); }
.ritual .k-line { stroke: var(--cream); }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.step-no { display: block; font-family: var(--font-display); font-style: normal; font-size: 3.4rem; color: var(--gold); margin-bottom: 8px; }

/* ---------- Story ---------- */
.story { background: var(--f, var(--gold)); --f: #E8692D; color: var(--lapis); padding-block: clamp(56px, 8vw, 110px); }
.story-seal { width: min(240px, 60vw); margin-inline: auto; color: var(--lapis); }
@media (prefers-reduced-motion: no-preference) { .story-seal .seal { animation: spin 60s linear infinite; } }
.story .text-link { font-weight: 600; }

/* ---------- Trust and FAQ ---------- */
.trust { padding-block: clamp(48px, 7vw, 96px) 0; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
.trust-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.trust-mark { width: 38px; height: 38px; color: var(--gold); margin-bottom: 14px; }
.trust-list h3 { font-size: 1.45rem; margin-bottom: .35em; }
.trust-list p { margin: 0; color: var(--muted); }
.faq-list { border-top-color: var(--lapis); }

/* ---------- Product page ---------- */
.product-front { position: relative; isolation: isolate; background: var(--f); border-radius: 32px; padding: 10% 18% 8%; overflow: hidden; }
.product-front::before { content: ""; position: absolute; z-index: -1; width: 92%; aspect-ratio: 1; left: 4%; top: 2%; border-radius: 50%; background: var(--disc); }
.product-front::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 22%; background: linear-gradient(var(--f), var(--f)) bottom / 100% 40% no-repeat, repeating-linear-gradient(to bottom, var(--f) 0 9px, transparent 9px 14px); }
.product-front:has(.pouch-set) { background: var(--night); padding: 8% 4%; }
.product-front:has(.pouch-set)::before { background: var(--lapis); }
.product-front:has(.pouch-set)::after { display: none; }
.product-views { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.product-motif { width: 52px; height: 52px; }
.add-form { border-radius: 24px; }
.specs li { border-color: var(--line); background: var(--surface); }
.product-info .price.big { font-family: var(--font-display); font-size: 2rem; }
.also { border-top: 0; }
.buy-bar .button { border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer .footer-logo .mark { color: var(--gold); }
.footer-word { display: block; color: var(--gold); opacity: .9; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 44px) 0; max-width: 1240px; margin-inline: auto; }
.footer-word .wordmark { width: 100%; height: auto; }
.site-footer .copyright { border-top-color: rgba(245, 236, 220, .12); margin-top: 18px; }

.toast { border-inline-start-color: var(--gold); border-radius: 16px; }
.order-seal { color: var(--gold); }
.preview-bar { background: var(--night); }

/* Flavour colours from src/config.js */
.f-plain{--f:#4A2A1C;--f-on:#F3EADA}
.f-orange{--f:#D05A1E;--f-on:#0F2730}
.f-hazelnut{--f:#B98B56;--f-on:#0F2730}
.f-mint{--f:#2F8062;--f-on:#F3EADA}
.f-discovery{--f:#0F2730;--f-on:#F3EADA}
.f-mint{--f:#74B998;--f-on:#1E2C64;--disc:#F6E7A8}
#hour-mint:checked~:is(.sky,.hero-grid){--sky:#B5DCC5;--sun:#F6E7A8}
#hour-mint:checked~.hero-grid .stage::before{transform:var(--sun-mint)}
#hour-mint:checked~.hero-grid{--hero-ink:#1E2C64;--hero-contrast:#F5ECDC}
#hour-mint:checked~.hero-grid :is(.bag-mint,.pick-mint){opacity:1;visibility:visible;transform:none;transition-delay:.12s,.12s,0s}
#hour-mint:checked~.hero-grid .dial-mint{background:var(--hero-ink);color:var(--hero-contrast);border-color:var(--hero-ink)}
#hour-mint:focus-visible~.hero-grid .dial-mint{outline:2px solid var(--hero-ink);outline-offset:3px}
.f-hazelnut{--f:#C99A62;--f-on:#1E2C64;--disc:#F7D98B}
#hour-hazelnut:checked~:is(.sky,.hero-grid){--sky:#E4C9A0;--sun:#F7D98B}
#hour-hazelnut:checked~.hero-grid .stage::before{transform:var(--sun-hazelnut)}
#hour-hazelnut:checked~.hero-grid{--hero-ink:#1E2C64;--hero-contrast:#F5ECDC}
#hour-hazelnut:checked~.hero-grid :is(.bag-hazelnut,.pick-hazelnut){opacity:1;visibility:visible;transform:none;transition-delay:.12s,.12s,0s}
#hour-hazelnut:checked~.hero-grid .dial-hazelnut{background:var(--hero-ink);color:var(--hero-contrast);border-color:var(--hero-ink)}
#hour-hazelnut:focus-visible~.hero-grid .dial-hazelnut{outline:2px solid var(--hero-ink);outline-offset:3px}
.f-orange{--f:#E8692D;--f-on:#1E2C64;--disc:#FBC35A}
#hour-orange:checked~:is(.sky,.hero-grid){--sky:#F3A266;--sun:#FBC35A}
#hour-orange:checked~.hero-grid .stage::before{transform:var(--sun-orange)}
#hour-orange:checked~.hero-grid{--hero-ink:#1E2C64;--hero-contrast:#F5ECDC}
#hour-orange:checked~.hero-grid :is(.bag-orange,.pick-orange){opacity:1;visibility:visible;transform:none;transition-delay:.12s,.12s,0s}
#hour-orange:checked~.hero-grid .dial-orange{background:var(--hero-ink);color:var(--hero-contrast);border-color:var(--hero-ink)}
#hour-orange:focus-visible~.hero-grid .dial-orange{outline:2px solid var(--hero-ink);outline-offset:3px}
.f-plain{--f:#3B231B;--f-on:#F5ECDC;--disc:#F2E4C8}
#hour-plain:checked~:is(.sky,.hero-grid){--sky:#1B2550;--sun:#F2E4C8}
#hour-plain:checked~.hero-grid .stage::before{transform:var(--sun-plain)}
#hour-plain:checked~.hero-grid{--hero-ink:#F5ECDC;--hero-contrast:#1E2C64}
#hour-plain:checked~.hero-grid :is(.bag-plain,.pick-plain){opacity:1;visibility:visible;transform:none;transition-delay:.12s,.12s,0s}
#hour-plain:checked~.hero-grid .dial-plain{background:var(--hero-ink);color:var(--hero-contrast);border-color:var(--hero-ink)}
#hour-plain:focus-visible~.hero-grid .dial-plain{outline:2px solid var(--hero-ink);outline-offset:3px}
