/* =========================================================
   DENTAVIA — Design System
   Clean dermocosmetic aesthetic (The Ordinary × Avène)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — DentaVia violet / pink / deep indigo */
  --ink:        #1d1730;   /* deep purple-black */
  --ink-soft:   #574d6b;
  --ink-muted:  #8b849b;
  --line:       #ece7f2;
  --paper:      #ffffff;
  --paper-2:    #faf7fd;   /* soft lavender-white tint */
  --mint:       #ead9fb;   /* soft lilac tint */
  --mint-2:     #f4ecfc;
  --brand:      #8b3dd6;   /* violet (primary) */
  --brand-deep: #5a2ba0;
  --brand-ink:  #3a2472;   /* deep indigo (packaging) */
  --accent:     #e14a9b;   /* magenta pink */
  --grad:       linear-gradient(120deg, #8b3dd6 0%, #e14a9b 100%);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.2vw, 1.02rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.9rem + 4vw, 5.2rem);

  /* Space & shape */
  --gutter: clamp(1.2rem, 5vw, 4rem);
  --maxw: 1280px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(20,32,30,.04), 0 12px 40px -18px rgba(20,32,30,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.muted { color: var(--ink-muted); }
.center { text-align: center; }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .9em; --pad-x: 1.6em;
  display: inline-flex; align-items: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--brand-ink); color: #fff; }
.btn--solid:hover { background: var(--brand-deep); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { color: var(--brand); }
.btn--ghost:hover { color: var(--brand-ink); }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================
   Intro — animated logo reveal
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 2rem;
  background: radial-gradient(120% 100% at 50% 30%, var(--mint-2) 0%, #fff 65%);
  animation: introIn .4s var(--ease) both;
  overflow: hidden;
}
.intro.is-done { opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
@keyframes introIn { from { opacity: 0; } to { opacity: 1; } }

.intro__stage { position: relative; width: min(82vw, 400px); aspect-ratio: 578 / 259; }

/* 1) smile swoosh draws first, sitting exactly where the logo's smile lives */
.intro__smile {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  clip-path: inset(0 100% 0 0);   /* revealed left → right, like it's being drawn */
  animation: introDraw .8s .15s cubic-bezier(.45,0,.25,1) forwards;
}
@keyframes introDraw { to { clip-path: inset(0 0 0 0); } }

/* 2) full logo resolves in on top (its smile overlaps the drawn one) */
.intro__logo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; animation: introLogoIn .6s .7s ease forwards;
}
@keyframes introLogoIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .intro__smile { display: none; }
  .intro__logo { animation-duration: .01s; animation-delay: 0s; }
}

/* =========================================================
   Announcement bar
   ========================================================= */
.announce {
  background: var(--brand-ink);
  color: #eaf4f1;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-align: center;
  padding: .6em 1em;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 40px; width: auto; display: block; }
.site-footer .brand__logo { height: 44px; }
.brand__spark { transform: translateY(-6px); }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav__links a { font-size: var(--step--1); letter-spacing: 0.02em; color: var(--ink-soft); position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1.2rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--paper-2); }
.cart-count {
  position: relative;
}
.cart-count[data-count]::after {
  content: attr(data-count);
  position: absolute; top: -2px; right: -2px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-family: var(--font-mono);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 100px; display: grid; place-items: center;
}
.nav__toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero__title {
  font-size: var(--step-4);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-block: 1rem 1.2rem;
}
.hero__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__smile { width: clamp(160px, 22vw, 240px); height: auto; margin: -0.4rem 0 1.4rem; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__media {
  position: relative;
  aspect-ratio: 4/5;
  background:
    radial-gradient(120% 100% at 70% 20%, var(--mint) 0%, var(--mint-2) 45%, var(--paper-2) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero__media img { width: 78%; height: auto; filter: drop-shadow(0 30px 50px rgba(20,32,30,.22)); }
/* Full-bleed photo variant */
.hero__media--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.hero__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--step--1);
  padding: .6rem .9rem; border-radius: 100px;
}

/* Trust strip */
.trust {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
}
.trust__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.trust__item { display: flex; align-items: center; gap: .6rem; font-size: var(--step--1); color: var(--ink-soft); }
.trust__item svg { color: var(--brand); flex: none; }

/* =========================================================
   Section heading
   ========================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.sec-head h2 { font-size: var(--step-3); max-width: 18ch; }
.sec-head p { color: var(--ink-muted); max-width: 40ch; }

/* =========================================================
   Product grid
   ========================================================= */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; place-items: center;
  transition: background .4s var(--ease);
}
.card__media img { width: 70%; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05) translateY(-4px); }
/* Photo (non-cutout) product images fill the frame */
.card__media.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp__media.is-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.summary__media.is-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card__tag {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--line); color: var(--brand);
  padding: .3rem .55rem; border-radius: 100px;
}
.card__add {
  position: absolute; inset-inline: .8rem; bottom: .8rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: .7em; text-align: center;
  font-size: var(--step--1); font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
}
.card:hover .card__add { opacity: 1; transform: translateY(0); }
.card__add:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.card__body { padding: 1rem .2rem 0; }
.card__ey { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-muted); letter-spacing: .06em; }
.card__name { font-size: var(--step-1); font-weight: 600; margin-block: .2rem .1rem; letter-spacing: -0.02em; }
.card__desc { font-size: var(--step--1); color: var(--ink-soft); }
.card__name a:hover { color: var(--brand); }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .7rem; gap: .5rem; }
.card__price { font-family: var(--font-mono); font-size: var(--step-0); }
.card__mini {
  font-size: var(--step--1); font-weight: 500; color: var(--brand-ink);
  border: 1px solid var(--line); border-radius: 100px; padding: .45em 1em;
  transition: background .2s, color .2s, border-color .2s;
}
.card__mini:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* =========================================================
   Split / science feature
   ========================================================= */
