/* =========================================================
   Natura Bella - design system
   ========================================================= */
:root {
  --moss-900: #2b3324;
  --moss-700: #4c5b3f;
  --moss-500: #6f8257;
  --moss-300: #a8bb8d;
  --lichen-100: #e9eedd;
  --lichen-50: #f6f7ee;
  --stone-100: #f0ede3;
  --stone-300: #d9d3c2;
  --stone-700: #5b5648;
  --cream: #fffdf6;
  --macaron-pink: #f3d6cf;
  --macaron-yellow: #f1e3b8;
  --ink: #2a2c22;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -22px rgba(43,51,36,0.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--moss-900); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
a { color: var(--moss-700); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--moss-900); color: #fff;
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

:focus-visible { outline: 3px solid var(--moss-500); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,246,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-300);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--moss-900); letter-spacing: .02em; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--moss-700); border-radius: 50%;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--moss-700); cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.4rem; }
.site-nav a { font-weight: 600; font-size: .95rem; position: relative; padding: .2rem 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--moss-700);
  transition: width .25s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--moss-900); }
.cart-link { position: relative; display: inline-flex; color: var(--moss-900); }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--moss-700); color: #fff;
  font-size: .7rem; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-badge.is-empty { opacity: .55; }
.cart-badge.bump { animation: badgeBump .4s ease; }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--lichen-50);
    flex-direction: column; align-items: flex-start; padding: 5.5rem 1.6rem 2rem; gap: 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  position: relative; overflow: hidden; isolation: isolate;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; min-height: 44px; transition: color .25s ease, transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: -1;
  transition: left .3s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--moss-700); color: #fff; }
.btn--primary::before { background: var(--moss-900); }
.btn--primary:hover::before { left: 0; }
.btn--ghost { background: transparent; border-color: var(--moss-700); color: var(--moss-700); }
.btn--ghost::before { background: var(--moss-700); }
.btn--ghost:hover { color: #fff; }
.btn--ghost:hover::before { left: 0; }
.btn--on-dark { border-color: var(--lichen-100); color: var(--lichen-100); }
.btn--on-dark::before { background: var(--lichen-100); }
.btn--on-dark:hover { color: var(--moss-900); }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; min-height: 36px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero / home composition ---------- */
.hero {
  position: relative; padding: 3rem 0 2rem; overflow: hidden;
}
.hero__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
}
.hero__ring {
  position: relative; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  background: var(--lichen-100); box-shadow: var(--shadow-soft);
  justify-self: center; width: min(100%, 460px);
}
.hero__ring img { width: 100%; height: 100%; object-fit: cover; }
.hero__ring-svg { position: absolute; inset: -6%; width: 112%; height: 112%; z-index: 2; pointer-events: none; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero__lede { font-size: 1.15rem; max-width: 36ch; color: var(--stone-700); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }

.marquee {
  overflow: hidden; border-top: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300);
  background: var(--lichen-100); padding: .9rem 0;
}
.marquee__track {
  display: flex; gap: 2.5rem; white-space: nowrap; width: max-content;
  animation: marqueeScroll 24s linear infinite;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--moss-700);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Scallop / dividers ---------- */
.scallop-divider { display: block; width: 100%; height: 36px; color: var(--moss-300); }
.grain-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: multiply; z-index: 1;
}

/* ---------- Sections / reveal ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal--1.in-view { transition-delay: .08s; }
.reveal.reveal--2.in-view { transition-delay: .16s; }
.reveal.reveal--3.in-view { transition-delay: .24s; }
.reveal.reveal--4.in-view { transition-delay: .32s; }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1px solid var(--stone-300); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -20px rgba(43,51,36,0.45); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--moss-500); }
.product-card__name { font-size: 1.1rem; margin: 0; }
.product-card__price { font-weight: 700; color: var(--moss-900); margin-top: auto; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; }

.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); overflow: visible; } }

/* ---------- Signature feature ---------- */
.formula-finder {
  background: var(--moss-900); color: var(--lichen-100); border-radius: var(--radius-lg);
  padding: 2.5rem; display: grid; gap: 1.8rem; grid-template-columns: 1fr 1fr; align-items: start;
  position: relative; overflow: hidden;
}
.formula-finder h2, .formula-finder h3 { color: var(--lichen-100); }
.formula-finder__options { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  border: 1.5px solid var(--moss-300); color: var(--lichen-100); background: transparent;
  padding: .5em 1.1em; border-radius: 999px; cursor: pointer; font-size: .9rem; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--lichen-100); color: var(--moss-900); border-color: var(--lichen-100); }
.formula-finder__result {
  background: rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 1.4rem; min-height: 180px;
}
.formula-finder__result .product-mini { display: flex; gap: 1rem; align-items: center; }
.formula-finder__result .product-mini img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) { .formula-finder { grid-template-columns: 1fr; } }

/* ---------- Generic components for inner pages ---------- */
.page-hero {
  background: var(--lichen-100); padding: 3.4rem 0 2.6rem; text-align: center; position: relative;
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { max-width: 50ch; margin: 0 auto; color: var(--stone-700); }

.breadcrumbs { font-size: .85rem; color: var(--stone-700); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--moss-700); }
.breadcrumbs span[aria-hidden] { margin: 0 .4em; }

.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; margin-bottom: 1em; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }

.legal-toc {
  background: var(--stone-100); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; max-width: 70ch; margin: 0 auto 2rem;
}
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ol { padding-left: 1.2em; }
.legal-toc a { font-weight: 600; }

