/* nzsbeauty.com — storefront stylesheet
   Design language inherited from amanaric.org / waguri.xyz (same studio hand):
   warm near-black or cream paper, Geist for text, Instrument Serif for display,
   one rose/champagne accent, quiet motion, generous space, hairline rules.
   Theme is html[data-theme="light"|"dark"], set before paint by the head script. */

:root {
  --bg: #0e0d0f; --bg-2: #131215; --surface: #17161a; --surface-2: #1e1c21;
  --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.13);
  --ink: #f4f1ee; --ink-2: #b3aca9; --ink-3: #7d7674;
  --accent: #e3b3a0; --accent-strong: #d69a84; --accent-ink: #1c1210; --accent-soft: rgba(227,179,160,.13);
  --gold: #d9c08a; --gold-soft: rgba(217,192,138,.14);
  --ok: #5bc79a; --warn: #e6b45a; --bad: #ea7b7b;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0,0,0,.7);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.05) inset, 0 34px 70px -32px rgba(0,0,0,.85);
  --grid: rgba(255,255,255,.035);
  --ease: cubic-bezier(.16,1,.3,1);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #faf7f4; --bg-2: #f3ede8; --surface: #ffffff; --surface-2: #f6f1ec;
  --line: rgba(40,26,22,.09); --line-2: rgba(40,26,22,.16);
  --ink: #1d1614; --ink-2: #5f5551; --ink-3: #8c817c;
  --accent: #a35a43; --accent-strong: #8a4a36; --accent-ink: #fff; --accent-soft: rgba(163,90,67,.08);
  --gold: #8a6f36; --gold-soft: rgba(138,111,54,.10);
  --ok: #1f8a5c; --warn: #a86d0c; --bad: #c03b3b;
  --shadow: 0 1px 2px rgba(28,20,26,.04), 0 18px 40px -28px rgba(28,20,26,.35);
  --shadow-lift: 0 1px 3px rgba(28,20,26,.06), 0 28px 54px -30px rgba(28,20,26,.45);
  --grid: rgba(28,20,26,.045);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kicker { font: 400 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
.display em { font-style: italic; color: var(--accent); }
.h1 { font-size: clamp(40px, 6vw, 76px); }
.h2 { font-size: clamp(28px, 3.9vw, 46px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lede { color: var(--ink-2); font-size: 17.5px; line-height: 1.65; }
.small { font-size: 14px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.link:hover { text-decoration-color: var(--accent); }
.rule { height: 1px; background: var(--line); border: 0; }
.gridbg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.glow { position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(600px 320px at 22% 20%, var(--accent-soft), transparent 70%),
              radial-gradient(520px 300px at 82% 8%, var(--gold-soft), transparent 72%); }

/* ---- buttons / chips / badges ---- */
.btn { --b-bg: var(--surface); --b-fg: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 19px;
  border-radius: 10px; border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-fg);
  font: 500 14.5px/1 var(--sans); letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn:hover { --b-bg: var(--surface-2); }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 11px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { --b-bg: var(--ink); --b-fg: var(--bg); --b-line: transparent; }
.btn-primary:hover { --b-bg: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-line: transparent; }
.btn-accent:hover { --b-bg: var(--accent-strong); }
.btn-ghost { --b-bg: transparent; --b-line: transparent; }
.btn-ghost:hover { --b-bg: var(--surface-2); }
.btn-danger { --b-fg: var(--bad); --b-line: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover { --b-bg: color-mix(in srgb, var(--bad) 12%, transparent); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
/* Inline SVG icons carry only a viewBox, so without an explicit size they expand
   to the default replaced-element box. Size them wherever they can appear. */
.btn > svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg > svg { width: 17px; height: 17px; }
.btn .arrow { width: 15px; height: 15px; }
.chip > svg { width: 15px; height: 15px; flex-shrink: 0; }
.badge > svg { width: 11px; height: 11px; }
.filter svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.chip.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.dot { width: 6px; height: 6px; border-radius: 9px; background: var(--ok); flex-shrink: 0; position: relative; }
.dot.accent { background: var(--accent); }
.dot.live::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 1px solid var(--ok); animation: ping 2.2s ease infinite; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 32%, transparent); }
.badge.solid { background: var(--ink); color: var(--bg); border-color: transparent; }

/* ---- announcement bar ---- */
.announce { position: relative; z-index: 45; background: var(--ink); color: var(--bg); font-size: 12.5px; }
.announce-in { height: 38px; display: flex; align-items: center; justify-content: center; gap: 28px; overflow: hidden; }
.announce b { font-weight: 500; }
.announce .sep { opacity: .35; }
.announce a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--bg) 40%, transparent); }
@media (max-width: 780px) { .announce-in .hide-xs { display: none; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; height: 66px; padding: 0 24px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; }
/* The supplied artwork is olive line work with a transparent interior, so it reads
   on either theme. A slight lift keeps it from going muddy on the near-black one. */
.brand-lips { height: 24px; width: auto; flex-shrink: 0; display: block; }
html[data-theme="dark"] .brand-lips { filter: brightness(1.32) saturate(1.05); }
.brand-type { font: 400 19px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand-type i { font-style: normal; color: var(--ink-3); }
.links { position: relative; display: flex; gap: 2px; }
.links a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links .pill { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 8px; background: var(--surface-2); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s; pointer-events: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; position: relative; transition: color .2s, background-color .2s; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font: 600 10.5px/17px var(--sans); text-align: center; }
.cart-count[hidden] { display: none; }
.theme-sun { display: none; } html[data-theme="light"] .theme-sun { display: block; } html[data-theme="light"] .theme-moon { display: none; }
.burger { display: none; }
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none; flex-direction: column; padding: 16px 24px 28px; overflow-y: auto; }
.mnav.open { display: flex; animation: fade .25s var(--ease); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav a.mlink { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); font: 400 24px/1.2 var(--display);
  opacity: 0; transform: translateY(8px); }
.mnav.open a.mlink { animation: rise .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@media (max-width: 940px) { .links, .nav-right .hide-sm { display: none; } .burger { display: inline-grid; } }

/* ---- search ---- */
.searchwrap { position: relative; }
.search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--bg-2); min-width: 210px; }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; }
.search input::placeholder { color: var(--ink-3); }
.search svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
@media (max-width: 780px) { .search { min-width: 0; } .searchwrap.hide-xs { display: none; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); margin-top: 22px; }
.hero .lede { margin-top: 22px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-art { position: relative; }
.hero-art .shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-art .shot img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.hero-art .float { position: absolute; left: -26px; bottom: 34px; width: 232px; }
.hero-art .float .panel { padding: 14px 16px; border-radius: 14px; backdrop-filter: blur(10px); }
.rating-row { display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 48px; } .hero-art .float { position: static; width: auto; margin-top: 16px; } }

