/* =========================================================================
   NEVERMORE NAILS — SHARED DESIGN SYSTEM
   Palette, sage system, transitions, components, responsive
   ========================================================================= */

:root {
  /* === core palette === */
  --cream: #faf3e8;
  --cream-warm: #f4ead9;
  --pink-mist: #fde2ec;
  --pink-bloom: #f9b9cd;
  --pink-hot: #ff4b85;
  --sage-mist: #e0e8db;
  --sage: #a8bca0;
  --sage-deep: #6e8268;
  --plum: #1f0a14;
  --wine: #4a1a2e;
  --ink: #15080d;
  --ink-soft: rgba(31, 10, 20, 0.65);
  --line: rgba(31, 10, 20, 0.1);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Native scrolling everywhere (instant, like Google). Anchor links still
   animate because the nav handler calls scrollIntoView({behavior:'smooth'})
   explicitly — keeping the CSS on 'smooth' here would also animate keyboard
   and scrollbar scrolls, which reads as a delay. */
html { scroll-behavior: auto; }
html, body { background: var(--cream); }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a, button { color: inherit; text-decoration: none; cursor: none; background: none; border: none; font: inherit; }
@media (hover: none), (pointer: coarse) { a, button { cursor: pointer; } }

::selection { background: var(--sage-mist); color: var(--plum); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 900px; }
.container.medium { max-width: 1100px; }

/* === custom cursor === */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 26px; height: 26px;
  border: 1px solid var(--cream);
  will-change: transform;
  transition: width 0.3s var(--easing), height 0.3s var(--easing), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-dot { width: 5px; height: 5px; background: var(--cream); transition: opacity 0.3s; }
.cursor.grow { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.06); }
.cursor.text { width: 56px; height: 56px; background: var(--pink-hot); border-color: var(--pink-hot); mix-blend-mode: normal; }
.cursor.sage { width: 56px; height: 56px; background: var(--sage); border-color: var(--sage); mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* === scroll progress === */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-hot), var(--sage));
  z-index: 9998; width: 0%;
  transition: width 0.08s linear;
}

/* =========================================================================
   PAGE TRANSITION CURTAIN
   The illusion: on leave, a dark curtain slides down to cover the page and
   the *destination's* name TYPES in (letters appear left-to-right). The
   browser navigates; the destination page's loader is already covering the
   screen with that same name shown (no entry animation — the type-in
   already "happened"). After a brief hold the letters UN-TYPE (disappear
   right-to-left, like backspacing) and the curtain slides up to reveal.
   The two pages share the same look so the transition reads as continuous.
   ========================================================================= */

/* Shared text styling — used by both the leaving curtain and the arriving loader.
   --i / --total are set per-span in main.js so the same CSS handles any length. */
.loader-text,
.curtain-text {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  color: var(--pink-bloom);
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  white-space: nowrap;
}

/* Hide loader + curtain text until Fraunces is confirmed loaded. Without
   this, the browser briefly renders the letters in a fallback serif (whose
   glyphs are wider) and then snaps to Fraunces — a 1–3 frame size pop right
   at the page-transition boundary. Visibility (not opacity) preserves layout
   space so the swap-in is instant once the class lands on <html>. */
.loader-text span,
.curtain-text span { visibility: hidden; }
html.fonts-loaded .loader-text span,
html.fonts-loaded .curtain-text span { visibility: visible; }

/* === arriving loader === */
.loader {
  position: fixed; inset: 0;
  background: var(--plum);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  /* Slides up AFTER the un-type has visibly progressed — see the delay below. */
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1) 0.08s;
}
.loader.done { transform: translateY(-100%); }

/* Letters on the loader: they appear instantly (no rise-in) because the
   previous page's curtain already finished "typing" them. This sells the
   continuous-curtain illusion across the navigation boundary. */
.loader-text span {
  display: inline-block;
  opacity: 1;
  transform: scale(1) translateY(0);
  transform-origin: bottom center;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.7, 0.4),
              transform 0.32s cubic-bezier(0.4, 0, 0.7, 0.4);
}

