/* ============================================================
   Kraplya Parfum — Design System
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand */
  --ink:            #0B0F1A;
  --navy:           #0F1A2E;
  --navy-soft:      #1B2942;
  --navy-line:      #2A3A55;

  /* Gold */
  --gold:           #A16207;   /* на світлому */
  --gold-bright:    #C9A227;   /* на темному  */
  --gold-hair:      #E3D3A8;

  /* Neutrals */
  --milk:           #FAF7F2;
  --beige:          #F1EAE0;
  --beige-deep:     #E8DFD2;
  --card:           #FFFFFF;
  --border:         #E4DDD3;
  --text:           #0C0A09;
  --muted:          #6B655D;

  /* Semantic */
  --success:        #166534;
  --warning:        #B45309;
  --danger:         #B91C1C;

  /* Type */
  --f-display: 'Cormorant', 'Times New Roman', Georgia, serif;
  --f-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --t-hero:  clamp(2.6rem, 8.5vw, 5.25rem);
  --t-h1:    clamp(1.9rem, 5vw, 3.1rem);
  --t-h2:    clamp(1.5rem, 3.6vw, 2.25rem);
  --t-h3:    1.1875rem;
  --t-body:  1rem;
  --t-sm:    0.875rem;
  --t-xs:    0.8125rem;
  --t-label: 0.6875rem;

  /* Space (4pt) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Radius */
  --r-sm: 2px; --r-md: 4px; --r-lg: 8px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(11,15,26,.04);
  --sh-md: 0 8px 28px rgba(11,15,26,.07);
  --sh-lg: 0 16px 48px rgba(11,15,26,.10);

  /* Motion */
  --e-out: cubic-bezier(.16,1,.3,1);
  --e-in:  cubic-bezier(.7,0,.84,0);
  --d-fast: 150ms; --d-base: 250ms; --d-slow: 400ms;

  /* Layout */
  --container: 1240px;
  --header-h: 56px;
  --tabbar-h: 60px;

  /* Z */
  --z-sticky: 40; --z-header: 50; --z-tabbar: 55; --z-overlay: 80; --z-toast: 100;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 0;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-weight: 500; line-height: 1.15; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.dark :focus-visible, .sec--navy :focus-visible { outline-color: var(--gold-bright); }

::selection { background: var(--gold-hair); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. UTILITIES ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .container { padding-inline: var(--s5); } }
@media (min-width: 1024px) { .container { padding-inline: var(--s6); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--navy); color: var(--milk); padding: var(--s3) var(--s5);
  transition: top var(--d-fast);
}
.skip-link:focus { top: var(--s4); }

.label {
  font-size: var(--t-label); font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.serif { font-family: var(--f-display); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }

.rule { width: 44px; height: 1px; background: var(--gold); border: 0; margin: var(--s4) 0; }
.rule--c { margin-inline: auto; }

.hide-mob { display: none; }
@media (min-width: 900px) { .hide-mob { display: block; } .hide-desk { display: none !important; } }

/* ---------- 4. SECTIONS ---------- */
.sec { padding-block: var(--s7); }
@media (min-width: 900px) { .sec { padding-block: var(--s9); } }
.sec--tight { padding-block: var(--s6); }
.sec--beige { background: var(--beige); }
.sec--navy { background: var(--navy); color: var(--milk); }
.sec--navy .label { color: var(--gold-bright); }
.sec--navy .muted { color: #A8B0BE; }

.sec-head { margin-bottom: var(--s6); }
.sec-head h2 { font-family: var(--f-display); font-size: var(--t-h2); }
.sec-head p { color: var(--muted); margin-top: var(--s2); max-width: 56ch; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s6);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background var(--d-fast) var(--e-out), color var(--d-fast), border-color var(--d-fast), transform var(--d-fast);
  cursor: pointer; text-align: center;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--navy); color: var(--milk); }
