/* =====================================================================
   Wellora homepage sections — desktop-first, breakpoints at 1439 / 809
   ===================================================================== */

/* ---------- NAV ---------- */
@media (min-width: 810px) { :root { --nav-h: 112px; } }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--c-bg); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(84,74,66,.08); }
.nav__inner { height: var(--nav-h); padding: 0 20px; display: grid;
  grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto;
  align-items: center; row-gap: 16px; align-content: center; }
.nav__links { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 28px; justify-content: center; }
.nav__link { display: inline-block; height: 16px; overflow: hidden; line-height: 1; }
.nav__link > span { display: block; position: relative; transition: transform .45s var(--ease); }
.nav__link > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: 4px; }
.nav__link:hover > span { transform: translateY(calc(-100% - 4px)); }
.nav__logo { grid-column: 2; grid-row: 1; font-family: var(--f-display); font-size: 26px; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; color: var(--c-black); justify-self: center; }
.nav__ecom { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 20px; }
.nav__cart { position: relative; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--c-text); }
.nav__badge { position: absolute; top: -8px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-beige-dark); color: var(--c-text); font-family: var(--f-label); font-size: 9px; font-weight: 500; display: grid; place-items: center; }
.nav__menu { grid-column: 1; grid-row: 1; display: none; justify-self: start; }
.nav__mobile { display: none; }
.icon--16 { width: 16px; height: 16px; }
.icon--20 { width: 20px; height: 20px; }
.icon--35 { width: 35px; height: 35px; }
main { padding-top: var(--nav-h); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 908px; overflow: hidden; background: var(--c-card); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__media { width: 100%; height: 100%; object-fit: cover; }
/* subject stands left of centre: keep them in frame when narrow screens crop the sides */
.hero__media--subject-left { object-position: 38% center; }
.hero__card {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
  width: 481px; padding: 24px 24px 18px; border-radius: var(--r-hero-card);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card);
}
.hero__card-row { display: flex; align-items: center; gap: 16px; }
.hero__thumb { width: 68px; height: 68px; border-radius: 22px; background: var(--c-card); overflow: hidden; flex: none; }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero__copy h1 { font-size: 16px; }
.hero__dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.hero__dot { width: 4px; height: 4px; border-radius: 2px; background: var(--c-white); opacity: .7; transition: width .4s var(--ease), opacity .3s; }
.hero__dot.is-active { width: 20px; opacity: 1; }

/* ---------- BRAND HIGHLIGHTS ---------- */
.highlights { padding: 54px var(--pad-x); }
.highlights__list { max-width: 1240px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
.highlight { display: flex; gap: 20px; align-items: flex-start; }
.highlight .icon { margin-top: 4px; color: var(--c-dark); }
.highlight div { display: flex; flex-direction: column; gap: 8px; }
.highlight p { max-width: 210px; line-height: 1.15; }

/* ---------- BESTSELLERS ---------- */
.bestsellers { padding: 24px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.bestsellers__head { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.ticker { overflow: hidden; width: 100%; --ticker-gap: 16px; }
.ticker__track { display: flex; gap: var(--ticker-gap); width: max-content; padding-left: var(--ticker-gap); animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - var(--ticker-gap) / 2)); } }
.product {
  width: 465px; height: 527px; flex: none; border-radius: var(--r-product); background: var(--c-card);
  display: flex; flex-direction: column; align-items: center; padding: 48px 32px 40px; gap: 14px; position: relative;
  transition: transform .5s var(--ease);
}
.product:hover { transform: translateY(-6px); }
.product img { width: 218px; height: 246px; object-fit: contain; margin-top: 10px; transition: transform .6s var(--ease); }
.product:hover img { transform: scale(1.04); }
.product__price { margin-top: auto; width: 160px; height: 48px; border-radius: 16px; background: var(--c-bg); padding: 4px; display: flex; align-items: center; gap: 12px; }
.product__cta { width: 40px; height: 40px; border-radius: 12px; background: var(--c-white); flex: none; display: grid; place-items: center; color: var(--c-text); transition: background .3s, color .3s; }
.product:hover .product__cta { background: var(--c-text); color: var(--c-white); }
/* stretched link: the whole card opens the product page, the name is the accessible label */
.product__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product__link:focus-visible { outline: none; }
.product:has(.product__link:focus-visible) { outline: 2px solid var(--c-text); outline-offset: 3px; }
.product__price .label { flex: 1; text-align: center; padding-right: 12px; }