/* Un-typing on .loader.done — last letter (rightmost) disappears first.
   transition-delay is computed per-span from --i / --total so 5 letters
   or 9 letters both look right. */
.loader.done .loader-text span {
  opacity: 0;
  transform: scale(0.45) translateY(0);
  transition-delay: calc((var(--total, 1) - var(--i, 0) - 1) * 0.045s + 0.1s);
}

/* === leaving curtain ===
   Slides down to cover. The destination page name is injected and the
   letters type in left-to-right, starting just after the curtain begins
   covering so the eye reads "curtain comes down, words form on it". */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--plum);
  z-index: 10001;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
body.leaving .curtain { transform: translateY(0); pointer-events: auto; }

/* Legacy element — the old curtain-mark is hidden; the typing curtain-text
   replaces it (injected by main.js on first navigation). */
.curtain-mark { display: none; }

.curtain-text span {
  display: inline-block;
  opacity: 0;
  transform: scale(0.4) translateY(6px);
  transform-origin: bottom center;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
body.leaving .curtain-text span {
  opacity: 1;
  transform: scale(1) translateY(0);
  /* Left-to-right type-in. 0.22s base delay = wait until the curtain is
     ~30% down before the first letter starts forming. */
  transition-delay: calc(var(--i, 0) * 0.05s + 0.22s);
}

/* === announcement marquee === */
.announce {
  background: var(--plum);
  color: var(--cream);
  padding: 11px 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.announce-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
  gap: 60px;
}
.announce-track span { display: inline-flex; align-items: center; gap: 60px; }
.announce-track em {
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--pink-bloom); text-transform: none;
  letter-spacing: 0; font-size: 14px;
}
.announce-track .star { color: var(--sage); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === site header === */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 232, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
header.site.scrolled { border-bottom-color: var(--line); }
.site-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  transition: padding 0.4s var(--easing);
  position: relative;
}
header.site.scrolled .site-inner { padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 12px; transition: transform 0.4s var(--easing); }
.logo:hover { transform: scale(1.04); }
.logo svg { width: 32px; height: 32px; transition: transform 0.6s var(--easing); }
.logo:hover svg { transform: rotate(-12deg); }
.wordmark {
  font-family: "Fraunces", serif;
  font-style: italic; font-weight: 500;
  font-size: 28px; line-height: 1;
  color: var(--plum);
}

nav.primary { display: flex; gap: 38px; }
nav.primary a {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
  height: 1.4em;
  display: inline-block;
}
nav.primary a.active { color: var(--plum); }
nav.primary a.active::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sage-deep);
}
nav.primary a span { display: block; transition: transform 0.4s var(--easing); }
nav.primary a::after {
  content: attr(data-text);
  position: absolute;
  top: 100%; left: 0;
  color: var(--plum);
  transition: transform 0.4s var(--easing);
}
nav.primary a:hover span { transform: translateY(-100%); }
nav.primary a:hover::after { transform: translateY(-100%); }

.site-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--plum);
  transition: color 0.3s, border-color 0.3s;
  position: relative;
  /* overflow stays visible so the cart badge can sit outside the circle.
     The hover fill (::before) is a self-clipping circle, so nothing spills. */
  overflow: visible;
  isolation: isolate;
}
.icon-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--plum);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s var(--easing);
  z-index: -1;
}
.icon-btn:hover { color: var(--cream); border-color: var(--plum); }
.icon-btn:hover::before { transform: scale(1); }
.icon-btn.has-count { position: relative; }
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--pink-hot);
  color: var(--cream);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform 0.3s var(--easing-bounce);
  font-family: "DM Sans";
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--cream);
}
.icon-btn.has-count[data-count]:not([data-count="0"]) .badge { transform: scale(1); }