.btn--primary:hover { background: var(--navy-soft); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #8A5306; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--milk); }
.btn--light { background: var(--milk); color: var(--navy); }
.btn--light:hover { background: #fff; }
.btn--onnavy { border-color: rgba(250,247,242,.35); color: var(--milk); }
.btn--onnavy:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 var(--s4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--t-sm); font-weight: 500; padding-block: var(--s2);
  border-bottom: 1px solid var(--gold-hair); transition: border-color var(--d-fast);
}
.link-arrow:hover { border-color: var(--gold); }
.link-arrow svg { transition: transform var(--d-fast) var(--e-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. ICONS ---------- */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none;
      stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--16 { width: 16px; height: 16px; }
.ic--24 { width: 24px; height: 24px; }
.ic--32 { width: 32px; height: 32px; stroke-width: 1.2; }

/* ---------- 7. HEADER ---------- */
.topbar {
  background: var(--navy); color: #C6CCD8;
  font-size: 11px; letter-spacing: .06em; text-align: center;
  padding: 7px var(--s4); overflow: hidden; white-space: nowrap;
}
.topbar b { color: var(--gold-bright); font-weight: 500; }
@media (max-width: 640px) { .topbar__wide { display: none; } }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__in { display: flex; align-items: center; gap: var(--s3); height: var(--header-h); }
@media (min-width: 900px) { .header__in { height: 74px; } }

.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.logo__mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.logo__txt { font-family: var(--f-display); font-size: 20px; letter-spacing: .01em; line-height: 1; }
.logo__txt span { display: block; font-family: var(--f-body); font-size: 8px; letter-spacing: .34em;
                  text-transform: uppercase; color: var(--muted); margin-top: 3px; }
@media (min-width: 900px) { .logo__txt { font-size: 24px; } }

.nav { display: none; gap: var(--s6); margin-inline: auto; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: var(--t-sm); font-weight: 500; padding: var(--s2) 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width var(--d-base) var(--e-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.actions { display: flex; align-items: center; gap: 2px; }
.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  transition: background var(--d-fast);
}
.iconbtn:hover { background: var(--beige); }
.badge {
  position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.badge[data-count="0"] { display: none; }

/* ---------- 8. MOBILE TABBAR ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
  display: grid; grid-template-columns: repeat(5,1fr);
  background: rgba(250,247,242,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 900px) { .tabbar { display: none; } }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--tabbar-h); font-size: 10px; letter-spacing: .02em; color: var(--muted);
  position: relative;
}
.tabbar a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.tabbar a[aria-current="page"]::after {
  content: ''; position: absolute; top: 7px; right: calc(50% - 15px);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.tabbar .badge { top: 6px; right: 22%; }
body.has-tabbar { padding-bottom: var(--tabbar-h); }
@media (min-width: 900px) { body.has-tabbar { padding-bottom: 0; } }

/* ---------- 9. DRAWER / OVERLAY ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(11,15,26,.5);
  opacity: 0; pointer-events: none; transition: opacity var(--d-base);
  z-index: var(--z-overlay);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
  background: var(--milk); z-index: calc(var(--z-overlay) + 1);
  transform: translateX(100%); transition: transform var(--d-slow) var(--e-out);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4); border-bottom: 1px solid var(--border); flex: none;
}
.drawer__head h3 { font-family: var(--f-display); font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s4); }
.drawer__foot { flex: none; padding: var(--s4); border-top: 1px solid var(--border);
                padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom)); }

.mnav a { display: block; padding: var(--s4) 0; border-bottom: 1px solid var(--border);
          font-size: 17px; font-family: var(--f-display); }
.mnav .label { display: block; padding-top: var(--s5); border: 0; font-family: var(--f-body); }

/* ---------- 10. SEARCH OVERLAY ---------- */
.search {
  position: fixed; inset: 0; background: var(--milk); z-index: calc(var(--z-overlay) + 2);
  display: none; flex-direction: column;
}
.search.is-open { display: flex; }
.search__bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
               border-bottom: 1px solid var(--border); }
.search__bar input {
  flex: 1; border: 0; background: none; font-size: 17px; padding: var(--s3) 0;
  font-family: var(--f-display);
}
.search__bar input:focus { outline: none; }
.search__body { flex: 1; overflow-y: auto; padding: var(--s5) var(--s4); }
.sug { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0;
       border-bottom: 1px solid var(--border); }
.sug__img { width: 48px; height: 60px; background: var(--beige); flex: none; }
.sug__t { font-family: var(--f-display); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s4);
  background: var(--beige); border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--t-xs); transition: all var(--d-fast);
}
.chip:hover { border-color: var(--gold-hair); background: var(--beige-deep); }
.chip.is-active { background: var(--navy); color: var(--milk); }

/* ---------- 11. HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; } }

.hero__text { padding: var(--s7) var(--s4) var(--s6); }
@media (min-width: 900px) {
  .hero__text { padding: var(--s10) var(--s8) var(--s10) max(var(--s6), calc((100vw - var(--container))/2 + var(--s6))); }
}
.hero h1 {
  font-family: var(--f-display); font-size: var(--t-hero); font-weight: 400;
  line-height: 1.02; letter-spacing: -.015em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { margin-top: var(--s5); font-size: 1.0625rem; color: var(--muted); max-width: 42ch; line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s6);
               font-size: var(--t-xs); color: var(--muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--gold); }

.hero__visual {
  background: var(--navy); position: relative; min-height: 380px;
  display: grid; place-items: center; overflow: hidden;
}
@media (min-width: 900px) { .hero__visual { min-height: 620px; } }
.hero__visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(201,162,39,.16), transparent 62%);
}
.hero__visual .vial { position: relative; z-index: 1; width: min(56%, 240px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.hero__cap {
  position: absolute; z-index: 2; left: var(--s5); bottom: var(--s5);
  font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright);
}

/* ---------- 12. QUICK ENTRIES ---------- */
.quick { display: grid; gap: var(--s3); grid-template-columns: repeat(3, 1fr); }
.quick a {
  position: relative; display: block; aspect-ratio: 3/4; background: var(--beige);
  overflow: hidden; transition: transform var(--d-base) var(--e-out);
}
.quick a:hover { transform: translateY(-3px); }
.quick a svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.quick span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s3);
  background: linear-gradient(to top, rgba(15,26,46,.82), transparent);
  color: var(--milk); font-family: var(--f-display); font-size: 18px; text-align: center;
}
@media (min-width: 700px) { .quick span { font-size: 22px; } }

