/* ==========================================================================
   RoohAlma.Co — styles
   Palette taken from the logo: wine, cream, honey gold, ochre.
   ========================================================================== */

:root {
  /* Brand primitives */
  --wine: #4A1E2A;
  --wine-deep: #2A0F17;
  --ink: #1A0A0F;
  --cream: #F7F1E6;
  --sand: #EDE3D3;
  --linen: #E2D6C3;
  --honey: #E3B25F;
  --ochre: #C8892B;
  --peach: #F4D2A4;
  --plum-muted: #6B4A52;

  /* Semantic */
  --bg: var(--cream);
  --text: var(--wine);
  --text-muted: #6B4A52;
  --text-on-dark: #F7F1E6;
  --text-on-dark-muted: rgba(247, 241, 230, .72);
  --line: rgba(74, 30, 42, .16);
  --line-on-dark: rgba(247, 241, 230, .18);
  --focus: #C8892B;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --fs-hero: clamp(3.25rem, 9.2vw, 9rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 4.6rem);
  --fs-statement: clamp(1.9rem, 4.2vw, 3.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: clamp(28px, 4vw, 56px);
  --maxw: 1320px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .2s;
  --dur: .45s;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* no CSS smooth scrolling: it breaks GSAP's position measuring (links glide via JS instead) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--honey); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 500; transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --- Type -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.25rem;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.015em;
}
.h2 em, .hero__title em, .story__statement em { color: var(--ochre); font-weight: 400; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.35em;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: .95rem; letter-spacing: .02em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  /* hover uses `translate`/`scale` so it never fights GSAP's `transform` */
  transition: translate var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur);
}
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 0; scale: .98; }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--honey); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: #EDC27A; box-shadow: 0 10px 30px -10px rgba(227, 178, 95, .7); }
.btn--ghost { --btn-fg: var(--text-on-dark); --btn-bd: var(--line-on-dark); }
.btn--ghost:hover { --btn-bd: var(--honey); --btn-fg: var(--honey); }
.btn--wine { --btn-bg: var(--wine); --btn-fg: var(--cream); }
.btn--wine:hover { --btn-bg: var(--wine-deep); box-shadow: 0 12px 30px -12px rgba(42, 15, 23, .6); }
.btn--outline { --btn-fg: var(--wine); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--wine); }

/* --- Loader ------------------------------------------------------------ */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 150;
  background: var(--wine-deep);
  clip-path: inset(0 0 0% 0);
  /* safety net: the page never stays covered if the script fails */
  animation: loader-failsafe .6s 4s forwards;
}
.loader__inner { position: relative; width: min(150px, 34vw); }
.loader__mark { position: relative; z-index: 1; opacity: 0; transform: scale(.92); }
.loader__glow {
  position: absolute; left: 50%; top: 22%; width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(227, 178, 95, .35), transparent 62%);
  opacity: 0;
}
.loaded .loader { display: none; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* --- Header ------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-on-dark);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out);
}
.header__logo { position: relative; display: block; width: 148px; flex: none; margin-right: auto; }
.header__logo img { width: 100%; transition: opacity var(--dur); }
.header__logo .logo-on-light { position: absolute; inset: 0; opacity: 0; }
.header__nav { display: flex; gap: 6px; }
.header__nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-size: .95rem; letter-spacing: .02em;
  transition: background-color var(--dur-fast);
}
.header__nav a:hover { background: rgba(247, 241, 230, .1); }
.header__cart { padding-inline: 1em .5em; gap: .45em; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--wine); color: var(--cream); font-size: .75rem; font-weight: 500; line-height: 1;
}
.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { scale: 1.12; } }
@media (max-width: 600px) {
  .header__cart { padding-inline: .8em .45em; }
  .header__cart-label { display: none; }
}
@media (max-width: 420px) {
  /* `.header` prefix: beats the tablet rules further down */
  .header .header__bar { gap: 6px; padding-left: 14px; }
  .header .header__logo { width: 100px; }
  .header .currency select { padding: 0 24px 0 10px; font-size: .82rem; }
  .header .currency::after { right: 10px; }
  .header .header__cart { padding-inline: .65em .4em; gap: .35em; }
}

