/* ============================================================
   Ko.KE’ PARFUM — design tokens (light ivory & gold)
   ============================================================ */
:root {
  --bg:            #faf8f4;          /* warm ivory */
  --bg-soft:       #f3efe7;
  --ink:           #241d14;          /* deep warm brown-black */
  --ink-dim:       rgba(36, 29, 20, 0.60);
  --ink-faint:     rgba(36, 29, 20, 0.32);
  --accent:        #b08d3e;          /* antique gold */
  --accent-2:      #d4b56a;          /* champagne gold */
  --accent-glow:   rgba(176, 141, 62, 0.30);
  --line:          rgba(36, 29, 20, 0.12);
  --card:          rgba(255, 255, 255, 0.65);
  --card-hover:    rgba(255, 255, 255, 0.95);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);

  /* Device safe areas — punch-hole/notch at the top, gesture bar at the
     bottom, curved edges at the sides. Zero on desktop, so nothing there
     changes. Needs viewport-fit=cover on the <meta viewport>. */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* height of the order bar, measured live by cart.js (0 when it's hidden) */
  --bar-h: 0px;
  /* nav's own height, measured live by script.js — the order bar and the
     hero's Shop button both anchor off this instead of a guessed number */
  --nav-h: 5.6rem;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fffdf7; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Ambient background — champagne gradients + soft light
   ============================================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 20% 10%, rgba(212, 181, 106, 0.16), transparent 60%),
    radial-gradient(45% 40% at 85% 30%, rgba(176, 141, 62, 0.10), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(232, 199, 102, 0.10), transparent 60%),
    var(--bg);
}

/* subtle animated aurora sweep, GPU-friendly (transform only) */
.ambient::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg,
    rgba(212, 181, 106, 0.06) 90deg,
    transparent 160deg,
    rgba(176, 141, 62, 0.05) 260deg,
    transparent 360deg);
  animation: aurora 26s linear infinite;
  will-change: transform;
}
@keyframes aurora {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: var(--bar-h);   /* pushed down when the order bar takes the top spot */
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(1.4rem + var(--safe-t))
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-r))
    1.4rem
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-l));
  transition: background 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft),
              padding 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft),
              top 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: calc(0.85rem + var(--safe-t));
  padding-bottom: 0.85rem;
  /* fully solid — no blur/translucency, so nothing scrolling or animating
     behind it (the composition section's parachute-drop, etc.) ever
     bleeds through */
  background: var(--bg);
  border-bottom-color: var(--line);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
}
.nav__logo em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}

.nav__links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.3s var(--ease-soft);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-out);
}
.nav__burger:hover { border-color: var(--accent); transform: scale(1.06); }
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav__burger span:nth-child(2) { width: 70%; }
.nav__burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Full-screen menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; text-align: center; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--ink-dim);
  transition: color 0.3s, text-shadow 0.3s;
}
.menu a:hover { color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.menu li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu.open li { opacity: 1; transform: none; }
.menu.open li:nth-child(1) { transition-delay: 0.08s; }
.menu.open li:nth-child(2) { transition-delay: 0.14s; }
.menu.open li:nth-child(3) { transition-delay: 0.20s; }
.menu.open li:nth-child(4) { transition-delay: 0.26s; }

/* ============================================================
   Hero — "EXTRAIT / PARFUM"
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* "Shop" — a quiet pill button sitting just under the nav, clear of the
   nav's own cluster and the big EXTRAIT/PARFUM word behind it. */
.hero__shop {
  position: absolute;
  /* clears the nav (--nav-h) and, when it's showing, the order bar
     tucked in right beneath it (--bar-h). --safe-t is already baked
     into --nav-h via the nav's own padding, so it isn't added again here. */
  top: calc(var(--nav-h, 5.6rem) + var(--bar-h, 0px) + 0.9rem);
  right: calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-r));
  z-index: 6;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(176, 141, 62, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft),
              transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-soft),
              top 0.3s var(--ease-soft);
}
.hero__shop:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 141, 62, 0.18);
}