/* ---------- 13. PRODUCT CARD ---------- */
.grid-products {
  display: grid; gap: var(--s4) var(--s3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3,1fr); gap: var(--s6) var(--s4); } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4,1fr); } }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s3); margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: 34%; } }
@media (min-width: 1100px) {
  .rail { grid-auto-columns: unset; grid-auto-flow: row; grid-template-columns: repeat(4,1fr);
          overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--s6) var(--s4); }
}

.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; aspect-ratio: 3/4; background: var(--beige);
  overflow: hidden; margin-bottom: var(--s3);
}
.pcard__media svg.art { width: 100%; height: 100%; transition: transform var(--d-slow) var(--e-out); }
.pcard:hover .pcard__media svg.art { transform: scale(1.04); }
.pcard__badges { position: absolute; top: var(--s2); left: var(--s2); display: flex; flex-direction: column; gap: 4px; }
.tag {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; background: var(--navy); color: var(--milk);
}
.tag--gold { background: var(--gold); }
.tag--sale { background: var(--danger); }
.tag--light { background: var(--milk); color: var(--navy); border: 1px solid var(--border); }
.pcard__wish {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--navy);
}
.pcard__wish svg { transition: transform var(--d-fast) var(--e-out); }
.pcard__wish:hover svg { transform: scale(1.12); }
.pcard__wish.is-on svg { fill: var(--gold); stroke: var(--gold); }
.pcard__brand { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pcard__name { font-family: var(--f-display); font-size: 19px; line-height: 1.2; margin-top: 3px; }
.pcard__meta { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.pcard__foot { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s2); }
.pcard__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard__old { font-size: var(--t-xs); color: var(--muted); text-decoration: line-through; }
.pcard__vols { display: flex; gap: 5px; margin-top: var(--s3); }
.pcard__vols button {
  flex: 1; min-height: 32px; border: 1px solid var(--border); background: var(--card);
  font-size: 11px; font-variant-numeric: tabular-nums; border-radius: var(--r-sm);
  transition: all var(--d-fast);
}
.pcard__vols button:hover { border-color: var(--navy); background: var(--navy); color: var(--milk); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* ---------- 14. "WHY DECANT" ---------- */
.why { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .why { grid-template-columns: repeat(2,1fr); gap: var(--s7) var(--s8); } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4,1fr); gap: var(--s6); } }
.why__item { border-top: 1px solid var(--navy-line); padding-top: var(--s4); }
.why__item svg { color: var(--gold-bright); margin-bottom: var(--s3); }
.why__item h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: var(--s2); }
.why__item p { font-size: var(--t-sm); color: #A8B0BE; line-height: 1.7; }
.why-outro {
  margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5);
}
.why-outro p { font-family: var(--f-display); font-size: clamp(1.25rem,2.6vw,1.75rem); max-width: 30ch; line-height: 1.35; }