/* ---------- COLLECTIONS ---------- */
.collections { padding: 84px var(--pad-x); display: flex; flex-direction: column; gap: var(--gap-md); }
.collections__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.collection { position: relative; display: block; aspect-ratio: 456 / 640; border-radius: 26px; overflow: hidden; background: var(--c-card); }
.collection img, .collection video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collection:hover img, .collection:hover video { transform: scale(1.04); }
.collection__bar {
  position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); height: 60px;
  background: var(--c-green); display: flex; align-items: center; justify-content: center; padding: 0 24px;
  transition: background .3s, color .3s;
}
.collection__bar .label { color: var(--c-text); }
.collection__bar .icon { position: absolute; right: 20px; color: var(--c-text); transition: transform .4s var(--ease); }
.collection:hover .collection__bar { background: var(--c-white); }
.collection:hover .collection__bar .icon { transform: rotate(90deg); }

/* ---------- SOCIAL PROOF ---------- */
.proof { height: 908px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); background: var(--c-bg); }
.proof__intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 0 var(--pad-x); }
.proof__stars { display: flex; gap: 0; color: var(--c-green); margin-bottom: 4px; }
.proof__intro .btn { margin-top: 8px; }
.proof__panel { position: relative; overflow: hidden; }
.proof__slides, .proof__slide { position: absolute; inset: 0; }
.proof__slide { opacity: 0; transition: opacity 1s var(--ease); display: flex; justify-content: center; }
.proof__slide.is-active { opacity: 1; }
.proof__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote {
  position: relative; margin: 149px 0 0; width: 382px; height: 421px; padding: 24px; background: var(--c-green);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px;
}
.quote__text { font-family: var(--f-display); font-size: 24px; line-height: 1; letter-spacing: -.03em; color: var(--c-black); text-wrap: balance; }
.quote footer { display: flex; flex-direction: column; gap: 10px; }
.quote__role { font-family: var(--f-label); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--c-text-2); }
.proof__nav { position: absolute; left: 50%; top: 594px; transform: translateX(-50%); display: flex; gap: 8px; }

/* ---------- COMPARISON ---------- */
.compare { position: relative; height: 800px; padding: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.compare__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 54px; width: 100%; }
.compare .display--lg { font-size: 64px; }
.table { position: relative; width: 1100px; max-width: 100%; }
.table__head, .table__row { display: grid; grid-template-columns: 1fr 316px 1fr; }
.table__cell { display: flex; align-items: center; padding: 0 32px; min-height: 55px; }
.table__cell--mid { justify-content: center; color: var(--c-black); }
.table__head .table__cell { min-height: 48px; }
.table__head .label { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; }
.table__body {
  border-radius: var(--r-sm); background: var(--glass-table-bg);
  backdrop-filter: var(--glass-table-blur); -webkit-backdrop-filter: var(--glass-table-blur); overflow: hidden;
}
.table__row + .table__row { border-top: 1px solid rgba(84,74,66,.12); }
.table__row .table__cell:last-child { justify-content: center; }
.table__highlight {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); width: 316px; top: -8px; bottom: -14px;
  background: var(--c-green); border-radius: var(--r-sm);
}
.table__head { position: relative; z-index: 2; }
.table__body { position: relative; z-index: 2; }
.table__highlight { z-index: 1; }

/* ---------- INGREDIENTS ---------- */
.ingredients { padding: 56px var(--pad-x); display: flex; flex-direction: column; gap: var(--gap-md); }
.ingredients__head { display: flex; justify-content: space-between; align-items: center; gap: var(--gap-lg); }
.ingredients__desc { max-width: 360px; }
.slider { position: relative; display: flex; flex-direction: column; gap: 24px; }
.slider__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > li { scroll-snap-align: start; flex: none; }
.slider__nav { display: flex; gap: 8px; align-self: flex-end; }
.slider__nav--center { align-self: center; }
.ingredient { position: relative; width: 617px; height: 395px; border-radius: var(--r-md); overflow: hidden; background: var(--c-card); }
.ingredient img { width: 100%; height: 100%; object-fit: cover; }
.ingredient__overlay {
  position: absolute; left: 144px; top: 50%; transform: translateY(-50%); width: 320px; min-height: 125px;
  padding: 28px; border-radius: var(--r-overlay); background: var(--c-white);
  display: flex; flex-direction: column; gap: 12px;
}
.ingredient__name { font-size: 18px; }
.ingredient__overlay p { line-height: 1.15; }

