/* House of Nova — ivory minimal, burgundy accent.
   Layout: editorial asymmetric grid, generous ivory space, framed photography, one burgundy moment per screen. */

/* Brand font: Stevie Sans (TrueType files in assets/EM-Stevie.Sans/TTF).
   Every file reports weight 400 internally, so each cut is mapped to a CSS weight by its name. */
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Book.ttf") format("truetype"); font-weight: 350; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Stevie Sans"; src: url("assets/EM-Stevie.Sans/TTF/Stevie%20Sans%20Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ivory: #F7F2EA;
  --paper: #FCFAF6;
  --stone: #E6DDD0;
  --stone-deep: #CFC3B3;
  --muted: #6B5B53;
  --ink: #2A1C1E;
  --burgundy: #6B1D2F;
  --burgundy-deep: #4A1220;
  --blush: #F0E3DF;
  --gold: #A88452;
  --danger: #A3261B;
  --success: #2F6B47;

  --font-sans: "Stevie Sans", sans-serif;
  --font-accent: "Stevie Sans", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.7rem, 1.9rem + 4.2vw, 5.6rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;

  --z-header: 40;
  --z-dialog: 100;
  --z-toast: 200;
  --z-curtain: 1000;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: calc(var(--z-header) + 1); background: var(--ivory);
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-curtain);
  background: var(--burgundy); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 64px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.accent { font-family: var(--font-accent); font-style: normal; font-weight: 500; color: var(--burgundy); letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  --btn-bg: var(--burgundy); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid var(--btn-bg); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .2s var(--ease-out), border-color .25s;
  touch-action: manipulation; white-space: nowrap;
}
.btn:hover { --btn-bg: var(--burgundy-deep); }
.btn:active { transform: scale(0.97); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--stone-deep); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease-out); }
.link-arrow:hover span { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); border-radius: 4px; }
.brand-logo { display: block; width: auto; height: 44px; aspect-ratio: 1 / 1; object-fit: contain; background: transparent; }
@media (min-width: 860px) { .brand-logo { height: 48px; } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-header);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--stone); }
/* Header: equal outer columns keep the logo mathematically centred (nav left, actions right) */
.header-inner { height: var(--header-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.header-nav { justify-self: start; min-width: 0; }
.header-logo { justify-self: center; }
.nav-links { display: none; gap: clamp(18px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav-links a { text-decoration: none; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; padding: 12px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--burgundy); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 10px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  transition: background-color .2s; touch-action: manipulation;
}
.icon-btn:hover { background: var(--stone); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; display: none; }
.bag-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--burgundy); color: var(--paper);
  font-size: 0.72rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.bag-count[data-empty="true"] { background: var(--stone); color: var(--muted); }
.mobile-nav { border-top: 1px solid var(--stone); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; display: grid; }
.mobile-nav a { display: block; padding: 14px 0; text-decoration: none; font-size: var(--step-1); border-bottom: 1px solid var(--stone); }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .bag-label { display: inline; }
}

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-title { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title .accent { font-weight: 400; }
.hero-lede { max-width: 34ch; font-size: var(--step-1); color: var(--muted); line-height: 1.5; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; border-top: 1px solid var(--stone); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.06em; }
.hero-meta strong { color: var(--ink); font-weight: 500; }

.hero-art { position: relative; min-width: 0; padding-bottom: 14%; padding-left: 10%; }
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-main { aspect-ratio: 4 / 5; border-radius: 220px 220px 4px 4px; }
.hero-frame-main img { object-position: 50% 62%; }
.hero-frame-sub {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 4px;
  outline: 10px solid var(--ivory); box-shadow: 0 30px 60px -30px rgba(42, 28, 30, .45);
}
.hero-caption {
  position: absolute; right: 0; bottom: 2%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 899px) { .hero-caption { display: none; } }

/* Marquee */
.marquee { border-block: 1px solid var(--stone); overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding: 18px 20px; flex: none; }
.marquee-item { font-size: var(--step-1); font-weight: 300; letter-spacing: 0.02em; white-space: nowrap; }
.marquee svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; } }
.section-title { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.015em; }
.section-sub { color: var(--muted); max-width: 46ch; font-weight: 300; font-size: var(--step-1); line-height: 1.5; }