/* === profile popup (under profile button) === */
.profile-pop {
  position: absolute;
  top: 100%;
  right: 64px;
  margin-top: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 30px 80px -20px rgba(31, 10, 20, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  z-index: 200;
}
.profile-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.profile-pop::before {
  content: "";
  position: absolute;
  top: -7px; right: 28px;
  width: 14px; height: 14px;
  background: var(--cream);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.profile-pop h4 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--plum);
  margin-bottom: 6px;
}
.profile-pop p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.55;
}
.profile-pop .pop-actions { display: flex; flex-direction: column; gap: 8px; }
.profile-pop .btn-pop {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-pop.primary { background: var(--plum); color: var(--cream); }
.btn-pop.primary:hover { background: var(--pink-hot); transform: translateY(-1px); }
.btn-pop.ghost { border: 1px solid var(--sage); color: var(--sage-deep); }
.btn-pop.ghost:hover { background: var(--sage-mist); transform: translateY(-1px); }
.profile-pop .pop-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.profile-pop .pop-foot a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }

/* logged-in variant */
.profile-pop.signed-in .pop-greet {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.profile-pop.signed-in .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
}
.profile-pop.signed-in .greet-name { font-weight: 500; color: var(--plum); font-size: 15px; line-height: 1.2; }
.profile-pop.signed-in .greet-sub { font-size: 12px; color: var(--ink-soft); }
.profile-pop .menu-list { list-style: none; margin-bottom: 14px; }
.profile-pop .menu-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px;
  font-size: 13.5px;
  color: var(--plum);
  border-radius: 8px;
  transition: background 0.25s, padding 0.25s;
}
.profile-pop .menu-list li a:hover { background: var(--sage-mist); padding-left: 10px; }

/* === mini cart (slide-in panel from right) === */
.cart-pop {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--cream);
  z-index: 9990;
  transform: translateX(100%);
  transition: transform 0.5s var(--easing);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -20px rgba(31, 10, 20, 0.25);
}
.cart-pop.open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(31, 10, 20, 0.4);
  z-index: 9989;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--easing);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-head {
  padding: 28px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h3 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--plum);
}
.cart-close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--plum);
  transition: background 0.3s, color 0.3s;
}
.cart-close:hover { background: var(--plum); color: var(--cream); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb {
  width: 80px; height: 80px;
  border-radius: 6px;
  background: var(--pink-mist);
  background-size: cover;
  background-position: center;
}
.cart-line .info h4 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--plum);
  margin-bottom: 4px;
}
.cart-line .info .meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.qty-row { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--plum);
  transition: background 0.25s, color 0.25s;
}
.qty-btn:hover { background: var(--sage); color: var(--cream); border-color: var(--sage); }
.qty-val { font-size: 13px; min-width: 24px; text-align: center; }
.cart-line .price-col {
  text-align: right;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--plum);
}
.cart-line .remove {
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  margin-top: 6px;
  transition: color 0.3s;
}
.cart-line .remove:hover { color: var(--pink-hot); }
.cart-empty {
  padding: 60px 28px;
  text-align: center;
}
.cart-empty p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.cart-foot {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--sage-mist);
}
.cart-foot .row {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.cart-foot .row.total {
  font-size: 18px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--plum);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(31, 10, 20, 0.15);
  margin-bottom: 18px;
}
.cart-foot .ship-note {
  font-size: 12px;
  color: var(--sage-deep);
  font-style: italic;
  font-family: "Fraunces", serif;
  margin-bottom: 16px;
}

/* === modal (sign in / sign up) === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(21, 8, 13, 0.72);
  z-index: 9995;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease-out;
  padding: 20px;
  will-change: opacity;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
/* When modal is open, hide custom cursor (mix-blend-mode + opaque overlay is GPU-expensive) */
body.modal-open { cursor: auto !important; }
body.modal-open .cursor, body.modal-open .cursor-dot { display: none !important; }
.modal {
  background: var(--cream);
  border-radius: 14px;
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.32s ease-out, opacity 0.28s ease-out;
  will-change: transform, opacity;
}
.modal-overlay.open .modal { transform: translateY(0); opacity: 1; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.3s, color 0.3s;
}
.modal-close:hover { background: var(--plum); color: var(--cream); }
.modal h2 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  color: var(--plum);
  margin-bottom: 8px;
  line-height: 1.1;
}
.modal h2 em { font-style: italic; color: var(--wine); }
.modal .modal-sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  line-height: 1.55;
}
.modal-switch {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.modal-switch button {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
  font-weight: 500;
}

/* === forms === */
.field { display: block; margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 7px;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--plum);
  transition: border-color 0.3s, background 0.3s;
  font-weight: 400;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: rgba(168, 188, 160, 0.06);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 0; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--sage-mist);
  border-radius: 8px;
  margin-bottom: 16px;
}
.toggle-row .toggle-label { font-size: 13.5px; color: var(--plum); font-weight: 500; }
.toggle-row .toggle-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.toggle-switch {
  width: 42px; height: 24px;
  background: rgba(31, 10, 20, 0.2);
  border-radius: 999px;
  position: relative;
  cursor: none;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--cream);
  border-radius: 50%;
  transition: transform 0.3s var(--easing);
}
.toggle-switch.on { background: var(--sage-deep); }
.toggle-switch.on::after { transform: translateX(18px); }

/* === buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.4s var(--easing), color 0.4s, border-color 0.4s, box-shadow 0.4s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: var(--pink-hot);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--easing), height 0.5s var(--easing);
  z-index: -1;
}
.btn:hover::before { width: 340%; height: 340%; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-primary:hover { color: var(--cream); box-shadow: 0 16px 40px rgba(255, 75, 133, 0.3); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { color: var(--cream); border-color: var(--pink-hot); }
.btn-ghost::before { background: var(--plum); }
.btn-sage {
  background: var(--sage-deep);
  color: var(--cream);
}
.btn-sage::before { background: var(--sage); }
.btn-sage:hover { color: var(--cream); box-shadow: 0 16px 40px rgba(110, 130, 104, 0.3); }
.btn-cream { background: var(--cream); color: var(--plum); }
.btn-cream::before { background: var(--sage); }
.btn-cream:hover { color: var(--plum); }
.btn-full { width: 100%; justify-content: center; }
.btn svg { transition: transform 0.4s var(--easing); }
.btn:hover svg { transform: translateX(4px); }
.btn-sage svg, .btn-cream svg, .btn-ghost svg, .btn-primary svg { position: relative; z-index: 1; }

/* text links */
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--plum);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--plum);
  transition: gap 0.3s var(--easing), border-color 0.3s;
}
.text-link:hover { gap: 18px; border-color: var(--sage-deep); }
.text-link svg { transition: transform 0.3s var(--easing); }
.text-link:hover svg { transform: translateX(4px); }

/* === kicker (small label) === */
.kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 28px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.kicker::before, .kicker::after {
  content: ""; width: 28px; height: 1px;
  background: var(--wine); opacity: 0.5;
}
.kicker.left { padding-left: 0; }
.kicker.left::before { display: none; }
.kicker.sage { color: var(--sage-deep); }
.kicker.sage::before, .kicker.sage::after { background: var(--sage-deep); }
.kicker.pink { color: var(--pink-hot); }
.kicker.pink::before, .kicker.pink::after { background: var(--pink-hot); }
.kicker.cream { color: var(--sage-mist); }
.kicker.cream::before, .kicker.cream::after { background: var(--sage-mist); }

/* === breadcrumb === */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
  opacity: 0;
  animation: fade-in 0.7s var(--easing) 1.1s forwards;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--plum); }
.breadcrumb .sep { margin: 0 10px; color: var(--sage-deep); }
@keyframes fade-in { to { opacity: 1; } }

/* === typography helpers === */
h1, h2, h3, h4 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  color: var(--plum);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h-display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h-section {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--wine); }
.word, .word-em {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  line-height: 0.95;
}
.word > span, .word-em > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--easing) forwards;
}
/* The animation that lifts each word into view. Without this keyframe the
   spans stay pushed 110% down and get clipped by the parent's overflow,
   leaving headlines invisible. */
@keyframes rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
.word-em { font-style: italic; font-weight: 500; color: var(--wine); }

/* fade-up animation utility */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === reveal on scroll === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--easing), transform 0.9s var(--easing); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--easing), transform 0.9s var(--easing); }
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.56s; }
.reveal-stagger.in > *:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.64s; }