/* ---------- BRAND STORY ---------- */
.story { height: 908px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
.story__media { position: relative; overflow: hidden; }
.story__media > img { width: 100%; height: 100%; object-fit: cover; }
.principles {
  position: absolute; left: 250px; top: 50%; transform: translateY(-50%); width: 437px;
  padding: 40px 32px; border-radius: var(--r-md); background: rgba(255,255,255,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 28px;
}
.principles__list { display: flex; flex-direction: column; }
.principle { display: grid; grid-template-columns: 88px 1fr; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(84,74,66,.18); }
.principle:last-child { border-bottom: 0; }
.principle div { display: flex; flex-direction: column; gap: 8px; }
.principle .label { font-size: 14px; }
.principle p { line-height: 1.15; max-width: 210px; }
.story__content { display: flex; align-items: center; justify-content: center; }
.story__circle {
  position: relative; width: 630px; height: 630px; border-radius: 50%; background: var(--c-green);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 80px;
}
.story__circle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, transparent 35%, var(--c-bg) 100%); pointer-events: none; }
.story__circle > * { position: relative; z-index: 1; }
.story__circle .display--lg { font-size: 54px; }
.story__circle .body { max-width: 380px; line-height: 1.15; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 24px var(--pad-x) 64px; display: flex; flex-direction: column; gap: var(--gap-lg); }
.tcard {
  width: calc((100% - 32px) / 3); min-width: 380px; border-radius: var(--r-xl); background: var(--c-white); padding: 56px 40px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.tcard > p { max-width: 430px; }
.tcard .divider { width: 100%; margin: 12px 0 18px; }
.tcard__product { display: flex; align-items: center; gap: 14px; text-align: left; }
.tcard__thumb { width: 76px; height: 76px; border-radius: 16px; background: var(--c-card); display: grid; place-items: center; }
.tcard__thumb img { width: 60px; height: 60px; object-fit: contain; }
.tcard__product > div { display: flex; flex-direction: column; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { padding: 64px var(--pad-x); }
.faq__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.faq .section-head { padding-left: 0; }
.faq .section-head .body { margin-top: 4px; }
.faq__item { border-bottom: 1px solid var(--c-beige-dark); }
.faq__item summary { list-style: none; display: grid; grid-template-columns: 54px 1fr 16px; align-items: center; gap: 0; padding: 22px 0; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { font-size: 16px; }
.faq__icon { color: var(--c-dark); transition: transform .4s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 16px 24px 54px; max-width: 520px; }
.faq__a p { line-height: 1.15; }

/* ---------- JOURNAL ---------- */
.journal { padding: 20px var(--pad-x) 60px; display: flex; flex-direction: column; gap: var(--gap-lg); }
.journal__row { display: flex; justify-content: center; gap: 36px; }
.article { width: 443px; display: flex; flex-direction: column; gap: 12px; }
.article img { width: 100%; aspect-ratio: 443 / 420; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 4px; transition: transform .6s var(--ease); }
.article:hover img { transform: translateY(-4px); }
.article__title { font-family: var(--f-body); font-size: 22px; line-height: 1.05; color: var(--c-text); }
.article__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--c-text); margin-top: 4px; }
.article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-text); }