/* massive background word, split so the bottle sits "between" the lines */
.hero__bgtext {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4rem, 22vh, 15rem);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero__bgtext span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 13.5vw, 12.5rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 29, 20, 0.18);
  will-change: transform;
}
.hero__bgtext span:nth-child(2) {
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 60px rgba(176, 141, 62, 0.30);
}

/* ---------- Three.js bottle stage ---------- */
/* Fixed full-viewport overlay: the bottle stays in frame while the page
   scrolls underneath, letting it fly past the camera into #flavors.
   pointer-events: none (inherited) keeps the page clickable through it. */
.hero__stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* the WebGL canvas — the 3D bottle renders here */
.hero__canvas {
  position: absolute;
  inset: 0;
}
/* the canvas is sized by CSS; JS only updates the drawing-buffer resolution,
   so the mobile URL-bar resize never leaves a gap while it settles */
.hero__canvas canvas { display: block; width: 100%; height: 100%; }

/* invisible anchor matching the bottle's on-screen footprint,
   so the glow and petals sit around it like before */
.hero__inner {
  position: relative;
  width:  clamp(240px, 36vw, 420px);
  height: clamp(340px, 56vh, 560px);
}

/* once the fly-past starts, the props around the bottle melt away */
.hero__glow, .ice { transition: opacity 0.6s var(--ease-soft); }
.hero__stage.flying .hero__glow { animation: none; opacity: 0; }
.hero__stage.flying .ice { opacity: 0; }

/* glowing floor reflection under the bottle */
.hero__glow {
  position: absolute;
  bottom: 3%;
  left: 50%;
  width: 110%;
  height: 6%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(10px);
  animation: glowPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.12); }
}

/* floating crystal facets around the bottle */
.ice {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(212, 181, 106, 0.18));
  border: 1px solid rgba(176, 141, 62, 0.40);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 14px rgba(255,255,255,0.6), 0 8px 24px rgba(120, 90, 30, 0.18);
  animation: iceFloat 9s ease-in-out infinite;
  will-change: transform;
  z-index: 1;
}
.ice--1 { top: 24%;  left: -4%; animation-delay: 0s;   transform: rotate(14deg); }
.ice--2 { top: 62%;  right: -6%; width: 26px; height: 26px; animation-delay: -3s; }
.ice--3 { top: 8%;   right: 4%; width: 20px; height: 20px; animation-delay: -6s; }
@keyframes iceFloat {
  0%, 100% { transform: translateY(0)     rotate(10deg); }
  50%      { transform: translateY(-30px) rotate(-12deg); }
}

/* hero copy under the bottle */
.hero__tag {
  position: absolute;
  z-index: 3;
  bottom: calc(clamp(5.5rem, 15vh, 11rem) + var(--safe-b));
  text-align: center;
  padding-inline: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__tag strong { color: var(--accent); font-weight: 500; }

/* scroll indicator */
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: calc(1.6rem + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue__line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--ink);
  animation: cueDrop 2s var(--ease-soft) infinite;
  will-change: transform;
}
@keyframes cueDrop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(300%); }
}

/* ============================================================
   Shared section chrome
   ============================================================ */
.section {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 6vw, 6rem);
  max-width: 1400px;
  margin: 0 auto;
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.section__kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6.4vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  max-width: 16ch;
}
.section__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

/* scroll-reveal primitives (JS toggles .in) */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
/* release the promoted layer once the reveal has played — otherwise every
   .reveal element keeps a GPU layer alive for the life of the page */