/* currency picker: a quiet pill that follows the header's light/dark state */
.currency { position: relative; flex: none; }
.currency select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  min-height: 44px; padding: 0 30px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-on-dark); background: transparent; color: inherit;
  font-size: .9rem; letter-spacing: .04em;
  transition: border-color var(--dur-fast);
}
.currency::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; pointer-events: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.currency select:hover { border-color: currentColor; }
.currency option { color: var(--wine); background: var(--cream); }
.header.is-scrolled .currency select { border-color: var(--line); }

.header.is-scrolled .header__bar {
  background: rgba(247, 241, 230, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-color: var(--line);
  color: var(--wine);
  box-shadow: 0 10px 40px -20px rgba(42, 15, 23, .35);
}
.header.is-scrolled .logo-on-dark { opacity: 0; }
.header.is-scrolled .logo-on-light { opacity: 1; }
.header.is-scrolled .header__nav a:hover { background: rgba(74, 30, 42, .07); }
.header.is-hidden .header__bar { transform: translateY(-140%); }

.menu-btn {
  display: none; position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; background: none; cursor: pointer; flex: none;
}
.menu-btn span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 120px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--wine-deep); color: var(--cream);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.15;
  text-decoration: none; padding-block: 4px; border-bottom: 1px solid var(--line-on-dark);
}
.menu-open .header .header__bar { background: transparent; border-color: transparent; color: var(--cream); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header .logo-on-dark { opacity: 1; }
.menu-open .header .logo-on-light { opacity: 0; }
.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .header__nav { display: none; }
  .menu-btn { display: block; }
  .header__bar { padding: 8px 8px 8px 18px; gap: 10px; }
  .header__logo { width: 124px; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { padding: 0; background: var(--bg); }
.hero__frame {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  padding: clamp(120px, 16vh, 170px) var(--gutter) clamp(28px, 5vh, 56px);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--ink);
  color: var(--text-on-dark);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 62% 62%, rgba(227, 178, 95, .26), transparent 60%),
    radial-gradient(90% 70% at 62% 70%, rgba(110, 36, 52, .65), transparent 70%),
    linear-gradient(180deg, #1A0A0F 0%, #2A0F17 60%, #3A1520 100%);
}
.hero__bg::after { /* fine film grain for a filmic feel */
  content: ""; position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__copy { grid-column: 1; grid-row: 1; align-self: end; position: relative; z-index: 2; }
.hero__eyebrow { color: var(--honey); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, 7.4vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.025em;
}
/* each line clips for the slide-up reveal; the extra bottom padding keeps descenders (g, y)
   inside the clip, and the negative margin cancels it so line spacing stays the same */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .28em; margin-bottom: -.2em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--honey); }

.hero__aside {
  grid-column: 1; grid-row: 2; align-self: start;
  max-width: 440px; margin-top: clamp(20px, 3vh, 32px); position: relative; z-index: 2;
  font-size: var(--fs-lead); color: var(--text-on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__media {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  position: relative; width: min(100%, 600px); justify-self: end;
}
.hero__media .shot { border-radius: var(--r-lg); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(247, 241, 230, .08); }
.hero__chip {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: clamp(20px, 4vw, 40px);
  display: grid; gap: 2px; max-width: 78%;
  padding: 14px 20px; border-radius: var(--r-sm);
  background: rgba(247, 241, 230, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--wine); font-size: .82rem; line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.hero__chip-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 5vh, 56px); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--line-on-dark); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--honey); animation: scroll-dot 2s var(--ease-in-out) infinite;
}