/* ---------- SUBSCRIBE ---------- */
.subscribe { padding: 20px var(--pad-x) 80px; display: flex; justify-content: center; }
.subscribe__box { position: relative; width: 1200px; max-width: 100%; height: 440px; border-radius: 64px; overflow: hidden; background: var(--c-card); display: flex; align-items: center; justify-content: center; }
.subscribe__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.subscribe__card {
  position: relative; width: 541px; padding: 40px 48px; border-radius: var(--r-lg); background: rgba(255,255,255,.88);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.subscribe__title { font-family: var(--f-display); font-size: 32px; line-height: 1.05; letter-spacing: -.03em; color: var(--c-black); }
.subscribe__card .body { max-width: 290px; line-height: 1.15; }
.mailform { display: flex; align-items: center; width: 100%; max-width: 380px; height: 40px; padding: 0 0 0 4px; border-radius: 20px; background: var(--c-white); border: 1px solid var(--c-beige-dark); margin-top: 8px; }
.mailform__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px; font-size: 14px; color: var(--c-text); outline: none; }
.mailform__input::placeholder { color: var(--c-muted); }
.mailform .btn { height: 38px; margin-right: 0; }
.mailform--split { background: transparent; border: 0; padding: 0; gap: 8px; height: auto; }
.mailform--split .mailform__input { height: 40px; background: var(--c-white); border-radius: 20px; }
.mailform--split .btn { height: 40px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--c-green); padding: 60px 20px 24px; display: flex; flex-direction: column; gap: 56px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__wordmark { font-family: var(--f-display); font-size: var(--fs-wordmark); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; color: var(--c-black); }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer__about .body { line-height: 1.15; }
.footer__social { display: flex; gap: 12px; color: var(--c-black); margin-top: 4px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 229px); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col .label { margin-bottom: 8px; }
.footer__col a { font-size: 14px; color: var(--c-text); transition: color .2s; }
.footer__col a:hover { color: var(--c-black); }
.footer__region { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-text); margin-top: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; }
.footer__pay { display: flex; gap: 6px; }
.footer__fda { font-size: 11px; line-height: 1.5; color: var(--c-text); opacity: .75; max-width: 90ch; }
.pay { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 22px; border-radius: 4px; background: var(--c-white); }
.pay .icon { width: 29px; height: 12px; }