/* === section base === */
.block { padding: 110px 0; position: relative; }
.block.short { padding: 70px 0; }
.block-head { max-width: 720px; margin-bottom: 64px; }
.block-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.block-head.centered .kicker { justify-content: center; display: flex; }

/* === product cards (shared) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.product { position: relative; perspective: 1000px; }
.product-inner {
  transition: transform 0.6s var(--easing);
  transform-style: preserve-3d;
  will-change: transform;
}
.product-img {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pink-mist);
  margin-bottom: 22px;
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
}
.product:hover .product-img img { transform: scale(1.08); }
.product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31, 10, 20, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.product:hover .product-img::after { opacity: 1; }
.product-quick {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  color: var(--cream);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s var(--easing) 0.05s, transform 0.4s var(--easing) 0.05s;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
}
.product:hover .product-quick { transform: translateY(0); opacity: 1; }
.quick-add {
  background: var(--cream);
  color: var(--plum);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "DM Sans";
  font-style: normal;
  transition: background 0.3s, color 0.3s;
}
.quick-add:hover { background: var(--sage); color: var(--cream); }
.product-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--plum);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.product-tag.hot { background: var(--pink-hot); }
.product-tag.sage { background: var(--sage-deep); }
.product-tag.cream { background: var(--cream); color: var(--plum); }
.product h3 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--plum);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.product .meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.product .price {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-family: "Fraunces", serif;
}
.product .price s { color: var(--ink-soft); font-weight: 400; margin-right: 10px; }
.product .price .save {
  margin-left: 10px;
  font-size: 11px;
  color: var(--pink-hot);
  font-family: "DM Sans";
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.product .price .save.sage { color: var(--sage-deep); }
.product.coming .product-img { cursor: default; }
.product.coming h3 { color: var(--ink-soft); }

/* placeholder gradients */
.ph {
  aspect-ratio: 1;
  border-radius: 6px;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--plum);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.35) 0%, transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.25) 0%, transparent 30%);
  animation: shimmer 8s ease-in-out infinite;
}
.ph span { position: relative; z-index: 1; }
.ph .label {
  display: block;
  font-family: "DM Sans"; font-style: normal;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.6;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.8; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(2deg); }
}
.ph.lace { background: linear-gradient(135deg, var(--plum), var(--wine)); color: var(--pink-bloom); }
.ph.briar { background: linear-gradient(135deg, var(--pink-bloom), var(--wine)); color: var(--cream); }
.ph.witch { background: linear-gradient(135deg, var(--sage-mist), var(--sage)); color: var(--sage-deep); }
.ph.raven-set { background: linear-gradient(135deg, var(--ink), var(--plum)); color: var(--pink-bloom); }
.ph.bone { background: linear-gradient(135deg, var(--cream), var(--cream-warm)); color: var(--wine); }
.ph.sizing { background: linear-gradient(135deg, var(--pink-mist), var(--sage-mist)); color: var(--plum); }
.ph.bloom-pink { background: linear-gradient(135deg, var(--pink-mist), var(--pink-bloom)); color: var(--wine); }
.ph.sage-deep { background: linear-gradient(135deg, var(--sage), var(--sage-deep)); color: var(--cream); }

