/* ============================================================
   VelvetBeautyy — storefront stylesheet
   tokens → reset → chrome → hero → rail → sections → cards
   → steps → footer → bag → modal → toasts → motion → responsive
   Brand colours arrive at runtime as --ink/--paper/--gold/--glow-*
   written by script.js, so everything below is admin-customisable.
   ============================================================ */

:root {
  --ink:        #14100f;
  --ink-soft:   #2b2320;
  --paper:      #f6f0ea;
  --paper-warm: #efe5dc;
  --gold:       #c9a227;
  --gold-soft:  #e0c46a;

  --glow-a: #c9a227;
  --glow-b: #a83a55;
  --glow-c: #d9a0a0;

  --perfume:  #1a1013;
  --perfume-2:#3a1f27;
  --skincare: #f3ece6;
  --skincare-2:#e2d2c8;
  --cosmetics:#5b1224;
  --cosmetics-2:#a83a55;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1240px;
  --rail-gap: 22px;
  --card-w: 306px;
}

body.is-locked { overflow: hidden; }

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 300; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- announce bar ---------- */
.announce {
  position: relative; z-index: 120; text-align: center;
  background: var(--ink); color: var(--paper);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 9px 16px;
}
.announce a { color: var(--gold-soft); border-bottom: 1px solid currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px clamp(18px, 5vw, 64px);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.announce:not([hidden]) + .nav { top: 33px; }
.nav.is-stuck {
  background: rgba(20,16,15,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  padding: 11px clamp(18px,5vw,64px);
  box-shadow: 0 1px 0 rgba(201,162,39,.22);
}
.nav__logo { font-family: var(--serif); font-size: 1.55rem; color: var(--paper); z-index: 2; }
.nav__logo em, .foot__logo em { color: var(--gold); font-style: italic; }
.nav__links { display: flex; gap: clamp(14px, 2.6vw, 38px); }
.nav__links a {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246,240,234,.84); position: relative; padding-bottom: 4px;
  transition: color .35s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .45s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--gold-soft); }
.nav__tools { display: flex; align-items: center; gap: 8px; z-index: 2; }

.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(246,240,234,.22);
  border-radius: 50%; color: var(--paper);
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { background: var(--gold); border-color: var(--gold); color: #1a1013; transform: translateY(-2px); }
.iconbtn--dark { background: transparent; border-color: rgba(20,16,15,.2); color: var(--ink); }
.iconbtn--dark:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: var(--gold); color: #1a1013;
  font-size: .62rem; font-weight: 500; display: grid; place-items: center;
}
.nav__burger { display: none; }