@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero__frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: 112px;
    min-height: auto;
  }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__media { grid-column: 1; grid-row: 2; justify-self: center; width: 100%; margin-top: 32px; }
  .hero__chip { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero__chip-name { font-size: 1.2rem; }
  .hero__aside { grid-column: 1; grid-row: 3; max-width: none; margin-top: 28px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* --- Product photo + printed label ------------------------------------- */
.shot { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The label is laid out in a unit (--u) tied to the label's own size, so it
   prints the same at every screen size. 1.43 = reference label width / height. */
.label {
  position: absolute; container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  color: #4A1E2A; text-align: center; pointer-events: none;
}
.label > * { --u: min(1cqi, 1.43cqb); }
.label__top { display: grid; justify-items: center; gap: calc(var(--u) * 1.4); padding-top: calc(var(--u) * 6); width: 100%; }
.label__mark { width: calc(var(--u) * 15); }
.label__word { width: calc(var(--u) * 54); }
.label__name {
  max-width: 88%;
  font-family: var(--font-display); font-style: italic; font-weight: 500; line-height: 1.05;
  font-size: min(calc(var(--u) * 11), calc(var(--u) * 150 / var(--n)));
  margin-top: calc(var(--u) * 3);
}
.label__logo {
  max-width: 62%; max-height: calc(var(--u) * 26); width: auto; height: auto; object-fit: contain;
  mix-blend-mode: multiply;
}
.label__mid { display: grid; justify-items: center; width: 100%; }
.label__rule { width: calc(var(--u) * 15); height: max(1px, calc(var(--u) * .35)); background: #B07A2A; margin-bottom: calc(var(--u) * 4.5); }
.label__scent {
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase; line-height: 1;
  letter-spacing: .2em; margin-right: -.2em; /* balance the trailing letter-spacing */
  font-size: min(calc(var(--u) * 6.2), calc(var(--u) * 82 / var(--n)));
  white-space: nowrap;
}
.label__sub {
  margin-top: calc(var(--u) * 3); margin-right: -.32em;
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .32em; line-height: 1;
  font-size: calc(var(--u) * 2.9);
}
.label__foot {
  display: flex; justify-content: space-between; width: 100%;
  padding: 0 calc(var(--u) * 5) calc(var(--u) * 4.5);
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; line-height: 1;
  font-size: calc(var(--u) * 2.7); color: #9C6A1C;
}

/* --- Marquee ----------------------------------------------------------- */
.marquee {
  overflow: hidden; padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); }
.marquee li {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); white-space: nowrap; color: var(--wine);
}
.marquee li[aria-hidden], .marquee ul[aria-hidden] li:nth-child(even) { color: var(--ochre); font-style: normal; font-size: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Story ------------------------------------------------------------- */
.story__statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -.01em;
  max-width: 22ch;
}
.story__statement .word { display: inline-block; }
.founder {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 7vw, 120px); align-items: start;
  margin-top: clamp(56px, 8vw, 112px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line);
}
.founder__name { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1; }
.founder__role { margin-top: 10px; color: var(--text-muted); font-size: .95rem; }
.founder__text { font-size: var(--fs-lead); line-height: 1.7; max-width: 52ch; }
.founder__text em, .founder__name em { color: var(--ochre); }
.founder__name em { font-weight: 400; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.story__grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px);
  margin-top: clamp(64px, 9vw, 128px); align-items: center;
}
.story__mark {
  background: var(--sand); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 64px) 32px;
  display: grid; gap: 28px; justify-items: center; text-align: center;
}
.story__mark img { width: min(280px, 70%); }
.story__mark figcaption { font-size: .95rem; color: var(--text-muted); max-width: 30ch; }
.story__facts { display: grid; gap: 0; }
.fact {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px;
  padding-block: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact__num { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: .9; font-variant-numeric: tabular-nums; }
.fact__unit { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ochre); }
.fact p { grid-column: 1 / -1; margin-top: 10px; color: var(--text-muted); max-width: 42ch; }

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
}

/* --- Collection -------------------------------------------------------- */
.collection { padding-top: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--wine);
  font-size: .92rem; letter-spacing: .03em;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.chip:hover { border-color: var(--wine); }
.chip[aria-selected="true"] { background: var(--wine); color: var(--cream); border-color: var(--wine); }