/* ---------- 15. TRUST STRIP ---------- */
.trust { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3,1fr); gap: var(--s5); } }
.trust__i { display: flex; gap: var(--s3); align-items: flex-start; }
.trust__i svg { color: var(--gold); flex: none; margin-top: 2px; }
.trust__i b { display: block; font-size: var(--t-sm); font-weight: 600; }
.trust__i span { font-size: var(--t-xs); color: var(--muted); line-height: 1.55; }

/* ---------- 16. SETS ---------- */
.sets { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .sets { grid-template-columns: repeat(3,1fr); } }
.setcard { background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; }
.setcard__media { aspect-ratio: 4/3; background: var(--beige); position: relative; overflow: hidden; }
.setcard__media svg.art { width: 100%; height: 100%; }
.setcard__b { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.setcard h3 { font-family: var(--f-display); font-size: 24px; }
.setcard p { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s2); flex: 1; }
.setcard__items { display: flex; gap: var(--s2); margin: var(--s4) 0; font-size: var(--t-xs); color: var(--muted); }
.setcard__price { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s4); }
.setcard__price b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* ---------- 17. BRANDS ---------- */
.brands { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 700px) { .brands { grid-template-columns: repeat(6,1fr); } }
.brands a {
  background: var(--milk); display: grid; place-items: center; aspect-ratio: 16/9;
  font-family: var(--f-display); font-size: clamp(13px,2.4vw,17px); letter-spacing: .04em;
  color: var(--muted); text-align: center; padding: var(--s2);
  transition: all var(--d-fast);
}
.brands a:hover { background: var(--card); color: var(--ink); }

/* ---------- 18. AUTHENTICITY SPLIT ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.split__media { aspect-ratio: 4/3; background: var(--navy); position: relative; overflow: hidden; display: grid; place-items: center; }
.split__media svg.art { width: 70%; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play span {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(250,247,242,.94);
  display: grid; place-items: center; color: var(--navy);
  transition: transform var(--d-base) var(--e-out);
}
.play:hover span { transform: scale(1.08); }
.checklist li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.checklist svg { color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- 19. REVIEWS ---------- */
.rcard { background: var(--card); border: 1px solid var(--border); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); height: 100%; }
.rcard__photos { display: flex; gap: 6px; }
.rcard__photos div { width: 64px; height: 64px; background: var(--beige); overflow: hidden; }
.rcard__photos svg { width: 100%; height: 100%; }
.rcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.rcard__name { font-weight: 600; font-size: var(--t-sm); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--success); }
.rcard blockquote { font-family: var(--f-display); font-size: 17px; line-height: 1.5; }
.rcard__meta { font-size: var(--t-xs); color: var(--muted); }

/* ---------- 20. NEWSLETTER ---------- */
.nl { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .nl { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.nl h2 { font-family: var(--f-display); font-size: var(--t-h2); }
.nl form { display: flex; flex-direction: column; gap: var(--s3); }
.field label { display: block; font-size: var(--t-xs); font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 var(--s4); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 16px;
  transition: border-color var(--d-fast);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(161,98,7,.12); }
.consent { display: flex; gap: var(--s2); font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--gold); }

/* ---------- 21. FOOTER ---------- */
.footer { background: var(--navy); color: #C6CCD8; padding-top: var(--s8); }
.footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7); } }
.footer h4 { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
             color: var(--gold-bright); margin-bottom: var(--s4); font-weight: 500; }