/* ---- marquee strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.strip-in { display: flex; gap: 56px; padding: 18px 0; width: max-content; animation: slide 34s linear infinite; }
.strip span { font: 400 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 56px; }
.strip span::after { content: "◆"; font-size: 8px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .strip-in { animation: none; } }

/* ---- section heads ---- */
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.shead .h2 { margin-top: 12px; max-width: 760px; }

/* ---- category tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 40px; }
.tile { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  padding: 24px 22px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.tile .tnum { position: absolute; top: 20px; left: 22px; font: 12px var(--mono); color: var(--ink-3); }
.tile .ticon { position: absolute; top: 16px; right: 16px; width: 76px; height: 76px; opacity: .55; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: -.02em; }
.tile p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.tile .go { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tile:hover .go { color: var(--ink); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---- product grid ---- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin-top: 40px; }
.pgrid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1060px) { .pgrid, .pgrid.three { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 820px) { .pgrid, .pgrid.three { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; } }
@media (max-width: 480px) { .pgrid, .pgrid.three { grid-template-columns: 1fr; } }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard .shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
/* An <img width height> attribute pair is a presentational hint that sets the used
   height, which silently defeats aspect-ratio. Every rule below that relies on
   aspect-ratio therefore also sets height:auto. */
.pcard .shot img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .shot { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.pcard:hover .shot img { transform: scale(1.035); }
.pcard .flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pcard .wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s, color .2s; }
.pcard:hover .wish { opacity: 1; transform: none; }
.pcard .wish:hover, .pcard .wish.on { color: var(--accent); }
.pcard .wish svg { width: 16px; height: 16px; }
.pcard .quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pcard:hover .quick, .pcard:focus-within .quick { opacity: 1; transform: none; }
.pcard .quick .btn { width: 100%; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.pcard .pbody { padding: 15px 2px 0; display: flex; flex-direction: column; gap: 5px; }
.pcard .cat { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcard .pname { font: 400 19px/1.25 var(--display); letter-spacing: -.01em; }
.pcard .pname a:hover { color: var(--accent); }
.pcard .desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pcard .price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pcard .now { font: 500 15px var(--sans); }
.pcard .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.pcard .save { font: 500 11.5px var(--mono); color: var(--accent); }

/* ---- editorial split ---- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: center; }
.split.rev .split-art { order: 2; }
.split-art { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-art img { width: 100%; height: auto; aspect-ratio: 5/6; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-art { order: 0; } }

/* ---- principles (amanaric idiom) ---- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 44px; }
.principle { padding: 32px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .35s; }
.principle:hover { background: var(--surface); }
.principle .n { font: 12px var(--mono); color: var(--ink-3); }
.principle h3 { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.principle p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* ---- reviews ---- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 40px; }
.quote { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.quote p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.avatar { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--accent-soft);
  color: var(--accent); font: 600 12.5px var(--sans); flex-shrink: 0; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---- newsletter / cta band ---- */
.cta { position: relative; overflow: hidden; padding: 72px 44px; text-align: center; border-radius: 22px; background: var(--ink); color: var(--bg); }
.cta .lede { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 14px auto 0; max-width: 540px; }
.cta .actions { justify-content: center; }
.cta .btn-primary { --b-bg: var(--bg); --b-fg: var(--ink); }
.cta .btn-primary:hover { --b-bg: color-mix(in srgb, var(--bg) 88%, var(--ink)); }
.cta .btn:not(.btn-primary):not(.btn-accent) { --b-bg: transparent; --b-fg: var(--bg); --b-line: color-mix(in srgb, var(--bg) 25%, transparent); }
.cta .btn:not(.btn-primary):not(.btn-accent):hover { --b-bg: color-mix(in srgb, var(--bg) 10%, transparent); }
.news { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 52px; align-items: center;
  padding: 48px 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.newsform { display: flex; gap: 10px; }
.newsform input { flex: 1; height: 48px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; }
.newsform input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 840px) { .news { grid-template-columns: 1fr; gap: 26px; padding: 32px 24px; } .newsform { flex-direction: column; } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { max-width: 1240px; margin: 0 auto; padding: 60px 24px 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--ink-3); max-width: 36ch; }
.foot h5 { margin: 0 0 14px; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.foot-col a { display: block; width: fit-content; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-word { max-width: 1240px; margin: 30px auto 0; padding: 0 24px; font-family: var(--display);
  font-size: clamp(64px, 17.5vw, 230px); line-height: .8; letter-spacing: -.04em; color: var(--ink); opacity: .06; user-select: none; white-space: nowrap; overflow: hidden; }
.foot-bot { max-width: 1240px; margin: 0 auto; padding: 30px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.foot-bot a:hover { color: var(--ink); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---- page head (inner pages) ---- */
.phead { position: relative; overflow: hidden; padding: 68px 0 44px; border-bottom: 1px solid var(--line); }
.phead h1 { margin-top: 14px; }
.phead .lede { margin-top: 16px; max-width: 620px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 12px var(--mono); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }

/* ---- shop toolbar ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; }
.filter:hover { color: var(--ink); border-color: var(--ink-3); }
.filter.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.filter .c { font: 11px var(--mono); opacity: .65; }
.select { height: 34px; padding: 0 32px 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d7674' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
.empty { padding: 72px 0; text-align: center; color: var(--ink-3); }

/* ---- product detail ---- */
.pdp { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; padding: 44px 0 84px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .main { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery .main img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 78px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 0; cursor: pointer; transition: border-color .2s; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pdp-info { position: sticky; top: 92px; }
.pdp-info h1 { font-size: clamp(32px, 3.6vw, 46px); margin-top: 10px; }
.pdp-info .sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.price-block { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.price-block .now { font: 500 27px var(--sans); letter-spacing: -.02em; }
.price-block .was { font-size: 17px; color: var(--ink-3); text-decoration: line-through; }
.buy { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.qty { display: flex; align-items: center; height: 50px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 17px; }
.qty button:hover { color: var(--ink); background: var(--surface-2); }
.qty input { width: 42px; height: 100%; border: 0; background: transparent; text-align: center; outline: none; font: 500 15px var(--sans); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy .btn { flex: 1; }
.meta-list { margin-top: 26px; border-top: 1px solid var(--line); }
.meta-list div { display: flex; gap: 14px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list dt { color: var(--ink-3); } .meta-list dd { margin: 0; color: var(--ink-2); text-align: right; }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 17px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 20px/1 var(--mono); color: var(--ink-3); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.acc .body ul { list-style: disc; padding-left: 1.15rem; } .acc .body li { margin: 5px 0; }
.acc .body li::marker { color: var(--ink-3); }
.acc .body p + p { margin-top: 12px; }
.perks { display: grid; gap: 10px; margin-top: 26px; }
.perk { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.perk svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 940px) { .pdp { grid-template-columns: 1fr; gap: 34px; } .pdp-info { position: static; } }

/* ---- cart ---- */
.cartpage { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.9fr); gap: 44px; padding: 44px 0 84px; align-items: start; }
.cartlist { border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 96px minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.crow .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.crow .shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.crow .nm { font: 400 18px var(--display); }
.crow .cat { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.crow .rm { font-size: 13px; color: var(--ink-3); cursor: pointer; background: none; border: 0; padding: 4px 0; margin-top: 6px; }
.crow .rm:hover { color: var(--bad); }
.crow .line { font: 500 15px var(--sans); min-width: 76px; text-align: right; }
.summary { padding: 26px 24px; position: sticky; top: 92px; }
.summary h2 { font: 400 24px var(--display); }
.sline { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); }
.sline.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 17px; color: var(--ink); font-weight: 500; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
@media (max-width: 900px) { .cartpage { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) { .crow { grid-template-columns: 68px minmax(0,1fr) auto; } .crow .line { grid-column: 2 / -1; text-align: left; } }

/* ---- forms ---- */
.form { display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) { .frow, .frow.three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 13px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); font: 14.5px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field select option { background: var(--surface); color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.form-msg { font-size: 14px; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--bad); }
.notice { padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.notice.err { border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); }

/* ---- prose / legal ---- */
.prose { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 14px; }
.prose h2 { color: var(--ink); font: 400 30px var(--display); letter-spacing: -.02em; margin-top: 40px; }
.prose h3 { color: var(--ink); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin-top: 28px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul { list-style: disc; padding-left: 1.2rem; } .prose ol { list-style: decimal; padding-left: 1.2rem; }
.prose li + li { margin-top: 6px; } .prose li::marker { color: var(--ink-3); }
.docs { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 11px; color: var(--ink-2); border-left: 2px solid transparent; border-radius: 0 7px 7px 0; transition: color .2s, background-color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a.on { color: var(--ink); background: var(--surface); border-left-color: var(--accent); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---- toast + drawer ---- */
.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 250px; max-width: 350px; padding: 13px 15px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lift); font-size: 14px; animation: rise-in .35s var(--ease) both; }
.toast b { display: block; font-weight: 600; margin-bottom: 2px; }
.toast .sub { color: var(--ink-2); font-size: 13px; }
.toast.out { animation: fadeout .3s var(--ease) forwards; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: 400px; max-width: 92vw; background: var(--bg);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .45s var(--ease); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 21px var(--display); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; display: grid; gap: 12px; }

/* ---- admin ---- */
.adm { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100vh;
  /* the rail is only 100vh tall (sticky), so paint the column itself to keep the
     sidebar colour running the full length of long pages */
  background-image: linear-gradient(to right, var(--surface) 0 236px, transparent 236px); }
.adm-side { border-right: 1px solid var(--line); background: var(--surface); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.adm-side .brand { margin-bottom: 18px; padding: 0 6px; }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.adm-nav a:hover { color: var(--ink); background: var(--surface-2); }
.adm-nav a.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.adm-nav svg { width: 16px; height: 16px; opacity: .8; }
.adm-side .bottom { margin-top: auto; display: grid; gap: 6px; }
.adm-main { min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 16px 28px; display: flex; align-items: center; gap: 14px; }
.adm-top h1 { font: 400 24px var(--display); margin-right: auto; }
.adm-body { padding: 28px; }
.adm-body.narrow2 { max-width: 900px; }
@media (max-width: 900px) { .adm { grid-template-columns: 1fr; background-image: none; } .adm-side { position: static; height: auto; } .adm-nav { grid-auto-flow: column; overflow-x: auto; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { padding: 20px; }
.stat .k { font: 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font: 400 30px var(--display); margin-top: 8px; letter-spacing: -.02em; }
.stat .d { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.tablewrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; padding: 12px 14px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--surface-2); }
table.tbl .thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); background: var(--bg-2); }
table.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 9px; background: var(--ink-3); }
.pill.paid i, .pill.fulfilled i { background: var(--ok); }
.pill.pending_payment i { background: var(--warn); }
.pill.cancelled i, .pill.refunded i { background: var(--bad); }
.pill.on i { background: var(--ok); }
.pill.off i { background: var(--ink-3); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--ink-3); font-size: 14px;
  cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-2); }
.drop img { max-height: 190px; margin: 0 auto; border-radius: 10px; }
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.adm-login .card { width: 100%; max-width: 380px; padding: 32px 30px; }
.adm-login h1 { font: 400 27px var(--display); margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }

/* ---- motion ---- */
html.js .rv > * { opacity: 0; transform: translateY(16px); filter: blur(4px); }
html.js:not(.rv-ready) .rv > * { animation: failsafe 0s 3s forwards; }
html.js .rv > .in { opacity: 1; transform: none; filter: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.words > span > span { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
main > * { animation: page .5s var(--ease) both; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
@keyframes failsafe { to { opacity: 1; transform: none; filter: none; } }
@keyframes page { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; transform: translateY(6px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv > *, .words > span > span, main > *, .mnav.open a.mlink, .toast { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .dot.live::after { animation: none; }
}