.products {
  display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .products { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--sand);
  background: color-mix(in srgb, var(--tint, var(--sand)) 22%, var(--sand));
  border-radius: var(--r-md); overflow: hidden;
  transition: translate var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card.is-hidden { display: none; }
@media (hover: hover) {
  .card:hover { translate: 0 -6px; box-shadow: 0 28px 50px -30px rgba(42, 15, 23, .45); }
}
.card__media { position: relative; cursor: pointer; }
.card__media::after { /* thin band of the scent's colour under the photo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tint, var(--honey));
}
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 5px 12px; border-radius: 999px; background: rgba(247, 241, 230, .85);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wine);
}
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 20px; flex: 1; }
.card__name { font-family: var(--font-display); font-weight: 500; font-size: 1.85rem; line-height: 1; }
.card__tagline { font-size: .95rem; color: var(--text-muted); }
.card__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card__notes li { font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--plum-muted); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.card__actions { display: flex; gap: 8px; width: 100%; }
.card__actions .btn { flex: 1 1 auto; padding-inline: .9em; }
.card__actions .btn--outline { flex: 0 1 auto; }
.card__price [data-price] { display: inline-block; } /* so the price can settle in with a small lift */
.card__price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.card__size { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 400; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }
.card .btn { padding-inline: 1.05em; font-size: .9rem; }

.noscript { padding: 24px; border-radius: var(--r-md); background: var(--sand); }

/* Card options: container + size */
.opts { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.opts__label { font-size: .78rem; letter-spacing: .06em; color: var(--text-muted); }
.opts__label strong { font-weight: 500; color: var(--wine); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--cream);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), translate var(--dur-fast) var(--ease-out);
}
.swatch svg { width: 22px; height: 22px; fill: var(--fill); stroke: var(--wine); stroke-width: 1.2; stroke-linejoin: round; }
.swatch:hover { border-color: var(--wine); translate: 0 -2px; }
.swatch[aria-checked="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1.5px var(--wine); background: #FFFDF8; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--wine);
  font-size: .9rem; line-height: 1.15;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pill small { font-size: .72rem; opacity: .7; }
.pill:hover { border-color: var(--wine); }
.pill[aria-checked="true"] { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.pill--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
@media (pointer: coarse) { .pill--sm { min-height: 44px; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hint { font-size: .82rem; color: var(--text-muted); }

/* --- Product dialog ---------------------------------------------------- */
.dialog-open { overflow: hidden; }
.pd {
  width: min(1100px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--cream); color: var(--wine);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.pd::backdrop { background: rgba(26, 10, 15, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; max-height: calc(100dvh - 32px); }
.pd__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(247, 241, 230, .9); color: var(--wine);
}
.pd__close:hover { border-color: var(--wine); }
.pd__media { background: var(--sand); align-self: stretch; display: flex; flex-direction: column; }
.pd__note { padding: 12px 20px 16px; font-size: .85rem; color: var(--text-muted); text-align: center; }
.pd__note:empty { display: none; }
/* the options column scrolls on its own; it needs its own height cap or the dialog just clips it */
.pd__body { overflow-y: auto; max-height: calc(100dvh - 32px); padding: clamp(24px, 3vw, 44px); display: grid; gap: 6px; align-content: start; }
.pd__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; padding-right: 48px; }
.pd__tagline { color: var(--text-muted); font-size: 1.02rem; margin-top: 4px; }
.pd__group { margin: 12px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.pd__group legend { padding: 0; margin-bottom: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); }
.pd__value { margin-left: 6px; letter-spacing: .04em; text-transform: none; font-size: .9rem; color: var(--wine); }
.pd__group .hint { margin-top: 10px; }

.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); gap: 8px; }
.ptile {
  display: grid; gap: 2px; padding: 6px 6px 10px; cursor: pointer; text-align: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #FFFDF8; color: var(--wine);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ptile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; margin-bottom: 6px; }
.ptile:hover { border-color: var(--wine); }
.ptile[aria-checked="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1.5px var(--wine); }
.ptile__name { font-size: .8rem; font-weight: 500; line-height: 1.2; }
.ptile__from { font-size: .72rem; color: var(--text-muted); }

.pd__buy {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 18px calc(-1 * clamp(24px, 3vw, 44px)) calc(-1 * clamp(24px, 3vw, 44px));
  padding: 18px clamp(24px, 3vw, 44px) max(18px, env(safe-area-inset-bottom));
  background: var(--sand); border-top: 1px solid var(--line);
}
.pd__total { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.pd__buy .hint { max-width: 40ch; margin-top: 4px; }
.pd__buy > div { flex: 1 1 240px; }
.pd__buy .btn { flex: 1 1 auto; }

@media (max-width: 860px) {
  .pd { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .pd__inner { display: block; height: 100%; max-height: none; overflow-y: auto; }
  .pd__body { overflow: visible; max-height: none; }
  .pd__buy { bottom: 0; }
  .ptiles { grid-template-columns: repeat(2, minmax(0, 160px)); }
}

.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.segment__opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; padding: 6px 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--wine); font-size: .88rem; line-height: 1.15;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.segment__opt small { font-size: .7rem; opacity: .7; }
.segment__opt[aria-checked="true"] { background: var(--wine); color: var(--cream); }
.segment__opt[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

.cfield { display: grid; gap: 6px; margin-top: 16px; }
.cfield > label:not(.drop) { font-size: .85rem; font-weight: 500; }
.cfield input[type="text"], .qty input {
  min-height: 48px; padding: 12px 14px; font-size: 1rem;
  border-radius: var(--r-sm); border: 1px solid rgba(74, 30, 42, .28); background: #FFFDF8;
}
.cfield input[type="text"]:focus, .qty input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(200, 137, 43, .22); }
.drop {
  display: grid; justify-items: center; gap: 4px; padding: 22px 16px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(74, 30, 42, .35); border-radius: var(--r-md); background: #FFFDF8;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.drop:hover { border-color: var(--wine); background: var(--cream); }
.drop .icon { width: 28px; height: 28px; color: var(--ochre); }
.drop__title { font-weight: 500; word-break: break-word; }
.drop__sub { font-size: .8rem; color: var(--text-muted); }
.cfield:has(#pd-file:focus-visible) .drop { outline: 2px solid var(--focus); outline-offset: 3px; }

.qty { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.qty button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--wine); font-size: 1.3rem; line-height: 1;
}
.qty button:hover { border-color: var(--wine); }
.qty input { width: 84px; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

@media (max-width: 380px) {
  .segment { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .segment__opt { border-radius: var(--r-sm); }
}

.gifting__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Craft ------------------------------------------------------------- */
.craft { background: var(--ink); color: var(--text-on-dark); overflow: hidden; }
.craft__pin {
  display: grid; grid-template-columns: minmax(300px, 34%) 1fr; align-items: center;
  gap: clamp(32px, 4vw, 64px);
  min-height: 100svh; padding: var(--section) 0 var(--section) var(--gutter);
}
.craft__intro { position: relative; z-index: 2; padding-right: 12px; }
.craft__intro .eyebrow { color: var(--honey); }
.craft__intro .h2 em { color: var(--honey); }
.craft__lede { margin-top: 22px; color: var(--text-on-dark-muted); max-width: 34ch; font-size: var(--fs-lead); }
.craft__progress { margin-top: 40px; height: 2px; width: min(240px, 100%); background: var(--line-on-dark); border-radius: 2px; overflow: hidden; }
.craft__progress span { display: block; height: 100%; width: 100%; background: var(--honey); transform-origin: 0 50%; transform: scaleX(0); }
.craft__viewport {
  min-width: 0; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%);
  mask-image: linear-gradient(90deg, transparent, #000 5%);
}
.craft__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-right: var(--gutter); will-change: transform; }
.step {
  flex: 0 0 clamp(280px, 30vw, 400px);
  display: flex; flex-direction: column;
  min-height: clamp(380px, 56vh, 520px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(247, 241, 230, .07), rgba(247, 241, 230, .02));
  border: 1px solid var(--line-on-dark);
}
.step__num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--honey); }
.step__icon { width: 72px; height: 72px; margin: auto 0 28px; fill: none; stroke: var(--honey); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3vw, 3rem); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--text-on-dark-muted); }

@media (max-width: 900px) {
  .craft__pin { grid-template-columns: 1fr; min-height: 0; padding-right: var(--gutter); }
  .craft__progress { display: none; }
  .craft__viewport { -webkit-mask-image: none; mask-image: none; }
  .craft__track { flex-direction: column; padding-right: 0; }
  .step { flex-basis: auto; min-height: 0; }
  .step__icon { margin: 26px 0 22px; width: 56px; height: 56px; }
}

/* --- Mood finder ------------------------------------------------------- */
.mood__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.mood__options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.mood-opt {
  min-height: 48px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--wine);
  font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.mood-opt:hover { border-color: var(--wine); transform: translateY(-2px); }
.mood-opt[aria-checked="true"] { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.mood__line { margin-top: 22px; min-height: 1.6em; color: var(--text-muted); }
.mood__result { position: relative; min-height: 420px; }
.mood__result .card { max-width: 400px; margin-inline: auto; }

@media (max-width: 860px) {
  .mood__wrap { grid-template-columns: 1fr; }
  .mood__result { min-height: 0; }
}

/* --- Gifting ----------------------------------------------------------- */
.gifting { padding-inline: clamp(8px, 1.4vw, 20px); }
.gifting__frame {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1480px; margin-inline: auto;
  padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-xl);
  background: var(--peach);
  color: var(--wine);
  overflow: hidden;
}
.gifting__copy > p:not(.eyebrow) { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); color: #5A2A36; }
.gifting .eyebrow { color: #8A5A16; }
.gifting .h2 em { color: #9A5F12; }
.gifting__list { display: grid; gap: 12px; margin: 28px 0 36px; }
.gifting__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.gifting__list .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--wine); color: var(--honey); }
.gifting__art { display: grid; gap: 14px; width: min(520px, 100%); justify-self: center; }
.gifting__art .shot { width: 100%; border-radius: var(--r-lg); box-shadow: 0 40px 70px -40px rgba(74, 30, 42, .6); }
.gifting__caption { font-size: .85rem; color: #6A3A2A; text-align: center; }

@media (max-width: 860px) {
  .gifting__frame { grid-template-columns: 1fr; }
  .gifting__art { order: -1; }
}

/* --- Care / FAQ -------------------------------------------------------- */
.care__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 26px 56px 26px 0; min-height: 44px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 26px 0; color: var(--text-muted); max-width: 60ch; }
.faq details[open] p { animation: faq-in var(--dur) var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .care__wrap { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}

/* --- Contact ----------------------------------------------------------- */
.contact { padding: var(--section) clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px); }
.contact__frame {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: 1480px; margin-inline: auto;
  padding: clamp(48px, 7vw, 110px) clamp(20px, 6vw, 96px);
  border-radius: var(--r-xl);
  background: var(--wine); color: var(--text-on-dark);
  position: relative; overflow: hidden; isolation: isolate;
}
.contact__frame::before {
  content: ""; position: absolute; z-index: -1; width: 70vw; aspect-ratio: 1; left: -20vw; bottom: -40vw;
  background: radial-gradient(circle, rgba(227, 178, 95, .22), transparent 60%);
}
.contact .eyebrow { color: var(--honey); }
.contact .h2 em { color: var(--honey); }
.contact__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--text-on-dark-muted); font-size: var(--fs-lead); max-width: 38ch; }
.contact__links { margin-top: 36px; display: grid; gap: 4px; }
.contact__links a, .contact__place {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  text-decoration: none; font-size: 1.05rem;
}
.contact__links a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease-out); }
.contact__links a:hover span { background-size: 100% 1px; }
.contact__links .icon { color: var(--honey); }