.footer li { padding: 5px 0; }
.footer a { font-size: var(--t-sm); transition: color var(--d-fast); }
.footer a:hover { color: var(--milk); }
.footer__about { font-size: var(--t-sm); line-height: 1.7; max-width: 34ch; margin-top: var(--s4); }
.footer .logo__txt { color: var(--milk); }
.footer .logo__txt span { color: #8791A3; }
.footer__bottom {
  margin-top: var(--s8); border-top: 1px solid var(--navy-line);
  padding: var(--s5) 0; display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: center; justify-content: space-between; font-size: var(--t-xs);
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
}
.pays { display: flex; gap: var(--s2); align-items: center; }
.pays span { border: 1px solid var(--navy-line); border-radius: 3px; padding: 4px 8px;
             font-size: 10px; letter-spacing: .06em; }
.socials { display: flex; gap: var(--s2); }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--navy-line);
             transition: all var(--d-fast); }
.socials a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.crumbs { display: flex; gap: var(--s2); align-items: center; font-size: var(--t-xs); color: var(--muted);
          padding: var(--s3) 0; overflow-x: auto; white-space: nowrap; }
.crumbs a:hover { color: var(--ink); }

.pdp { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 1000px) { .pdp { grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: start; } }

/* Gallery */
.gal { position: relative; }
@media (min-width: 1000px) { .gal { position: sticky; top: 96px; } }
.gal__main { position: relative; background: var(--beige); overflow: hidden; }
.gal__main svg.art { width: 100%; height: 100%; }
.gal__slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
               overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__slides::-webkit-scrollbar { display: none; }
.gal__slides > div { scroll-snap-align: start; aspect-ratio: 3/4; background: var(--beige); position: relative; }
.gal__slides > div svg { width: 100%; height: 100%; }
.gal__dots { display: flex; gap: 6px; justify-content: center; padding: var(--s3) 0; }
.gal__dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--border); padding: 0; }
.gal__dots button.is-on { background: var(--navy); width: 18px; border-radius: 3px; }
.gal__badges { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.gal__wish { position: absolute; top: var(--s2); right: var(--s2); z-index: 2; width: 44px; height: 44px;
             display: grid; place-items: center; background: rgba(250,247,242,.9); border-radius: 50%; }
.gal__wish.is-on svg { fill: var(--gold); stroke: var(--gold); }
.gal__cap { position: absolute; left: var(--s3); bottom: var(--s3); z-index: 2;
            font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
            background: rgba(250,247,242,.85); padding: 4px 8px; }
.gal__thumbs { display: none; }
@media (min-width: 1000px) {
  .gal { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); }
  .gal__thumbs { display: grid; gap: var(--s2); align-content: start; }
  .gal__thumbs button { aspect-ratio: 3/4; background: var(--beige); border: 1px solid transparent; padding: 0; }
  .gal__thumbs button.is-on { border-color: var(--navy); }
  .gal__thumbs svg { width: 100%; height: 100%; }
  .gal__slides > div { aspect-ratio: 4/5; }
}

/* Info column */
.pdp__brand { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pdp h1 { font-family: var(--f-display); font-size: clamp(2rem,5.2vw,2.9rem); margin-top: 6px; }
.pdp__spec { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s2); }
.pdp__rate { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-sm); }
.pdp__rate a { border-bottom: 1px solid var(--border); }

.block { margin-top: var(--s6); }
.block__t { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
            color: var(--muted); margin-bottom: var(--s3); display: flex; justify-content: space-between; align-items: baseline; }

