/* Solenne — demo storefront
   Palette: fog / paper / bark / moss / lichen with product tints.
   Type: Newsreader (display, optical sizes) + Instrument Sans (UI/body). */

:root {
  --fog: #ECEEE7;
  --paper: #F6F7F2;
  --bark: #1E2519;
  --moss: #36432C;
  --moss-deep: #27311F;
  --lichen: #A3AE91;
  --stone: #5C6355;
  --line: rgba(30, 37, 25, .14);
  --line-strong: rgba(30, 37, 25, .28);

  --t-rose: #EAD5CD;
  --t-sage: #D7DFCD;
  --t-oat: #E7DFD1;
  --t-sun: #EDE4C3;
  --t-mist: #CBD7D5;
  --t-lilac: #DCD7E1;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--bark);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bark); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 350; margin: 0; letter-spacing: -.012em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.9rem, 6.4vw, 6.6rem); line-height: .98; letter-spacing: -.028em; font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.25vw, 1.22rem); line-height: 1.6; color: var(--stone); max-width: 38ch; }
.muted { color: var(--stone); }
.small { font-size: .875rem; }

.section { padding-block: clamp(72px, 9vw, 140px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 44ch; color: var(--stone); margin-top: 14px; }
.text-link {
  font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 40% 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: .98rem; font-weight: 500; text-decoration: none; letter-spacing: .005em;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--moss); color: var(--paper); }
.btn--primary:hover { background: var(--moss-deep); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--bark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--moss-deep); color: #E3E7DC; text-align: center;
  font-size: .82rem; letter-spacing: .01em; padding: 9px var(--gutter);
}
.announce a { color: #fff; text-underline-offset: 3px; margin-left: 6px; }

.header {
  position: sticky; top: 0; z-index: 40; background: var(--fog);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-size: .94rem; padding-block: 6px; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; }
.logo__word { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .01em; font-weight: 400; line-height: 1; }

.tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: none; border: 0; position: relative; transition: background-color .2s;
}
.icon-btn:hover { background: rgba(30, 37, 25, .06); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--moss); color: var(--paper);
  font-size: .7rem; font-weight: 600; line-height: 19px; text-align: center;
}
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--fog);
  padding: 8px var(--gutter) 20px;
}
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; }
.mobile-nav.is-open { display: block; animation: fade .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.hero__copy h1 { max-width: 9.5ch; }
.hero__copy .lede { margin-top: clamp(20px, 2.4vw, 32px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero__proof {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px;
  margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--stone);
}
.hero__proof strong { display: block; color: var(--bark); font-weight: 500; font-size: .95rem; }

.stage {
  position: relative; aspect-ratio: 5 / 6; border-radius: 999px 999px var(--radius-m) var(--radius-m);
  background: linear-gradient(180deg, #E7D7CF 0%, #E4E1D7 62%, #DCDCD1 100%); overflow: hidden; isolation: isolate;
}
.stage__sun {
  position: absolute; z-index: -1; left: 50%; top: 9%; width: 64%; aspect-ratio: 1; margin-left: -32%;
  border-radius: 50%; background: radial-gradient(circle at 42% 38%, #FBF2E6 0%, #F4E1CF 55%, #EDD2BD 100%);
}
.stage__img { position: absolute; left: 9%; bottom: 0; width: 82%; }
.hero__visual { margin: 0; }
.stage__note {
  margin-top: 14px; text-align: right; font-family: var(--serif); font-style: italic;
  font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.35; color: var(--stone);
}

/* the one orchestrated moment: page-load sequence in the hero */
.js .hero [data-in] { opacity: 0; }
.js.is-ready .hero [data-in] { animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js.is-ready .stage__sun { animation: sunrise 1.8s var(--ease) both; animation-delay: 150ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sunrise { from { opacity: 0; transform: translateY(26%) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; background: var(--tint, var(--t-rose)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__media:hover img { transform: scale(1.035); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px;
  background: rgba(246, 247, 242, .86); font-size: .76rem; font-weight: 500; letter-spacing: .01em;
}
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; flex: 1; align-content: start; }
.card__title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; text-decoration: none; }
.card__title span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--stone); margin-top: 2px; }
.card__price { font-size: 1rem; font-weight: 500; }
.card__desc { grid-column: 1 / -1; font-size: .92rem; color: var(--stone); max-width: 36ch; }
.card__rating { grid-column: 1 / -1; margin-top: 6px; }
.card .quick-add { margin-top: 16px; }
.quick-add {
  width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; font-size: .93rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.quick-add:hover { background: var(--bark); color: var(--paper); border-color: var(--bark); }
.quick-add.is-added { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.quick-add svg { width: 16px; height: 16px; }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--stone); }
.stars {
  --pct: calc(var(--r, 5) / 5 * 100%);
  font-size: .9rem; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, var(--moss) var(--pct), rgba(54, 67, 44, .22) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Concern tiles ---------- */
.concerns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.concern {
  display: flex; flex-direction: column; min-height: clamp(260px, 24vw, 360px); padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--radius-m); background: var(--tint); text-decoration: none; position: relative; overflow: hidden;
}
.concern svg { width: clamp(72px, 7vw, 100px); height: auto; margin-bottom: auto; color: var(--moss); transition: transform .9s var(--ease); }
.concern:hover svg { transform: rotate(-6deg) scale(1.04); }
.concern h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); margin-top: 40px; }
.concern p { font-size: .93rem; color: var(--stone); margin-top: 8px; max-width: 26ch; }
.concern .text-link { margin-top: 20px; align-self: start; }

/* ---------- Formula (ingredient story) ---------- */
.formula { background: var(--moss-deep); color: #E6E9DF; }
.formula__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.formula__art { color: #E8CFC4; }
.formula__art svg { width: 100%; height: auto; }
.formula h2 { max-width: 17ch; }
.formula .lede { color: #B9C1AE; margin-top: 20px; max-width: 46ch; }
.ftable { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(230, 233, 223, .2); }
.frow {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) 4.5rem; gap: 4px 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid rgba(230, 233, 223, .2);
}
.frow__name { font-family: var(--serif); font-size: 1.22rem; }
.frow__role { font-size: .9rem; color: #B9C1AE; }
.frow__pct { text-align: right; font-variant-numeric: tabular-nums; font-size: .98rem; }
.frow__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(230, 233, 223, .12); margin-top: 10px; overflow: hidden; }
.frow__bar i { display: block; height: 100%; width: var(--w); background: #E8CFC4; border-radius: 3px; transform-origin: left; }
.js .frow__bar i { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .ftable.is-visible .frow__bar i { transform: scaleX(1); }
.formula__foot { margin-top: 22px; font-size: .88rem; color: #B9C1AE; }
.formula__foot a { color: #fff; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.score { font-family: var(--serif); font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: .9; font-weight: 300; letter-spacing: -.03em; }
.score-wrap .stars { font-size: 1.15rem; margin-top: 14px; }
.score-wrap p { margin-top: 14px; color: var(--stone); max-width: 28ch; }
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.review { border-top: 1px solid var(--line-strong); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.review h3 { font-size: 1.28rem; }
.review p { font-size: .96rem; color: #3E4537; }
.review footer { margin-top: auto; padding-top: 10px; font-size: .84rem; color: var(--stone); }
.review footer b { color: var(--bark); font-weight: 500; }
.verified { display: inline-flex; align-items: center; gap: 5px; }
.verified svg { width: 13px; height: 13px; }

/* ---------- Routine builder ---------- */
.routine { background: var(--paper); }
.routine__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem;
}
.step h3 { font-size: 1.4rem; }
.step__hint { font-size: .9rem; color: var(--stone); margin-top: 2px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--fog); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice label img { width: 52px; height: 64px; object-fit: cover; border-radius: 6px; }
.choice label b { font-weight: 500; display: block; font-size: .96rem; }
.choice label small { color: var(--stone); font-size: .82rem; }
.choice label .price { font-size: .92rem; }
.choice input:checked + label { border-color: var(--moss); background: #fff; box-shadow: inset 0 0 0 1px var(--moss); }
.choice input:focus-visible + label { outline: 2px solid var(--moss); outline-offset: 2px; }
.choice input:not(:checked) + label { opacity: .78; }

.summary { position: sticky; top: 96px; background: var(--fog); border-radius: var(--radius-m); padding: clamp(24px, 2.4vw, 32px); }
.summary h3 { font-size: 1.5rem; }
.summary ul { list-style: none; margin: 18px 0 0; padding: 0; font-size: .94rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary li:empty { display: none; }
.summary__totals { margin: 18px 0 22px; display: grid; gap: 6px; font-size: .94rem; }
.summary__totals div { display: flex; justify-content: space-between; }
.summary__totals .save { color: var(--moss); }
.summary__totals .total { font-size: 1.2rem; font-weight: 500; padding-top: 8px; }
.summary__totals s { color: var(--stone); font-weight: 400; margin-right: 8px; font-size: .95rem; }

/* ---------- Newsletter ---------- */
.letter { background: var(--t-oat); border-radius: var(--radius-m); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.letter p { margin-top: 14px; color: var(--stone); max-width: 40ch; }
.letter form { display: grid; gap: 10px; }
.field { display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.field:focus-within { border-color: var(--moss); }
.field input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0 16px; font-size: 1rem; outline: none; }
.field .btn { min-height: 46px; padding: 0 22px; }
.form-note { font-size: .82rem; color: var(--stone); min-height: 1.4em; padding-left: 18px; }
.form-note.is-ok { color: var(--moss); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--bark); color: #C9CEC0; margin-top: clamp(72px, 9vw, 140px); padding-block: clamp(56px, 6vw, 88px) 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .logo { color: #F1F3EC; }
.footer__about p { margin-top: 18px; max-width: 34ch; line-height: 1.65; }
.footer h4 { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: #F1F3EC; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(201, 206, 192, .18); font-size: .82rem; color: #9BA191; }
.socials { display: flex; gap: 18px; }

/* ---------- Product page ---------- */
.crumbs { font-size: .86rem; color: var(--stone); padding-block: 18px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); padding-block: 24px clamp(64px, 8vw, 120px); align-items: start; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; position: sticky; top: 92px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.thumb { padding: 0; border: 1px solid transparent; border-radius: 6px; overflow: hidden; background: none; width: 84px; aspect-ratio: 4 / 5; transition: border-color .2s, opacity .2s; opacity: .7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--bark); opacity: 1; }
.main-img { aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; background: var(--t-rose); }
.main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease; }
.main-img img.is-swapping { opacity: 0; }

.info { padding-top: 8px; }
.info h1 { font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.024em; }
.info .subtitle { font-size: 1.05rem; color: var(--stone); margin-top: 10px; }
.info__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info__price { font-size: 1.5rem; font-weight: 500; }
.info__price small { font-size: .85rem; color: var(--stone); font-weight: 400; margin-left: 6px; }
.info .rating a { color: var(--stone); text-underline-offset: 3px; }
.info__desc { margin-top: 22px; line-height: 1.65; max-width: 52ch; }
.benefits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.benefits li { display: flex; gap: 12px; align-items: center; }
.benefits svg { width: 18px; height: 18px; color: var(--moss); flex: none; }

.opt { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.opt legend { font-size: .9rem; font-weight: 500; margin-bottom: 12px; padding: 0; }
.opt legend span { font-weight: 400; color: var(--stone); }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size label {
  display: grid; gap: 2px; text-align: center; padding: 12px 8px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-m); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.size label b { font-weight: 500; }
.size label small { font-size: .8rem; color: var(--stone); }
.size input:checked + label { border-color: var(--bark); background: var(--paper); box-shadow: inset 0 0 0 1px var(--bark); }
.size input:focus-visible + label { outline: 2px solid var(--moss); outline-offset: 2px; }

.buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: rgba(30, 37, 25, .06); }
.qty button svg { width: 14px; height: 14px; }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--s { height: 36px; }
.qty--s button { width: 32px; }
.qty--s input { width: 26px; font-size: .9rem; }

.assure { display: grid; gap: 8px; margin-top: 18px; font-size: .88rem; color: var(--stone); }
.assure div { display: flex; gap: 10px; align-items: center; }
.assure svg { width: 18px; height: 18px; flex: none; }

.accordions { margin-top: 32px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-family: var(--serif); font-size: 1.25rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 14px; height: 14px; flex: none; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; margin-top: -.7px; background: currentColor; transition: transform .35s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0deg); }
.acc__body { padding: 0 0 24px; font-size: .95rem; line-height: 1.65; color: #3E4537; }
.acc[open] .acc__body { animation: rise .45s var(--ease); }
.acc__body p + p, .acc__body p + ul, .acc__body ul + p { margin-top: 12px; }
.acc__body ul { padding-left: 18px; margin: 0; }
.acc__body li + li { margin-top: 6px; }
.inci { font-size: .84rem; color: var(--stone); }

.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

.rsum { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.dist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.dist li { display: grid; grid-template-columns: 3.2rem 1fr 2.6rem; align-items: center; gap: 12px; }
.dist span:last-child { text-align: right; color: var(--stone); font-variant-numeric: tabular-nums; }
.dist .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.dist .bar i { display: block; height: 100%; width: var(--w); background: var(--moss); border-radius: 6px; }
.traits { display: grid; gap: 14px; margin-top: 28px; font-size: .86rem; }
.trait__scale { position: relative; height: 4px; background: var(--line); border-radius: 4px; margin: 8px 0 4px; }
.trait__scale i { position: absolute; top: 50%; left: var(--at); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--moss); }
.trait__ends { display: flex; justify-content: space-between; color: var(--stone); font-size: .78rem; }
.review-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(236, 238, 231, .96);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-buy.is-shown { transform: none; }
.sticky-buy__inner { display: flex; align-items: center; gap: 14px; }
.sticky-buy__inner div { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.3; }
.sticky-buy__inner b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { min-height: 46px; padding: 0 20px; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30, 37, 25, .36); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .5s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; }
.drawer__ship { padding: 16px 24px; font-size: .88rem; border-bottom: 1px solid var(--line); }
.drawer__ship .track { height: 4px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.drawer__ship .track i { display: block; height: 100%; width: 100%; background: var(--moss); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line.is-new { animation: rise .45s var(--ease); }
.line img { width: 76px; height: 95px; object-fit: cover; border-radius: 6px; }
.line__name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
.line__meta { font-size: .82rem; color: var(--stone); margin-top: 2px; }
.line__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line__remove { background: none; border: 0; padding: 4px 0; font-size: .82rem; color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--bark); }
.line__price { font-size: .95rem; font-weight: 500; text-align: right; }
.line__price s { display: block; color: var(--stone); font-weight: 400; font-size: .82rem; }
.drawer__empty { text-align: center; padding: 64px 12px; }
.drawer__empty p { color: var(--stone); margin: 10px 0 24px; }
.drawer__empty h3 { font-size: 1.5rem; }
.drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer__sub { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 500; }
.drawer__foot p { font-size: .82rem; color: var(--stone); margin: 6px 0 16px; }
.drawer__note { font-size: .82rem; text-align: center; margin-top: 10px; min-height: 1.2em; color: var(--moss); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-list .review:nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header__inner { height: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy h1 { max-width: 11ch; }
  .hero__visual { order: -1; width: min(100%, 560px); margin-inline: auto; }
  .stage { aspect-ratio: 1 / 1; max-height: 72vh; width: 100%; margin-inline: auto; }
  .stage__img { width: 66%; left: 17%; }
  .stage__sun { width: 52%; margin-left: -26%; top: 10%; }
  .formula__grid, .reviews__grid, .routine__grid, .rsum, .letter { grid-template-columns: minmax(0, 1fr); }
  .formula__art { order: 2; max-width: 340px; justify-self: center; }
  .summary { position: static; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; scrollbar-width: none; }
  .thumb { width: 68px; flex: none; }
  .sticky-buy { display: block; }
  body.has-sticky-buy .footer { padding-bottom: 100px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tools .icon-btn[href] { display: none; }
  .section-head { flex-direction: column; align-items: start; }
  .hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__proof div:last-child { grid-column: 1 / -1; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .grid-products { gap: 28px 12px; }
  .card__body { grid-template-columns: minmax(0, 1fr); }
  .card__title { font-size: 1.12rem; }
  .card__title span { font-size: .82rem; }
  .card__desc { display: none; }
  .card .quick-add { font-size: .86rem; min-height: 44px; }
  .quick-add .qa-price { display: none; }
  .badge { top: 10px; left: 10px; font-size: .7rem; }
  .concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concern { min-height: 240px; padding: 18px; }
  .concern p { display: none; }
  .concern h3 { font-size: 1.35rem; margin-top: 28px; }
  .frow { grid-template-columns: minmax(0, 1fr) auto; }
  .frow__role { grid-column: 1 / -1; grid-row: 2; }
  .review-list, .review-list--2 { grid-template-columns: minmax(0, 1fr); }
  .review-list .review:nth-child(3) { display: flex; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pairs .card { scroll-snap-align: start; }
  .pairs .card__desc { display: block; }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .qty { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .hero [data-in] { opacity: 1; }
}