.form {
  background: var(--cream); color: var(--wine);
  border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px);
  display: grid; gap: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.field label { font-size: .85rem; font-weight: 500; letter-spacing: .04em; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid rgba(74, 30, 42, .28); background: #FFFDF8;
  font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #FFFDF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A1E2A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(200, 137, 43, .22); }
.field input[aria-invalid="true"] { border-color: #A3262E; }
.field__error { color: #A3262E; font-size: .85rem; }
.form__hint { text-align: center; font-size: .82rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .contact__frame { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------------------------ */
.footer { padding: clamp(64px, 9vw, 120px) 0 max(40px, env(safe-area-inset-bottom)); text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 40px; }
.footer__logo { width: min(320px, 70vw); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.footer__nav a { padding: 10px 14px; text-decoration: none; border-radius: 999px; }
.footer__nav a:hover { background: rgba(74, 30, 42, .07); }
.footer__note { font-size: .9rem; color: var(--text-muted); }

/* --- Floating WhatsApp ------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 80; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--honey); color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(26, 10, 15, .5);
  transform: translateY(120px); transition: transform var(--dur) var(--ease-out);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-visible { transform: none; }
@media (max-width: 860px) { .wa-float { display: grid; } }

/* --- Cart -------------------------------------------------------------- */
.cart {
  /* slides in from the right; full screen on phones */
  margin: 0 0 0 auto; width: min(460px, 100%); max-width: none; height: 100dvh; max-height: none;
  padding: 0; border: 0; border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--cream); color: var(--wine);
  box-shadow: -40px 0 80px -40px rgba(0, 0, 0, .5);
}
.cart::backdrop { background: rgba(26, 10, 15, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cart__inner { display: flex; flex-direction: column; height: 100%; }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.cart__title { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1; }
.cart__title span { font-size: 1.2rem; color: var(--text-muted); }
.cart__close { position: static; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__list { display: grid; }
.cline { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline__img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--sand); }
.cline__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.cline__meta { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.cline__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cline__price { font-weight: 500; white-space: nowrap; }
.cline__remove {
  border: 0; background: none; padding: 10px 4px; min-height: 44px; cursor: pointer;
  font-size: .82rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px;
}
.cline__remove:hover { color: var(--wine); }
.qty--sm { margin: 0; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty--sm button { width: 36px; height: 36px; border: 0; font-size: 1.1rem; }
.qty--sm button:hover { background: var(--sand); }
.qty--sm span { min-width: 26px; text-align: center; font-weight: 500; }
@media (pointer: coarse) { .qty--sm button { width: 44px; height: 44px; } }

.cart__empty { display: grid; justify-items: center; gap: 14px; padding: 72px 12px; text-align: center; color: var(--text-muted); }
.cart__empty .icon { width: 44px; height: 44px; color: var(--ochre); }
.cart__foot { display: grid; gap: 10px; padding: 18px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--sand); }
.cart__foot .hint:empty { display: none; }
.cart__row { display: flex; align-items: baseline; justify-content: space-between; }
.cart__row span { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); }
.cart__total { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.cart__how { font-size: .78rem; }
.cart__clear { justify-self: center; border: 0; background: none; cursor: pointer; padding: 8px; min-height: 44px; font-size: .82rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.cart__clear:hover { color: var(--wine); }
@media (max-width: 520px) {
  .cart { width: 100%; border-radius: 0; }
  .cart__head, .cart__body, .cart__foot { padding-inline: 16px; }
  .cline { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
  .cline__img { width: 60px; height: 60px; }
  .cline__row { flex-wrap: wrap; gap: 4px 10px; }
}

/* "added to cart" message */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--wine-deep); color: var(--cream); font-size: .92rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
  translate: -50% 20px; opacity: 0; transition: translate var(--dur) var(--ease-out), opacity var(--dur);
}
.toast.is-visible { translate: -50% 0; opacity: 1; }
.toast button {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--honey); color: var(--ink); font-weight: 500;
}

/* floating cart on phones replaces the WhatsApp bubble once something is in the cart */
.cart-float {
  position: fixed; z-index: 80; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: none; place-items: center;
  background: var(--honey); color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(26, 10, 15, .5);
}
.cart-float .icon { width: 24px; height: 24px; }
.cart-float .cart-count { position: absolute; top: -4px; right: -4px; }
@media (max-width: 860px) {
  .has-cart .cart-float { display: grid; }
  .has-cart .wa-float { display: none; }
}

/* --- Policies page ----------------------------------------------------- */
.policy-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin-inline: auto; padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
}
.policy-header__logo { width: 140px; }
.policy { max-width: 820px; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); }
.policy__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.policy__title em { color: var(--ochre); font-weight: 400; }
.policy__lede { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.7; }
.policy__updated { margin-top: 12px; font-size: .85rem; color: var(--text-muted); }
.policy__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.policy__toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: .9rem;
}
.policy__toc a:hover { border-color: var(--wine); }
.policy__section { padding-top: clamp(36px, 5vw, 56px); margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.policy__section h2, .policy__contact h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; margin-bottom: 16px; }
.policy__section h3 { margin: 24px 0 8px; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); }
.policy__section p, .policy__section li { line-height: 1.7; max-width: 64ch; }
.policy__section p + p { margin-top: 12px; }
.policy__section ul, .policy__section ol { display: grid; gap: 8px; padding-left: 1.2em; }
.policy__section ul { list-style: disc; }
.policy__section ol { list-style: decimal; }
.policy__section li::marker { color: var(--ochre); }
.policy__section a, .policy__lede a { text-underline-offset: 3px; }
.policy__contact { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--sand); }
.policy__contact p { color: var(--text-muted); }
.policy__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.policy-page .footer { padding-top: 24px; }

/* --- 404 page ---------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; place-items: center; background: var(--wine-deep); color: var(--text-on-dark); }
.notfound__inner { display: grid; justify-items: center; gap: 18px; padding: 48px 20px; text-align: center; }
.notfound__mark { width: 110px; margin-bottom: 12px; }
.notfound .eyebrow { color: var(--honey); margin: 0; }
.notfound__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.notfound__title em { color: var(--honey); font-weight: 400; }
.notfound__text { color: var(--text-on-dark-muted); margin-bottom: 12px; }

/* Netlify's free plan adds a "Powered by Netlify" badge in the bottom-right corner (about 64px tall);
   keep the floating buttons and the toast above it */
.wa-float, .cart-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); }
.toast { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); }