.reveal.in { opacity: 1; transform: none; will-change: auto; }
.reveal--left  { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* ============================================================
   Composition — floating card grid
   ============================================================ */
.flavors__grid {
  display: grid;
  /* min() keeps the track from exceeding the viewport on narrow phones */
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.card {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out),
              background 0.5s var(--ease-soft),
              border-color 0.5s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
}
/* staggered entrances driven by inline --d set in markup */
.card.reveal { transition-delay: var(--d, 0s); }

.card:hover {
  transform: translateY(-10px) scale(1.015);
  background: var(--card-hover);
  border-color: rgba(176, 141, 62, 0.45);
  box-shadow: 0 24px 60px rgba(110, 85, 40, 0.18), 0 0 40px rgba(176, 141, 62, 0.10);
}

/* radial glow that follows the cursor (JS sets --mx/--my) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
              rgba(212, 181, 106, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
}
.card__icon {
  margin: 1.6rem 0 1.3rem;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(176, 141, 62, 0.08);
  border: 1px solid rgba(176, 141, 62, 0.25);
  color: var(--accent);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 0 26px var(--accent-glow);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}
.card p { font-size: 0.92rem; color: var(--ink-dim); }

/* ============================================================
   Airdrop — plane flies over, boxes parachute in, tap to unbox
   ============================================================ */
#flavors { position: relative; }

.airdrop-plane {
  position: absolute;
  top: clamp(3.5rem, 9vh, 6rem);
  left: 0;
  width: 96px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  will-change: transform;
}
#flavors.go .airdrop-plane { animation: flyAcross 3s linear forwards; }
@keyframes flyAcross {
  0%   { opacity: 0; transform: translate3d(-25vw, 0, 0); }
  6%   { opacity: 1; }
  50%  { transform: translate3d(40vw, -8px, 0); }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(104vw, -16px, 0); }
}
.airdrop-plane .beacon { animation: beaconBlink 0.9s ease-in-out infinite; }
@keyframes beaconBlink {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0.1; }
  100%     { opacity: 1; }
}

/* pack layers: drop (falls) → swing (sways) → flip (unboxes) */
.pack { position: relative; }
.pack__drop, .pack__swing, .pack__flip, .pack__face { height: 100%; }

.pack__drop { opacity: 0; }
#flavors.go .pack__drop {
  animation: packFall 1.7s cubic-bezier(0.3, 0.75, 0.4, 1) both;
  animation-delay: calc(0.55s + var(--i) * 0.42s);
}
@keyframes packFall {
  0%   { opacity: 0; transform: translateY(var(--fall, -420px)); }
  7%   { opacity: 1; }
  82%  { transform: translateY(0); }
  91%  { transform: translateY(-12px); }   /* soft bounce on touchdown */
  100% { opacity: 1; transform: translateY(0); }
}

.pack__swing {
  perspective: 1100px;
  transform-origin: 50% -70px;   /* sway around the parachute rig point */
}
#flavors.go .pack__swing {
  animation: packSwing 1.7s ease-in-out both;
  animation-delay: calc(0.55s + var(--i) * 0.42s);
}
@keyframes packSwing {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(5deg); }
  50%  { transform: rotate(-4deg); }
  75%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* parachute canopy + lines; collapses after landing */
.pack__chute {
  position: absolute;
  left: 50%;
  top: -76px;
  width: 130px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 65px 65px 10px 10px / 52px 52px 8px 8px;
  background:
    repeating-linear-gradient(90deg,
      rgba(176, 141, 62, 0.55) 0 26px,
      rgba(212, 181, 106, 0.40) 26px 52px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0;
  pointer-events: none;
}
.pack__chute::before,
.pack__chute::after {
  content: "";
  position: absolute;
  top: 96%;
  width: 1.5px;
  height: 34px;
  background: rgba(36, 29, 20, 0.40);
  transform-origin: top;
}
.pack__chute::before { left: 14%; transform: rotate(24deg); }
.pack__chute::after  { right: 14%; transform: rotate(-24deg); }
#flavors.go .pack__chute {
  animation: chuteLife 2.2s ease both;
  animation-delay: calc(0.55s + var(--i) * 0.42s);
}
@keyframes chuteLife {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(0.5); }
  10%  { opacity: 1; transform: translateX(-50%) scaleY(1); }
  77%  { opacity: 1; transform: translateX(-50%) scaleY(1); }    /* touchdown */
  100% { opacity: 0; transform: translateX(-50%) scaleY(0.3) translateY(18px); }
}