/* === accordion === */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  text-align: left;
  font-family: "DM Sans";
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--plum);
  transition: color 0.3s;
}
.accordion-trigger:hover { color: var(--sage-deep); }
.accordion-trigger .plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--plum);
  transition: transform 0.4s var(--easing), background 0.3s;
}
.accordion-trigger .plus::before {
  top: 50%; left: 0; right: 0;
  height: 1px;
  transform: translateY(-50%);
}
.accordion-trigger .plus::after {
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}
.accordion-item.open .accordion-trigger .plus::after { transform: translateX(-50%) rotate(90deg); }
.accordion-item.open .accordion-trigger { color: var(--sage-deep); }
.accordion-item.open .accordion-trigger .plus::before,
.accordion-item.open .accordion-trigger .plus::after { background: var(--sage-deep); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--easing);
}
.accordion-body-inner {
  padding-bottom: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* === newsletter section (shared) === */
.newsletter {
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}
.kinetic-bg {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(140px, 24vw, 320px);
  color: var(--wine);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  will-change: transform;
}
.kinetic-bg span { display: inline-block; padding-right: 80px; }
.newsletter-inner { position: relative; max-width: 600px; margin: 0 auto; z-index: 2; }
.newsletter .kicker { color: var(--sage-mist); justify-content: center; display: flex; margin-bottom: 24px; }
.newsletter .kicker::before, .newsletter .kicker::after { background: var(--sage-mist); }
.newsletter h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.0;
  margin-bottom: 18px;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.newsletter h2 em { font-style: italic; color: var(--pink-bloom); }
.newsletter p { font-size: 17px; color: rgba(250, 243, 232, 0.78); margin-bottom: 40px; }
form.signup { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
form.signup input {
  flex: 1;
  background: rgba(250, 243, 232, 0.08);
  border: 1px solid rgba(250, 243, 232, 0.22);
  color: var(--cream);
  padding: 18px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
form.signup input::placeholder { color: rgba(250, 243, 232, 0.5); }
form.signup input:focus { border-color: var(--sage); background: rgba(250, 243, 232, 0.12); }
form.signup button {
  background: var(--pink-hot);
  color: var(--cream);
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--easing);
}
form.signup button:hover { background: var(--cream); color: var(--plum); transform: translateY(-2px); }

/* === footer (shared) === */
footer.site {
  background: var(--ink);
  color: rgba(250, 243, 232, 0.7);
  padding: 90px 0 32px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 70px;
  margin-bottom: 70px;
}
.foot-brand .logo { margin-bottom: 20px; }
.foot-brand p { line-height: 1.7; max-width: 320px; margin-bottom: 28px; }
.foot-socials { display: flex; gap: 12px; }
.foot-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(250, 243, 232, 0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--easing), color 0.3s, border-color 0.3s, transform 0.4s var(--easing);
}
.foot-socials a:hover {
  background: var(--pink-hot);
  color: var(--cream);
  border-color: var(--pink-hot);
  transform: translateY(-3px) rotate(-6deg);
}
.foot-socials a:nth-child(2):hover { background: var(--sage); border-color: var(--sage); }
.foot-col h4 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: 18px;
  margin-bottom: 22px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { transition: color 0.3s, padding-left 0.3s; display: inline-block; }
.foot-col a:hover { color: var(--pink-bloom); padding-left: 6px; }
.foot-bar {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 243, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 12px;
}
.foot-disclosure { max-width: 620px; line-height: 1.6; color: rgba(250, 243, 232, 0.55); }
.foot-copy { color: rgba(250, 243, 232, 0.55); }

/* === dev controls panel === */
.dev-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--plum);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  z-index: 9985;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  gap: 8px;
  max-width: 220px;
  opacity: 0.95;
  transition: opacity 0.3s, transform 0.3s;
}
.dev-panel.collapsed { transform: translateY(calc(100% - 38px)); }
.dev-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--pink-bloom);
  cursor: none;
}
.dev-panel-head::before { content: "◐ "; }
.dev-panel .row {
  display: flex;
  gap: 4px;
}
.dev-panel button {
  flex: 1;
  background: rgba(250, 243, 232, 0.08);
  color: var(--cream);
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s, color 0.25s;
}
.dev-panel button:hover { background: rgba(250, 243, 232, 0.18); }
.dev-panel button.active { background: var(--sage); color: var(--plum); }
.dev-panel .label {
  font-size: 10px;
  color: rgba(250, 243, 232, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === ornaments === */
.ornament {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -16px) rotate(8deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.4) rotate(45deg); opacity: 1; }
}

