/* =====================================================================
   SAGE & STONE — premium handmade soap (demo site)
   A warm, natural, editorial look. Standalone from the main ForgePoint
   site: its own tokens, nav, and light-only palette.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --cream:        #efe7d8;
  --cream-soft:   #f6f1e6;
  --cream-deep:   #e6dbc7;
  --paper:        #faf6ec;

  --forest:       #2e3d31;
  --forest-2:     #3c503f;
  --sage:         #8b9a78;
  --sage-soft:    #b7c1a3;
  --clay:         #b07d56;
  --clay-deep:    #955f38;
  --gold:         #cba869;
  --charcoal:     #23241f;

  --ink:          #33352c;
  --muted:        #726751;
  --line:         rgba(46,61,49,.14);
  --line-strong:  rgba(46,61,49,.24);

  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(46,42,32,.06);
  --shadow-md: 0 14px 34px -14px rgba(46,42,32,.22);
  --shadow-lg: 0 30px 70px -28px rgba(46,42,32,.34);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

h1,h2,h3{ font-family: var(--serif); color: var(--forest); font-weight: 600; line-height: 1.08; margin: 0; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; cursor: pointer; }
[hidden]{ display: none !important; }

.container{ width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.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;
}

/* ---------- Buttons ---------- */
.btn{
  --btn-bg: var(--forest);
  --btn-fg: var(--cream-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: .95em 1.7em; border-radius: 100px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
  box-shadow: 0 10px 24px -14px rgba(46,61,49,.7);
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(46,61,49,.75); }
.btn:active{ transform: translateY(0); }
.btn-primary:hover{ background: var(--clay); }
.btn-ghost{
  --btn-bg: transparent; --btn-fg: var(--forest);
  border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover{ border-color: var(--forest); background: rgba(46,61,49,.05); box-shadow: none; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav-inner{
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
}
.nav.scrolled, .nav.solid{
  background: rgba(246,241,230,.85);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.brand{ display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark{ width: 26px; height: 26px; color: var(--sage); display: inline-flex; }
.brand-mark svg{ width: 100%; height: 100%; }
.brand-name{ font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--forest); letter-spacing: .01em; }
.brand-demo{
  font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay-deep); background: rgba(176,125,86,.14);
  border: 1px solid rgba(176,125,86,.35); padding: .18em .5em; border-radius: 100px; margin-left: .1rem;
}

.nav-links{ display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links > a{
  font-size: .96rem; font-weight: 500; color: var(--forest-2); position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links > a:not(.nav-cart)::after{
  content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1.5px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > a:not(.nav-cart):hover{ color: var(--forest); }
.nav-links > a:not(.nav-cart):hover::after{ transform: scaleX(1); }

.nav-cart{ display: inline-flex; align-items: center; gap: .3rem; color: var(--forest); }
.nav-cart svg{ width: 22px; height: 22px; }
.cart-count{
  font-size: .68rem; font-weight: 700; background: var(--forest); color: var(--cream-soft);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span{ width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero{
  --photo-h: max(230px, 33.1vw); /* track the 1536×509 image ratio so the band is never vertically cropped */
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--cream-soft) 0%, var(--cream) 46%, var(--cream-deep) 100%);
}
/* soft top shadow echoing the photo's natural light */
.hero::before{
  content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 55% at 78% 8%, rgba(255,251,240,.5), transparent 60%),
             radial-gradient(90% 60% at 12% 4%, rgba(60,50,35,.10), transparent 55%);
}

.hero-fx{
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.hero-wrap{
  grid-row: 1; grid-column: 1; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(84px, 11vh, 120px) 20px clamp(74px, 11vh, 120px);
}
.hero-copy{ max-width: 720px; }

.eyebrow{
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 1.1rem;
}
.eyebrow-leaf{ width: 18px; height: 18px; color: var(--sage); }

.hero-title{
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--forest);
}
.hero-sub{
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted); max-width: 40ch; margin: 1.3rem auto 0;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

.hero-feats{
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.6rem;
}
.hero-feats li{
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .86rem; font-weight: 500; color: var(--forest-2);
}
.feat-ic{ width: 20px; height: 20px; color: var(--sage); display: inline-flex; }

.br-lg{ display: none; }

/* Photo band pinned to hero bottom, fading up into the cream */
.hero-photo{
  grid-row: 2; position: relative; z-index: 0;
  width: 100%; height: var(--photo-h);
  background: url("hero-band.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 78px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 78px);
}

.hero-scroll{
  position: absolute; left: 50%; bottom: calc(var(--photo-h) + 18px); transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest-2);
}
/* On short viewports the copy fills the space; the cue would crowd it. */
@media (max-height: 820px){ .hero-scroll{ display: none; } }
.hero-scroll svg{ width: 20px; height: 20px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0); opacity:.7 } 50%{ transform: translateY(5px); opacity:1 } }

/* =====================================================================
   TRUST MARQUEE
   ===================================================================== */
.marquee{
  background: var(--forest);
  color: var(--cream-soft);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee-track{
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  padding: 14px 1.1rem;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  font-family: var(--serif); font-size: 1.02rem; font-style: italic; letter-spacing: .02em;
  white-space: nowrap; color: rgba(246,241,230,.92);
}
.marquee-track .dot{ color: var(--gold); font-size: .7rem; font-style: normal; }
@keyframes marquee{ from{ transform: translateX(0) } to{ transform: translateX(-50%) } }

/* =====================================================================
   SECTION HEADINGS (shared)
   ===================================================================== */
section{ position: relative; }
.sec-head{ max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.sec-eyebrow{
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: .7rem;
}
.sec-title{ font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.01em; }
.sec-lead{ margin-top: 1rem; color: var(--muted); font-size: 1.06rem; }

/* =====================================================================
   COLLECTION
   ===================================================================== */
.collection{ padding: clamp(4rem, 9vw, 7rem) 0; }
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.product{
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.product:hover{ transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }

.product-media{
  position: relative; aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.product-media img{
  position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover;
  transition: transform .6s var(--ease);
}
.product:hover .product-media img{ transform: scale(1.05); }
.product-media::after{ /* faint depth; keeps the badge legible */
  content:""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(35,36,31,.14), transparent 38%);
}
.product-badge{
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--clay); color: #fff; padding: .32em .7em; border-radius: 100px;
}
.product-badge.soft{ background: var(--sage); }

.product-body{ padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-name{ font-size: 1.22rem; }
.product-notes{ font-size: .88rem; color: var(--muted); line-height: 1.5; flex: 1; }
.product-foot{ display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.product-price{ font-family: var(--serif); font-size: 1.25rem; color: var(--forest); font-weight: 600; }
.btn-add{
  font-size: .84rem; font-weight: 600; color: var(--forest);
  background: transparent; border: 1.5px solid var(--line-strong);
  padding: .5em 1em; border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-add:hover{ background: var(--forest); color: var(--cream-soft); border-color: var(--forest); }
.btn-add.added{ background: var(--sage); color: #fff; border-color: var(--sage); }

.collection-cta{ text-align: center; margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.collection-note{ margin-top: .8rem; color: var(--muted); font-size: .92rem; }

/* =====================================================================
   CRAFT / STORY
   ===================================================================== */
.craft{ padding: clamp(4rem, 9vw, 7rem) 0; background: var(--cream-soft); }
.craft-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.craft-media{ position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.craft-media img{ width: 100%; height: 100%; object-fit: cover; }
.craft-badge{
  position: absolute; right: 1rem; bottom: 1rem;
  background: rgba(246,241,230,.92); backdrop-filter: blur(6px);
  border-radius: var(--radius-sm); padding: .7rem 1rem; text-align: center;
  box-shadow: var(--shadow-md);
}
.craft-badge-num{ display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--clay-deep); font-weight: 600; line-height: 1; }
.craft-badge-lbl{ display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.craft-copy > p{ color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.craft-copy .sec-title{ margin-top: .6rem; }
.craft-steps{ list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.craft-steps li{ display: flex; gap: 1rem; align-items: flex-start; }
.step-n{
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--cream-soft);
  background: var(--sage); min-width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.craft-steps strong{ display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--forest); font-weight: 600; }
.craft-steps p{ color: var(--muted); font-size: .95rem; margin-top: .15rem; }

/* =====================================================================
   INGREDIENTS / BENEFITS
   ===================================================================== */
.ingredients{ padding: clamp(4rem, 9vw, 7rem) 0; }
.benefit-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.benefit{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; text-align: left;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.benefit:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-ic{
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest); background: rgba(139,154,120,.16); border-radius: 14px; margin-bottom: 1.1rem;
}
.benefit-ic svg{ width: 26px; height: 26px; }
.benefit h3{ font-size: 1.2rem; margin-bottom: .5rem; }
.benefit p{ color: var(--muted); font-size: .93rem; }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews{ padding: clamp(4rem, 9vw, 7rem) 0; background: var(--cream-soft); }
.review-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.review{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; margin: 0; box-shadow: var(--shadow-sm);
}
.stars{ color: var(--gold); letter-spacing: .1em; font-size: 1rem; margin-bottom: .9rem; }
.review p{ font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--forest-2); }
.review footer{ margin-top: 1.1rem; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* =====================================================================
   JOIN / NEWSLETTER
   ===================================================================== */
.join{ padding: clamp(4rem, 9vw, 6.5rem) 0; }
.join-inner{
  background:
    radial-gradient(120% 120% at 90% 10%, rgba(139,154,120,.35), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  color: var(--cream-soft); border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  box-shadow: var(--shadow-lg);
}
.join-copy{ max-width: 30rem; }
.join-copy .sec-title{ color: var(--cream-soft); }
.join-copy p{ color: rgba(246,241,230,.8); margin-top: .7rem; }
.join-form{ display: flex; gap: .6rem; flex-wrap: wrap; }
.join-form input{
  font-family: var(--sans); font-size: 1rem; padding: .9em 1.2em; min-width: 260px;
  border-radius: 100px; border: 1.5px solid rgba(246,241,230,.28);
  background: rgba(246,241,230,.1); color: var(--cream-soft);
}
.join-form input::placeholder{ color: rgba(246,241,230,.55); }
.join-form input:focus{ outline: none; border-color: var(--gold); background: rgba(246,241,230,.16); }
.join-form .btn-primary{ background: var(--cream-soft); color: var(--forest); box-shadow: none; }
.join-form .btn-primary:hover{ background: var(--gold); color: var(--forest); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot{ background: var(--charcoal); color: rgba(246,241,230,.75); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.foot-grid{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(246,241,230,.12); }
.foot-brand .brand-name{ color: var(--cream-soft); font-size: 1.4rem; }
.foot-brand p{ margin-top: .5rem; max-width: 24rem; font-size: .92rem; }
.foot-links{ display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.foot-links a{ font-size: .95rem; color: rgba(246,241,230,.8); transition: color .25s var(--ease); }
.foot-links a:hover{ color: var(--gold); }
.foot-note{ max-width: var(--wrap); margin: 1.6rem auto 0; padding: 0 clamp(20px,5vw,48px); }
.foot-disclaimer{ font-size: .86rem; color: rgba(246,241,230,.6); }
.foot-disclaimer strong{ color: var(--cream-soft); }
.foot-by{ font-size: .86rem; color: rgba(246,241,230,.55); margin-top: .4rem; }
.foot-by a{ color: var(--gold); }
.foot-by a:hover{ text-decoration: underline; }

/* =====================================================================
   DEMO MODAL
   ===================================================================== */
.demo-modal{
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  background: rgba(35,36,31,.5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.demo-modal[hidden]{ display: none; }
.demo-modal.show{ opacity: 1; }
.demo-box{
  background: var(--paper); border-radius: var(--radius); padding: 2.2rem 2rem 1.8rem;
  max-width: 420px; width: 100%; text-align: center; position: relative;
  box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98);
  transition: transform .35s var(--ease);
}
.demo-modal.show .demo-box{ transform: none; }
.demo-x{ position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.demo-box-icon{ width: 52px; height: 52px; margin: 0 auto 1rem; color: var(--clay); background: rgba(176,125,86,.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.demo-box-icon svg{ width: 28px; height: 28px; }
.demo-box-title{ font-size: 1.5rem; margin-bottom: .6rem; }
.demo-box-msg{ color: var(--muted); font-size: 1rem; }
.demo-ok{ margin-top: 1.4rem; background: var(--forest); color: var(--cream-soft); border: 0; padding: .8em 2em; border-radius: 100px; font-weight: 600; transition: background .25s var(--ease); }
.demo-ok:hover{ background: var(--clay); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }
.product.reveal{ transition-delay: calc(var(--i, 0) * 70ms); }
.benefit.reveal, .review.reveal{ transition-delay: calc(var(--i, 0) * 90ms); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 700px){ .br-lg{ display: inline; } }

@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .benefit-grid{ grid-template-columns: repeat(2, 1fr); }
  .review-grid{ grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .craft-grid{ grid-template-columns: 1fr; }
  .craft-media{ order: -1; }
}

@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: absolute; top: 100%; right: clamp(20px,5vw,48px); left: clamp(20px,5vw,48px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(246,241,230,.97); backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open{ opacity: 1; visibility: visible; transform: none; }
  .nav-links > a{ padding: .85rem 1rem; border-radius: 10px; }
  .nav-links > a:hover{ background: rgba(46,61,49,.06); }
  .nav-links > a:not(.nav-cart)::after{ display: none; }
  .nav-cart{ justify-content: space-between; }
}

@media (max-width: 520px){
  .product-grid{ grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .benefit-grid{ grid-template-columns: 1fr; }
  .join-form input{ min-width: 0; flex: 1; }
  .join-form{ width: 100%; }
  .hero-feats{ gap: .6rem 1.1rem; }
}

/* =====================================================================
   PRODUCT LINKS (on collection cards)
   ===================================================================== */
.product-media{ text-decoration: none; }
.product-name a{ color: inherit; text-decoration: none; transition: color .25s var(--ease); }
.product-name a:hover{ color: var(--clay-deep); }

/* =====================================================================
   QUANTITY STEPPER (shared)
   ===================================================================== */
.qty{ display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 100px; overflow: hidden; background: #fff; }
.qty-btn{ width: 2.6rem; height: 2.9rem; background: transparent; border: 0; font-size: 1.2rem; color: var(--forest); line-height: 1; }
.qty-btn:hover{ background: rgba(46,61,49,.06); }
.qty-val{ min-width: 2.4rem; text-align: center; border: 0; background: transparent; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--forest); }
input.qty-val:focus{ outline: none; }

/* =====================================================================
   PRODUCT DETAIL PAGE
   ===================================================================== */
.pdp{ padding: calc(70px + clamp(1.4rem, 4vw, 2.6rem)) 0 clamp(3rem, 7vw, 6rem); }
.pdp-back{ display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 1.6rem; transition: color .25s var(--ease); }
.pdp-back svg{ width: 18px; height: 18px; }
.pdp-back:hover{ color: var(--forest); }

.pdp-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pdp-media{ position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--cream-deep); }
.pdp-media img{ display: block; width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; object-fit: cover; }
.pdp-media .product-badge{ top: 1rem; left: 1rem; }

.pdp-info{ padding-top: .4rem; }
.pdp-scent{ font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); font-weight: 600; margin-bottom: .6rem; }
.pdp-name{ font-size: clamp(2rem, 4.5vw, 3.1rem); }
.pdp-price{ font-family: var(--serif); font-size: 1.6rem; color: var(--forest); margin-top: .4rem; font-weight: 600; }
.pdp-tagline{ font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--forest-2); margin-top: 1rem; }
.pdp-desc{ color: var(--muted); margin-top: 1rem; font-size: 1.02rem; }
.pdp-notes{ margin-top: 1.6rem; }
.pdp-notes h4{ font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.pdp-notes ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pdp-notes li{ font-size: .85rem; background: rgba(139,154,120,.14); color: var(--forest-2); border: 1px solid var(--line); padding: .35em .8em; border-radius: 100px; }

.pdp-buy{ display: flex; gap: .8rem; margin-top: 1.8rem; align-items: stretch; flex-wrap: wrap; }
.pdp-buy .btn-primary{ flex: 1; min-width: 180px; }
.pdp-tocart{ display: inline-block; margin-top: .9rem; color: var(--clay-deep); font-weight: 600; font-size: .9rem; }
.pdp-tocart:hover{ text-decoration: underline; }

.pdp-trust{ list-style: none; margin: 1.8rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.pdp-trust li{ font-size: .9rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.pdp-trust li::before{ content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* Related */
.related{ margin-top: clamp(3rem, 7vw, 5.5rem); }
.related-title{ font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-align: center; margin-bottom: 2rem; }
.related-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.rel-card{ background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.rel-card:hover{ transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
.rel-media{ display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.rel-media img{ display: block; width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; object-fit: cover; transition: transform .6s var(--ease); }
.rel-card:hover .rel-media img{ transform: scale(1.05); }
.rel-body{ padding: 1rem 1.1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.rel-body h3{ font-size: 1.05rem; }
.rel-body h3 a{ color: inherit; }
.rel-body h3 a:hover{ color: var(--clay-deep); }
.rel-price{ font-family: var(--serif); font-weight: 600; color: var(--forest); }

/* =====================================================================
   CART + CHECKOUT
   ===================================================================== */
.cartpage{ padding: calc(70px + clamp(1.4rem, 4vw, 2.4rem)) 0 clamp(3rem, 7vw, 6rem); min-height: 72vh; }
.cart-title{ font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 2rem; }

.cart-empty{ text-align: center; padding: 3rem 1rem 4rem; }
.cart-empty-ic{ width: 60px; height: 60px; margin: 0 auto 1.2rem; color: var(--sage); }
.cart-empty-ic svg{ width: 100%; height: 100%; }
.cart-empty p{ color: var(--muted); font-size: 1.1rem; margin-bottom: 1.4rem; }

.cart-layout{ display: grid; grid-template-columns: 1fr 360px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cart-items{ display: flex; flex-direction: column; gap: 1rem; }
.citem{
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  grid-template-areas: "media info qty price";
  gap: 1rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem;
}
.citem-media{ grid-area: media; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.citem-media img{ width: 100%; height: 100%; object-fit: cover; }
.citem-info{ grid-area: info; }
.citem-info h3{ font-size: 1.1rem; }
.citem-info h3 a{ color: inherit; }
.citem-info h3 a:hover{ color: var(--clay-deep); }
.citem-scent{ font-size: .82rem; color: var(--muted); margin: .2rem 0 .5rem; }
.citem-remove{ background: none; border: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; padding: 0; }
.citem-remove:hover{ color: var(--clay-deep); }
.citem-qty{ grid-area: qty; }
.citem-price{ grid-area: price; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--forest); white-space: nowrap; }

.cart-summary{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 88px; }
.cart-summary h2{ font-size: 1.3rem; margin-bottom: 1rem; }
.sum-row{ display: flex; justify-content: space-between; padding: .5rem 0; color: var(--muted); font-size: .98rem; }
.sum-row.total{ border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem; color: var(--forest); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.sum-note{ font-size: .82rem; color: var(--clay-deep); margin-top: .6rem; }
.continue{ display: inline-block; margin-top: 1rem; font-size: .9rem; color: var(--forest-2); font-weight: 600; }
.continue:hover{ color: var(--clay-deep); }

.checkout{ margin-top: 2.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.checkout-h{ font-size: 1.5rem; }
.checkout-note{ background: rgba(139,154,120,.14); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; color: var(--forest-2); margin: .8rem 0 1.4rem; }
.co-set{ border: 0; padding: 0; margin: 0 0 1.4rem; }
.co-set legend{ font-family: var(--serif); font-size: 1.05rem; color: var(--forest); font-weight: 600; margin-bottom: .7rem; padding: 0; }
.field{ display: flex; flex-direction: column; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); gap: .4rem; margin-bottom: .8rem; }
.field input{ font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); padding: .75em .9em; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; }
.field input:focus{ outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(139,154,120,.22); }
.field-row.two{ display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.radio{ display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--forest-2); }
.co-place{ width: 100%; margin-top: .4rem; }
.checkout-fine{ font-size: .8rem; color: var(--muted); text-align: center; margin-top: .8rem; }

.order-done{ text-align: center; max-width: 520px; margin: 2rem auto 4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--shadow-md); }
.order-check{ width: 72px; height: 72px; margin: 0 auto 1.2rem; }
.order-check svg{ width: 100%; height: 100%; }
.order-check circle{ fill: none; stroke: var(--sage); stroke-width: 2; }
.order-check path{ fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.order-done h2{ font-size: 1.8rem; }
.order-done h2 span{ color: var(--clay-deep); font-style: italic; font-weight: 400; }
.order-done p{ color: var(--muted); margin: 1rem 0 1.6rem; }

@media (max-width: 900px){
  .cart-layout{ grid-template-columns: 1fr; }
  .cart-main{ display: contents; }
  .cart-items{ order: 1; }
  .cart-summary{ order: 2; position: static; }
  .checkout{ order: 3; margin-top: 0; }
}
@media (max-width: 640px){
  .related-grid{ grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 560px){
  .citem{ grid-template-columns: 64px 1fr auto; grid-template-areas: "media info price" "media qty price"; row-gap: .5rem; }
  .citem-media{ width: 64px; height: 64px; align-self: start; }
  .citem-qty{ justify-self: start; }
  .citem-price{ align-self: start; }
  .field-row.two{ grid-template-columns: 1fr; }
}