/* ---------- POPUP ---------- */
.popup { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .4s; }
.popup.is-open { opacity: 1; }
.popup__card { width: 740px; max-width: 100%; height: 370px; display: grid; grid-template-columns: 347px 1fr; overflow: hidden; background: var(--c-card-dark); transform: translateY(16px); transition: transform .5s var(--ease); }
.popup.is-open .popup__card { transform: none; }
.popup__img { width: 100%; height: 100%; object-fit: cover; }
.popup__panel { position: relative; padding: 24px 24px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.popup__close { position: absolute; top: 24px; right: 24px; color: var(--c-black); }
.popup__title { font-family: var(--f-display); font-size: 28px; letter-spacing: -.03em; color: var(--c-black); }
.popup .mailform { max-width: 345px; }

/* =====================================================================
   TABLET ≤ 1439
   ===================================================================== */
@media (max-width: 1439px) {
  :root { --fs-h2: 44px; --fs-h2-lg: 52px; --fs-wordmark: 80px; }
  .hero { height: 720px; }
  .highlights__list { grid-template-columns: repeat(2, 1fr); }
  .product { width: 380px; height: 460px; padding: 40px 24px 32px; }
  .product img { width: 180px; height: 204px; }
  .collections__row { grid-template-columns: repeat(2, 1fr); }
  .collection__bar { left: 16px; right: 16px; }
  .proof { height: auto; grid-template-columns: 1fr; }
  .proof__intro { padding: 72px var(--pad-x) 48px; }
  .proof__panel { height: 720px; }
  .quote { margin-top: 120px; }
  .proof__nav { top: 565px; }
  .compare { height: auto; padding: 72px 20px; }
  .compare .display--lg { font-size: 48px; }
  .table__head, .table__row { grid-template-columns: 1fr 220px 1fr; }
  .table__highlight { width: 220px; }
  .ingredients__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ingredient { width: 520px; height: 340px; }
  .ingredient__overlay { left: 24px; }
  .story { height: auto; grid-template-columns: 1fr; gap: 0; }
  .story__media { height: 640px; }
  .principles { left: 50%; transform: translate(-50%, -50%); }
  .story__content { padding: 48px 0; }
  .story__circle { width: 560px; height: 560px; padding: 56px; }
  .story__circle .display--lg { font-size: 44px; }
  .tcard { width: calc((100% - 16px) / 2); }
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .journal__row { flex-wrap: wrap; }
  .article { width: calc(50% - 18px); }
  .footer__grid { flex-direction: column; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* =====================================================================
   MOBILE ≤ 809
   ===================================================================== */
@media (max-width: 809px) {
  :root { --fs-h2: 36px; --fs-h2-lg: 40px; --fs-wordmark: 15vw; --pad-x: 16px; }
  .nav__inner { padding: 0 16px; grid-template-rows: auto; row-gap: 0; }
  /* wordmark has to hold one line between the menu button and the cart */
  .nav__logo { font-size: clamp(15px, 4.6vw, 22px); white-space: nowrap; }
  .nav__links, .nav__ecom .nav__link { display: none; }
  .nav__menu { display: block; }
  .nav__mobile { display: flex; flex-direction: column; gap: 20px; padding: 8px 16px 28px; background: var(--c-bg); }
  .nav__mobile[hidden] { display: none; }
  .hero { height: 88vh; min-height: 560px; }
  .hero__card { width: calc(100% - 32px); bottom: 24px; border-radius: 40px; padding: 18px 18px 14px; }
  .hero__card .btn { height: 44px; padding: 0 14px; }
  .highlights { padding: 40px var(--pad-x); }
  .highlights__list { grid-template-columns: 1fr; gap: 24px; }
  .bestsellers__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ticker__track { animation: none; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-right: 16px; scrollbar-width: none; }
  .ticker { overflow: visible; }
  .product { width: 300px; height: 400px; border-radius: 64px; padding: 32px 20px 24px; scroll-snap-align: start; }
  .product img { width: 150px; height: 170px; }
  .collections { padding: 56px var(--pad-x); }
  .collections__row { grid-template-columns: 1fr; }
  .collection { aspect-ratio: 4 / 5; }
  .proof__panel { height: 560px; }
  .quote { width: calc(100% - 32px); height: auto; min-height: 340px; margin-top: 60px; }
  .proof__nav { top: auto; bottom: 40px; }
  .table__head, .table__row { grid-template-columns: 1.4fr 1fr 1fr; }
  .table__cell { padding: 0 12px; font-size: 13px; }
  .table__highlight { width: calc(100% / 3.4); }
  .ingredient { width: 86vw; height: 300px; }
  .ingredient__overlay { width: calc(100% - 32px); left: 16px; padding: 20px; border-radius: 24px; }
  .story__media { height: 560px; }
  .story__media > img { object-position: 36% center; }  /* keep her face in frame when the column narrows */
  .principles { width: calc(100% - 32px); padding: 28px 20px; }
  .principle { grid-template-columns: 56px 1fr; padding: 16px 0; }
  .story__circle { width: 92vw; height: 92vw; padding: 32px; gap: 16px; }
  .story__circle .display--lg { font-size: 30px; }
  .tcard { width: 88vw; min-width: 0; padding: 36px 24px 28px; }
  .faq__item summary { grid-template-columns: 40px 1fr 16px; }
  .faq__a { padding-left: 40px; }
  .article { width: 100%; }
  .subscribe__box { height: auto; padding: 24px 16px; border-radius: 40px; }
  .subscribe__card { width: 100%; padding: 32px 20px; }
  .footer { padding: 48px 16px 24px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .popup__card { grid-template-columns: 1fr; height: auto; }
  .popup__img { height: 220px; }
}

/* =====================================================================
   SHARED COMMERCE COMPONENTS (every page): stepper, primary button, toast, cart drawer
   ===================================================================== */
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--c-bg); flex: none; }
.qty__btn { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; color: var(--c-text); transition: background .25s; }
.qty__btn:hover { background: var(--c-white); }
.qty__btn:focus-visible { outline: 2px solid var(--c-text); outline-offset: 1px; }
.qty__n { min-width: 28px; text-align: center; }
.buy__add {
  flex: 1; min-width: 0; height: 56px; border-radius: var(--r-btn); background: var(--c-text); color: var(--c-white);
  font-family: var(--f-label); font-weight: 500; font-size: var(--fs-label); letter-spacing: .02em; text-transform: uppercase;
  transition: background .25s, transform .35s var(--ease);
}
.buy__add:hover { background: var(--c-black); transform: translateY(-2px); }
.buy__add:focus-visible { outline: 2px solid var(--c-black); outline-offset: 3px; }
/* ---------- TOAST ---------- */
.toast {
  position: fixed; z-index: 70; top: calc(var(--nav-h) + 12px); right: 16px; width: min(360px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--c-white); box-shadow: var(--shadow-card), 0 20px 40px -16px rgba(50,44,43,.3);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-open { opacity: 1; transform: none; }
.toast .body { line-height: 1.3; }
.toast__action { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 12px; background: var(--c-text); color: var(--c-white); font-size: 12px; }
.toast__action:hover { background: var(--c-black); }

/* cart drawer (built by js/main.js) */
html:has(dialog.cart[open]) { overflow: hidden; }
.cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); height: 100%; max-height: 100%; padding: 0; border: 0;
  background: var(--c-bg); color: var(--c-text); box-shadow: -24px 0 60px -20px rgba(50,44,43,.35); }
.cart[open] { display: flex; flex-direction: column; animation: cart-in .45s var(--ease); }
.cart::backdrop { background: rgba(50,44,43,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes cart-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cart[open] { animation: none; } }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: calc(22px + env(safe-area-inset-top, 0px)) 24px 14px; }
.cart__title { font-family: var(--f-display); font-weight: 400; font-size: 32px; letter-spacing: -.03em; color: var(--c-black); }
.cart__count { font-family: var(--f-body); font-size: 16px; color: var(--c-text-2); letter-spacing: 0; }
.cart__head .circle-btn { background: var(--c-white); }
.cart__ship { display: flex; align-items: center; gap: 10px; margin: 0 24px 8px; padding: 12px 14px; border-radius: 14px; background: var(--c-green); color: var(--c-black); font-size: 13px; }
.cart__scroll { flex: 1; overflow-y: auto; padding: 8px 24px 16px; }
.cart__lines { display: flex; flex-direction: column; }
.cline { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-beige-dark); }
.cline__img { width: 76px; height: 86px; border-radius: 16px; background: var(--c-card); display: grid; place-items: center; overflow: hidden; }
.cline__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cline__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cline__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cline__name { line-height: 1.25; }
.cline__remove { color: var(--c-text-2); flex: none; padding: 2px; border-radius: 8px; }
.cline__remove:hover { color: var(--c-black); background: var(--c-card); }
.cline__plan, .cline__units { font-size: 12.5px; line-height: 1.35; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.qty--sm { padding: 3px; }
.qty--sm .qty__btn { width: 34px; height: 34px; border-radius: 13px; }
.qty--sm .qty__n { min-width: 22px; }
.cline__price { display: flex; align-items: baseline; gap: 8px; }
.cline__price s { font-size: 13px; color: var(--c-text-2); }
.cline__price b { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; color: var(--c-black); }
.cart__empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 56px 0; text-align: center; }
.cart__empty-title { font-family: var(--f-display); font-size: 26px; letter-spacing: -.03em; color: var(--c-black); }
.cart__empty .btn--solid { height: 48px; border-radius: var(--r-btn); }
.cart__xsell { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.cart__xsell ul { display: flex; flex-direction: column; gap: 10px; }
.xsell { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--c-white); }
.xsell__img { width: 56px; height: 62px; border-radius: 12px; background: var(--c-card); display: grid; place-items: center; }
.xsell__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.xsell__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xsell__body .body { font-size: 12px; line-height: 1.3; }
.xsell__btn { padding: 10px 14px; border-radius: 14px; background: var(--c-bg); font-size: 12px; transition: background .25s, color .25s; }
.xsell__btn:hover { background: var(--c-text); color: var(--c-white); }
.cart__foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--c-beige-dark); background: var(--c-white); display: flex; flex-direction: column; gap: 8px; }
.cart__row { display: flex; justify-content: space-between; font-size: 14px; }
.cart__row b { font-weight: 500; color: var(--c-black); font-variant-numeric: tabular-nums; }
.cart__row--save b { color: #2f7a3a; }
.cart__sub-note { font-size: 12px; line-height: 1.4; }
.cart__checkout { width: 100%; margin-top: 6px; flex: none; }
.cart__msg { padding: 10px 12px; border-radius: 12px; background: var(--c-bg); font-size: 13px; line-height: 1.4; }
.cart__guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; }
.cart__row[hidden], .cart__foot[hidden] { display: none; }
@media (max-width: 809px) {
  .toast { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .cart__head { padding-inline: 18px; }
  .cart__ship { margin-inline: 18px; }
  .cart__scroll { padding-inline: 18px; }
  .cart__foot { padding-inline: 18px; }
}