/* === search overlay (lazy-built by site-chrome.js) === */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(21, 8, 13, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 9994;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--easing);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
body.search-open { overflow: hidden; }
.search-panel {
  background: var(--cream);
  width: 100%; max-width: 720px;
  border-radius: 16px;
  box-shadow: 0 40px 100px -20px rgba(31, 10, 20, 0.4);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.32s var(--easing);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 120px);
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.search-head svg { color: var(--sage-deep); flex-shrink: 0; }
.search-head input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--plum);
  padding: 6px 0;
}
.search-head input::placeholder { color: var(--ink-soft); }
.search-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s;
}
.search-close:hover { background: var(--plum); color: var(--cream); }
.search-results { flex: 1; overflow-y: auto; padding: 14px 6px 18px; }
.search-hint, .search-empty {
  text-align: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 36px 24px;
}
.search-empty strong { color: var(--plum); font-style: normal; }
.search-group { padding: 6px 18px; }
.search-group h4 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--sage-deep);
  margin: 10px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.search-group h4 span {
  font-family: "DM Sans"; font-style: normal;
  font-size: 11px; letter-spacing: 0.1em;
  background: var(--sage-mist);
  color: var(--sage-deep);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.search-group ul { list-style: none; }
.search-group li a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.25s, padding-left 0.25s;
}
.search-group li a:hover { background: var(--sage-mist); padding-left: 14px; }
.search-group .thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pink-mist);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--plum);
}
.search-group .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-group .thumb.post { background: linear-gradient(135deg, var(--plum), var(--wine)); color: var(--pink-bloom); }
.search-group .info { min-width: 0; }
.search-group .info .name {
  font-weight: 500;
  color: var(--plum);
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-group .info .meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-group .price {
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--plum);
  font-size: 15px;
}
@media (max-width: 560px) { .search-overlay { padding-top: 24px; } .search-head { padding: 14px 16px; } }

/* === toast notifications === */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--sage-deep);
  color: var(--cream);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  z-index: 9985;
  box-shadow: 0 14px 40px -10px rgba(31, 10, 20, 0.4);
  transition: transform 0.5s var(--easing);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.pink { background: var(--pink-hot); }

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .word > span, .word-em > span, .loader-text span { transform: none; }
}

/* === responsive === */
/* === Hamburger + mobile menu === */
.hamburger {
  display: none;  /* desktop: hidden */
  width: 38px; height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  cursor: none;
  position: relative;
  transition: background 0.3s var(--easing);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--plum);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px 60px;
  gap: 4px;
  text-align: center;
}
.mobile-nav-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250, 243, 232, 0.08);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  border: none;
  transition: background 0.3s;
}
.mobile-nav-close:hover { background: rgba(250, 243, 232, 0.15); }
.mobile-nav-inner > a {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 8vw, 54px);
  color: var(--cream);
  padding: 14px 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1), transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s;
  position: relative;
}
.mobile-nav-inner > a:hover, .mobile-nav-inner > a.active { color: var(--pink-bloom); }
.mobile-nav.open .mobile-nav-inner > a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.open .mobile-nav-inner > a:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav.open .mobile-nav-inner > a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-inner > a:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav.open .mobile-nav-inner > a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-inner > a:nth-child(6) { transition-delay: 0.30s; }

.mobile-nav-extras {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 243, 232, 0.18);
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s, transform 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.mobile-nav.open .mobile-nav-extras { opacity: 1; transform: translateY(0); }
.mobile-nav-extras a {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: 15px !important;
  color: rgba(250, 243, 232, 0.7) !important;
  padding: 10px 16px !important;
  letter-spacing: 0.04em;
}
.mobile-nav-extras a:hover { color: var(--pink-bloom) !important; }

body.mobile-menu-open { overflow: hidden; }

@media (max-width: 1024px) {
  .product-grid { gap: 36px 28px; }
}
@media (max-width: 900px) {
  nav.primary { display: none; }
  .hamburger { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .foot-brand { grid-column: span 2; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
  a, button, .toggle-switch, .hamburger, .mobile-nav-close, .dev-panel-head, .cart-close { cursor: pointer; }
  .block { padding: 80px 0; }
  .cart-pop { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
  form.signup { flex-direction: column; }
  form.signup input, form.signup button { width: 100%; }
  .profile-pop { right: 20px; left: 20px; width: auto; }
  .modal { padding: 36px 28px; }
  .modal h2 { font-size: 30px; }
  .dev-panel { max-width: 180px; bottom: 12px; right: 12px; }
}
