/* DELIA — shared styles for every page */
/* Self-hosted fonts (SIL OFL), latin subset. Inter is trimmed to weights 400-500. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-400.woff2?v=6c8e8a29) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-400-italic.woff2?v=bd51d639) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/inter-400-500.woff2?v=6ea1b265) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F3F0EB;
  --ink: #161413;
  --muted: #6B6560;
  --line: #DDD6CE;
  --field: #CFC8C0;        /* decorative rules */
  --control: #8B857F;      /* input borders: 3:1 on --bg (WCAG 1.4.11) */
  --placeholder: #736C67;  /* 4.5:1 on --bg */
  --error: #9E2F39;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }   /* short pages: footer stays at the bottom */
body > main { flex: 1 0 auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
img { display: block; max-width: 100%; }
picture { display: contents; }
picture source { display: none; } /* otherwise it can become an empty grid/flex item inside display:contents */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::placeholder { color: var(--placeholder); opacity: 1; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bot-field { display: none; }
em { font-style: italic; }

/* Icons: inline SVG, 20px, 1.5px line, currentColor (see scripts/icons.js and assets/icons-license.txt) */
.icon { display: inline-flex; flex: none; width: 20px; height: 20px; }
.icon-svg { display: block; width: 20px; height: 20px; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 40px; }
header > a, header nav a { display: inline-flex; align-items: center; min-height: 44px; }
header nav a { padding: 0 8px; }
header .logo { height: 28px; width: auto; }
header nav { display: flex; gap: 8px; align-items: center; margin-right: -8px; }
header nav .contact-link { gap: 8px; }
header nav .glyph-link, header nav .bag-link { min-width: 44px; justify-content: center; padding: 0 12px; }
.bag-link { position: relative; }
.bag-badge { position: absolute; top: 5px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 10px/16px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.bag-badge[hidden] { display: none; }

/* Hero: picture left, copy right (same on both pages) */
.hero { display: flex; flex-wrap: wrap; min-height: 820px; }
.hero-media { flex: 1 1 560px; min-width: 0; height: 820px; position: relative; display: flex; align-items: center; justify-content: center; padding: 32px; }
.hero-media img { height: 78%; width: auto; object-fit: contain; position: relative; z-index: 1; filter: sepia(0.07) saturate(1.02) brightness(1.01); }
/* Soft contact shadow under the bottle (the box has 32px padding and the bottle is 78% of what's left, centered) */
.hero-media::before { content: ''; position: absolute; left: 50%; bottom: calc(32px + (100% - 64px) * .11 - 12px); width: min(300px, 56%); height: 30px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(70, 45, 35, .45), rgba(70, 45, 35, .18) 55%, transparent 100%); filter: blur(5px); }
.hero-copy { flex: 1 1 480px; min-width: 0; padding: 64px 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy .inner { display: flex; flex-direction: column; gap: 40px; max-width: 460px; width: 100%; }
.eyebrow { color: var(--muted); margin-bottom: -16px; }
h1 { margin: 0; font: 400 clamp(64px, 8vw, 120px)/0.9 var(--serif); letter-spacing: -0.02em; }
h2 { margin: 0; font: 400 clamp(48px, 6vw, 88px)/0.95 var(--serif); letter-spacing: -0.02em; }

/* Underlined one-line form (coming-soon signup) */
.signup { display: flex; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--ink); }
.signup input[type="text"] { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; padding: 0; font: 400 16px var(--sans); color: var(--ink); }
.signup:focus-within { outline: 2px solid var(--ink); outline-offset: 6px; }
.signup input:focus { outline: none; }
.signup button { min-height: 48px; border: 0; background: transparent; padding: 0; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; letter-spacing: 0.02em; white-space: nowrap; }
.signup button:disabled { color: var(--muted); cursor: default; }
.thanks { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 16px; }
.form-error { margin: 0; color: var(--error); font-size: 13px; }
.form-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shop page ---------- */
/* Gallery: image stage with discreet ‹ › arrows, the Front · Back switcher directly under it,
   sized so the whole thing is visible without scrolling on a 1440x800 laptop (84px = header) */
body.shop .hero { min-height: min(820px, calc(100svh - 84px)); }
body.shop .hero-media { flex-direction: column; align-items: stretch; justify-content: flex-start; height: min(820px, calc(100svh - 84px)); min-height: 560px; padding: 8px 32px 0; }
body.shop .hero-media::before { display: none; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
/* the frame is exactly the photo's box, so the arrows can sit just outside the bottle */
.stage-frame { position: relative; display: flex; height: 100%; max-width: 100%; }   /* the bottle fills the stage height, never more */
body.shop .stage-frame img { height: 100%; width: auto; }
.stage::before { content: ''; position: absolute; left: 50%; bottom: -6px; width: min(300px, 56%); height: 30px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(70, 45, 35, .45), rgba(70, 45, 35, .18) 55%, transparent 100%); filter: blur(5px); }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 300 44px/1 var(--sans); opacity: .6; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; transition: opacity 250ms ease; }
.g-arrow:hover, .g-arrow:focus-visible { opacity: 1; }
.g-prev { right: 100%; margin-right: 4px; } .g-next { left: 100%; margin-left: 4px; }     /* just outside the bottle's box */
/* Desktop: arrows appear on hover or keyboard focus only. Touch and phones: swipe (arrows only appear for keyboard focus). */
@media (hover: hover) and (pointer: fine) { .g-arrow { opacity: 0; } .stage:hover .g-arrow, .stage:focus-within .g-arrow { opacity: .6; } .g-arrow:hover, .g-arrow:focus-visible { opacity: 1; } }
@media (hover: none), (max-width: 640px) { .g-arrow { opacity: 0; pointer-events: none; } .g-arrow:focus-visible { opacity: 1; pointer-events: auto; } }
.photo-switch { display: flex; justify-content: center; align-items: center; gap: 4px; }
.photo-switch span { color: var(--muted); }
.photo-switch button { min-width: 44px; min-height: 44px; border: 0; background: transparent; font: 400 13px var(--sans); color: var(--ink); cursor: pointer; }
.photo-switch button[aria-pressed="true"] { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.price-row { display: flex; align-items: baseline; gap: 16px; color: var(--muted); margin-top: -24px; }
.price-row strong { color: var(--ink); font-weight: 500; font-size: 20px; }

/* icon row: 22px icons, 14px text in ink at 85% */
.perks { list-style: none; margin: -24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(22, 20, 19, 0.85); font-size: 14px; }
.perks li { display: inline-flex; align-items: center; gap: 10px; }
.perks .icon, .perks .icon-svg { width: 22px; height: 22px; }
.perks li[hidden] { display: none; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; width: 100%; border: 0; background: var(--ink); color: var(--bg); font: 500 14px var(--sans); letter-spacing: 0.04em; cursor: pointer; }
.btn:hover { color: var(--bg); background: #2C2725; }
.btn:disabled { background: var(--muted); cursor: default; }

.accordion { border-top: 1px solid var(--field); }
.accordion details { border-bottom: 1px solid var(--field); }
.accordion summary { min-height: 52px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; }
.accordion details[open] summary::after { content: '−'; }
.accordion p, .faq { display: contents; }
.reviews { width: 100%; max-width: 1120px; margin: 0 auto; padding: 72px 40px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; border-top: 1px solid var(--line); }
.reviews[hidden] { display: none; }
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font: 400 26px/1.25 var(--serif); letter-spacing: -0.01em; }
.review figcaption { color: var(--muted); font-size: 14px; }
.review figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.accordion ul { margin: 0 0 18px; line-height: 1.6; color: var(--muted); }
.accordion ul { padding: 0; list-style: none; }

/* Form fields (checkout) */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid var(--control); background: transparent; padding: 0; font: 400 16px var(--sans); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 72px; padding-top: 12px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.signup input[aria-invalid="true"] { color: var(--error); }
.field-error { margin: 2px 0 0; color: var(--error); font-size: 13px; line-height: 1.4; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field.invalid label { color: var(--error); }
.field-row { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.field-row .field { flex: 1 1 200px; min-width: 0; }

/* Quantity stepper */
.qty { display: flex; align-items: center; border: 1px solid var(--control); min-height: 56px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; color: var(--ink); cursor: pointer; }
.qty button:disabled { color: var(--control); cursor: default; }
.qty output { flex: 1; text-align: center; font-size: 16px; }
.qty-sm { min-height: 40px; width: 116px; }
.qty-sm button { width: 36px; height: 36px; }
.buy { display: flex; gap: 12px; align-items: stretch; margin-top: -20px; } /* price, claim and button read as one block */
.buy .qty { flex: 0 0 136px; }
.buy .btn { flex: 1; width: auto; }

.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; }
.linkbtn:hover { color: var(--ink); }
.linkbtn.center { align-self: center; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }

/* Sticky "Add to bag" bar (phones only, shown once the main button has scrolled away) */
.sticky-bar { display: none; }

/* Bag drawer: the native <dialog> IS the panel. It slides in from the right (full width on phones) and the page dims
   behind it (::backdrop). Nothing sits off-screen inside a scrolling box, so focusing a button can never shift it. */
dialog.bag { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(440px, 100%); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--bg); color: var(--ink); transform: translateX(100%); transition: transform 250ms ease; }
dialog.bag[open] { display: flex; flex-direction: column; }
dialog.bag.open { transform: none; }
dialog.bag::backdrop { background: rgba(22, 20, 19, 0); transition: background-color 250ms ease; }
dialog.bag.open::backdrop { background: rgba(22, 20, 19, 0.42); }
.bag-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
html.lock { overflow: hidden; padding-right: var(--sbw, 0); }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font: 400 32px/1 var(--serif); letter-spacing: -0.01em; }
.bag-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 16px; color: var(--ink); cursor: pointer; }
.bag-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 72px; height: 96px; object-fit: contain; }
.bag-item-price, .os-price { text-align: right; font-variant-numeric: tabular-nums; }
.bag-item p { margin: 0; }
.bag-item-name { font-weight: 500; }
.bag-item-meta { color: var(--muted); }
.bag-item-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.bag-info { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; color: var(--muted); }
.bag-info p { margin: 0; line-height: 1.5; }
.bag-foot .bag-reassure { justify-content: center; color: var(--muted); margin: -4px 0 0; }
.bag-reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.reassure-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.reassure-item .sep { margin-left: 2px; }
.bag-free { color: var(--ink); font-weight: 500; }
.bag-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 0; }
.bag-empty p { margin: 0; font: 400 28px/1.1 var(--serif); }
.bag-foot { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bag-row { display: flex; justify-content: space-between; font-size: 16px; }
.bag-note { margin: 0; color: var(--muted); margin-top: -8px; }

/* Checkout page */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 80px; align-items: start; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 40px 96px; box-sizing: border-box; }
.checkout-form { min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 32px; }
.checkout-form h1, .checkout-empty h1, .order-confirm h1 { font: 400 clamp(48px, 6vw, 80px)/0.95 var(--serif); letter-spacing: -0.02em; margin: 0; }
.checkout-form form { display: flex; flex-direction: column; gap: 28px; }
/* Payment methods: selectable cards (the whole card is the label; the radio sits invisibly on top for the keyboard) */
.pay { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pay legend { padding: 0; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 12px; }
.pay-option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--control); cursor: pointer; transition: border-color 250ms ease, background-color 250ms ease; }
.pay-option[hidden] { display: none; }
.pay-option:hover { border-color: var(--muted); }
.pay-option.selected { border-color: var(--ink); background: rgba(22, 20, 19, 0.04); }
.pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.pay-icon { flex: none; display: flex; align-items: center; min-width: 20px; min-height: 20px; margin-top: 2px; color: var(--ink); }
.pay-icon img { display: block; height: 20px; width: auto; }
.pay-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pay-text small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.pay-check { flex: none; position: relative; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--control); border-radius: 50%; }
.pay-option.selected .pay-check { border-color: var(--ink); }
.pay-option.selected .pay-check::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.left-note { margin: -24px 0 0; color: var(--error); font-size: 14px; font-weight: 500; }
.soldout { display: flex; flex-direction: column; gap: 14px; padding: 16px 0 4px; border-top: 1px solid var(--ink); }
.soldout-title { margin: 0; font: 400 32px/1.05 var(--serif); letter-spacing: -0.01em; }
.soldout-lead { margin: 0; color: var(--muted); }
.soldout .waitlist, .bag-sold .waitlist, .soldout-note .waitlist { display: flex; flex-direction: column; gap: 10px; }
.soldout .signup button, .bag-sold .signup button, .soldout-note .signup button { white-space: normal; text-align: right; }
.bag-sold { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bag-sold .soldout-title { font-size: 26px; }
.bag-limit { margin: 0; color: var(--error); font-size: 14px; font-weight: 500; }
.bag-disc strong { font-weight: 500; }
.promo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo-row { display: flex; gap: 10px; width: 100%; }
.promo-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--control); background: transparent; padding: 0 12px; font: 400 16px var(--sans); color: var(--ink); border-radius: 0; text-transform: uppercase; }
.promo-row input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.promo-row .btn { width: auto; min-width: 92px; padding: 0 16px; }
.promo-applied { margin: 0; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.promo-msg { margin: 0; color: var(--error); font-size: 13px; min-height: 0; }
.promo-msg:empty { display: none; }
.closed-note { margin: 0; padding: 12px 14px; border-left: 2px solid var(--ink); background: rgba(22, 20, 19, 0.04); font-size: 15px; line-height: 1.5; }
.closed-note a { text-decoration: underline; text-underline-offset: 3px; }
.os-rows .os-total #os-total-closed { color: var(--ink); font-weight: 500; }
.checkout-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 64px 40px 120px; box-sizing: border-box; }
.checkout-empty p { margin: 0; color: var(--muted); }
.checkout-empty .btn { max-width: 320px; }