/* ---------- search ---------- */
.search {
  position: fixed; z-index: 105; inset: 0 0 auto 0; padding: 96px clamp(18px,5vw,64px) 26px;
  background: rgba(14,10,11,.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,39,.25);
  animation: drop .4s var(--ease);
}
@keyframes drop { from { transform: translateY(-100%); } }
.search input {
  width: 100%; max-width: 720px; margin: 0 auto; display: block;
  background: transparent; border: 0; border-bottom: 1px solid rgba(246,240,234,.3);
  color: var(--paper); font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.4rem);
  padding: 6px 2px 12px; outline: none;
}
.search input::placeholder { color: rgba(246,240,234,.35); }
.search__hint { max-width: 720px; margin: 12px auto 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; color: var(--paper);
  background: radial-gradient(120% 80% at 50% 0%, #3d2b2c 0%, var(--perfume) 55%, #0c0708 100%);
}
.hero__veil {
  position: absolute; inset: -12% -5%; filter: blur(46px); will-change: transform;
  background:
    radial-gradient(38% 30% at 22% 26%, var(--glow-a), transparent 70%),
    radial-gradient(34% 28% at 78% 68%, var(--glow-b), transparent 72%),
    radial-gradient(26% 22% at 52% 48%, var(--glow-c), transparent 70%);
  opacity: .42;
}
.hero__inner { position: relative; padding: 0 24px; }
.hero__kicker { font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.hero__title { font-size: clamp(3.4rem, 13vw, 11rem); line-height: .92; }
.hero__title em { display: block; font-style: italic; color: var(--gold-soft); letter-spacing: .06em; }
.hero__tag { margin-top: 30px; font-size: clamp(.95rem,1.6vw,1.12rem); color: rgba(246,240,234,.78); letter-spacing: .04em; }
.hero__cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__live {
  margin-top: 30px; font-size: .6rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(246,240,234,.5); display: flex; align-items: center; gap: 8px;
}
.hero__live span { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: 62px; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(201,162,39,.2); border-bottom: 1px solid rgba(201,162,39,.2);
  padding: 11px 0; background: rgba(0,0,0,.22);
}
.marquee__track { display: inline-flex; animation: slide 38s linear infinite; }
.marquee__track span { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,240,234,.6); padding-right: 2rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.hero__scroll {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: .58rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(246,240,234,.5); writing-mode: vertical-rl; animation: bob 2.6s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,16,15,.24); }
.btn--ghost { border-color: rgba(246,240,234,.4); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--ink { border-color: rgba(20,16,15,.28); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }
.btn--mini { border-color: rgba(20,16,15,.25); color: var(--ink); padding: 10px 18px; }
.btn--mini:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- sliding rail ---------- */
.rail { padding: clamp(60px, 8vw, 96px) 0 clamp(40px, 6vw, 70px); background: var(--paper); overflow: hidden; }
.rail__head {
  max-width: var(--maxw); margin: 0 auto clamp(26px, 3vw, 40px);
  padding: 0 clamp(18px, 6vw, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.rail__head .sec__num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.rail__head .sec__title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin-top: 4px; }
.rail__nav { display: flex; gap: 10px; }
.rail__track {
  display: flex; gap: var(--rail-gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: max(24px, calc((100vw - var(--maxw)) / 2 + 64px));
  padding: 6px max(24px, calc((100vw - var(--maxw)) / 2 + 64px)) 22px;
  scrollbar-width: none; cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__track > * { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.rail__progress { max-width: var(--maxw); margin: 6px auto 0; padding: 0 clamp(18px,6vw,64px); }
.rail__progress span { display: block; height: 2px; background: var(--gold); width: 22%; transition: width .18s linear, transform .18s linear; }
.rail__empty { padding: 30px 0; color: rgba(20,16,15,.5); font-size: .9rem; }

/* ---------- chips ---------- */
.chips {
  position: sticky; top: 62px; z-index: 60;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 14px clamp(18px,6vw,64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,16,15,.1);
}
.chip {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(20,16,15,.18); background: transparent;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--sale.is-on { background: var(--cosmetics); border-color: var(--cosmetics); }

/* ---------- sections ---------- */
.sec { padding: clamp(70px, 10vw, 130px) clamp(18px, 6vw, 64px); }
.sec[hidden] { display: none; }
.sec__head {
  max-width: var(--maxw); margin: 0 auto clamp(38px, 5vw, 66px);
  display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px);
}
.sec__num {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1;
  color: var(--gold); border-right: 1px solid currentColor; padding-right: clamp(14px,2.4vw,30px);
}
.sec__title { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.sec__sub { margin-top: 12px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(20,16,15,.55); }
.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: clamp(20px, 2.6vw, 34px); grid-template-columns: repeat(3, 1fr);
}
.grid__empty { grid-column: 1 / -1; padding: 40px 0; color: rgba(20,16,15,.5); }

.sec--perfume { background: linear-gradient(170deg, #0f090b, var(--perfume) 40%, var(--perfume-2)); color: var(--paper); }
.sec--perfume .sec__sub, .sec--cosmetics .sec__sub { color: rgba(246,240,234,.55); }
.sec--perfume .card { background: #f4ece6; }
.sec--perfume .price { color: #8d1b3a; }
.sec--perfume .btn--mini { border-color: rgba(20,16,15,.25); }
.sec--perfume .btn--mini:hover { background: var(--ink); color: var(--paper); }

.sec--skincare { background: linear-gradient(180deg, var(--skincare), var(--skincare-2)); }
.sec--skincare .card { background: rgba(255,255,255,.6); }

.sec--cosmetics { background: linear-gradient(160deg, #3d0c19, var(--cosmetics) 45%, var(--cosmetics-2)); color: var(--paper); }
.sec--cosmetics .card { background: #fbf4f2; }
.sec--cosmetics .price { color: #8d1b3a; }

.sec--ritual { background: var(--paper); }

/* ---------- card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid rgba(20,16,15,.08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(20,16,15,.24); }
.card__art { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; }
.card--tall .card__art { height: 330px; }
.card__art--oud { background: radial-gradient(70% 70% at 50% 45%, #5b2b39, #1a0d11 75%); }
.card__art--rose { background: radial-gradient(70% 70% at 50% 45%, #c98a92, #4a1b26 75%); }
.card__art--amber { background: radial-gradient(70% 70% at 50% 45%, #d9a44b, #472609 75%); }
.card__art--serum { background: radial-gradient(70% 70% at 50% 45%, #f3ded0, #a97a5e 78%); }
.card__art--cleanser { background: radial-gradient(70% 70% at 50% 45%, #fdf6ee, #c8a892 78%); }
.card__art--cream { background: radial-gradient(70% 70% at 50% 45%, #ffe9dd, #b9806f 78%); }
.card__art--lip { background: radial-gradient(70% 70% at 50% 45%, #b8394f, #3d0c19 76%); }
.card__art--blush { background: radial-gradient(70% 70% at 50% 45%, #e79aa2, #7d2136 76%); }
.card__art--liner { background: radial-gradient(70% 70% at 50% 45%, #6b5f63, #211a1c 76%); }

.card__halo { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.24); filter: blur(30px); transition: transform .8s var(--ease); }
.card:hover .card__halo { transform: scale(1.22); }
.card__glass {
  position: relative; width: 58px; height: 168px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 45%, rgba(255,255,255,.4));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 50px rgba(0,0,0,.42), inset 0 0 26px rgba(255,255,255,.24);
}
.card__glass::before { content: ""; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 34px; height: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg,#e6d3a8,#8d7434); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.card__glass::after { content: ""; position: absolute; inset: auto 8px 14px; height: 54px; border-radius: 4px; background: rgba(201,162,39,.34); }
.card__bottle {
  position: relative; width: 76px; height: 178px; border-radius: 14px;
  background: linear-gradient(115deg,#fff,#e7d7c6 60%,#fff);
  box-shadow: 0 24px 48px rgba(0,0,0,.28), inset 0 0 20px rgba(255,255,255,.8);
  display: grid; place-items: end center; padding-bottom: 16px;
}
.card__bottle--wide { width: 108px; height: 130px; border-radius: 20px; }
.card__bottle i { width: 62%; height: 44px; border-radius: 4px; background: linear-gradient(180deg, rgba(180,110,80,.5), rgba(120,60,40,.75)); }
.card__bottle--wide i { height: 32px; background: linear-gradient(180deg, rgba(210,190,170,.6), rgba(150,120,95,.7)); }
.card__jar {
  position: relative; width: 118px; height: 96px; border-radius: 12px 12px 18px 18px;
  background: linear-gradient(150deg,#fff,#e5d2c4); box-shadow: 0 22px 44px rgba(0,0,0,.3);
  display: grid; place-items: end center; padding-bottom: 14px;
}
.card__jar--flat { width: 132px; height: 40px; border-radius: 10px; padding-bottom: 8px; }
.card__jar i { width: 58%; height: 26px; border-radius: 3px; background: rgba(190,110,120,.62); }
.card__jar--flat i { height: 14px; background: rgba(200,90,110,.7); }
.card__bullet {
  position: relative; width: 44px; height: 168px; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(100deg,#2a0509,#7a1430 45%,#2a0509);
  box-shadow: 0 20px 40px rgba(0,0,0,.42); display: grid; place-items: end center; padding-bottom: 12px;
}
.card__bullet i { width: 100%; height: 6px; background: var(--gold); border-radius: 3px; }
.card__pen { position: relative; width: 16px; height: 176px; border-radius: 8px; background: linear-gradient(180deg,#1a1a1a,#3d3437 50%,#1a1a1a); box-shadow: 0 18px 34px rgba(0,0,0,.5); }
.card__pen::after { content: ""; position: absolute; bottom: -16px; left: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 18px solid var(--gold); }

.card__body { padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.62rem; }
.card__notes { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #8d1b3a; }
.card__copy { font-size: .9rem; color: rgba(20,16,15,.72); }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(20,16,15,.1); }
.price { font-size: .84rem; letter-spacing: .1em; }

.card__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.flag { font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--gold); color: #1a1013; }
.flag--low { background: var(--cosmetics-2); color: #fff; }
.flag--out { background: #2b2320; color: #fff; }
.flag--new { background: var(--ink); color: var(--paper); }

.card__wish {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.75); border: 0; color: var(--ink);
  display: grid; place-items: center; opacity: 0; transform: translateY(-6px);
  transition: all .3s var(--ease);
}
.card:hover .card__wish, .card__wish.is-on { opacity: 1; transform: none; }
.card__wish svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.card__wish.is-on svg { fill: var(--cosmetics); stroke: var(--cosmetics); }

.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatches span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.15); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--ease); }
.swatches span:hover { transform: translateY(-3px) scale(1.14); }

.card__quick {
  position: absolute; inset: auto 0 0 0; padding: 11px; cursor: pointer;
  background: rgba(20,16,15,.9); color: var(--paper); border: 0;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }

/* ---------- steps ---------- */
.steps { max-width: 980px; margin: 0 auto; }
.step { display: flex; gap: clamp(18px,3vw,44px); align-items: flex-start; padding: clamp(22px,3vw,36px) 0; border-top: 1px solid rgba(20,16,15,.12); }
.step:last-child { border-bottom: 1px solid rgba(20,16,15,.12); }
.step__n { font-family: var(--serif); font-size: 3rem; line-height: .9; color: var(--gold); min-width: 60px; }
.step h3 { font-size: 1.85rem; margin-bottom: 6px; }
.step p { color: rgba(20,16,15,.7); max-width: 62ch; }

/* ---------- footer ---------- */
.foot { background: #0e0a0b; color: var(--paper); padding: clamp(56px,8vw,92px) clamp(18px,6vw,64px) 28px; }
.foot__grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(26px,4vw,52px); grid-template-columns: 1.6fr repeat(3,1fr); }
.foot__logo { font-size: 1.85rem; }
.foot__blurb { margin-top: 14px; color: rgba(246,240,234,.6); max-width: 40ch; font-size: .92rem; }
.foot h4 { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot__grid a { display: block; color: rgba(246,240,234,.72); font-size: .9rem; padding: 5px 0; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.foot__grid a:hover { color: #fff; padding-left: 8px; }
.foot__bar { max-width: var(--maxw); margin: clamp(36px,5vw,60px) auto 0; padding-top: 22px; border-top: 1px solid rgba(246,240,234,.12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .72rem; letter-spacing: .1em; color: rgba(246,240,234,.5); }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(246,240,234,.22); color: rgba(246,240,234,.8);
  transition: all .3s var(--ease);
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: #1a1013; transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- scrim / bag ---------- */
.scrim { position: fixed; inset: 0; z-index: 130; background: rgba(10,7,8,.55); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.bag {
  position: fixed; z-index: 140; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: -30px 0 70px rgba(0,0,0,.35); animation: slidein .45s var(--ease);
}
@keyframes slidein { from { transform: translateX(100%); } }
.bag__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid rgba(20,16,15,.12); }
.bag__head h3 { font-size: 1.6rem; }
.bag__items { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.bag__empty { color: rgba(20,16,15,.5); text-align: center; padding: 40px 0; }
.bagitem { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(20,16,15,.1); }
.bagitem__art { width: 62px; height: 62px; border-radius: 10px; display: grid; place-items: center; }
.bagitem__art .card__bullet, .bagitem__art .card__bottle { transform: scale(.28); }
.bagitem__name { font-family: var(--serif); font-size: 1.12rem; }
.bagitem__meta { font-size: .7rem; letter-spacing: .12em; color: rgba(20,16,15,.55); }
.bagitem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bagitem__x { background: none; border: 0; cursor: pointer; color: rgba(20,16,15,.5); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.bagitem__x:hover { color: var(--cosmetics); }
.bag__foot { padding: 20px 24px 26px; border-top: 1px solid rgba(20,16,15,.12); display: flex; flex-direction: column; gap: 10px; }
.bag__row { display: flex; justify-content: space-between; align-items: baseline; }
.bag__row strong { font-family: var(--serif); font-size: 1.5rem; }
.bag__row--muted { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(20,16,15,.55); }
.bag__foot .btn { margin-top: 6px; }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(20,16,15,.2); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; }
.qty button:hover { background: rgba(20,16,15,.08); }
.qty input { width: 40px; height: 32px; text-align: center; border: 0; background: none; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- quick view ---------- */
.modal {
  border: 0; padding: 0; max-width: min(920px, 94vw); width: 100%;
  background: var(--paper); color: var(--ink); border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}
.modal::backdrop { background: rgba(10,7,8,.62); backdrop-filter: blur(4px); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 4; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal__art { min-height: 380px; display: grid; place-items: center; }
.modal__info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.modal__info h3 { font-size: 2.3rem; }
.modal__desc { color: rgba(20,16,15,.72); font-size: .95rem; }
.modal__specs { display: flex; flex-direction: column; gap: 6px; }
.modal__specs li { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(20,16,15,.6); }
.modal__buy { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(20,16,15,.12); }
.modal__buy .price { font-size: 1.2rem; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 160; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 3px;
  font-size: .78rem; letter-spacing: .06em; box-shadow: 0 16px 40px rgba(0,0,0,.3);
  border-left: 3px solid var(--gold); animation: toastin .35s var(--ease);
  max-width: 320px;
}
.toast--err { border-left-color: #e2564c; }
.toast--ok { border-left-color: #4ade80; }
.toast.is-out { animation: toastout .3s var(--ease) forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastout { to { opacity: 0; transform: translateX(24px); } }

/* ---------- maintenance / preview gate ---------- */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); color: var(--paper); text-align: center; padding: 8vw; }
.gate__card { max-width: 560px; }
.gate__card h2 { font-size: clamp(2rem,6vw,3.6rem); margin-bottom: 18px; }
.gate__card p { color: rgba(246,240,234,.7); }
.gate.is-preview { position: fixed; inset: auto 0 0 0; top: auto; background: var(--gold); color: #1a1013; padding: 12px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
body[data-motion="calm"] .hero__veil { transform: none !important; }
body[data-motion="calm"] .marquee__track { animation: none; }
body[data-motion="still"] *, body[data-motion="still"] *::before, body[data-motion="still"] *::after { animation: none !important; transition: none !important; }
body[data-motion="still"] .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  :root { --card-w: 268px; }
}
@media (max-width: 860px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__art { min-height: 260px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__burger { display: grid; place-items: center; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 0; z-index: 2; }
  .nav__burger span { display: block; height: 1.5px; width: 20px; background: var(--paper); margin: 4px 0; transition: transform .4s var(--ease), opacity .3s var(--ease); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    background: rgba(14,10,11,.98); clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav__links a { font-size: 1rem; }
  .grid { grid-template-columns: 1fr; }
  .card--tall .card__art { height: 280px; }
  .chips { top: 56px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .step { flex-direction: column; gap: 6px; }
  .step__n { min-width: 0; font-size: 2.3rem; }
  .foot__bar { flex-direction: column; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
@media (max-width: 460px) {
  :root { --card-w: 244px; }
  .foot__grid { grid-template-columns: 1fr; }
}