.feature { background: var(--paper-2); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature__media { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 30% 20%, var(--mint) 0%, var(--mint-2) 50%, #fff 100%); }
.feature__media--video { aspect-ratio: 4 / 5; background: #0c0a14; overflow: hidden; }
.feature__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h2 { font-size: var(--step-3); margin-block: 1rem 1.2rem; }
.feature__list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.feature__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.feature__num { font-family: var(--font-mono); color: var(--brand); font-size: var(--step--1); padding-top: .2rem; }
.feature__list h4 { font-size: var(--step-0); margin-bottom: .2rem; }
.feature__list p { font-size: var(--step--1); color: var(--ink-soft); }

/* =========================================================
   Color-correction theory
   ========================================================= */
.theory { background: var(--paper-2); overflow: hidden; }
.theory__head { max-width: 60ch; margin: 0 auto 3.5rem; text-align: center; }
.theory__head h2 { font-size: var(--step-3); margin: 1rem 0 1rem; }
.theory__head p { color: var(--ink-soft); }
.theory__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

/* Wheel */
.theory__wheel { position: relative; display: grid; place-items: center; justify-self: center; padding: 3rem 0; }
.wheel {
  --size: clamp(240px, 32vw, 340px);
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(from 0deg,
    #8b3dd6 0deg, #b23bd0 25deg, #e14a9b 55deg, #ef4444 90deg,
    #f97316 120deg, #f5b70a 150deg, #fde047 180deg, #b6e025 205deg,
    #22c55e 240deg, #06b6d4 285deg, #3b82f6 315deg, #6d54e6 345deg, #8b3dd6 360deg);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -25px rgba(90,43,160,.5);
  animation: wheelin .9s var(--ease) both;
}
@keyframes wheelin { from { transform: rotate(-25deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.wheel__hole { width: 52%; height: 52%; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 2px 10px rgba(20,16,40,.08); }
.wheel__line {
  position: absolute; top: 3rem; bottom: 3rem; left: 50%; width: 0;
  border-left: 2px dashed rgba(58,36,114,.45); transform: translateX(-1px);
}
.wheel__vs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border: 1px solid var(--line); color: var(--brand-ink);
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .05em;
  padding: .4rem .8rem; border-radius: 100px; box-shadow: var(--shadow);
}
.wheel__mark {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 600; font-size: var(--step--1); padding: .45rem .8rem; border-radius: 100px;
}
.wheel__mark .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.wheel__mark--top { top: .6rem; }
.wheel__mark--bottom { bottom: .6rem; }

/* Pairs */
.theory__side h3 { font-size: var(--step-1); margin-bottom: 1.2rem; }
.pairs { display: grid; gap: .7rem; margin-bottom: 2rem; }
.pair {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; font-weight: 500; font-size: var(--step-0);
}
.pair--active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.pair .swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }
.pair__x { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-muted); letter-spacing: .04em; }

/* Before / after tooth */
.theory__result { display: flex; align-items: center; justify-content: center; gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.tooth-fig { position: relative; text-align: center; margin: 0; }
.tooth { width: clamp(52px, 8vw, 68px); height: auto; filter: drop-shadow(0 8px 14px rgba(20,16,40,.14)); }
.tooth-fig figcaption { margin-top: .5rem; font-weight: 600; font-size: var(--step--1); display: flex; flex-direction: column; }
.tooth-fig small { color: var(--ink-muted); font-weight: 400; }
.tooth-spark { position: absolute; top: -6px; right: 6px; color: var(--accent); font-size: 18px; animation: twinkle 2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
.tooth-arrow { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.tooth-drop { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: #fff; background: var(--grad); padding: .25rem .5rem; border-radius: 100px; }
.theory__note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 1.4rem; }

/* =========================================================
   Video — hero background, sections, gallery
   ========================================================= */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__media--photo .hero__badge { z-index: 2; }

.vsection { background: var(--paper-2); }
.vplayer {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: radial-gradient(120% 100% at 50% 0%, #241a3d, #0c0a14);
  display: flex; justify-content: center; padding: clamp(1rem, 3vw, 2.2rem);
}
.vplayer__video {
  display: block; width: auto; height: auto;
  max-width: min(380px, 100%); aspect-ratio: 9 / 16; max-height: 80vh;
  object-fit: cover; border-radius: var(--radius); background: #000;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}

/* Carousel */
.carousel-nav { display: flex; gap: .6rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--ink);
  background: #fff; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.carousel-btn:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.carousel-btn:active { transform: scale(.94); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line); }
.vcarousel { position: relative; overflow: hidden; }
.vcarousel__track {
  display: flex; gap: clamp(.8rem, 2vw, 1.3rem);
  padding: 0 var(--gutter) 1rem;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  touch-action: pan-y;
}
.vcard {
  position: relative; margin: 0; flex: 0 0 auto;
  width: clamp(230px, 30vw, 320px);
  aspect-ratio: 9 / 16; border-radius: var(--radius-lg);
  overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow);
  user-select: none; -webkit-user-select: none;
}
.vcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--brand-ink); font-size: 1.1rem; text-indent: 3px;
  background: linear-gradient(180deg, rgba(29,23,48,.12), rgba(29,23,48,.45));
  transition: opacity .3s var(--ease); pointer-events: none;
}
.vcard__play::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); position: absolute; }
.vcard__play { position: absolute; }
.vcard.is-playing .vcard__play { opacity: 0; }


/* =========================================================
   Lifestyle band
   ========================================================= */
.band { position: relative; min-height: clamp(340px, 52vh, 560px); display: grid; overflow: hidden; padding: 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: relative; display: grid; align-items: center; background: linear-gradient(90deg, rgba(29,23,48,.78) 0%, rgba(29,23,48,.5) 45%, rgba(29,23,48,.08) 100%); }
.band__overlay h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; margin-top: 1rem; }

/* =========================================================
   Newsletter
   ========================================================= */
.news { background: var(--brand-ink); color: #eaf4f1; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.news h2 { font-size: var(--step-3); color: #fff; margin-bottom: .8rem; }
.news p { color: #b7d2cc; max-width: 46ch; margin: 0 auto 2rem; }
.news__form { display: flex; gap: .6rem; max-width: 460px; margin-inline: auto; flex-wrap: wrap; }
.news__form input {
  flex: 1 1 200px; padding: .95em 1.2em; border-radius: 100px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: var(--step--1);
}
.news__form input::placeholder { color: #9dbdb7; }
.news__form .btn--solid { background: #fff; color: var(--brand-ink); }
.news__form .btn--solid:hover { background: var(--mint-2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand p { color: var(--ink-muted); max-width: 30ch; margin-top: 1rem; font-size: var(--step--1); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; font-weight: 500; }
.footer__col a { display: block; padding: .3rem 0; color: var(--ink-soft); font-size: var(--step--1); }
.footer__col a:hover { color: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom p { font-size: var(--step--1); color: var(--ink-muted); font-family: var(--font-mono); }

/* =========================================================
   Cart drawer
   ========================================================= */
.overlay { position: fixed; inset: 0; background: rgba(20,32,30,.35); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 90; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 100; transform: translateX(100%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: var(--step-1); }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); display: flex; flex-direction: column; gap: 1rem; }
.drawer__empty { color: var(--ink-muted); text-align: center; margin-top: 3rem; font-size: var(--step--1); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; }
.line__media { aspect-ratio: 1; background: var(--paper-2); border-radius: var(--radius); display: grid; place-items: center; }
.line__media img { width: 70%; }
.line__name { font-weight: 600; font-size: var(--step-0); }
.line__meta { font-size: var(--step--1); color: var(--ink-muted); font-family: var(--font-mono); }
.line__qty { display: inline-flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.line__qty button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.line__price { font-family: var(--font-mono); }
.line__remove { font-size: var(--step--1); color: var(--ink-muted); text-decoration: underline; margin-top: .3rem; }
.drawer__foot { padding: 1.4rem var(--gutter); border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--font-mono); margin-bottom: 1rem; font-size: var(--step-1); }

/* =========================================================
   Product detail page (PDP)
   ========================================================= */
.crumb { display: flex; gap: .5rem; align-items: center; padding-top: 2rem; font-size: var(--step--1); color: var(--ink-muted); font-family: var(--font-mono); }
.crumb a:hover { color: var(--brand); }
.crumb__here { color: var(--ink); }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: 2rem; }
.pdp__media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: radial-gradient(120% 110% at 65% 20%, color-mix(in srgb, var(--accent) 22%, #fff) 0%, var(--mint-2) 55%, var(--paper-2) 100%);
  display: grid; place-items: center; overflow: hidden; position: sticky; top: 92px;
}
.pdp__media img { width: 74%; filter: drop-shadow(0 30px 50px rgba(20,16,40,.22)); }
.pdp__name { font-size: var(--step-3); margin: .6rem 0 .3rem; }
.pdp__subtitle { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 1.2rem; }
.pdp__price { font-family: var(--font-mono); font-size: var(--step-2); margin-bottom: 1.2rem; }
.pdp__blurb { color: var(--ink-soft); margin-bottom: 2rem; max-width: 46ch; }
.pdp__buy { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; margin-bottom: 1.6rem; }
.btn--lg { --pad-y: 1.05em; --pad-x: 1.8em; flex: 1; justify-content: center; }
.qty { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 100px; padding: 0 .4rem; }
.qty button { width: 38px; height: 44px; font-size: 18px; color: var(--ink); display: grid; place-items: center; }
.qty span { min-width: 28px; text-align: center; font-family: var(--font-mono); }
.pdp__usage { font-size: var(--step--1); color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.6rem; }
.pdp__trust { display: grid; gap: .5rem; font-size: var(--step--1); color: var(--ink-soft); }

.pdp__section { margin-top: clamp(2rem, 5vw, 4rem); }

/* Benefits grid */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: border-color .3s, transform .3s var(--ease); }
.benefit:hover { border-color: var(--brand); transform: translateY(-3px); }
.benefit h4 { font-size: var(--step-1); margin-bottom: .4rem; }
.benefit p { font-size: var(--step--1); color: var(--ink-soft); }

/* Ingredients */
.ingredients-sec { background: var(--paper-2); padding-block: clamp(3.5rem, 8vw, 7rem); }
.ingredients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.5rem; }
.ing { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.ing__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; }
.ing h4 { font-size: var(--step-0); margin-bottom: .2rem; }
.ing p { font-size: var(--step--1); color: var(--ink-soft); }

/* =========================================================
   Checkout
   ========================================================= */
.nav__back { font-size: var(--step--1); color: var(--ink-soft); }
.nav__back:hover { color: var(--brand); }
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.checkout__title { font-size: var(--step-3); }
.checkout__sub { margin: .5rem 0 2rem; }

.field-group { border: 0; padding: 0; margin: 0 0 2rem; }
.field-group legend { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: .8em 1em; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.field textarea { resize: vertical; }

.ship-type { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .5rem 0 1rem; }
.ship-opt { position: relative; display: block; cursor: pointer; }
.ship-opt input { position: absolute; opacity: 0; }
.ship-opt span { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.ship-opt small { color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--step--1); }
.ship-opt input:checked + span { border-color: var(--brand); background: var(--mint-2); }

.checkout__reassure { text-align: center; font-size: var(--step--1); color: var(--ink-muted); margin-top: 1rem; }

.checkout__summary { position: sticky; top: 92px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.checkout__summary h2 { font-size: var(--step-1); margin-bottom: 1.2rem; }
.summary__items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.summary__line { display: grid; grid-template-columns: 48px 1fr auto; gap: .8rem; align-items: center; }
.summary__media { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.summary__media img { width: 72%; }
.summary__qty { position: absolute; top: -8px; right: -8px; background: var(--brand-ink); color: #fff; font-size: 10px; font-family: var(--font-mono); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.summary__info { display: flex; flex-direction: column; }
.summary__info strong { font-size: var(--step-0); }
.summary__info small { color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--step--1); }
.summary__price { font-family: var(--font-mono); font-size: var(--step--1); }
.summary__row { display: flex; justify-content: space-between; font-size: var(--step--1); padding: .3rem 0; color: var(--ink-soft); }
.summary__total { font-family: var(--font-mono); font-size: var(--step-1); color: var(--ink); border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; }
.summary__note { font-size: var(--step--1); color: var(--ink-muted); margin-top: .8rem; }

/* Confirmation */
.confirm { padding-block: clamp(3rem, 8vw, 6rem); }
.confirm__card { max-width: 560px; margin-inline: auto; text-align: center; }
.confirm__check { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 1.5rem; }
.confirm__card h1 { font-size: var(--step-2); margin-bottom: .8rem; }
.confirm__summary { text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; margin: 2rem 0; }

/* =========================================================
   Search overlay
   ========================================================= */
.search { position: fixed; inset: 0; z-index: 120; background: #fff; overflow-y: auto; animation: introIn .2s ease both; }
.search__head { display: flex; align-items: center; gap: .8rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.search__head input { flex: 1; font: inherit; font-size: var(--step-1); border: 0; outline: 0; padding: .5rem 0; background: transparent; color: var(--ink); }
.search__results { padding-block: 1rem 3rem; display: grid; gap: .3rem; }
.search__item { display: grid; grid-template-columns: 54px 1fr auto; gap: 1rem; align-items: center; padding: .7rem .5rem; border-radius: var(--radius); color: var(--ink); }
.search__item:hover, .search__item:active { background: var(--paper-2); }
.search__thumb { aspect-ratio: 1; background: var(--paper-2); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.search__thumb img { width: 80%; }
.search__thumb.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.search__info { display: flex; flex-direction: column; }
.search__info strong { font-size: var(--step-0); }
.search__info small { color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--step--1); }
.search__price { font-family: var(--font-mono); font-size: var(--step--1); }
.search__empty { color: var(--ink-muted); padding: 2.5rem .5rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16/12; }
  .feature__grid { grid-template-columns: 1fr; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .3rem var(--gutter) 1rem; box-shadow: var(--shadow);
  }
  body.nav-open .nav__links { display: flex; }
  .nav__links a { padding: 1rem .1rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: inline-grid; }
  .card__add { opacity: 1; transform: none; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; aspect-ratio: 4/4; }
  .benefits { grid-template-columns: 1fr; }
  .ingredients { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; order: -1; }
  .theory__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