/* Collection: text only (heading left, description right on desktop; stacked on mobile) */
#collection .section-head { margin-bottom: 0; }
@media (min-width: 900px) { #collection .section-head--split { column-gap: clamp(40px, 6vw, 96px); } }

/* Add-button feedback */
.btn .btn-done { display: none; }
.btn.is-added .btn-default { display: none; }
.btn.is-added .btn-done { display: inline-flex; align-items: center; gap: 8px; }

/* Manifesto */
.manifesto { background: var(--paper); border-block: 1px solid var(--stone); }
.manifesto-text { font-size: var(--step-3); font-weight: 300; line-height: 1.22; letter-spacing: -0.01em; max-width: 24ch; }
.manifesto-text .w { color: var(--ink); }
.js-motion .manifesto-text .w { color: var(--stone-deep); transition: color .2s; }
.js-motion .manifesto-text .w.is-lit { color: var(--ink); }
.js-motion .manifesto-text .w.accent.is-lit { color: var(--burgundy); }

/* Notes explorer */
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--stone-deep); border-radius: 999px; gap: 4px; flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
  transition: background-color .3s var(--ease-out), color .3s;
}
.tab[aria-selected="true"] { background: var(--burgundy); color: var(--paper); }
.tab:not([aria-selected="true"]):hover { color: var(--ink); background: var(--stone); }
/* Scent notes header: label > heading > intro > tabs, one editorial column */
.notes-head { justify-items: start; }
.notes-title { font-size: clamp(2.4rem, 1.7rem + 3vw, 4.2rem); line-height: 1.05; }
.notes-title .accent { font-weight: 700; }
.notes-intro { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.65; max-width: 52ch; }
.notes-head .tabs { margin-top: 14px; }
.notes-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .notes-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.note { display: grid; align-content: start; min-width: 0; }
.note-media { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; position: relative; background: var(--stone); }
@media (max-width: 759px) { .note-media { aspect-ratio: 16 / 10; } }
.note-media img { width: 100%; height: 100%; object-fit: cover; }
.note-tier {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.note-name { margin-top: 22px; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.note p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; max-width: 36ch; }
.swatch-dragonfruit {
  background:
    radial-gradient(circle, rgba(255, 246, 240, .55) 0 1.4px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(circle, rgba(255, 246, 240, .35) 0 1px, transparent 1.6px) 9px 9px / 18px 18px,
    linear-gradient(150deg, #D4246A 0%, #A3134E 55%, #6E0D36 100%);
}
.swatch-blacktea {
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 210, 160, .22) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 46%, transparent 0 30%, rgba(255, 220, 180, .1) 31% 32%, transparent 33% 44%, rgba(255, 220, 180, .08) 45% 46%, transparent 47%),
    linear-gradient(160deg, #7A3E17 0%, #4A230C 50%, #1F0E05 100%);
}

/* Footer */

/* FOOTER LAYOUT */

.site-footer {
  background: #491421;
  color: #f7eee8;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
  min-height: 180px;
}

/* LEFT AND RIGHT COLUMNS */

.footer-col h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8bdb9;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 16px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  transition: opacity 0.3s ease;
}

.footer-col a:hover {
  opacity: 0.65;
}

.footer-follow {
  text-align: left;
}

.footer-pay {
  text-align: right;
}

.pay-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-col .pay-chip {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.pay-note {
  margin-top: 14px;
  color: #d8bdb9;
  font-size: 13px;
  line-height: 1.5;
}

/* CENTRE LOGO */

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo--footer {
  display: block;
  width: 110px;
  height: auto;
  object-fit: contain;
}

/* COPYRIGHT */

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 35px;
  padding-top: 24px;
  text-align: center;
  color: #d8bdb9;
  font-size: 14px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
    align-items: start;
  }

  .footer-logo {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-follow {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-pay {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-base {
    margin-top: 30px;
  }
}


/* Dialogs */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(42, 28, 30, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 1; transition: opacity .35s ease; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
dialog.is-closing::backdrop { opacity: 0; }
@media (prefers-reduced-motion: reduce) { dialog::backdrop { transition: none; } }
.drawer { margin: 0 0 0 auto; height: 100%; width: min(440px, 100%); }
.drawer-panel {
  height: 100%; background: var(--paper); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 12px 16px 24px; border-bottom: 1px solid var(--stone); }
.panel-title { font-size: var(--step-1); font-weight: 400; }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.panel-foot { padding: 20px 24px 24px; border-top: 1px solid var(--stone); display: grid; gap: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-0); }
.summary-row.muted { color: var(--muted); font-size: var(--step--1); }
.summary-row.total { font-size: var(--step-1); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--stone); align-items: start; }
.cart-thumb { width: 76px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--stone); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--origin, 50% 50%); }
.cart-meta { display: grid; gap: 4px; min-width: 0; }
.cart-name { font-weight: 500; }
.cart-sub { color: var(--muted); font-size: var(--step--1); }
.cart-price { font-weight: 500; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--stone-deep); border-radius: 999px; margin-top: 8px; width: max-content; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
.stepper button:hover { background: var(--stone); }
.stepper button svg { width: 14px; height: 14px; }
.stepper output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.remove-btn { border: 0; background: none; padding: 10px 0; cursor: pointer; font-size: var(--step--1); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; justify-self: start; min-height: 40px; }
.remove-btn:hover { color: var(--danger); }
.empty-state { text-align: center; padding: 64px 12px; display: grid; gap: 16px; justify-items: center; }
.empty-state svg { width: 40px; height: 40px; color: var(--stone-deep); }
.empty-state p { color: var(--muted); max-width: 28ch; }
.note-fine { font-size: var(--step--1); color: var(--muted); text-align: center; }