/* the unboxing: box front sits on top like a face-down trading card */
.pack__flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.34, 1.4, 0.44, 1);
}
.pack.open .pack__flip { transform: rotateY(180deg); }
.pack.open .pack__flip:hover { transform: rotateY(180deg) translateY(-8px); }

/* the Ko.KE’ box — matte white parcel with the framed label */
.pack__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(176, 141, 62, 0.35);
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--ink);
  background:
    /* parcel straps */
    linear-gradient(0deg,  transparent 47%, rgba(176, 141, 62, 0.08) 47% 53%, transparent 53%),
    linear-gradient(90deg, transparent 47%, rgba(176, 141, 62, 0.08) 47% 53%, transparent 53%),
    radial-gradient(circle at 50% 40%, rgba(212, 181, 106, 0.14), transparent 55%),
    linear-gradient(160deg, #ffffff, #f4eee1);
  box-shadow: 0 20px 50px rgba(110, 85, 40, 0.18);
  transition: border-color 0.3s var(--ease-soft);
}
.pack__cover:hover { border-color: rgba(176, 141, 62, 0.7); }

/* holographic shimmer, gilded-edge style — a narrow highlight that is
   translated across the cover. Transform-only, so it composites on the
   GPU instead of repainting a 250% gradient every frame (×4 packs).
   Both ends of the sweep sit off-cover, so the loop reset is invisible. */
.pack__cover::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -55%;
  width: 55%;
  background: linear-gradient(115deg,
    transparent,
    rgba(212, 181, 106, 0.28) 45%,
    rgba(176, 141, 62, 0.22) 55%,
    transparent);
  animation: holoShimmer 3.4s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes holoShimmer {
  0%, 12% { transform: translateX(0); }
  100%    { transform: translateX(345%); }
}

/* the framed label printed on the box front */
.pack__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 2.2rem;
  border: 1px solid rgba(176, 141, 62, 0.50);
  outline: 1px solid rgba(176, 141, 62, 0.30);
  outline-offset: -6px;
  background: rgba(255, 255, 255, 0.55);
}
.pack__script {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #a8863b;
}
.pack__face-art {
  width: 54px;
  height: 54px;
  color: var(--accent);
}
.pack__logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--ink);
}
.pack__hint {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* revealed face sits mirrored behind the box front */
.pack__face {
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
}
/* the flip container handles the hover lift; keep the face mirrored */
.pack__face.card:hover { transform: rotateY(180deg); }

/* one-time shine sweep as the card is revealed */
.pack__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  transform: translateX(-130%);
  pointer-events: none;
}
.pack.open .pack__face::after { animation: revealShine 0.9s 0.4s var(--ease-out) forwards; }
@keyframes revealShine { to { transform: translateX(130%); } }

/* ============================================================
   Narrative — "A SCENT ABOVE THE REST"
   ============================================================ */
.narrative { text-align: center; }

.narrative__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9.5vw, 8rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  will-change: transform, opacity;
}
.narrative__headline .row { display: block; }
.narrative__headline .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 29, 20, 0.30);
}
.narrative__headline .neon {
  color: var(--accent);
  text-shadow: 0 0 44px var(--accent-glow);
}

.narrative__sub {
  max-width: 52ch;
  margin: 2.2rem auto 0;
  color: var(--ink-dim);
  font-size: 1rem;
}

/* fragrance-pyramid note cards — text only, no imagery */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 4.5rem;
}