/* Order summary: sticky on the right (desktop); collapsed bar at the top (phones) */
.order-summary { position: sticky; top: 24px; }
.os-title { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 400 28px/1.1 var(--serif); letter-spacing: -0.01em; }
.os-toggle { display: none; }
.os-body { display: grid; grid-template-rows: 1fr; }
.os-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.os-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; }
.os-item img { width: 72px; height: 96px; object-fit: contain; }
.os-item p { margin: 0; }
.os-name { font-weight: 500; }
.os-meta { color: var(--muted); }
.os-rows { display: flex; flex-direction: column; gap: 8px; }
.os-rows > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.os-rows > div > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.os-rows .os-total { color: var(--ink); font-size: 16px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.os-rows .os-total strong { font-weight: 500; }

@media (max-width: 899px) {
  .checkout-grid { display: flex; flex-direction: column-reverse; gap: 0; max-width: none; margin: 0; padding: 0 0 64px; }
  .os-title { display: none; }
  .checkout-form { max-width: none; width: 100%; padding: 32px 16px 0; box-sizing: border-box; }
  .order-summary { width: 100%; position: static; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
  .os-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
  .os-toggle strong { font-weight: 500; }
  .os-sign::before { content: '+'; font-size: 18px; }
  .order-summary.open .os-sign::before { content: '−'; }
  .os-body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 250ms ease, visibility 0s linear 250ms; }
  .order-summary.open .os-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 250ms ease, visibility 0s; }
  .os-inner { padding: 0 16px; }
  .order-summary.open .os-inner { padding-bottom: 24px; }
  .checkout-empty { padding: 48px 16px 96px; }
  .copy-list li { grid-template-columns: 1fr auto; row-gap: 0; padding: 8px 0; }
  .copy-label { grid-column: 1 / -1; }
}