.modal { margin: auto; width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.modal-panel { background: var(--paper); border-radius: 6px; overflow: hidden; display: grid; max-height: calc(100dvh - 32px); position: relative; }
@media (min-width: 760px) { .modal-panel--split { grid-template-columns: 1fr 1fr; } }
.modal-media { aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
@media (max-width: 759px) { .modal-media { aspect-ratio: 16 / 11; } }
.modal-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--origin, 50% 50%); }
.modal-body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: start; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; background: var(--paper); z-index: 2; }
/* Product details popup: cream panel, burgundy accents, larger square image */
#quickview { width: min(1040px, calc(100% - 32px)); }
#quickview .modal-panel { background: var(--ivory); }
#quickview .modal-media { aspect-ratio: 1 / 1; }
@media (min-width: 760px) { #quickview .modal-panel--split { grid-template-columns: 1.1fr 1fr; } #quickview .modal-media { aspect-ratio: auto; min-height: 100%; } }
@media (max-width: 759px) { #quickview .modal-panel { grid-template-rows: auto minmax(0, 1fr); } #quickview .modal-media { aspect-ratio: 4 / 3; } }
.qv-title { font-size: var(--step-3); }
.qv-price { font-size: var(--step-2); font-weight: 300; color: var(--burgundy); }
.qv-desc { color: var(--muted); }
.qv-block { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--stone); }
.qv-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.qv-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 0; }
.qv-note { padding: 12px 14px; border: 1px solid var(--stone-deep); border-radius: 4px; background: var(--paper); display: grid; gap: 4px; min-width: 0; }
.qv-note dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy); font-weight: 500; }
.qv-note dd { margin: 0; font-size: 0.95rem; overflow-wrap: break-word; hyphens: manual; }
.qv-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-block: 1px solid var(--stone); }
.qv-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qv-row .stepper { margin-top: 0; }
.qv-row .btn { flex: 1 1 200px; }

/* Checkout */
.checkout { width: min(720px, calc(100% - 32px)); }
.checkout .modal-body { gap: 24px; }
.demo-banner { padding: 12px 16px; border-radius: 4px; background: var(--blush); color: var(--burgundy-deep); font-size: var(--step--1); display: flex; gap: 10px; align-items: flex-start; }
.demo-banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field label .req { color: var(--burgundy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--stone-deep); border-radius: 4px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--burgundy) 18%, transparent); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: var(--danger); }
.field-hint { font-size: var(--step--1); color: var(--muted); }
.field-error { font-size: var(--step--1); color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field-error svg { width: 14px; height: 14px; flex: none; }
.error-summary { border: 1px solid var(--danger); border-radius: 4px; padding: 16px 18px; background: #FBEDEA; }
.error-summary h3 { font-size: var(--step-0); font-weight: 500; color: var(--danger); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: var(--danger); }
.order-mini { display: grid; gap: 8px; padding: 16px 18px; background: var(--ivory); border-radius: 4px; }
.success { text-align: center; display: grid; gap: 16px; justify-items: center; padding-block: 16px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--burgundy); display: inline-flex; align-items: center; justify-content: center; }
.success-mark svg { width: 30px; height: 30px; }
.success p { color: var(--muted); max-width: 42ch; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-toast);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 999px; font-size: var(--step--1);
  display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; flex: none; color: #E7B9C1; }

/* Intro curtain (created by JS only) */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-curtain); background: var(--burgundy-deep); color: var(--paper);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
.curtain:has(.curtain-logo) { background: var(--ivory); }
.curtain-logo { width: clamp(88px, 18vw, 140px); height: auto; aspect-ratio: 1 / 1; background: transparent; }