.note-card {
  position: relative;
  padding: 2.6rem 2rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 0.5s var(--ease-out),
              background 0.5s var(--ease-soft),
              border-color 0.5s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
}
.note-card.reveal {
  transition-property: opacity, transform, background, border-color, box-shadow;
}
.note-card::before {
  content: "";
  position: absolute;
  left: 2rem; top: 2.6rem;
  width: 26px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.note-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: rgba(176, 141, 62, 0.45);
  box-shadow: 0 24px 60px rgba(110, 85, 40, 0.16), 0 0 40px rgba(176, 141, 62, 0.08);
}
.note-card__label {
  display: block;
  margin: 1.4rem 0 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
}
.note-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.note-card__desc {
  font-size: 0.9rem;
  color: var(--ink-dim);
}

/* ============================================================
   Marquee band
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  user-select: none;
}
.marquee__track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: marquee 24s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.marquee__track span:nth-child(odd) { color: var(--accent); opacity: 0.8; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CTA + footer
   ============================================================ */
.cta { text-align: center; }
.cta p {
  color: var(--ink-dim);
  max-width: 40ch;
  margin: 1.4rem auto 2.6rem;
}
.btn {
  display: inline-block;
  position: relative;
  padding: 1.05rem 3.2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fffdf7;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-soft);
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 44px var(--accent-glow), 0 0 0 1px rgba(176, 141, 62, 0.4);
}
.btn:active { transform: translateY(-1px) scale(0.99); }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding:
    2.4rem
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-r))
    calc(2.4rem + var(--safe-b))
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-l));
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }        /* hamburger takes over */
  .notes-grid { grid-template-columns: 1fr; }
  .ice--1 { left: 0; }
  .ice--2 { right: 0; }
  /* the .pdp__* mobile overrides live further down the file, after the
     base product-detail rules — otherwise they lose on source order */
}

/* ============================================================
   Reduced motion — kill all decorative animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Nav right cluster + language switch
   ============================================================ */
.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  transition: border-color 0.3s var(--ease-soft);
}
.lang:hover { border-color: var(--accent); }
.lang__opt { transition: color 0.3s; }
.lang__opt.is-active { color: var(--accent); font-weight: 700; }
.lang__sep { color: var(--ink-faint); }

/* ============================================================
   Boutique overlay
   ============================================================ */
.shop {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;   /* the overlay never scrolls sideways */
  background:
    radial-gradient(55% 45% at 20% 10%, rgba(212, 181, 106, 0.16), transparent 60%),
    radial-gradient(45% 40% at 85% 30%, rgba(176, 141, 62, 0.10), transparent 60%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}
.shop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.shop__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(1.1rem + var(--safe-t))
    calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-r))
    1.1rem
    calc(clamp(1.25rem, 4vw, 3rem) + var(--safe-l));
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
/* the boutique's bar has just Back on the left; a 3-column grid keeps the
   brand dead-centre without needing a placeholder on the right */
#shop .shop__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
#shop .shop__back { justify-self: start; }
#shop .shop__brand { grid-column: 2; }
.shop__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3em;
}
.shop__brand em { font-style: normal; color: var(--accent); }
.shop__back, .shop__close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  transition: border-color 0.3s, color 0.3s;
}
.shop__close {
  width: 40px; height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.shop__back:hover, .shop__close:hover { border-color: var(--accent); color: var(--accent); }

.shop__view {
  max-width: 1160px;
  margin: 0 auto;
  padding:
    clamp(2rem, 6vh, 4rem)
    calc(clamp(1.25rem, 5vw, 3rem) + var(--safe-r))
    calc(5rem + var(--safe-b))
    calc(clamp(1.25rem, 5vw, 3rem) + var(--safe-l));
}
.shop__head { text-align: center; margin-bottom: 3rem; }
.shop__head .section__kicker { justify-content: center; }
.shop__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto;
}