/* small links to the policies from the cart and FAQ */
.cart__policy { justify-self: center; font-size: .8rem; color: var(--text-muted); text-underline-offset: 3px; }

/* --- Micro-interactions ------------------------------------------------ */
/* thin gold reading-progress line */
.progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ochre), var(--honey)); transform-origin: 0 50%; transform: scaleX(0); }

/* eyebrows get a short gold rule that draws in */
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 12px; vertical-align: .32em;
  background: currentColor; transform-origin: left center;
}
.js .eyebrow.reveal::before { transform: scaleX(0); }
.js .eyebrow.reveal.in::before { transform: scaleX(1); transition: transform 1s .25s var(--ease-out); }

/* section headings rise out of a mask (negative insets keep accents and descenders visible) */
/* the mask sits on an inner wrapper: a fully masked heading would never count as "on screen" */
.js .h2.reveal { opacity: 1; transform: none; }
.js .h2.reveal .h2__in { display: block; transform: translateY(.35em); clip-path: inset(-.25em -.1em 100% -.1em); }
.js .h2.reveal.in .h2__in {
  transform: none; clip-path: inset(-.25em -.1em -.35em -.1em);
  transition: clip-path 1.2s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: inherit;
}

/* nav links: underline sweeps in instead of a background tint */
.header__nav a:hover, .header.is-scrolled .header__nav a:hover, .footer__nav a:hover { background: transparent; }
.header__nav a::after, .footer__nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease-out);
}
.footer__nav a { position: relative; }
.header__nav a:hover::after, .footer__nav a:hover::after,
.header__nav a:focus-visible::after, .footer__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* a soft sheen crosses the solid buttons on hover */
.btn--gold, .btn--wine { position: relative; isolation: isolate; overflow: hidden; }
.btn--gold::after, .btn--wine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .9s var(--ease-out);
}
.btn--wine::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); }
.btn--gold:hover::after, .btn--wine:hover::after { transform: translateX(130%); }
.btn .icon--arrow { width: 1.1em; height: 1.1em; transition: translate var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { translate: 4px 0; }

/* cards: a hairline of gold joins the lift on hover */
@media (hover: hover) {
  .card:hover { box-shadow: 0 28px 50px -30px rgba(42, 15, 23, .45), 0 0 0 1px rgba(200, 137, 43, .3); }
}

/* hero: slow ambient candlelight drifting behind the content (never on the photo) */
.hero__bg::before {
  content: ""; position: absolute; inset: -15%;
  background:
    radial-gradient(34% 30% at 28% 42%, rgba(227, 178, 95, .16), transparent 70%),
    radial-gradient(30% 28% at 76% 72%, rgba(200, 137, 43, .12), transparent 70%);
  animation: ambient 16s ease-in-out infinite alternate;
}
@keyframes ambient { to { transform: translate3d(5%, -4%, 0) scale(1.08); } }

/* FAQ: the plus turns as soon as a closing answer starts folding away */
.faq details.closing summary::after { transform: rotate(90deg); }

/* add-to-cart: a small gold bag flies to the cart */
.fly {
  position: fixed; z-index: 130; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--honey); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(26, 10, 15, .5);
}
.fly .icon { width: 18px; height: 18px; }

/* --- Reveal (JS-enhanced) ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-hero-line] { transform: translateY(105%); }
.js [data-hero-item], .js [data-hero-media] { opacity: 0; }

/* --- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .js .reveal, .js [data-hero-line], .js [data-hero-item], .js [data-hero-media] { opacity: 1; transform: none; }
  .js .h2.reveal .h2__in { clip-path: none; transform: none; }
  .js .eyebrow.reveal::before { transform: none; }
  .hero__bg::before { animation: none; }
  .progress { display: none; }
}
