/* ============================================================
   Le Zinc — dark, page-by-page experiment
   ============================================================ */
:root {
  --bg:     #000;      /* pure black — matches the photos' black, so they blend seamlessly */
  --bg-2:   #1c1814;
  --ink:    #efe7dc;   /* cream ink */
  --muted:  #a59a8c;
  --line:   #2e2822;
  --gold:   #c9a46a;
  --accent: #c0645e;   /* wine red, lifted for dark backgrounds */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --ease:  cubic-bezier(0.65, 0, 0.35, 1);
  --page-h: 100vh;
  /* Max content width (standard practice): above 1600 px the layout stops
     growing and centres; --frame-l is the empty margin on each side.    */
  --frame-max: 1600px;
  --frame-l: max(0px, calc((100vw - var(--frame-max)) / 2));
  /* The photo grows with the screen height up to 1080 px (a 1920×1080
     screen), then stops — so on taller screens the composition matches 1080p. */
  --photo-h: min(var(--page-h), 1080px);   /* app.js may shrink it to keep the text its room */
}
@supports (height: 100svh) { :root { --page-h: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* beats any display: set by a class */
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
body { color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--ink); color: var(--bg); padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Fixed chrome ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem calc(var(--frame-l) + clamp(1.25rem, 4vw, 3.5rem));
  pointer-events: none;
}
.top a { pointer-events: auto; text-decoration: none; }
.brand { font: 400 1.5rem/1 var(--serif); letter-spacing: .04em; display: flex; align-items: center; gap: .6rem; transition: opacity .4s var(--ease), visibility .4s; }
.brand-mark { height: 2em; width: auto; flex: none; }
/* Pill backing so the link stays legible over the light photo panel */
.top__link {
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(20, 17, 14, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.top__link:hover { background: var(--ink); color: var(--bg); }
.top__actions { display: flex; gap: .5rem; pointer-events: auto; }
.top__cart { border: 0; cursor: pointer; }
/* Contact (card), Shop (bottle and glass) and Cart as outline icons in round pills; the count sits on the cart's corner */
.top__icon { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.top__icon svg { width: 22px; height: 22px; }
.top__cart .cart-count { top: -2px; right: -4px; }


.dots {
  position: fixed; z-index: 20; left: calc(var(--frame-l) + clamp(1rem, 2.2vw, 2rem)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .35rem;
}
.dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); opacity: .45; transition: transform .4s var(--ease), opacity .4s, background .4s;
}
.dots button[aria-current="true"]::before { background: var(--gold); opacity: 1; transform: scale(1.6); }
/* Wine pages with two bottles: B's label reaches the left edge, so the dots
   lie down in a row beside the counter, on the black below the bottles.   */
html:not(.narrow) body.on-pair .dots {
  top: auto; bottom: calc(1.5rem - 7px); transform: none; flex-direction: row; gap: 0;
  left: calc(var(--frame-l) + clamp(1.25rem, 4vw, 3.5rem) + 4.25rem);
}

/* Bottom-left, on the dark side — the right half is covered by the photo */
.counter {
  position: fixed; z-index: 20; left: calc(var(--frame-l) + clamp(1.25rem, 4vw, 3.5rem)); bottom: 1.5rem; margin: 0;
  font: 400 .72rem/1 var(--sans); letter-spacing: .2em; color: var(--muted);
}
.counter__now { color: var(--ink); }

/* ---------- Closing page (v1.16) ---------- */
.page--contact {
  display: flex; align-items: center;
  padding: 0 calc(var(--frame-l) + clamp(1.5rem, 8vw, 8rem));
  background: radial-gradient(120% 90% at 20% 90%, #1d1813 0%, var(--bg) 62%);
}
.contact__list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: .75rem; }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__list span { color: var(--muted); }
.contact__list a:hover { color: var(--gold); }

/* ---------- Our wineries ---------- */
.page--wineries {
  display: flex; align-items: center;
  padding: clamp(5.5rem, 12vh, 8rem) calc(var(--frame-l) + clamp(1.5rem, 8vw, 8rem)) clamp(1.5rem, 4vh, 3rem);
  background: radial-gradient(120% 90% at 80% 10%, #1d1813 0%, var(--bg) 62%);
}
.wineries__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.winery h2 { margin: 0 0 .5rem; font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1.1 var(--serif); }
.winery p { margin: 0 0 .9rem; color: var(--muted); font-size: clamp(.92rem, 1.05vw, 1.02rem); line-height: 1.55; }
.winery .winery__place { margin-bottom: 1.25rem; color: var(--ink); }
.winery__link { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.winery__link:hover, .winery__link:focus-visible { color: var(--ink); }
/* phones: both wineries fit one page with the first paragraph of each story */
html.narrow .winery__story p:not(:first-child) { display: none; }
html.narrow .page--wineries { align-items: flex-start; padding-top: 6rem; padding-bottom: 4rem; }
html.narrow .page--wineries .eyebrow { margin-bottom: .75rem; }
html.narrow .wineries__list { gap: 1.25rem; }
html.narrow .winery h2 { font-size: 1.35rem; }
html.narrow .winery p { margin-bottom: .5rem; font-size: .86rem; line-height: 1.45; }
html.narrow .winery .winery__place { margin-bottom: .5rem; }
html.narrow .winery__link { font-size: .7rem; }

/* ---------- Pager ---------- */
.pager {
  height: var(--page-h); overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory;        /* touch / fallback; wheel is handled in app.js */
  scrollbar-width: none;
}
.pager::-webkit-scrollbar { display: none; }
.pager.is-animating { scroll-snap-type: none; }
.pager:focus { outline: none; }

.page {
  position: relative; height: var(--page-h); scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden;
}

/* Content fades up when its page becomes active */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.is-active .reveal { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .22s; } .reveal:nth-child(3) { transition-delay: .29s; }
.reveal:nth-child(4) { transition-delay: .36s; } .reveal:nth-child(5) { transition-delay: .43s; }
.reveal:nth-child(6) { transition-delay: .50s; } .reveal:nth-child(7) { transition-delay: .57s; }

.eyebrow { margin: 0 0 1.25rem; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* ---------- First page ---------- */
.page--home {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem; text-align: center;
  background: radial-gradient(60% 55% at 50% 40%, #1d1813 0%, var(--bg) 70%);
}
.home__badge { display: block; width: clamp(104px, 11vw, 128px); height: auto; margin: 0 auto clamp(1.5rem, 4vh, 2.5rem); }
.home__name { margin: 0; font: 400 clamp(3rem, 7vw, 5.5rem)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; margin-right: -.14em; }
.home__tagline { margin: clamp(1.25rem, 3vh, 1.75rem) 0 0; font: 400 clamp(1.35rem, 2.1vw, 1.8rem)/1.35 var(--serif); color: var(--muted); }
.home__tagline span { margin: 0 .35em; }
.home__tagline b { font-weight: 400; font-size: 1.2em; color: var(--gold); }
.home__for { margin: 0; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.home__for::before { content: ''; display: block; width: 3.5rem; height: 1px; margin: clamp(1.5rem, 4vh, 2.25rem) auto; background: var(--gold); opacity: .6; }
/* phones: one word of the tagline per line */
html.narrow .home__tagline span { display: block; margin: 0; }
html.narrow .home__for { max-width: 18rem; margin: 0 auto; }
/* the header badge would repeat the big one */
.on-home .brand { opacity: 0; visibility: hidden; }   /* also out of the tab order */

/* ---------- Story page ---------- */
.page--story {
  /* text at the top (aligned with the wine pages' text column), bottles below */
  display: flex; flex-direction: column;
  padding: clamp(5.5rem, 12vh, 8rem) calc(var(--frame-l) + clamp(1.5rem, 8vw, 8rem)) clamp(1.5rem, 4vh, 3rem);
  background: radial-gradient(120% 90% at 20% 10%, #1d1813 0%, var(--bg) 62%);
}
.story { max-width: 46rem; flex: none; }
/* --fit (app.js) shrinks the story heading when the bottle line-up would get too little height */
.story h2, .contact h2 { margin: 0 0 1.5rem; font: 400 calc(clamp(2.1rem, 4.2vw, 3.8rem) * var(--fit, 1))/1.05 var(--serif); letter-spacing: -.01em; }
.story h2 em, .contact h2 em { color: var(--gold); }
.story p { margin: 0 0 1.1rem; max-width: 38rem; color: var(--muted); font-size: calc(clamp(1rem, 1.2vw, 1.12rem) * var(--fit, 1)); }
.cue { margin-top: 1.5rem !important; font-size: .72rem !important; letter-spacing: .24em; text-transform: uppercase; color: var(--ink) !important; }
.cue span { display: inline-block; margin-left: .5rem; animation: nudge 2.4s var(--ease) infinite; }
/* Bottle line-up: fills the rest of the first page. --bw (bottle width) is set
   by app.js so 8 bottles + gaps fit across and bottle + reflection fit down. */
.lineup {
  flex: 1; min-height: 0; position: relative;
  display: flex; justify-content: center; align-items: flex-end; gap: calc(var(--bw, 80px) * .5);
  padding-bottom: calc(var(--bw, 80px) * 3.70 * .22);           /* room for the reflection */
}
.lineup::before {                                                 /* warm pool of light on the floor */
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none;
  bottom: calc(var(--bw, 80px) * 3.70 * .22 - var(--bw, 80px) * .35);
  width: min(100%, calc(var(--bw, 80px) * 13)); height: calc(var(--bw, 80px) * .7);
  background: radial-gradient(closest-side, rgba(201, 164, 106, .22), rgba(201, 164, 106, .05) 60%, transparent);
}
.lineup__item {
  position: relative; width: var(--bw, 80px); padding: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .9s var(--ease), transform .45s var(--ease);
}
.lineup__item img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 1px rgba(255, 236, 210, .28));
  -webkit-box-reflect: below 2px linear-gradient(transparent 62%, rgba(255, 255, 255, .16));
}
.lineup__item:hover, .lineup__item:focus-visible { transform: translateY(-8px); }
.is-active .lineup__item.reveal:hover { transform: translateY(-8px); }

@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Wine page (v0.4) ----------
   The whole page is the photo: a dark close-up, height = screen height,
   pinned to the right edge. All eight share one framing, so the bottle lands
   in the same place on every page. The bottle's left edge sits 0.561 × the
   screen height in from the right edge (1144 px of a 1672 × 941 image), and
   the text column is capped so it never reaches it.                       */
:root { --bottle-left: calc(100vw - var(--frame-l) - var(--photo-h) * 0.561); }

.page--wine { display: flex; align-items: center; }

/* The photo is pinned to the right edge of the centred frame. */
.backdrop { position: absolute; inset: 0 var(--frame-l) 0 0; z-index: 0; }
.backdrop img { position: absolute; top: 50%; right: 0; height: var(--photo-h); width: auto; max-width: none; transform: translateY(-50%); }

.wine {
  position: relative; z-index: 1; min-width: 0;
  padding: 6rem 0 6rem calc(var(--frame-l) + clamp(3.5rem, 8vw, 8rem));
  width: min(40rem, calc(var(--bottle-left) - var(--frame-l) - clamp(3.5rem, 8vw, 8rem) - 3rem));
  box-sizing: content-box;
}
.wine h2 { margin: 0 0 .4rem; font: 400 clamp(2.2rem, 4.4vw, 4rem)/1.04 var(--serif); letter-spacing: -.01em; }
.wine h2 em { color: var(--muted); font-style: italic; }
.wine__producer { margin: 0 0 1.75rem; color: var(--gold); font-size: .95rem; }
.wine__desc { margin: 0 0 1.75rem; color: var(--muted); }
.wine__specs {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0 0 2rem; padding: 1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .85rem; list-style: none;
}
.wine__specs li span { color: var(--muted); margin-right: .4rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.wine__icons { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; gap: 1.6rem; }
.wine__icons li { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wine__icons svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.wine__icons .i-wine { fill: var(--fill, transparent); stroke: none; }
.wine__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; }
.wine__more { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.wine__more:hover { color: var(--ink); }
.wine__price { font: 400 1.6rem/1 var(--serif); }
.btn {
  display: inline-block; padding: .9rem 1.6rem; border: 1px solid var(--ink); text-decoration: none;
  background: transparent; color: var(--ink); font-family: var(--sans); cursor: pointer;   /* <button>s too, not just links */
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* Wider than the frame: the photo's right edge (where the bottle runs off
   the image) would end in mid-air, so it fades into shadow instead — like the
   unlit side of a bottle in low-key light. At 1600 px and below the photo
   touches the screen edge and nothing is faded.                           */
@media (min-width: 1601px) {
  .backdrop {
    -webkit-mask-image: linear-gradient(to left, transparent, #000 3%);
            mask-image: linear-gradient(to left, transparent, #000 3%);
  }
}
/* Shorter than the screen (app.js sets html.photo-short): fade top and bottom too */
html.photo-short:not(.narrow) .backdrop img {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}
/* Taller than 1080 px: the photo no longer reaches the top and bottom of the
   screen, so the glass fades into black there instead of ending in a line. */
@media (min-height: 1081px) {
  .backdrop img {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  }
}

/* ---------- Narrow or upright screens: photo on top, text below ----------
   v1.3: app.js (layoutSingles) sets html.narrow only when the photo, shrunk
   to leave the text its room beside it, would be shorter than the photo of
   the stacked layout — so the switch happens where both are the same size (it used to be a fixed 800 px / 6:5 breakpoint, which jumped).
   Page rules apply to single-bottle pages only; pair pages lay themselves out. */
html.narrow .dots { left: auto; right: .5rem; }
/* v1.8–v1.14 — two bottles on a phone: the dots lay in a row, centred at the
   bottom (the right edge was the tap area). v1.15: there is no tap any more
   (swipe), so they stay in their column on the right, as on the first page. */
html.narrow .counter { display: none; }
html.narrow .page--wine:not(.page--pair) { flex-direction: column; justify-content: flex-end; align-items: stretch; }
html.narrow .page--wine:not(.page--pair) .backdrop { inset: 0 0 var(--text-h, 45%) 0; -webkit-mask-image: none; mask-image: none; }
html.narrow .page--wine:not(.page--pair) .backdrop img { top: 0; height: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
html.narrow .page--wine:not(.page--pair) .wine { width: auto; padding: 1.25rem 1.5rem 1.5rem; height: auto; box-sizing: border-box; }   /* as tall as it needs; app.js gives the photo the rest (--text-h) */
html.narrow .page--wine:not(.page--pair) .wine h2 { font-size: 2rem; }
html.narrow .page--wine:not(.page--pair) .wine__producer { margin-bottom: .75rem; }
html.narrow .page--wine:not(.page--pair) .wine__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; font-size: .9rem; }
html.narrow .page--wine:not(.page--pair) .wine__specs { margin-bottom: 1rem; padding: .6rem 0; }
@media (max-height: 900px) { html.narrow .page--wine:not(.page--pair) .wine__desc { -webkit-line-clamp: 2; } }
html.narrow .page--wine:not(.page--pair) .wine__icons { flex-wrap: wrap; gap: .5rem 1.1rem; margin-bottom: 1rem; }
html.narrow .page--wine:not(.page--pair) .wine__icons li { flex-direction: row; gap: .4rem; font-size: .62rem; }
html.narrow .page--wine:not(.page--pair) .wine__icons svg { width: 1.3rem; height: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cue span { transition: none; animation: none; transform: none; opacity: 1; }
}

/* ---------- Cart, drawer, toast, age gate (v0.9) ----------
   The wine pages now load the shop's js/store.js, which builds the cart
   drawer, the "added to cart" toast and the age gate. These rules are COPIED
   from css/styles.css (extracted by script, same order) so the components look
   like the dark shop pages; the aliases below map that stylesheet's colour
   names onto this one. Exception: #toast and .toast__action are this page's
   own (the message drops from the cart icon), not copies. Tech debt: shared with styles.css — move to one shared
   file if the dark version goes live.                                        */
:root {
  --white: #0b0a08; --bg-3: #17130f; --radius: 3px; --accent-2: #d07a72;
  --f-serif: var(--serif); --f-sans: var(--sans);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
}
.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.cart-count {
  position: absolute; top: -2px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  font-size: 0.62rem; font-family: var(--f-sans); letter-spacing: 0;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.qty__btn { width: 38px; height: 44px; background: transparent; border: none; font-size: 1.1rem; }
.qty__btn:hover { background: var(--bg-3); }
.qty__val { min-width: 2.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(28,23,18,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 90; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100%);
  background: var(--bg); z-index: 95; box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__close { background: none; border: none; font-size: 1.8rem; line-height: 1; padding: 0 0.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.drawer__empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.drawer__foot { padding: 1.5rem; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.drawer__total strong { font-family: var(--f-serif); font-size: 1.4rem; }
.drawer__note { font-size: 0.78rem; color: var(--muted); margin: 0 0 1rem; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.line__media { width: 64px; height: 80px; background: var(--bg-2); border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media .bottle-placeholder { padding: 8% 0; }
.line__name { font-family: var(--f-serif); font-size: 1.02rem; margin: 0; }
.line__meta { font-size: 0.78rem; color: var(--muted); margin: 0.1rem 0 0.6rem; }
.line__side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.line__price { font-variant-numeric: tabular-nums; margin: 0; }
.line__remove { background: none; border: none; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0; }
.line__remove:hover { color: var(--accent); }
.line .qty__btn { width: 30px; height: 32px; font-size: 1rem; }
/* "Added: …  View cart →", dropping from the cart icon */
#toast {
  position: fixed; top: calc(1.5rem + 44px + 10px); right: calc(var(--frame-l) + clamp(1.25rem, 4vw, 3.5rem));
  max-width: calc(100vw - 2.5rem); transform: translateY(-.5rem);
  display: flex; align-items: center; gap: .9rem;
  background: #14110e; color: var(--muted); border: 1px solid rgba(239, 233, 223, .16); border-radius: 6px;
  padding: .7rem .9rem; font: 500 .75rem/1.2 var(--sans); letter-spacing: .04em; z-index: 120; box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
#toast::before {                                   /* points at the cart icon (22 px from the right edge) */
  content: ''; position: absolute; top: -6px; right: 16px; width: 10px; height: 10px; background: inherit;
  border: solid rgba(239, 233, 223, .16); border-width: 1px 0 0 1px; transform: rotate(45deg);
}
#toast.is-show { opacity: 1; visibility: visible; transform: none; }
.toast__action { flex: none; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.toast__action:hover, .toast__action:focus-visible { color: var(--ink); }
.age-gate {
  position: fixed; inset: 0; z-index: 150; background: rgba(20,16,12,0.94);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.age-gate__panel { background: var(--bg); padding: clamp(2rem, 5vw, 3.25rem); max-width: 30rem; text-align: center; border-radius: var(--radius); }
.age-gate__panel h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.age-gate__panel p { color: var(--muted); margin: 0 0 1.75rem; }
.age-gate__actions { display: flex; gap: 1rem; justify-content: center; }
/* dark-specific overrides (as in dark-theme.css) */
.btn--primary { background: var(--ink); color: #000; border-color: var(--ink); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.drawer-overlay { background: rgba(0, 0, 0, .6); }
.age-gate { background: rgba(0, 0, 0, .9); }
.age-gate__panel { background: var(--bg-2); border: 1px solid var(--line); }
.line__media img { object-fit: contain; }
.drawer button:not(.btn), .age-gate button:not(.btn) { color: inherit; font-family: inherit; }   /* icon/text controls; keep their own size */
.age-gate__panel h2 { font: 400 1.9rem/1.15 var(--serif); }
.btn--block { display: block; text-align: center; }
.drawer__close, .qty__btn, .line__remove { color: var(--ink); cursor: pointer; }
.line__remove { color: var(--muted); }


/* ============================================================
   v1.2 — two large bottles at the two sides of the frame: B (the back, with
   the details on its label) in front, on the left; A (the front) behind, on
   the right. Both are cut by the frame edges. As the window narrows they move
   together, overlapping by up to half a bottle. app.js (layoutPairs) sizes and
   places both images and sets --pair-h, --gap-mid and --buy-y.
   ============================================================ */
.page--pair { position: relative; display: block; }
.page--pair .backdrop,
.page--pair .back { position: absolute; inset: 0; overflow: hidden; }
.page--pair .backdrop { z-index: 0; -webkit-mask-image: none; mask-image: none; }
.page--pair .back { z-index: 1; pointer-events: none; }
.page--pair .backdrop img,
.page--pair .back img {
  position: absolute; max-width: none;
  right: auto; transform: none;          /* app.js sets left/top in px — clear the base rules */
  -webkit-mask-image: none; mask-image: none;
}
.page--pair .back img {
  filter: drop-shadow(30px 0 40px rgba(0, 0, 0, .9));        /* B stands in front of A */
}
.page--pair .back__glass {                                   /* v1.12: see app.js, --b-glass-l */
  position: absolute; background: #000;
  left: var(--b-glass-l); width: var(--b-glass-w); top: var(--pair-top); height: var(--pair-h);
}

/* Tap to swap (only where the bottles overlap: app.js sets .can-swap).
   v1.7: out to the right (.is-out), to the front while apart (.is-front),
   then left over B (.is-left); app.js (setSwap) sequences the steps.     */
.page--pair .backdrop img {
  clip-path: inset(0 0 0 var(--clip-a, 0));              /* A's glass only: its photo is black to the left */
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.page--pair.is-out .backdrop img { transform: translateX(var(--out-dx)); transition-duration: .45s; }   /* = OUT_MS */
.page--pair.is-left .backdrop img { transform: translateX(var(--swap-dx)); transition-duration: .6s; }
/* v1.10 — first-time nudge: A peeks out from behind B and goes back */
@keyframes lz-peek {
  0%, 100% { transform: translateX(0); }
  38%, 58% { transform: translateX(var(--peek-dx)); }
}
.page--pair.is-peek .backdrop img { animation: lz-peek 1.6s cubic-bezier(.45, 0, .25, 1); }
.page--pair.is-front .backdrop { z-index: 2; filter: drop-shadow(-30px 0 40px rgba(0, 0, 0, .9)); }
.page--pair .swap {
  display: none; position: absolute; z-index: 3; right: 0;
  top: var(--pair-top); left: var(--hit-l); height: var(--pair-h);
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.page--pair.can-swap .swap { display: block; }
.page--pair.is-swapped .swap { left: 0; }
.page--pair .swap:focus-visible { outline: 1px solid rgba(239, 233, 223, .5); outline-offset: -6px; }
/* v1.14 — phones: swipe instead of tap (app.js, .can-swipe). Swiped (.is-slid),
   B is off the frame's left and A has moved forward; while a finger drags
   (.is-dragging) app.js sets the transforms and the transitions are off.  */
.page--pair.can-swipe { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.page--pair.can-swipe .swap { display: none; }
.page--pair .back { transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.page--pair.is-slid .back { transform: translateX(var(--b-out)); }
.page--pair.is-slid .backdrop img { transform: translateX(var(--swap-dx)); transition-duration: .5s; }
.page--pair.is-dragging .back, .page--pair.is-dragging .backdrop img { transition: none; }
/* v1.15 — two dots above Add to cart, on swipe pages: first = B in front,
   second = B swiped away. Same dots as the page dots.                     */
.pair-dots { display: none; }
.page--pair.can-swipe .pair-dots {
  position: absolute; z-index: 4; left: var(--cart-x, 50%); top: calc(var(--buy-y) - 2.35rem); transform: translate(-50%, -50%);
  display: flex; gap: .7rem; pointer-events: none;
}
.pair-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); opacity: .45; transition: transform .4s var(--ease), opacity .4s, background .4s;
}
.page--pair:not(.is-slid) .pair-dots span:first-child,
.page--pair.is-slid .pair-dots span:last-child { background: var(--gold); opacity: 1; transform: scale(1.6); }
@keyframes lz-peek-b {                                       /* first-time nudge: B starts to slide and comes back */
  0%, 100% { transform: translateX(0); }
  38%, 58% { transform: translateX(var(--peek-b)); }
}
.page--pair.can-swipe.is-peek .backdrop img { animation: none; }
.page--pair.can-swipe.is-peek .back { animation: lz-peek-b 1.6s cubic-bezier(.45, 0, .25, 1); }
.swap-hint {
  position: absolute; z-index: 4; left: var(--hint-x); top: var(--hint-y); transform: translate(-50%, -50%);
  margin: 0; padding: .5rem .85rem; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgba(18, 15, 12, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #efe9df; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s;
}
.swap-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .page--pair .backdrop, .page--pair .backdrop img, .page--pair .back { transition: none; }
}

/* Buying: one row below the labels, centred, over a soft scrim — the black
   between the bottles stays empty, as in the reference composition.       */
.page--pair .wine {
  position: absolute; z-index: 4; left: 50%;
  top: var(--buy-y); bottom: auto; transform: translate(-50%, -50%);
  width: auto; height: auto; padding: 0; margin: 0;   /* height: auto — the narrow-screen rule sets 45% */
  display: flex; align-items: center; gap: 1.5rem;
}
.page--pair .wine__price { margin: 0; font-size: 1.55rem; }
.page--pair .wine__buy { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1.5rem; }
.page--pair .wine .btn { padding: .95rem 1.5rem; font-size: .76rem; white-space: nowrap; }   /* v1.3: ~15% larger */
.page--pair .wine__more { font-size: .78rem; }
.page--pair .wine__buy a { white-space: nowrap; }
@media (max-width: 480px) {
  .page--pair .wine, .page--pair .wine__buy { gap: .9rem; }
  .page--pair .wine .btn { padding: .75rem 1rem; }
}
/* − n + in place of Add to cart, same size and colours as the button */
.stepper {
  display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: var(--ink); color: #000;
  font: 500 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.stepper button { width: 2.9rem; padding: 0; border: 0; background: none; color: inherit; font: 400 1.2rem/1 var(--sans); cursor: pointer; }
.stepper button:focus-visible { background: rgba(0, 0, 0, .1); outline: none; }
@media (hover: hover) { .stepper button:hover { background: rgba(0, 0, 0, .1); } }   /* phones keep :hover after a tap */
.stepper__n { padding: .95rem .2rem; }
@media (max-width: 480px) {
  .stepper button { width: 2.6rem; }
  .stepper__n { padding: .75rem .1rem; }
}
.page--pair::after {                                          /* scrim so the buy block stays legible over glass */
  content: ''; position: absolute; inset: calc(var(--buy-y) - .22 * var(--pair-h)) 0 0 0; z-index: 3; pointer-events: none;   /* above A when swapped */
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
}

/* The back label: typeset like Le Zinc's real import sticker.
   v1.1: three sizes only — L (name), M (producer · vintage · appellation),
   S (everything else) — and larger than v1.0.                          */
.back__label {
  position: absolute; box-sizing: border-box;
  padding: 52px 76px 44px;     /* px, not %: % is of the window width, which made the text re-wrap on resize */
  transform-origin: 0 0;                                 /* app.js scales it from the photo's own size */
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  font: 400 1rem/1.25 'Carlito', 'Calibri', 'Inter', sans-serif;   /* = S; app.js fits the size to the box */
  color: #1d1915;                                        /* printed near-black, not pure black */
  border-radius: 2.5% / 1.6%;
}
.back__label::after {                                    /* paper wrapped on a cylinder: darker toward the edges */
  content: ''; position: absolute; inset: 0 var(--paper-in, 0); border-radius: inherit; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(90deg, rgba(60, 45, 30, .26), rgba(60, 45, 30, 0) 16%, rgba(60, 45, 30, 0) 80%, rgba(60, 45, 30, .3));
}
.bl { transform: translateX(var(--text-dx, 0)); }        /* v1.13: phones, see TEXT_DX in app.js */
.bl p, .bl h2, .bl ul { margin: 0; }
/* Three sizes only (v1.3): L 2×, M 1.4×, S 1.2× the label's base size */
.bl-s, .bl__icons { font-size: 1.2em; }
.bl-m { font-size: 1.4em; line-height: 1.2; }
.bl-l { font: 700 2em/1.08 'Caladea', 'Cambria', Georgia, serif; letter-spacing: .01em; text-wrap: balance; margin: .2em 0 .25em !important; }
/* v1.3 — calm hierarchy: only the name is bold; two inks (near-black, warm
   grey); three groups separated by space alone — who made it · where and
   when · what is in the glass.                                           */
.bl__producer { letter-spacing: .14em; color: #6a6058; }
.bl-l.bl__name { margin: .3em 0 0 !important; }
.bl__appellation { margin-top: .85em !important; }
.bl__appellation span { color: inherit; }
.bl__region { color: #6a6058; margin-top: .15em !important; }
.bl__grapes {
  margin: 1.3em 0 0 !important; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.6; color: #6a6058; text-wrap: balance;
}
.bl__grapes span { white-space: nowrap; }
.bl__note { font-style: italic; margin: .5em 0 1.2em !important; text-wrap: balance; }   /* v1.12: 1.5em → 1.2em, room for the farming line */
.bl__icons { list-style: none; padding: 0; display: flex; justify-content: center; gap: .55em; margin: .9em 0 .9em !important; }   /* v1.12: was gap 1.1em, margin 1.1em 0 1em; four captions must stay inside the text column */
.bl__icons li { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.bl__icons svg { width: 1.75em; height: 1.75em; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.bl__icons .i-wine { fill: var(--fill, transparent); stroke: none; }
.bl__farming { color: #6a6058; margin-top: .25em !important; text-wrap: balance; }   /* v1.12 */
.bl__farming span, .bl__icons span { white-space: nowrap; }
.bl__foot { margin-top: .2em !important; }

/* Taller than 1080 px: fade B's glass top and bottom like A's */
@media (min-height: 1081px) {
  .back__img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
               mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); }
}