/* product card in the listing */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out),
              background 0.5s var(--ease-soft),
              border-color 0.5s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
}
.product-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: rgba(176, 141, 62, 0.45);
  box-shadow: 0 24px 60px rgba(110, 85, 40, 0.16);
}
.product-card__media {
  /* square, so the product photo shows the whole bottle */
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.7), transparent 72%),
    linear-gradient(180deg, #f6f0e2, #ece2cd);
  border-bottom: 1px solid var(--line);
}
.product-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-soft);
}
.product-card:hover .product-card__photo { transform: scale(1.04); }
.product-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.product-card__type {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0.5rem 0 1rem;
}
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price { font-family: var(--font-display); font-weight: 600; }
.product-card__cta {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============================================================
   Product detail (Amazon-style)
   ============================================================ */
.pdp__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pdp__media { position: sticky; top: 92px; }
.pdp__stage {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(255, 255, 255, 0.78), transparent 72%),
    linear-gradient(180deg, #f7f1e4, #ece2cd);
}
.pdp__stage:active { cursor: grabbing; }
.pdp__stage canvas { display: block; width: 100%; height: 100%; }

.pdp__thumbs { display: flex; gap: 0.7rem; margin-top: 1rem; }
.pdp__thumb {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.pdp__thumb:hover { border-color: var(--accent); }
.pdp__thumb.is-active {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(176, 141, 62, 0.10);
}
.pdp__drag {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pdp__info { max-width: 470px; }
.pdp__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.pdp__brand em { font-style: normal; color: var(--accent); }
.pdp__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  margin: 0.4rem 0 0.4rem;
}
.pdp__type {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.pdp__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.pdp__stars { color: var(--accent); letter-spacing: 0.1em; }
.pdp__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  margin: 0.4rem 0 1.5rem;
}
.pdp__sizes-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.7rem;
}
.pdp__size-row { display: flex; gap: 0.8rem; }
.pdp__size {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.pdp__size strong { font-family: var(--font-display); font-size: 1rem; }
.pdp__size small { color: var(--ink-dim); font-size: 0.72rem; }
.pdp__size:hover { border-color: var(--accent); }
.pdp__size.is-active { border-color: var(--accent); background: rgba(176, 141, 62, 0.10); }

.pdp__add {
  position: relative;
  width: 100%;
  margin: 1.6rem 0 1rem;
  padding: 1.05rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fffdf7;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-soft), background 0.3s;
}
.pdp__add:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
.pdp__add-done { display: none; }
.pdp__add.is-added { background: #3f7d5b; }
.pdp__add.is-added .pdp__add-label { display: none; }
.pdp__add.is-added .pdp__add-done { display: inline; }

.pdp__stock { font-size: 0.8rem; color: #8a6a1f; letter-spacing: 0.05em; }
.pdp__desc { margin: 1.4rem 0; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.7; }
.pdp__notes { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pdp__notes h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.pdp__notes ul { list-style: none; display: grid; gap: 0.5rem; }
.pdp__notes li { display: flex; gap: 1rem; font-size: 0.9rem; color: var(--ink-dim); }
.pdp__note-key {
  min-width: 68px;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.1em;
}
.pdp__ship { margin-top: 1.4rem; font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.05em; }

@media (max-width: 860px) {
  .pdp__media { position: static; }
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__stage { aspect-ratio: 1 / 1; }
}

/* ============================================================
   Touch / small screens — drop the continuously-running effects
   that actually cost frames on a phone. Three things dominate:
   a full-viewport rotating conic gradient, backdrop-filter that
   has to re-blur while scrolling, and an animated blur() filter.
   The layout and the 3D are untouched.
   ============================================================ */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  /* the aurora is a ~180vw conic gradient rotating forever — by far the
     most expensive layer on the page. The base gradients stay. */
  .ambient::after { display: none; }

  /* backdrop-filter recomputes the blur behind the element on every
     scroll frame; an opaque background looks near-identical here */
  .nav.scrolled {
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu {
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .shop__bar {
    background: rgba(250, 248, 244, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero__shop {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* animating a blur() filter forces a repaint every frame */
  .hero__glow {
    filter: none;
    animation: none;
    will-change: auto;
  }

  /* backdrop-filter on a *moving* element is the worst combination there
     is — the blur is recomputed for a new backdrop on every frame */
  .ice {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    will-change: auto;
  }

  /* four covers shimmering forever + a blinking SVG beacon */
  .pack__cover::before { display: none; }
  .airdrop-plane .beacon { animation: none; }

  /* parallax is disabled on touch in script.js, so drop the layer too */
  .hero__bgtext span { will-change: auto; }
}

/* ============================================================
   Order bar — takes the very top spot once the bag holds at least
   one item (cart.js toggles .show), pushing the nav down beneath
   it via --bar-h.
   ============================================================ */
.order-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;   /* above the nav (100) and the boutique (200), below checkout (220) */
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fffdf7;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}
.order-bar.show { transform: translateY(0); }
/* The bag bar stays visible inside the boutique too: the boutique starts
   below it (same --bar-h push as the nav) instead of covering it. Checkout
   sits above the bar, since the bar's only job is to open checkout. */
.shop:not(.checkout) {
  top: var(--bar-h);
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s, top 0.4s var(--ease-out);
}
.shop.checkout { z-index: 220; }
.order-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding:
    calc(0.7rem + var(--safe-t))
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-r))
    0.7rem
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--safe-l));
}
.order-bar__msg {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.order-bar__count { font-weight: 700; }
.order-bar__dot { opacity: 0.65; margin: 0 0.3rem; }
.order-bar__cta {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-soft);
}
.order-bar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(36, 29, 20, 0.22);
}

/* ============================================================
   Checkout — layered on top of the .shop overlay chrome
   (.shop / .shop.open / .shop__bar / .shop__view already handle
   the fixed backdrop, sticky header and safe-area padding)
   ============================================================ */
.checkout__view { max-width: 980px; }

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.checkout__col { display: flex; flex-direction: column; }
.checkout__h {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.checkout__h--pay { margin-top: 1.8rem; }

/* order summary rows */
.checkout__items { display: flex; flex-direction: column; gap: 0.8rem; }
.checkout__empty { color: var(--ink-dim); font-size: 0.92rem; }
.checkout__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.checkout__item-info { display: flex; flex-direction: column; gap: 0.2rem; }
.checkout__item-name { font-size: 0.88rem; }
.checkout__item-price { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.checkout__item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.qty-btn {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: border-color 0.3s, color 0.3s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.checkout__item-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.checkout__item-remove:hover { color: var(--accent); }

.checkout__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
}
.checkout__subtotal strong { font-size: 1.2rem; }

/* contact fields */
.checkout__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.checkout__field input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s var(--ease-soft);
}
.checkout__field input:focus {
  outline: none;
  border-color: var(--accent);
}

/* payment method card — a typographic badge, not a reproduced logo */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.pay-methods--single { grid-template-columns: 1fr; }   /* just WayForPay for now */
.pay-method {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease-out);
}
.pay-method.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 28px rgba(176, 141, 62, 0.16);
}
.pay-method__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.pay-method__mark em { font-style: normal; opacity: 0.7; font-weight: 500; }
.pay-method__hint {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}
/* WayForPay's brand is blue. Approximated as a tasteful accent rather than
   reproducing the logo. */
.pay-method--wayforpay .pay-method__mark { color: #1f6fe0; }
.pay-method--wayforpay.is-selected { border-color: #1f6fe0; box-shadow: 0 0 0 1px #1f6fe0, 0 12px 28px rgba(31, 111, 224, 0.16); }

.checkout__pay {
  width: 100%;
  padding: 1.05rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fffdf7;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-soft), opacity 0.3s;
}
.checkout__pay:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
.checkout__pay:disabled { opacity: 0.45; cursor: not-allowed; }

.checkout__hint {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.checkout__soon {
  margin-top: 0.8rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(176, 141, 62, 0.35);
  border-radius: 14px;
  background: rgba(176, 141, 62, 0.08);
  text-align: center;
}
.checkout__soon strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.checkout__soon p { font-size: 0.85rem; color: var(--ink-dim); }

@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .order-bar__inner { justify-content: center; text-align: center; }
}