/* Manual Whish payment on the confirmation page */
.whish-pay { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink); }
.whish-pay h2 { margin: 0; font: 400 28px/1.1 var(--serif); letter-spacing: -0.01em; }
.whish-lead { margin: 0; font-size: 16px; line-height: 1.6; }
.copy-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.copy-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); }
.copy-label { color: var(--muted); font-size: 13px; }
.copy-value { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy-btn { min-width: 76px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 13px var(--sans); cursor: pointer; transition: background-color 250ms ease, color 250ms ease; }
.copy-btn:hover { background: var(--ink); color: var(--bg); }
.copy-btn[hidden] { display: none; }
.paid-note { margin: 0; padding: 14px 16px; border-left: 2px solid var(--ink); background: rgba(22, 20, 19, 0.04); }

/* Checkout + confirmation: header, content and footer share the same centred 1120px column */
body.checkout-page header, body.checkout-page footer, body.order-page header, body.order-page footer { width: 100%; max-width: 1120px; margin-inline: auto; box-sizing: border-box; }

/* Order tracking (/track) */
.track { width: 100%; max-width: 560px; margin: 0 auto; padding: 56px 24px 112px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.track h1 { margin: 0; font: 400 clamp(48px, 7vw, 72px)/0.95 var(--serif); letter-spacing: -0.02em; }
.track-lead { margin: 0; color: var(--muted); line-height: 1.6; }
.track-form { display: flex; flex-direction: column; gap: 24px; }
.track-result { padding-top: 24px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.track-status { margin: 0; font: 400 40px/1.05 var(--serif); letter-spacing: -0.01em; }
.track-detail, .track-courier { margin: 0; line-height: 1.6; }
.track-courier { font-weight: 500; overflow-wrap: anywhere; }
.order-track { margin: 0; }
.order-track a { text-decoration: underline; text-underline-offset: 3px; }

/* Confirmation page (/order/<token>) */
.order-confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 40px 120px; box-sizing: border-box; }
.order-confirm h1:focus { outline: none; }
.order-confirm .eyebrow { margin: 0; }
.order-lead { margin: 0; font-size: 16px; line-height: 1.6; max-width: 460px; }
.receipt { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 20px; padding-top: 24px; border-top: 1px solid var(--ink); }
.order-confirm .btn { max-width: 320px; }
.order-loading { width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 40px; box-sizing: border-box; color: var(--muted); }

/* Coming-soon page: header + hero + footer fill one screen on laptops and up */
@media (min-width: 641px) {
  body.home { height: 100vh; height: 100svh; min-height: 620px; display: flex; flex-direction: column; }
  body.home main { flex: 1; min-height: 0; display: flex; }
  body.home .hero { flex: 1; min-height: 0; }
  body.home .hero-media { height: auto; padding: 16px 32px; }
  /* absolutely positioned, so the bottle takes whatever height is left between header and footer */
  body.home .hero-media img { position: absolute; top: 16px; bottom: 16px; left: 0; right: 0; margin: auto; height: calc(100% - 32px); width: auto; max-width: calc(100% - 64px); }
  body.home .hero-media::before { bottom: 8px; }
  body.home .hero-copy { padding-top: 24px; padding-bottom: 24px; }
}

/* Footer: one line. © left, legal links centre, "Made in Lebanon" right; stacked on phones */
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 40px; color: var(--muted); border-top: 1px solid var(--line); }
footer > :last-child { justify-self: end; }
footer nav { display: flex; align-items: center; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); }
footer nav a:hover { color: var(--ink); }