.notice {
  border-radius: var(--radius-sm); padding: 1rem 1.3rem; border: 1.5px solid var(--moss-300);
  background: var(--lichen-50); max-width: 70ch; margin: 0 auto 1.5rem;
}
.notice--warning { border-color: var(--macaron-pink); background: #fdf2ef; }
.notice--success { border-color: var(--moss-500); background: var(--lichen-100); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.2rem; max-width: 640px; }
.form-grid--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid--2col { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75em .9em; border: 1.5px solid var(--stone-300); border-radius: var(--radius-sm);
  background: #fff; accent-color: var(--moss-700); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--moss-700); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #9a3d33; font-size: .82rem; min-height: 1.1em; }
.form-error-summary { color: #9a3d33; font-weight: 600; }
.form-message { font-size: .9rem; color: var(--moss-700); min-height: 1.2em; }
.field-inline { display: flex; gap: .6rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item {
  border: 1.5px solid var(--stone-300); border-radius: var(--radius-md); padding: .2rem 1.4rem; background: #fff;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--moss-700); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; color: var(--stone-700); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-soft); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--moss-900); }
.product-detail__ingredients { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; }
.product-detail__ingredients li { background: var(--lichen-100); padding: .35em 1em; border-radius: 999px; font-size: .85rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--stone-300); border-radius: 999px; }
.qty-stepper button { width: 40px; height: 40px; border: none; background: none; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 40px; text-align: center; border: none; font: inherit; background: none; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--stone-300); text-align: left; vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row__product { display: flex; align-items: center; gap: .8rem; }
.cart-summary {
  background: var(--lichen-100); border-radius: var(--radius-md); padding: 1.6rem; display: grid; gap: .8rem; max-width: 380px;
}
.cart-summary__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--moss-300); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item svg { color: var(--moss-700); flex-shrink: 0; margin-top: .1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-900); color: var(--lichen-100); margin-top: 3rem; }
.footer-divider { display: block; color: var(--moss-300); background: var(--cream); }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 2.4rem 1.5rem; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer a { color: var(--lichen-100); opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-col h3 { color: var(--lichen-100); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .55rem; }
.logo--footer .logo__word { color: var(--lichen-100); }
.footer-email { display: flex; align-items: center; gap: .5em; opacity: .9; }
.newsletter-form .field-inline input {
  background: rgba(255,255,255,0.1); border: 1.5px solid var(--moss-300); color: var(--lichen-100);
}
.newsletter-form .field-inline input::placeholder { color: rgba(233,238,221,0.6); }
.site-footer__bottom { text-align: center; padding: 1.2rem 0 2rem; font-size: .85rem; opacity: .7; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 560px; margin: 0 auto;
  background: var(--moss-900); color: var(--lichen-100); border-radius: var(--radius-md); padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner a { color: var(--lichen-100); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; }

.nb-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--moss-900); color: #fff; padding: .8em 1.3em;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); z-index: 400; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.nb-toast.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.u-mt-2 { margin-top: 2rem; } .u-mb-2 { margin-bottom: 2rem; }
.u-text-center { text-align: center; }
.u-flex { display: flex; gap: 1rem; flex-wrap: wrap; }
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .u-grid-2 { grid-template-columns: 1fr; } }

/* =========================================================
   COMPONENTS: .class - what it is
   .container - centered max-width content wrapper
   .btn / .btn--primary / .btn--ghost / .btn--on-dark / .btn--sm / .btn--block - button variants with fill-sweep hover
   .site-header / .site-nav / .nav-toggle / .cart-link / .cart-badge - header & nav
   .hero / .hero__ring / .hero__ring-svg / .hero__lede / .hero__cta - home hero circular composition
   .marquee / .marquee__track - scrolling brand-word strip
   .scallop-divider / .grain-overlay / .footer-divider - decorative SVG dividers/texture
   .reveal / .reveal--1..4 / .in-view - scroll reveal animation hooks
   .product-grid / .product-card / .product-strip - product listing & mobile snap strip
   .formula-finder / .chip - signature interactive feature
   .page-hero - inner page hero band
   .breadcrumbs - breadcrumb trail
   .prose - long-form legal/readable text column
   .legal-toc - table of contents box for legal pages
   .notice / .notice--warning / .notice--success - callout boxes
   .form-grid / .field / .field-error / .form-error-summary / .form-message / .hp-field - form layout & validation
   .faq / .faq-item - details/summary accordion
   .product-detail / .qty-stepper - single product page layout
   .cart-table / .cart-summary / .cart-empty - cart & checkout
   .contact-layout / .contact-info - contact page layout
   .site-footer / .footer-col / .newsletter-form - footer
   .cookie-banner - cookie consent banner
   .nb-toast - transient feedback message
   .u-mt-2 / .u-mb-2 / .u-text-center / .u-flex / .u-grid-2 - spacing/layout utilities
   ========================================================= */

/* ---------- Missing component styles ---------- */

/* Footer column modifiers */
.footer-col--brand { }
.footer-col--newsletter { }

/* Product detail sections */
.product-detail__content { }

.product-detail__purchase {
  display: flex; gap: 1rem; align-items: center;
}

.product-detail__purchase .btn {
  flex: 1; width: auto;
}

@media (max-width: 600px) {
  .product-detail__purchase {
    flex-direction: column; align-items: flex-start;
  }
  .product-detail__purchase .btn {
    flex: 0; width: 100%;
  }
}

/* Cart summary row */
.cart-summary__row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}

/* Quantity stepper elements */
.qty-stepper__btn { }
.qty-stepper__input { }

/* wg-contrast-autofix */
div.cookie-banner div.cookie-banner__actions button.btn.btn--ghost { color: #ffffff !important; }
