/* ============================================================
   NOURIVA — Beauty & Wellness
   Editorial-luxury landing page
   ============================================================ */

:root {
  /* Palette — warm ivory + olive/sage */
  --paper:      #f5f1e9;
  --paper-2:    #efe9dd;
  --sand:       #e7ded0;
  --sand-deep:  #ddd2bf;
  --olive:      #56583f;
  --olive-deep: #3f4130;
  --ink:        #35362b;
  --muted:      #8c8674;
  --muted-2:    #a49d8a;
  --line:       rgba(53, 54, 43, 0.14);
  --line-soft:  rgba(53, 54, 43, 0.08);
  --white:      #fbf9f4;
  --gold:       #b9a271;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film-grain / paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif { font-family: var(--serif); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--olive-deep);
  line-height: 1.04;
}

.section {
  padding: clamp(72px, 11vw, 148px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform 0.6s var(--ease-soft), background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn-fill {
  background: var(--olive);
  color: var(--white);
}
.btn-fill:hover { background: var(--olive-deep); }
.btn:active { transform: scale(0.975); }

.btn-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease-soft);
}
.btn-fill:hover .btn-icon { transform: translate(3px, -1px); }
.btn-icon svg { width: 13px; height: 13px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px 4px;
}
.btn-text .line {
  display: inline-block; width: 22px; height: 1px; background: var(--ink);
  transition: width 0.5s var(--ease);
}
.btn-text:hover .line { width: 38px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 40;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.header.scrolled {
  background: rgba(245, 241, 233, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: padding 0.5s var(--ease);
}
.header.scrolled .nav { padding-top: 16px; padding-bottom: 16px; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links.right { justify-content: flex-end; }
.nav-links a { position: relative; padding: 4px 0; color: var(--ink); opacity: 0.82; transition: opacity 0.4s var(--ease); }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:1px; background: var(--olive);
  transition: width 0.45s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.brand { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.brand .mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--olive-deep);
  display: inline-flex; align-items:center; gap: 10px;
}
.brand .mark::before { content: "❦"; font-size: 0.62em; color: var(--gold); letter-spacing: 0; }
.brand .sub {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
  padding-left: 0.46em;
}

.nav-icons { display: flex; align-items: center; gap: 20px; margin-left: 30px; }
.nav-icons button { display: grid; place-items: center; opacity: 0.8; transition: opacity 0.4s, transform 0.5s var(--ease-soft); }
.nav-icons button:hover { opacity: 1; transform: translateY(-1px); }
.nav-icons svg { width: 18px; height: 18px; }
.cart-dot { position: relative; }
.cart-dot::after {
  content: attr(data-count);
  position: absolute; top: -6px; right: -8px;
  background: var(--olive); color: var(--white);
  font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 999px;
}

.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 78vh;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { display:block; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(52px, 9vw, 116px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--olive); }
.hero-copy p.lead {
  max-width: 30ch;
  margin: 30px 0 40px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* decorative botanical line */
.botanical {
  position: absolute;
  left: -40px; top: 8%;
  width: 220px; height: 80%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.botanical path { stroke: var(--olive); stroke-width: 0.8; fill: none; opacity: 0.55; }
.botanical .leaf { fill: rgba(86,88,63,0.10); stroke: none; }

/* Hero visual — real product photography */
.hero-visual { position: relative; z-index: 2; }
.stage {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 240px 240px 26px 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 18%, #fbf7ee 0%, #eee6d6 42%, #ddd0b8 100%);
  box-shadow:
    0 40px 90px -50px rgba(63,65,48,0.55),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.stage-img, .thumb-img, .about-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}
.card:hover .thumb-img { transform: scale(1.04); }
.stage .sun {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.45) 46%, transparent 62%),
    linear-gradient(115deg, transparent 55%, rgba(120,124,86,0.16) 78%, transparent 92%);
  mix-blend-mode: screen;
}
.stage .foliage { position:absolute; right:-6%; top:-4%; width:62%; opacity:0.9; }
.stage .foliage path { fill: none; stroke: rgba(74,76,54,0.5); stroke-width: 1; }
.stage .foliage .fill { fill: rgba(74,76,54,0.22); stroke:none; }

/* product bottle silhouettes on a plinth */
.plinth {
  position:absolute; left:50%; bottom:8%; transform: translateX(-50%);
  width: 78%; height: 30%;
  background: linear-gradient(180deg, #efe6d4, #d8cbb2);
  border-radius: 14px;
  box-shadow: 0 24px 40px -26px rgba(63,65,48,0.6);
}
.bottles { position:absolute; left:50%; bottom:26%; transform: translateX(-50%); display:flex; align-items:flex-end; gap: 14px; }
.bottle { position: relative; border-radius: 12px 12px 8px 8px; box-shadow: 0 20px 30px -22px rgba(63,65,48,0.7), inset 0 2px 0 rgba(255,255,255,0.6); }
.bottle::before { content:""; position:absolute; top:-14px; left:50%; transform:translateX(-50%); width:34%; height:16px; background:#c9b48c; border-radius:4px 4px 0 0; }
.bottle.tall  { width: 56px; height: 168px; background: linear-gradient(180deg,#f3ece0,#e4d9c4); }
.bottle.pump  { width: 62px; height: 132px; background: linear-gradient(180deg,#efe7da,#ddceb6); }
.bottle.pump::before { width: 12px; height: 26px; top:-24px; border-radius: 3px; }
.bottle.jar   { width: 78px; height: 74px; background: linear-gradient(180deg,#efe7d8,#d9ccb4); border-radius: 10px; }
.bottle.jar::before { display:none; }

.ritual-card {
  position: absolute;
  left: 6%; bottom: 8%;
  background: rgba(251,249,244,0.86);
  backdrop-filter: blur(6px);
  padding: 20px 26px;
  border-radius: 4px;
  box-shadow: 0 30px 60px -40px rgba(63,65,48,0.6);
  max-width: 220px;
}
.ritual-card .eyebrow { font-size: 9.5px; letter-spacing: 0.34em; }
.ritual-card p { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--olive-deep); margin-top: 8px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-head { display:flex; align-items:flex-end; justify-content:space-between; gap: 24px; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-head .eyebrow { display:block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 500; max-width: 16ch; }
.sec-head h2 em { font-style: italic; color: var(--olive); }

/* ============================================================
   PRODUCT SHOWCASE (alternating rows with descriptions)
   ============================================================ */
.showcase { display: flex; flex-direction: column; gap: clamp(60px, 9vw, 128px); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 78px); align-items: center; }
.show-row:nth-child(even) .show-media { order: 2; }

.show-media {
  position: relative;
  aspect-ratio: 4 / 3.7;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(125% 105% at 50% 32%, #f4eee2 0%, #ece1cf 55%, #e2d6c2 100%);
  box-shadow: 0 40px 80px -56px rgba(63,65,48,0.5);
}
.show-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(18px, 4.5%, 46px);
  transition: transform 1.1s var(--ease-soft);
}
.show-row:hover .show-media img { transform: scale(1.025); }
.show-media .tag-sale { top: 18px; left: 18px; }

.show-info .eyebrow { display: block; margin-bottom: 16px; }
.show-info h3 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 500; line-height: 1.06; }
.show-info h3 a { transition: color .35s var(--ease); }
.show-info h3 a:hover { color: var(--olive); }
.show-info .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(18px, 2vw, 23px); color: var(--olive);
  margin: 16px 0 26px; max-width: 34ch;
}
.specs { list-style: none; display: grid; gap: 13px; margin-bottom: 34px; }
.specs li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.specs li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 999px; background: var(--olive); opacity: 0.5; }
.specs b { color: var(--ink); font-weight: 500; }
.show-buy { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.show-buy .price .now { font-size: 22px; color: var(--olive-deep); }
.show-buy .price .was { font-size: 15px; }
.show-buy .price .soon { font-size: 13px; }
.show-buy .btn-fill { padding: 15px 26px; }

@media (max-width: 860px) {
  .show-row { grid-template-columns: 1fr; gap: 26px; }
  .show-row:nth-child(even) .show-media { order: 0; }
  .show-media { aspect-ratio: 4 / 3.2; }
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }

.card { position: relative; }
.card .thumb {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: 3px;
  overflow: hidden;
  background: var(--sand);
  transition: transform 0.9s var(--ease-soft);
}
.card .thumb .scene { position:absolute; inset:0; }
.card:hover .thumb { transform: translateY(-6px); }

.card .wish {
  position:absolute; top:14px; right:14px; z-index:3;
  width:38px; height:38px; border-radius:999px;
  background: rgba(251,249,244,0.85);
  display:grid; place-items:center;
  opacity:0; transform: translateY(-4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s;
}
.card:hover .wish { opacity:1; transform: translateY(0); }
.card .wish:hover { background: var(--white); }
.card .wish svg { width:16px; height:16px; }

.card .add {
  position:absolute; left:16px; right:16px; bottom:16px; z-index:3;
  background: rgba(251,249,244,0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; text-align:center;
  opacity:0; transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease-soft), background 0.4s;
}
.card .thumb:hover .add { opacity:1; transform: translateY(0); }
.card .add:hover { background: var(--olive); color: var(--white); }

.card .meta { padding: 18px 2px 0; }
.card .meta .cat { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); }
.card .meta h3 { font-size: 23px; font-weight: 500; margin: 8px 0 10px; color: var(--ink); }
.card .price { display:flex; align-items:baseline; gap: 12px; font-family: var(--sans); }
.card .price .now { font-size: 15px; color: var(--olive-deep); letter-spacing: 0.04em; }
.card .price .was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.card .price .soon { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.tag-sale {
  position:absolute; top:14px; left:14px; z-index:3;
  background: var(--olive); color: var(--white);
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
}

/* Scene backdrops for product thumbs (image placeholders) */
.scene-warm  { background: radial-gradient(90% 70% at 60% 30%, #f4ecdd, #e3d6bf); }
.scene-sage  { background: radial-gradient(90% 70% at 50% 25%, #eef0e4, #d5d8c1); }
.scene-blush { background: radial-gradient(90% 70% at 55% 30%, #f4ebe2, #e6d5c6); }
.scene-stone { background: radial-gradient(90% 70% at 50% 30%, #efeae0, #d8d0c0); }
.scene .obj {
  position:absolute; left:50%; bottom:16%; transform: translateX(-50%);
  border-radius: 10px 10px 7px 7px;
  box-shadow: 0 22px 34px -24px rgba(63,65,48,0.7), inset 0 2px 0 rgba(255,255,255,0.55);
}
.scene .obj::before { content:""; position:absolute; top:-12px; left:50%; transform:translateX(-50%); width:30%; height:14px; background:#c8b489; border-radius:4px 4px 0 0; }
.scene .shadow { position:absolute; left:50%; bottom:13%; transform:translateX(-50%); width:52%; height:10px; background: rgba(63,65,48,0.18); filter: blur(7px); border-radius:50%; }
.scene .sprig { position:absolute; opacity:0.55; }
.scene .sprig path { fill:none; stroke: rgba(74,76,54,0.55); stroke-width:1; }
.scene .sprig .fill { fill: rgba(74,76,54,0.2); stroke:none; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cats { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,28px); }

/* Typographic category tiles (no photos — keeps the page from repeating product shots) */
.cat-tile {
  position: relative;
  aspect-ratio: 3/3.4;
  border-radius: 3px;
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform 0.7s var(--ease-soft), box-shadow 0.6s var(--ease);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -46px rgba(63,65,48,0.5); }
.cat-tile .num { font-family: var(--serif); font-size: 20px; color: var(--olive); opacity: 0.5; }
.cat-tile-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.cat-tile h3 { font-size: 32px; font-weight: 500; color: var(--olive-deep); }
.cat-tile-foot p { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 8px; }
.cat-tile .arrow { flex:none; width:42px; height:42px; border-radius:999px; display:grid; place-items:center;
  border:1px solid var(--line); color: var(--olive); transition: background 0.5s var(--ease), transform 0.6s var(--ease-soft); }
.cat-tile:hover .arrow { background: var(--olive); color: var(--white); transform: translateX(4px); border-color: var(--olive); }
.cat-tile .arrow svg { width:15px; height:15px; }
.tone-sage  { background: linear-gradient(155deg, #e9ecdf, #dbe0cc); }
.tone-clay  { background: linear-gradient(155deg, #efe6d9, #e2d3bf); }
.tone-olive { background: linear-gradient(155deg, #dfe1cf, #cdd0b4); }
.cat-card { position:relative; aspect-ratio: 3/3.7; border-radius:3px; overflow:hidden; display:flex; align-items:flex-end; }
.cat-card .bg { position:absolute; inset:0; background-size:cover; background-position:center; transition: transform 1s var(--ease-soft); }
.cat-card:hover .bg { transform: scale(1.05); }
.cat-card .veil { position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(53,54,43,0.42)); }
.cat-card .label { position:relative; z-index:2; padding: 28px; color: var(--white); width:100%; display:flex; align-items:center; justify-content:space-between; }
.cat-card .label h3 { color: var(--white); font-size: 30px; font-weight: 500; }
.cat-card .label .arrow { width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,0.5); display:grid; place-items:center; transition: background 0.5s var(--ease), transform 0.6s var(--ease-soft); }
.cat-card:hover .label .arrow { background: rgba(255,255,255,0.16); transform: translateX(4px); }
.cat-card .arrow svg { width:14px; height:14px; }

/* ============================================================
   BEST SELLERS
   ============================================================ */
.best { display:grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px,2.6vw,40px); }
.best .feature .thumb { aspect-ratio: 4/3.4; }
.best .side { display:grid; grid-template-rows: 1fr 1fr; gap: clamp(20px,2.6vw,40px); }
.best .side .card { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items:center; }
.best .side .card .thumb { aspect-ratio: 1/1.1; }
.best .side .card .meta { padding: 0; }
.best .side .card .meta h3 { font-size: 21px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,84px); align-items:center; }
.about-visual { position:relative; aspect-ratio: 4/4.8; border-radius: 3px; overflow:hidden;
  background: radial-gradient(100% 90% at 40% 30%, #e9e4d6, #cfc7b2); }
.about-visual .about-img { object-position: center; }
.about-visual .hands { position:absolute; inset:0; display:grid; place-items:center; }
.about-visual .hands svg { width: 66%; opacity: 0.9; }
.about-copy .eyebrow { display:block; margin-bottom: 20px; }
.about-copy h2 { font-size: clamp(38px,5vw,62px); font-weight:500; margin-bottom: 26px; }
.about-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 20px; font-size: 16px; }
.about-copy .btn-text { margin-top: 12px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { text-align:center; }
.newsletter .eyebrow { display:block; margin-bottom: 20px; }
.newsletter h2 { font-size: clamp(40px,6vw,80px); font-weight:500; max-width: 14ch; margin: 0 auto 22px; }
.newsletter p { color: var(--muted); margin-bottom: 40px; }
.subscribe {
  display:flex; align-items:center; gap: 10px;
  max-width: 520px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.subscribe input {
  flex:1; background:none; border:none; outline:none;
  font-family: var(--sans); font-size: 15px; font-weight:300; color: var(--ink);
  padding: 8px 4px;
}
.subscribe input::placeholder { color: var(--muted-2); }
.subscribe button { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--olive-deep); white-space:nowrap; padding: 8px; }
.subscribe button:hover { color: var(--olive); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: var(--maxw); margin:0 auto; padding: clamp(56px,7vw,96px) var(--gutter) 40px;
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(28px,4vw,56px); }
.footer .brand-block .mark { font-family: var(--serif); font-size: 24px; letter-spacing: 0.4em; color: var(--olive-deep); }
.footer .brand-block .mark::before { content:"❦ "; color: var(--gold); font-size: 0.7em; }
.footer .brand-block .sub { font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted-2); margin: 6px 0 22px; }
.footer .brand-block p { color: var(--muted); max-width: 34ch; font-size: 14px; margin-bottom: 24px; }
.footer .socials { display:flex; gap: 22px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer .socials a { color: var(--ink); opacity: 0.75; transition: opacity 0.4s; }
.footer .socials a:hover { opacity: 1; }
.footer .col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; margin-bottom: 20px; }
.footer .col ul { list-style:none; }
.footer .col li { margin-bottom: 13px; }
.footer .col a { font-size: 14px; color: var(--ink); opacity: 0.78; transition: opacity 0.4s, padding-left 0.4s var(--ease); }
.footer .col a:hover { opacity: 1; padding-left: 5px; }
.footer .news p { color: var(--muted); font-size: 14px; margin-bottom: 18px; max-width: 30ch; }
.footer .news .subscribe { max-width: none; }
.footer-base { max-width: var(--maxw); margin:0 auto; padding: 22px var(--gutter); border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; align-items:center; gap: 16px; }
.footer-base span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a { color: var(--muted); transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--olive); }
.crumbs .sep { margin: 0 8px; opacity: .5; }
.crumbs .here { color: var(--ink); }

.product { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px,3.5vw,44px) var(--gutter) clamp(48px,7vw,96px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px,5vw,74px); align-items: start; }

.gallery { position: sticky; top: 100px; }
.gallery-main { aspect-ratio: 4 / 4.4; border-radius: 4px; overflow: hidden; background: radial-gradient(125% 105% at 50% 32%, #f4eee2 0%, #ece1cf 55%, #e2d6c2 100%); box-shadow: 0 40px 80px -56px rgba(63,65,48,.5); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: clamp(20px,5%,54px); transition: opacity .4s var(--ease); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs .thumb { width: 78px; height: 78px; border-radius: 3px; overflow: hidden; background: #efe7d9; opacity: .55; transition: opacity .4s var(--ease), box-shadow .4s var(--ease); }
.gallery-thumbs .thumb.active { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--olive); }
.gallery-thumbs .thumb:hover { opacity: .85; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.product-info { padding-top: clamp(2px,1vw,14px); }
.product-info .eyebrow { display: block; margin-bottom: 16px; }
.product-info h1 { font-size: clamp(34px,4.6vw,58px); font-weight: 500; line-height: 1.05; }
.product-info .price { margin: 22px 0 2px; align-items: baseline; }
.product-info .price .now { font-size: 26px; color: var(--olive-deep); }
.product-info .price .was { font-size: 17px; }
.product-info .save { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); background: rgba(86,88,63,.09); padding: 5px 10px; border-radius: 999px; }
.product-info .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px,2vw,23px); color: var(--olive); margin: 18px 0 16px; }
.product-info .lede { color: var(--muted); font-size: 16px; max-width: 48ch; margin-bottom: 30px; }

.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 46px; height: 52px; font-size: 18px; color: var(--olive-deep); transition: background .3s var(--ease); }
.qty button:hover { background: rgba(86,88,63,.07); }
.qty input { width: 42px; height: 52px; text-align: center; border: none; background: none; font-family: var(--sans); font-size: 15px; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn-fill { flex: 1; min-width: 220px; justify-content: center; height: 54px; }

.p-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.p-highlights span { font-size: 11.5px; letter-spacing: .03em; color: var(--olive-deep); background: rgba(86,88,63,.08); padding: 9px 15px; border-radius: 999px; }

.product-details .sec-head { margin-bottom: clamp(28px,4vw,44px); }
.specs-2col { grid-template-columns: 1fr 1fr; column-gap: clamp(28px,4vw,64px); }

@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .gallery-main { aspect-ratio: 4 / 3.8; }
  .specs-2col { grid-template-columns: 1fr; }
  .buy-row .btn-fill { min-width: 0; }
}

/* ============================================================
   SALE PRICING (clear crossed-out compare-at + discount badge)
   ============================================================ */
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price .was { text-decoration: line-through; color: var(--muted-2); }
.price .save {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: #fff; background: #b06a4f; padding: 5px 10px; border-radius: 999px;
  align-self: center;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; line-height: 1; white-space: nowrap; }
.stars .empty { color: rgba(53,54,43,0.22); }

.reviews { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(64px,9vw,120px); }
.reviews-summary {
  display: flex; gap: clamp(28px,5vw,72px); align-items: center; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px;
}
.reviews-summary .avg { font-family: var(--serif); font-size: clamp(52px,7vw,76px); color: var(--olive-deep); line-height: 1; }
.reviews-summary .avg-side .stars { font-size: 19px; }
.reviews-summary .count { color: var(--muted); font-size: 13px; margin-top: 8px; }
.reviews-summary .bars { flex: 1; min-width: 220px; display: grid; gap: 7px; }
.reviews-summary .bar { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted-2); }
.reviews-summary .bar .track { flex: 1; height: 5px; border-radius: 999px; background: rgba(53,54,43,0.1); overflow: hidden; }
.reviews-summary .bar .fill { height: 100%; background: var(--gold); border-radius: 999px; }

.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.6vw,32px); }
.review-card { padding: 26px 28px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(255,255,255,0.45); }
.review-card .r-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-card h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--olive-deep); margin: 14px 0 8px; }
.review-card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.review-card .r-by { margin-top: 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.review-card .r-by .verified { color: var(--olive); }
.reviews .btn-text { margin-top: 36px; }
@media (max-width: 760px) { .review-list { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-soft), filter 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; filter:none; transition:none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(245,241,233,0.96);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: 34px; color: var(--olive-deep);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-soft);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1){ transition-delay:0.08s; }
.mobile-menu.open a:nth-child(2){ transition-delay:0.14s; }
.mobile-menu.open a:nth-child(3){ transition-delay:0.20s; }
.mobile-menu.open a:nth-child(4){ transition-delay:0.26s; }
.mobile-menu.open a:nth-child(5){ transition-delay:0.32s; }
.mobile-menu.open a:nth-child(6){ transition-delay:0.38s; }
.mobile-menu .close { position:absolute; top:28px; right:28px; width:44px; height:44px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .botanical { display: none; }
  .best { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-icons { margin-left: 0; }
  .nav { grid-template-columns: auto 1fr auto; }
  .brand { text-align: left; }
  .burger { display: grid; gap: 5px; padding: 8px; }
  .burger span { display:block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
  .nav-order-left { display: flex; align-items: center; }
  .products { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cats { grid-template-columns: 1fr; }
  .best .side .card { grid-template-columns: 0.9fr 1.1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; text-align:center; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
  .hero h1 { font-size: 58px; }
}

/* ============================================================
   APPLE CRAFT PASS
   Fluid response, translucent materials, optical typography, and
   full accessibility — applied *over* the Nouriva brand, not replacing it.
   (Designing Fluid Interfaces / UI Typography / Principles of Great Design)
   ============================================================ */

/* §15 Typography — optical sizing + size-specific tracking.
   Large display gets negative tracking; body sits near zero. */
h1, h2, h3, .brand .mark, .serif, .display { font-optical-sizing: auto; }
.hero h1 { letter-spacing: -0.021em; }
.sec-head h2, .about-copy h2, .newsletter h2, .product-info h1, .reviews-summary .avg { letter-spacing: -0.014em; }
.hero-copy p.lead, .about-copy p, .product-info .lede, .review-card p, .show-info .tagline { letter-spacing: 0; }

/* §1 Response — instant, snappy feedback the moment something is pressed. */
.btn, .btn-text, .nav-links a, .nav-icons button, .burger, .cat-tile, .show-media,
.gallery-thumbs .thumb, .wish, .add, .qty button, .subscribe button, .footer .col a,
.crumbs a, .show-info h3 a { -webkit-tap-highlight-color: transparent; }
.btn-fill:active, .add:active, .subscribe button:active, .qty button:active { transform: scale(0.97); transition: transform 90ms ease-out; }
.gallery-thumbs .thumb:active, .nav-icons button:active, .burger:active { transform: scale(0.93); transition: transform 90ms ease-out; }
.cat-tile:active, .show-media:active { transform: scale(0.992); transition: transform 110ms ease-out; }

/* §12 Materials — translucent chrome with saturation + a soft scroll edge
   (a fading material boundary, never a hard 1px divider). */
.header.scrolled {
  background: rgba(245, 241, 233, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.header.scrolled::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
  background: linear-gradient(to bottom, rgba(245, 241, 233, 0.45), transparent);
  pointer-events: none;
}
.mobile-menu { -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
/* §12 Vibrancy — text over glass stays crisp, not flat grey. */
.header.scrolled .nav-links a { opacity: 0.9; }

/* §14 Reduced transparency — frost the glass to solid. */
@media (prefers-reduced-transparency: reduce) {
  .header.scrolled, .mobile-menu { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.scrolled::after { display: none; }
  .ritual-card { background: var(--paper); backdrop-filter: none; }
  .review-card { background: var(--paper-2); }
  .card .add, .card .wish { background: var(--paper); backdrop-filter: none; }
}

/* §14 Increased contrast — near-solid surfaces with defined borders. */
@media (prefers-contrast: more) {
  :root { --muted: #5b5749; --muted-2: #625d4e; --line: rgba(53,54,43,0.4); }
  .header.scrolled { background: var(--paper); border-bottom: 1px solid var(--ink); }
  .btn-fill { background: var(--olive-deep); }
  .cat-tile, .review-card, .show-media, .gallery-main { box-shadow: inset 0 0 0 1px rgba(53,54,43,0.5); }
  .price .was { color: var(--ink); }
}