/* Legal pages (privacy, terms): one centred 680px column */
.legal { width: 100%; max-width: 680px; margin: 0 auto; padding: 56px 24px 112px; box-sizing: border-box; color: var(--ink); font-size: 16px; line-height: 1.65; }
.legal h1 { margin: 0; font: 400 clamp(48px, 6vw, 80px)/0.95 var(--serif); letter-spacing: -0.02em; }
.legal .meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 48px 0 12px; font: 400 30px/1.15 var(--serif); letter-spacing: -0.01em; scroll-margin-top: 24px; }
.legal p { margin: 0; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 16px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--muted); }
/* Lists: a thin 12px dash instead of a bullet, 12px between items */
.legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.legal li { position: relative; padding-left: 24px; }   /* 12px dash + 12px gap; text (and links) flow normally */
.legal li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 12px; height: 1px; background: var(--ink); }
.legal p + ul { margin-top: 16px; }
/* "On this page" */
.toc { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.toc ul { gap: 0; }
.toc li::before { top: 1.05em; background: var(--control); }
.toc a { display: inline-block; padding: 6px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal-end { margin-top: 64px !important; padding-top: 24px; border-top: 1px solid var(--line); }

/* [CONFIRM: ...] markers: a discreet muted note with a light tint (the launch gate still counts and blocks them) */
.confirm { color: var(--muted); background: rgba(107, 101, 96, 0.12); font-size: 13px; font-weight: 400; line-height: 1.5; padding: 1px 6px; text-decoration: none; }
p.confirm { display: block; padding: 10px 12px; border-left: 2px solid var(--control); }
a.confirm { text-decoration: none; }

/* Phones */
@media (max-width: 640px) {
  .sticky-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(100%); visibility: hidden; transition: transform 250ms ease, visibility 0s linear 250ms; }
  .sticky-bar.show { transform: none; visibility: visible; transition: transform 250ms ease, visibility 0s; }
  .sticky-info { display: flex; flex-direction: column; line-height: 1.3; }
  .sticky-info strong { font-size: 20px; font-weight: 500; }
  .sticky-info span { color: var(--muted); font-size: 13px; }
  .sticky-bar .btn { flex: 0 0 52%; width: auto; }
  body.shop footer { padding-bottom: 88px; }
  .buy .qty { flex-basis: 120px; }
  .bag-head { padding-left: 16px; }
  .bag-body { padding: 0 16px; }
  .bag-foot { padding-left: 16px; padding-right: 16px; }
  header { padding: 8px 16px; }
  header .logo { height: 22px; }
  header nav { gap: 0; }
  .hero { min-height: 0; }
  .hero-media { height: 62vh; min-height: 420px; padding: 8px 16px 0; }
  .hero-media img { height: 92%; }
  body.shop .hero-media { height: calc(62svh + 52px); min-height: 470px; padding: 8px 16px 0; }
  body.shop .hero { min-height: 0; }
  body.shop .stage-frame { height: 100%; }
  .hero-copy { padding: 32px 16px 64px; }
  .hero-copy .inner { gap: 32px; }
  .reassure-item .sep { display: none; }   /* the drawer is full width here and the two items stack: no dangling dot */
  .hero-media::before { bottom: calc((100% - 8px) * .04 - 3px); height: 20px; }
  .order-confirm, .order-loading { padding-left: 16px; padding-right: 16px; }
  .reviews { padding: 48px 16px; gap: 32px; }
  .track { padding: 32px 16px 80px; }
  footer { grid-template-columns: 1fr; justify-items: start; gap: 0; padding: 4px 16px; }
  footer > :last-child { justify-self: start; }
  footer > span { min-height: 36px; display: inline-flex; align-items: center; }
  footer nav { margin-left: -8px; }
  .legal { padding: 32px 16px 80px; }
  .legal h2 { margin-top: 40px; }
}

/* 404 */
.notfound { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px; padding: 64px 40px; }
.notfound .btn { max-width: 320px; }
@media (max-width: 640px) { .notfound { padding: 48px 16px; } }

@media (prefers-reduced-motion: reduce) {
  dialog.bag, dialog.bag::backdrop, .sticky-bar, .os-body { transition: none !important; }
}