/* Volume selector */
.vols { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s2); }
.vol {
  position: relative; text-align: left; padding: var(--s4);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  min-height: 88px; transition: border-color var(--d-fast), background var(--d-fast), transform var(--d-fast) var(--e-out);
  cursor: pointer;
}
.vol:hover:not([aria-disabled="true"]) { border-color: var(--gold-hair); transform: translateY(-1px); }
.vol[aria-checked="true"] { border: 2px solid var(--navy); background: var(--milk); padding: calc(var(--s4) - 1px); }
.vol[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(11,15,26,.045) 6px 12px);
}
.vol > span, .vol--full > span > span { display: block; }
.vol__ml { font-family: var(--f-display); font-size: 22px; line-height: 1; font-variant-numeric: normal; }
.vol__price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 7px; }
.vol__perml { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.vol__sprays { font-size: 11px; color: var(--muted); margin-top: 1px; }
.vol__tick { position: absolute; top: 10px; right: 10px; color: var(--navy); opacity: 0; transition: opacity var(--d-fast); }
.vol[aria-checked="true"] .vol__tick { opacity: 1; }
.vol__badge {
  position: absolute; top: -8px; right: 8px; background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px;
}
.vol--full { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.vol--full .vol__price { margin-top: 4px; }
.vol__note { font-size: 11px; color: var(--muted); margin-top: 3px; }
.vol__soon { font-size: 11px; color: var(--warning); margin-top: 4px; }

/* Atomizer */
.atoms { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.atom {
  width: 44px; height: 44px; border-radius: 50%; padding: 3px; border: 2px solid transparent;
  transition: border-color var(--d-fast), transform var(--d-fast);
  position: relative;
}
.atom i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(11,15,26,.16); }
.atom[aria-checked="true"] { border-color: var(--gold); }
.atom:hover { transform: scale(1.06); }
.atom[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.atom[aria-disabled="true"]::after {
  content: ''; position: absolute; inset: 6px; background: linear-gradient(45deg, transparent 46%, var(--danger) 46% 54%, transparent 54%);
  border-radius: 50%;
}
.atom__plus { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
              font-size: 9px; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.atom-name { margin-top: var(--s4); font-size: var(--t-sm); }
.atom-name b { font-weight: 600; }

.upsell { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4);
          padding: var(--s3) var(--s4); border: 1px dashed var(--border); border-radius: var(--r-md);
          font-size: var(--t-sm); cursor: pointer; }
.upsell input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.upsell b { font-variant-numeric: tabular-nums; }

/* Price + buy */
.buy { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3); }
.price { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.price-old { font-size: 16px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-off { background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; }
.config-line { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; }
.stock { display: inline-flex; align-items: center; gap: 7px; margin-top: var(--s4); font-size: var(--t-sm); color: var(--success); }
.buy__row { display: flex; gap: var(--s2); margin-top: var(--s4); }
.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); flex: none; }
.qty button { width: 46px; height: 52px; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Sticky buy bar */
.stickybuy {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: var(--z-sticky);
  background: rgba(250,247,242,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: var(--s2) var(--s4); padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--s3);
  transform: translateY(130%); transition: transform var(--d-base) var(--e-out);
}
.stickybuy.is-on { transform: none; }
@media (min-width: 900px) { .stickybuy { display: none; } }
.stickybuy__img { width: 42px; height: 52px; background: var(--beige); flex: none; }
.stickybuy__img svg { width: 100%; height: 100%; }
.stickybuy__t { flex: 1; min-width: 0; }
.stickybuy__t b { display: block; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.stickybuy__t span { font-size: 11px; color: var(--muted); }

/* Notes pyramid */
.pyr { display: grid; gap: var(--s5); }
.pyr__lvl .label { display: block; margin-bottom: var(--s2); }
.accords { display: grid; gap: var(--s3); margin-top: var(--s5); }
.accord { display: grid; grid-template-columns: 100px 1fr 44px; align-items: center; gap: var(--s3); font-size: var(--t-sm); }
.accord__bar { height: 5px; background: var(--beige-deep); border-radius: 3px; overflow: hidden; }
.accord__bar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.accord__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--t-xs); }

/* Accordion */
.acc { border-top: 1px solid var(--border); }
.acc__i { border-bottom: 1px solid var(--border); }
.acc__h {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) 0; text-align: left; font-size: var(--t-sm); font-weight: 600; min-height: 56px;
}
.acc__h svg { transition: transform var(--d-base) var(--e-out); flex: none; color: var(--muted); }
.acc__i.is-open .acc__h svg { transform: rotate(180deg); }
.acc__c { display: none; padding-bottom: var(--s5); font-size: var(--t-sm); line-height: 1.75; color: #3B3833; }
.acc__i.is-open .acc__c { display: block; }
.acc__c p + p { margin-top: var(--s3); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 45%; }

/* Compare */
.compare { background: var(--card); border: 1px solid var(--border); padding: var(--s5); }
.compare table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.compare th { font-size: var(--t-xs); font-weight: 600; text-align: right; padding-bottom: var(--s3); }
.compare th:first-child { text-align: left; color: var(--muted); font-weight: 400; }
.compare td { padding: 9px 0; border-top: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
.compare td:first-child { text-align: left; color: var(--muted); }
.compare .hi { color: var(--gold); font-weight: 600; }
.compare__note { font-family: var(--f-display); font-size: 18px; margin-top: var(--s4); line-height: 1.4; }

/* Reviews summary */
.rsum { display: grid; gap: var(--s5); }
@media (min-width: 800px) { .rsum { grid-template-columns: 260px 1fr; gap: var(--s8); } }
.rsum__big { font-family: var(--f-display); font-size: 56px; line-height: 1; }
.rbar { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: var(--s2); font-size: var(--t-xs); color: var(--muted); }
.rbar__t { height: 5px; background: var(--beige-deep); border-radius: 3px; overflow: hidden; }
.rbar__t i { display: block; height: 100%; background: var(--gold); }

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.cat-head { padding-block: var(--s6) var(--s5); }
.cat-head h1 { font-family: var(--f-display); font-size: var(--t-h1); }
.cat-head p { color: var(--muted); margin-top: var(--s2); max-width: 60ch; font-size: var(--t-sm); }

.catbar {
  position: sticky; top: var(--header-h); z-index: var(--z-sticky);
  background: rgba(250,247,242,.95); backdrop-filter: blur(10px);
  border-block: 1px solid var(--border); padding: var(--s2) 0;
  display: flex; gap: var(--s2); align-items: center;
}
@media (min-width: 900px) { .catbar { top: 74px; } }
.catbar__btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  border: 1px solid var(--border); background: var(--card); border-radius: var(--r-sm); font-size: var(--t-xs);
}
.catbar__btn:hover { border-color: var(--navy); }
.catbar__count { margin-left: auto; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

.cat-layout { display: grid; gap: var(--s6); padding-block: var(--s5) var(--s8); }
@media (min-width: 1000px) { .cat-layout { grid-template-columns: 272px 1fr; gap: var(--s7); } }
.filters { display: none; }
@media (min-width: 1000px) { .filters { display: block; align-self: start; position: sticky; top: 150px; } }
.fgroup { border-bottom: 1px solid var(--border); padding-block: var(--s4); }
.fgroup > .label { display: block; margin-bottom: var(--s3); }
.fopt { display: flex; align-items: center; gap: var(--s3); min-height: 36px; font-size: var(--t-sm); cursor: pointer; }
.fopt input { width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.fopt em { margin-left: auto; font-style: normal; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.seg button { min-height: 40px; font-size: var(--t-xs); background: var(--card); transition: all var(--d-fast); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.is-on { background: var(--navy); color: var(--milk); }

.active-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.active-chips .chip { background: var(--navy); color: var(--milk); }
.active-chips .chip svg { width: 13px; height: 13px; }

/* Bottom sheet (mobile filters) */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-overlay) + 1);
  background: var(--milk); border-radius: 12px 12px 0 0; max-height: 88vh;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform var(--d-slow) var(--e-out);
}
.sheet.is-open { transform: none; }
.sheet__grab { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: var(--s2) auto; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s4) var(--s3);
               border-bottom: 1px solid var(--border); flex: none; }
.sheet__head h3 { font-family: var(--f-display); font-size: 22px; }
.sheet__body { flex: 1; overflow-y: auto; padding: 0 var(--s4) var(--s4); }
.sheet__foot { flex: none; padding: var(--s3) var(--s4); border-top: 1px solid var(--border);
               padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); display: flex; gap: var(--s2); }

/* ---------- TOAST ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 12px);
          z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--s2); width: min(420px, calc(100vw - 32px)); }
@media (min-width: 900px) { .toasts { left: auto; right: var(--s5); bottom: auto; top: 90px; transform: none; } }
.toast {
  background: var(--navy); color: var(--milk); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  display: flex; align-items: center; gap: var(--s3); font-size: var(--t-sm); box-shadow: var(--sh-lg);
  animation: toastIn var(--d-base) var(--e-out);
}
.toast svg { color: var(--gold-bright); flex: none; }
.toast a { margin-left: auto; color: var(--gold-bright); font-size: var(--t-xs); border-bottom: 1px solid currentColor; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- REVEAL ---------- */
/* Reveal is opt-in: only when JS is running, so content is never hidden without it. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }
