/* =====================================================================
   MOOSE RIDGE COFFEE CO. · Coffee Closer to Nature
   Design system built from the 2021 brand guidelines.
   Palette:  Midnight Forest #20332C · Morning Sun #DD8520
             Autumn Leaf #AC4921 · Peachy Dune #EEC9B8
   Type:     Poppins (≈ Termina, display) · Hanken Grotesk (≈ National Park,
             body) · Kaushan Script (≈ National Forest, accents)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --forest:      #20332C;
  --forest-deep: #16241E;
  --forest-soft: #2C4339;
  --sun:         #DD8520;
  --sun-bright:  #EE9A33;
  --leaf:        #AC4921;
  --leaf-deep:   #8E3A19;
  --dune:        #EEC9B8;
  --cream:       #F6EBE1;
  --paper:       #FBF4ED;
  --sand:        #ECD8C8;

  --ink:         #20332C;
  --ink-soft:    #4A5B53;
  --line:        rgba(32,51,44,.14);
  --line-light:  rgba(246,235,225,.16);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-script:  "Kaushan Script", cursive;

  --container: 1180px;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -28px rgba(22,36,30,.55);
  --shadow-sm: 0 10px 30px -16px rgba(22,36,30,.45);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

/* Skip link (keyboard a11y) */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--sun); color: var(--forest-deep); padding: .7em 1.2em; border-radius: 0 0 10px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  transition: top .2s var(--ease); }
.skip-link:focus { top: 0; }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.9rem, 7.5vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
}
h2.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-transform: uppercase; }
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: .01em; line-height: 1; text-transform: none; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: .26em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: .6rem;
  color: var(--leaf);
}
.eyebrow--new::before { content:""; display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Marks (recolored silhouettes via mask) ---------- */
.mark { display: inline-block; background-color: currentColor;
  -webkit-mask: var(--src) center/contain no-repeat; mask: var(--src) center/contain no-repeat; }
.mark--moose  { --src: url("../assets/moose-mark.png"); aspect-ratio: 1326/1304; }
.mark--badge  { --src: url("../assets/badge.png"); aspect-ratio: 670/693; }
.mark--stamp  { --src: url("../assets/stamp.png"); aspect-ratio: 810/1341; }
.mark--nature { --src: url("../assets/nature-badge.png"); aspect-ratio: 462/448; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 1.02em 1.7em; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn .btn-ico { font-size: 1.05em; transition: transform .3s var(--ease); }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn--sun   { background: var(--sun); color: var(--forest-deep); box-shadow: 0 12px 26px -12px rgba(221,133,32,.7); }
.btn--sun:hover { background: var(--sun-bright); }
.btn--leaf  { background: var(--leaf); color: var(--cream); }
.btn--leaf:hover { background: var(--leaf-deep); }
.btn--outline { border: 2px solid currentColor; color: var(--forest); padding: .92em 1.6em; }
.btn--outline:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--ghost-light { border: 2px solid var(--line-light); color: var(--cream); padding: .92em 1.6em; }
.btn--ghost-light:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,36,30,.82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-light);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(22,36,30,.96); box-shadow: 0 14px 40px -28px #000; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); }
.brand__badge { color: var(--sun); width: 38px; height: 39px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; line-height: .86; text-transform: uppercase; letter-spacing: .02em; }
.brand__name b { display: block; font-size: 1.04rem; color: var(--cream); }
.brand__name span { display: block; font-size: .56rem; letter-spacing: .34em; color: var(--sun); font-weight: 700; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dune);
  position: relative; padding: .4rem 0; transition: color .2s var(--ease);
}
.nav__links a::after {
  content:""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--sun); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.cart-dot { display: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--forest-deep); color: var(--sun); font-family: var(--font-display); font-weight: 800; font-size: .68rem; align-items: center; justify-content: center; margin-left: -.2rem; }
.cart-dot.show { display: inline-flex; }
.nav__toggle { display: none; width: 44px; height: 44px; color: var(--cream); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.mobile-menu { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--dune); position: relative; overflow: hidden; padding-top: clamp(4rem,7vw,6rem); }
.site-footer .topo-bg { opacity: .05; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; position: relative; z-index: 1; }
.footer__brand .brand__name b { color: var(--cream); }
.footer__brand p { margin-top: 1.1rem; color: var(--dune); opacity: .85; max-width: 30ch; font-size: .95rem; }
.footer__col h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin-bottom: 1.1rem; }
.footer__col a { display: block; padding: .34rem 0; color: var(--dune); opacity: .85; transition: opacity .2s, color .2s, transform .2s; }
.footer__col a:hover { opacity: 1; color: var(--cream); transform: translateX(4px); }
.newsletter p { font-size: .95rem; opacity: .85; margin-bottom: 1rem; }
.newsletter .pill { display: flex; gap: .5rem; background: rgba(246,235,225,.08); border: 1px solid var(--line-light); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; }
.newsletter input { flex: 1; background: none; border: 0; color: var(--cream); font-family: var(--font-body); font-size: .92rem; }
.newsletter input::placeholder { color: rgba(246,235,225,.5); }
.newsletter input:focus { outline: none; }
.newsletter button { background: var(--sun); color: var(--forest-deep); border-radius: 999px; padding: .7em 1.2em; font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; transition: background .2s; }
.newsletter button:hover { background: var(--sun-bright); }
.footer__note { font-size: .82rem; opacity: .65; margin-top: .8rem; }
.footer__bottom {
  margin-top: clamp(3rem,5vw,4.5rem); padding: 1.6rem 0; border-top: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1; font-size: .82rem; opacity: .8;
}
.footer__tag { font-family: var(--font-script); font-size: 1.5rem; color: var(--sun); opacity: 1; }
.footer__socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.footer__socials a { width: 38px; height: 38px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.footer__socials a:hover { background: var(--sun); color: var(--forest-deep); border-color: var(--sun); }

/* ---------- Decorative textures ---------- */
.topo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; z-index: 0; }
.topo-bg--forest { background-image: url("../assets/topo-forest.png"); }
.topo-bg--dune   { background-image: url("../assets/topo-dune.png"); }
.topo-bg--sun    { background-image: url("../assets/topo-sun.png"); }
.grain::after { content:""; position: absolute; inset: 0; background: url("../assets/grain.png"); opacity: .5; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
.trail-divider { height: 80px; background: url("../assets/trail.svg") center/cover no-repeat; opacity: .85; }

/* ---------- Sections on dark / cream ---------- */
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest .lead, .bg-forest p { color: rgba(246,235,225,.82); }
.bg-forest .eyebrow { color: var(--sun); }
.bg-leaf { background: var(--leaf); color: var(--cream); }
.bg-leaf .eyebrow { color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-dune { background: var(--dune); }

/* keep section content above textures */
.section > .container, .section > .center { position: relative; z-index: 2; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: clamp(600px, 94vh, 960px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #11201a; color: var(--cream); }
.hero__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; line-height: 0; }
.hero__scene svg { width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 82% 56% at 50% 40%, rgba(10,16,13,.55), rgba(10,16,13,.12) 56%, transparent 76%); }
.hero__inner { position: relative; z-index: 2; width: min(100% - 2.6rem, 940px); margin-inline: auto; padding: 92px 0 9vh; }
.hero__eyebrow { color: var(--sun); justify-content: center; }
.hero__title { margin: 1.1rem 0; color: var(--cream); text-shadow: 0 6px 38px rgba(0,0,0,.55); }
.hero__title .accent { color: var(--sun); -webkit-text-fill-color: var(--sun); }
.hero__title .script { display: block; font-size: clamp(2rem,4.6vw,3.4rem); color: var(--sun); margin-bottom: -.15em; -webkit-text-fill-color: var(--sun); }
.hero__lead { color: rgba(246,235,225,.92); max-width: 52ch; margin: 0 auto; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }
.hero__meta { display: inline-flex; gap: clamp(1.4rem,4vw,2.8rem); margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.hero__meta b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--sun); line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero__meta span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dune); opacity: .9; }
.hero__scroll { position: absolute; bottom: 16px; left: 50%; z-index: 3; color: var(--dune); font-size: 1.5rem; line-height: 1; text-decoration: none; opacity: .75; animation: heroScrollBob 1.8s ease-in-out infinite; }
@keyframes heroScrollBob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* Duotone photo treatment, keeps any photo on-brand */
.duo { position: relative; isolation: isolate; background: var(--forest-soft); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.92); }
.duo::after { content:""; position: absolute; inset: 0; background: linear-gradient(150deg, var(--forest) 0%, var(--leaf) 100%); mix-blend-mode: color; opacity: .9; }
.duo::before { content:""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(22,36,30,.5), transparent 55%); pointer-events: none; }
.duo--warm::after { background: linear-gradient(150deg, var(--leaf) 0%, var(--sun) 120%); opacity: .82; }

/* =====================================================================
   Positioning band
   ===================================================================== */
.band { background: var(--sun); color: var(--forest-deep); text-align: center; padding: clamp(2.6rem,5vw,4rem) 0; position: relative; overflow: hidden; }
.band .topo-bg { opacity: .14; }
.band h2 { font-size: clamp(1.8rem,5vw,3.4rem); text-transform: uppercase; letter-spacing: -.01em; }
.band p { font-family: var(--font-script); font-size: clamp(1.3rem,2.6vw,2rem); color: var(--forest-deep); margin-top: .4rem; }

/* =====================================================================
   MOOSE SCENE · animated dawn ridge with a walking moose
   ===================================================================== */
.moose-scene { position: relative; overflow: hidden; background: #16241e; line-height: 0; }
.moose-scene__svg { display: block; width: 100%; height: auto; }
.moose-scene__overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; line-height: 1.2;
}
.moose-scene__overlay .script { color: var(--sun); font-size: clamp(1.3rem,3.2vw,2.3rem); text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.moose-scene__overlay h2 { color: var(--cream); font-size: clamp(2.2rem,6.5vw,5.2rem); text-transform: uppercase; letter-spacing: -.01em; margin: .1em 0 .4rem; text-shadow: 0 6px 34px rgba(0,0,0,.5); }
.moose-scene__overlay p.tag { color: var(--dune); font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; font-size: clamp(.92rem,1.6vw,1.15rem); text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.moose-scene__hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--dune); opacity: .55; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-display); pointer-events: none; }

/* parallax wrappers (JS sets translateY; never animated in CSS to avoid conflicts) */
.scene-layer { will-change: transform; }

/* --- sun --- */
.scene-sun-glow { animation: sunGlow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene-sun { animation: sunBreathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sunGlow { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes sunBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* --- clouds --- */
.cloud { opacity: .14; animation: cloudDrift linear infinite; transform-box: fill-box; }
.cloud--1 { animation-duration: 46s; }
.cloud--2 { animation-duration: 64s; animation-delay: -20s; }
.cloud--3 { animation-duration: 54s; animation-delay: -38s; }
@keyframes cloudDrift { from { transform: translateX(-360px); } to { transform: translateX(1560px); } }

/* --- birds --- */
.bird { animation: birdFly linear infinite; transform-box: fill-box; }
.bird--1 { animation-duration: 26s; animation-delay: -4s; }
.bird--2 { animation-duration: 30s; animation-delay: -12s; }
.bird__wing { transform-box: fill-box; transform-origin: center; animation: flap .9s ease-in-out infinite; }
@keyframes birdFly { from { transform: translate(-80px,0); } to { transform: translate(1540px,-30px); } }
@keyframes flap { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }

/* --- the moose --- */
.moose { will-change: transform; }                       /* position driven by JS (amble + flee) */
.moose-face { transform-box: fill-box; transform-origin: center; transition: transform .18s ease; }
.moose-bob { animation: mooseBob .72s ease-in-out infinite; }
.moose-head { transform-box: fill-box; transform-origin: 22% 78%; animation: headNod 1.44s ease-in-out infinite; }
.leg { transform-box: fill-box; transform-origin: 50% 6%; }
.leg--a { animation: legSwingA .72s ease-in-out infinite; }
.leg--b { animation: legSwingB .72s ease-in-out infinite; }
@keyframes mooseBob { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@keyframes legSwingA { 0%,100% { transform: rotate(15deg); } 50% { transform: rotate(-15deg); } }
@keyframes legSwingB { 0%,100% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } }
@keyframes headNod { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }

/* hover trot is handled in main.js via the Web Animations API playbackRate,
   which speeds the animation up smoothly instead of changing animation-duration
   (changing duration on a running animation remaps progress and teleports it). */

/* --- dashed trail --- */
.scene-trail { stroke-dasharray: 2 26; animation: trailFlow 3s linear infinite; }
@keyframes trailFlow { to { stroke-dashoffset: -112; } }

/* --- seasonal particles: one positioned wrapper, four shapes, only the season's shows --- */
.shape { display: none; opacity: 0; transform-box: fill-box; transform-origin: center; animation: 11s linear infinite; }
.p--1  .shape { animation-duration: 9s;    animation-delay: 0s; }
.p--2  .shape { animation-duration: 12s;   animation-delay: -3s; }
.p--3  .shape { animation-duration: 10s;   animation-delay: -6s; }
.p--4  .shape { animation-duration: 13s;   animation-delay: -1.5s; }
.p--5  .shape { animation-duration: 11s;   animation-delay: -8s; }
.p--6  .shape { animation-duration: 9.5s;  animation-delay: -4.5s; }
.p--7  .shape { animation-duration: 12.5s; animation-delay: -10s; }
.p--8  .shape { animation-duration: 10.5s; animation-delay: -2s; }
.p--9  .shape { animation-duration: 14s;   animation-delay: -7s; }
.p--10 .shape { animation-duration: 11.5s; animation-delay: -5.5s; }
.p--11 .shape { animation-duration: 13.5s; animation-delay: -9s; }
.p--12 .shape { animation-duration: 8.5s;  animation-delay: -1s; }
.p--13 .shape { animation-duration: 7s;   animation-delay: 0s; }
.p--14 .shape { animation-duration: 8.5s; animation-delay: -2s; }
.p--15 .shape { animation-duration: 6.5s; animation-delay: -4s; }
.p--16 .shape { animation-duration: 9s;   animation-delay: -1s; }
.p--17 .shape { animation-duration: 7.5s; animation-delay: -5.5s; }
.p--18 .shape { animation-duration: 8s;   animation-delay: -3s; }
.p--19 .shape { animation-duration: 6.8s; animation-delay: -6s; }
.p--20 .shape { animation-duration: 9.5s; animation-delay: -2.5s; }

/* show + animate the right shape for the active season */
.hero.s-fall   .shape--leaf    { display: block; animation-name: leafFall; }
.hero.s-winter .shape--snow    { display: block; animation-name: snowFall; }
.hero.s-spring .shape--blossom { display: block; animation-name: blossomFall; }
.hero.s-summer .shape--firefly { display: block; animation-name: fireflyRise; filter: drop-shadow(0 0 6px rgba(255,206,110,.95)); }

@keyframes leafFall    { 0%{transform:translate(0,-16px) rotate(0);opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{transform:translate(-30px,210px) rotate(380deg);opacity:0} }
@keyframes snowFall    { 0%{transform:translate(0,-16px) rotate(0);opacity:0} 12%{opacity:.95} 88%{opacity:.95} 100%{transform:translate(22px,250px) rotate(90deg);opacity:0} }
@keyframes blossomFall { 0%{transform:translate(0,-14px) rotate(0);opacity:0} 12%{opacity:.92} 88%{opacity:.92} 100%{transform:translate(-26px,230px) rotate(300deg);opacity:0} }
@keyframes fireflyRise { 0%{transform:translate(0,40px) scale(.55);opacity:0} 9%{opacity:1} 28%{transform:translate(10px,-50px) scale(1);opacity:.6} 50%{transform:translate(-8px,-100px);opacity:1} 72%{opacity:.62} 90%{opacity:1} 100%{transform:translate(8px,-175px) scale(1.06);opacity:0} }

@media (max-width: 700px) {
  .moose-scene__svg { height: 62vw; object-fit: cover; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .moose-scene *, .hero__scene * { animation: none !important; }
  .moose { transform: translateX(330px); }
  .eyebrow--new::before { animation: none !important; }
}

/* =====================================================================
   Feature / split blocks
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); position: relative; }
.split__media.tall { aspect-ratio: 3/4; }
.split__media > img { width: 100%; height: 100%; object-fit: cover; }

/* Principles / value cards */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(3,1fr); }
.cards--4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(32,51,44,.28); }
.card__ico { width: 52px; height: 52px; color: var(--leaf); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.18rem; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__num { position: absolute; top: 1rem; right: 1.3rem; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--line); }
.bg-forest .card { background: var(--forest-soft); border-color: var(--line-light); color: var(--cream); }
.bg-forest .card p { color: rgba(246,235,225,.78); }
.bg-forest .card__ico { color: var(--sun); }
.bg-forest .card__num { color: rgba(246,235,225,.12); }

/* =====================================================================
   Products / shop
   ===================================================================== */
.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__top { aspect-ratio: 4/3.4; position: relative; display: grid; place-items: center; overflow: hidden; }
.product__bag { width: 50%; color: var(--cream); filter: drop-shadow(0 18px 26px rgba(0,0,0,.3)); transition: transform .4s var(--ease); }
.product__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__top img { transform: scale(1.05); }
.product:hover .product__bag { transform: translateY(-6px) rotate(-2deg); }
.product__tag { position: absolute; top: .9rem; left: .9rem; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; }
.product__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.product__origin { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); font-weight: 700; font-family: var(--font-display); }
.product h3 { font-size: 1.3rem; text-transform: uppercase; margin: .35rem 0 .5rem; }
.product__notes { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.product__meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.chip { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: var(--sand); color: var(--leaf-deep); }
.product__buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.product__price span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.add-btn { background: var(--forest); color: var(--cream); border-radius: 999px; padding: .7em 1.2em; font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, transform .2s; }
.add-btn:hover { background: var(--leaf); transform: translateY(-2px); }
/* Coming Soon (beans not sold online yet) */
.add-btn--soon { background: transparent; color: var(--ink-soft); border: 1px solid var(--line, rgba(32,51,44,.2)); cursor: default; }
.add-btn--soon:hover { background: transparent; transform: none; }
.pdp__soon { background: var(--cream); border: 1px solid rgba(32,51,44,.12); border-radius: 16px; padding: 1.4rem 1.5rem; margin: .4rem 0 .2rem; }
.pdp__soon-badge { display: inline-block; background: var(--sun); color: var(--forest); border-radius: 999px; padding: .35em .9em; font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.pdp__soon p { margin: .8rem 0 1.1rem; color: var(--ink-soft); }
.product__tag--soon { background: var(--sun); color: var(--forest); }

/* roast strength meter */
.roast { display: flex; align-items: center; gap: .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: .2rem; }
.roast__dots { display: inline-flex; gap: 3px; }
.roast__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.roast__dots i.on { background: var(--leaf); }

/* =====================================================================
   Menu
   ===================================================================== */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem) clamp(2.5rem,6vw,5rem); }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 2px solid var(--forest); }
.menu-cat__head h3 { font-size: 1.5rem; text-transform: uppercase; }
.menu-cat__head .script { color: var(--leaf); font-size: 1.4rem; margin-left: auto; }
.menu-item { display: flex; align-items: baseline; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.menu-item__desc { font-size: .86rem; color: var(--ink-soft); }
.menu-item__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu-item__price { font-family: var(--font-display); font-weight: 800; color: var(--leaf); white-space: nowrap; }

/* =====================================================================
   Reviews
   ===================================================================== */
/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 230px; gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery .g-wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; } }

.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; }
.bg-forest .review { background: var(--forest-soft); border-color: var(--line-light); }
.review__stars { color: var(--sun); letter-spacing: .15em; margin-bottom: .9rem; }
.review p { font-size: 1.02rem; line-height: 1.6; }
.bg-forest .review p { color: var(--cream); }
.review__by { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--forest-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.review__by b { font-family: var(--font-display); font-size: .95rem; }
.review__by span { display: block; font-size: .8rem; color: var(--ink-soft); }
.bg-forest .review__by span { color: var(--dune); opacity: .8; }

/* =====================================================================
   Coffee Club
   ===================================================================== */
.club-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; display: flex; flex-direction: column; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.tier--featured { background: var(--forest); color: var(--cream); border-color: var(--forest); transform: scale(1.03); }
.tier--featured:hover { transform: scale(1.03) translateY(-6px); }
.tier__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .45em 1.1em; border-radius: 999px; }
.tier h3 { font-size: 1.3rem; text-transform: uppercase; }
.tier__price { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; margin: .6rem 0 .2rem; }
.tier__price span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.tier--featured .tier__price span { color: var(--dune); }
.tier__list { margin: 1.4rem 0 1.8rem; }
.tier__list li { display: flex; gap: .6rem; padding: .45rem 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.tier--featured .tier__list li { border-color: var(--line-light); color: rgba(246,235,225,.9); }
.tier__list li::before { content:"✦"; color: var(--leaf); }
.tier--featured .tier__list li::before { color: var(--sun); }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* =====================================================================
   Forms
   ===================================================================== */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem,3vw,2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; color: var(--forest); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(221,133,32,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-msg { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: rgba(221,133,32,.15); border: 1px solid var(--sun); color: var(--leaf-deep); font-weight: 600; }
.form-msg.show { display: block; }

/* =====================================================================
   Contact / visit
   ===================================================================== */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,4vw,3.5rem); align-items: stretch; }
.info-list { margin-top: 1.6rem; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list .ico { color: var(--leaf); flex: none; width: 26px; }
.info-list b { font-family: var(--font-display); display: block; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.info-list span { color: var(--ink-soft); font-size: .95rem; }
.hours { margin-top: .4rem; }
.hours li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li b { font-family: var(--font-display); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 380px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.3) sepia(.2) saturate(1.2); }

/* =====================================================================
   Page hero (interior pages)
   ===================================================================== */
.page-hero { background: var(--forest); color: var(--cream); padding: clamp(3.5rem,7vw,6rem) 0 clamp(3rem,5vw,4.5rem); position: relative; overflow: hidden; text-align: center; }
.page-hero .topo-bg { opacity: .12; }
.page-hero .eyebrow { color: var(--sun); justify-content: center; }
.page-hero h1 { color: var(--cream); margin: 1rem 0 .8rem; }
.page-hero .lead { color: rgba(246,235,225,.82); margin-inline: auto; }
.breadcrumb { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dune); opacity: .7; margin-top: 1.4rem; }
.breadcrumb a:hover { color: var(--sun); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .01em; margin: 2.2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .8rem; }
.legal ul { padding-left: 1.3rem; list-style: disc; margin-bottom: .8rem; }
.legal a { color: var(--leaf); text-decoration: underline; }
.legal__updated { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 2rem; }
.legal__note { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .9rem; color: var(--leaf-deep); margin-bottom: 2.4rem; }

/* =====================================================================
   CTA strip
   ===================================================================== */
.cta-strip { background: var(--leaf); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.cta-strip .topo-bg { opacity: .1; }
.cta-strip h2 { font-size: clamp(2rem,4.5vw,3.4rem); text-transform: uppercase; }
.cta-strip .script { color: var(--dune); font-size: clamp(1.4rem,3vw,2.2rem); display: block; }
.cta-strip__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* =====================================================================
   Reveal animation
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__stamp { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
/* nav collapses to a hamburger early enough that the 7-item bar never crowds */
@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: block; position: fixed; inset: 78px 0 0; background: var(--forest-deep); z-index: 90;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; padding: 1.8rem 1.5rem; overflow-y: auto; }
  .mobile-menu.open { transform: none; visibility: visible; }
  .mobile-menu a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
    text-transform: uppercase; color: var(--cream); padding: .9rem 0; border-bottom: 1px solid var(--line-light); }
  .mobile-menu a:hover, .mobile-menu a.is-active { color: var(--sun); }
  .mobile-menu .btn { margin-top: 1.4rem; width: 100%; justify-content: center; font-size: .9rem; letter-spacing: .1em; padding: 1.05em 1.4em; border-bottom: 0; }
  body.menu-open { overflow: hidden; }
  .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); }
}
@media (max-width: 940px) {
  .hero__inner, .split, .visit-grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; order: -1; }
  .split--flip .split__media { order: 0; }
  .cards, .products, .reviews, .club-tiers { grid-template-columns: repeat(2,1fr); }
  .cards--4 { grid-template-columns: repeat(2,1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .tier--featured { transform: none; }
  .tier--featured:hover { transform: translateY(-6px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .products, .reviews, .club-tiers, .field-row { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 1.4rem; flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* =====================================================================
   CART + CHECKOUT
   ===================================================================== */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: var(--cream); transition: background .2s var(--ease), color .2s; }
.cart-btn:hover { background: rgba(246,235,225,.12); color: var(--sun); }
.cart-btn__count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 800; font-size: .66rem; display: inline-flex; align-items: center; justify-content: center; }
.cart-btn__count[hidden] { display: none; }
[hidden] { display: none !important; }

.cart-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,13,.55); opacity: 0; transition: opacity .35s var(--ease); }
.cart-overlay.show { opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 201; height: 100%; width: min(420px, 92vw); background: var(--paper); box-shadow: -20px 0 60px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); }
.cart-drawer.open { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; }
.cart-drawer__close { font-size: 1.7rem; line-height: 1; color: var(--ink-soft); width: 36px; height: 36px; }
.cart-drawer__close:hover { color: var(--leaf); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.cart-item__info b { font-family: var(--font-display); font-size: .98rem; display: block; }
.cart-item__info > span { font-size: .8rem; color: var(--ink-soft); display: block; }
.cart-item__price { color: var(--leaf); font-weight: 600; }
.cart-item__qty { display: inline-flex; align-items: center; gap: .5rem; }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--forest); font-weight: 700; font-size: 1rem; line-height: 1; }
.cart-item__qty button:hover { background: var(--sun); }
.cart-item__qty span { min-width: 16px; text-align: center; font-weight: 600; }
.cart-item__remove { color: var(--ink-soft); font-size: 1.3rem; width: 24px; }
.cart-item__remove:hover { color: var(--leaf); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.cart-empty p { font-family: var(--font-display); font-weight: 700; margin-top: 1rem; }
.cart-empty span { font-size: .9rem; }
.cart-drawer__foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.cart-drawer__ship { font-size: .82rem; color: var(--leaf); margin-bottom: .8rem; min-height: 1em; }
.cart-drawer__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-drawer__row b { font-family: var(--font-display); font-size: 1.3rem; }
.cart-drawer__checkout { width: 100%; justify-content: center; }
.cart-drawer__checkout.is-disabled { opacity: .45; pointer-events: none; }
.cart-drawer__continue { display: block; width: 100%; text-align: center; margin-top: .8rem; padding: .6rem; color: var(--ink-soft); font-size: .9rem; }
.cart-drawer__continue:hover { color: var(--leaf); }
body.cart-open { overflow: hidden; }

.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.co-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); }
.co-panel h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 1rem; }
.co-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.co-line b { font-family: var(--font-display); }
.co-line span { color: var(--ink-soft); font-size: .85rem; }
.co-line__ctl { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; }
.co-line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.co-line__qty button { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1; transition: background .15s var(--ease); }
.co-line__qty button:hover { background: var(--sand); }
.co-line__qty span { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink); }
.co-line__rm { background: none; color: var(--ink-soft); font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; }
.co-line__rm:hover { color: var(--leaf); }
.co-line__price { white-space: nowrap; font-size: 1.05rem; }
.co-line__info { min-width: 0; }
.co-line .co-line__qtytext { display: block; margin-top: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }
#co-totals { margin-top: 1.2rem; }
.co-row { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--ink-soft); }
.co-row--total { border-top: 2px solid var(--forest); margin-top: .5rem; padding-top: .8rem; color: var(--ink); }
.co-row--total b { font-family: var(--font-display); font-size: 1.5rem; }
.co-confirm, .co-empty { max-width: 640px; margin: 0 auto; padding: 2rem 0; }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } .checkout .co-summary { order: -1; } }

/* =====================================================================
   PRODUCT DETAIL PAGE (PDP)
   ===================================================================== */
.pdp-crumb { color: var(--ink-soft); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.8rem; }
.pdp-crumb a:hover { color: var(--leaf); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4.5vw,4rem); align-items: start; }
.pdp__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); position: relative; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__media--mark { display: grid; place-items: center; }
.pdp__media--mark .mark--moose { width: 46%; aspect-ratio: 1326/1304; }
.pdp__tag { position: absolute; top: 1rem; left: 1rem; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; }
.pdp__info .eyebrow { margin-bottom: .6rem; }
.pdp__title { font-size: clamp(2rem,4vw,3rem); text-transform: uppercase; margin: .2rem 0 .6rem; }
.pdp__assure { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.pdp__price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--leaf); margin-bottom: 1rem; }
.pdp__short { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.4rem; }
.pdp__opt { margin-bottom: 1.1rem; }
.pdp__opt label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.pdp__opt select { width: 100%; max-width: 300px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
.pdp__buy { display: flex; gap: .8rem; align-items: stretch; margin-bottom: .8rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 48px; font-size: 1.3rem; font-weight: 700; color: var(--forest); line-height: 1; }
.qty button:hover { color: var(--leaf); }
.qty input { width: 42px; text-align: center; border: 0; background: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__buy .btn--sun { flex: 1; justify-content: center; min-width: 170px; }
.pdp__buynow { display: block; width: 100%; text-align: center; padding: .95em; border: 2px solid var(--forest); border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); transition: background .2s, color .2s; }
.pdp__buynow:hover { background: var(--forest); color: var(--cream); }
.pdp__trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pdp__trust li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); }
.pdp__trust svg { color: var(--leaf); flex: none; }
.pdp__details { max-width: 780px; }
.pdp__details h2 { font-size: 1.5rem; text-transform: uppercase; margin: 0 0 1rem; }
.pdp__details h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; margin: 2rem 0 .6rem; }
.pdp__details p { color: var(--ink-soft); margin-bottom: 1rem; }
.feature-list { display: grid; gap: 0; margin: 1rem 0; }
.feature-list li { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.feature-list li::before { content: "✦"; color: var(--leaf); flex: none; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } .pdp__media { max-width: 460px; } }

/* clickable product cards (shop listing + related) */
.product__link { display: block; }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--leaf); }
.product__link:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* =====================================================================
   PROMO BAR (site-wide announcement, injected by main.js)
   ===================================================================== */
.promo-bar { background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 600; font-size: .84rem; }
.promo-bar .container { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .55rem 1rem; flex-wrap: wrap; text-align: center; }
.promo-bar a { text-decoration: underline; font-weight: 700; }
.promo-bar a:hover { color: var(--leaf-deep); }
.promo-bar__tag { background: var(--forest-deep); color: var(--sun); border-radius: 999px; padding: .15em .65em; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.promo-bar__close { margin-left: .3rem; font-size: 1.25rem; line-height: 1; color: var(--forest-deep); opacity: .65; }
.promo-bar__close:hover { opacity: 1; }
/* holiday / hours variant: forest bar with sun accents */
.promo-bar--holiday { background: var(--forest-deep); color: var(--cream); }
.promo-bar--holiday .promo-bar__tag { background: var(--sun); color: var(--forest-deep); }
.promo-bar--holiday a { color: var(--sun); }
.promo-bar--holiday a:hover { color: var(--sun-bright); }
.promo-bar--holiday .promo-bar__close { color: var(--cream); }

/* =====================================================================
   ESPRESSO REPAIR SPOTLIGHT (homepage)
   ===================================================================== */
.eyebrow--new { color: var(--sun); }
.eyebrow--new::before { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: ping 1.7s ease-in-out infinite; }
@keyframes ping { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.repair-feats { display: grid; gap: .8rem; margin-top: 1.5rem; }
.repair-feats li { display: flex; gap: .7rem; align-items: center; color: rgba(246,235,225,.9); font-weight: 500; }
.repair-feats li svg { color: var(--sun); flex: none; }
.repair-card { background: var(--forest-deep); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(1.8rem,4vw,2.6rem); max-width: 390px; margin-inline: auto; box-shadow: var(--shadow); text-align: center; color: var(--cream); }
.repair-card__ico { color: #f3c47e; display: inline-block; width: 100px; }
.repair-card__ico svg { width: 100%; height: auto; }
.repair-card__line { color: rgba(246,235,225,.8); margin: 1.1rem 0 1.4rem; font-size: .98rem; }
.repair-card__row { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   FAQ (native details/summary accordion)
   ===================================================================== */
.faq { max-width: 800px; margin-inline: auto; }
.faq__group + .faq__group { margin-top: 2.6rem; }
.faq__group h2 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 1.1rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .7rem; background: var(--paper); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--leaf); transition: transform .2s var(--ease); line-height: 1; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); margin: 0; }
.faq details > p a { color: var(--leaf); text-decoration: underline; }

/* =====================================================================
   JOURNAL (post cards) + ARTICLE prose
   ===================================================================== */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.posts--2 { grid-template-columns: repeat(2,1fr); max-width: 800px; margin-inline: auto; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(32,51,44,.28); }
.post__top { aspect-ratio: 16/10; background: var(--forest); display: grid; place-items: center; position: relative; }
.post__top .mark--moose { width: 30%; aspect-ratio: 1326/1304; }
.post__cat { position: absolute; top: .9rem; left: .9rem; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .35em .7em; border-radius: 999px; }
.post__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post__body h3 { font-size: 1.15rem; text-transform: uppercase; }
.post__excerpt { color: var(--ink-soft); font-size: .95rem; }
.post__more { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }

.article__meta { color: rgba(246,235,225,.72); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .7rem; }
.article { max-width: 720px; margin-inline: auto; }
.article p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.article h2 { font-size: 1.45rem; text-transform: uppercase; margin: 2.2rem 0 .9rem; }
.article ul, .article ol { margin: 0 0 1.3rem 1.3rem; }
.article ul li { margin-bottom: .45rem; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: step; margin-left: 0 !important; }
.steps li { position: relative; padding-left: 3rem; margin-bottom: 1.1rem; counter-increment: step; color: var(--ink-soft); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: .92rem; }
.article__note { background: var(--sand); border-left: 4px solid var(--sun); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.2rem 1.4rem; margin: 1.8rem 0; color: var(--ink); }
.article__note b { font-family: var(--font-display); }
.article__note a { color: var(--leaf-deep); text-decoration: underline; font-weight: 600; }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-top: 2.4rem; }
.article__cta h3 { font-size: 1.4rem; text-transform: uppercase; }
.article__cta p { color: var(--ink-soft); margin: 0; }
.article__cta--alt { background: var(--forest); border-color: var(--line-light); color: var(--cream); }
.article__cta--alt .eyebrow { color: var(--sun); }
.article__cta--alt h3 { color: var(--cream); }
.article__cta--alt p { color: rgba(246,235,225,.8); }

@media (max-width: 820px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts, .posts--2 { grid-template-columns: 1fr; } }

/* =====================================================================
   PURCHASE ECOSYSTEM (promo, payment methods, order confirmation)
   ===================================================================== */
.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; }

.co-promo { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.co-promo label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: .5rem; }
.co-promo__row { display: flex; gap: .5rem; }
.co-promo__row input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ink); }
.co-promo__row input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(221,133,32,.18); }
.co-promo__row button { flex: none; padding: 0 1.1rem; border-radius: var(--radius-sm); background: var(--forest); color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.co-promo__row button:hover { background: var(--forest-soft); }
.co-promo__msg { font-size: .82rem; margin-top: .5rem; min-height: 1em; color: var(--ink-soft); }
.co-promo__msg.is-ok { color: var(--leaf); font-weight: 600; }
.co-promo__msg.is-bad { color: #b3402a; }
.co-row--save { color: var(--leaf); font-weight: 600; }

.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
.pay-method { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-method:has(input:checked) { border-color: var(--sun); background: #fdf6ee; box-shadow: 0 0 0 1px var(--sun) inset; }
.pay-method input { margin-top: .25rem; accent-color: var(--sun); width: 18px; height: 18px; flex: none; }
.pay-method--soon { opacity: .62; cursor: not-allowed; }
.pay-method__title { font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pay-method__desc { display: block; color: var(--ink-soft); font-size: .88rem; margin-top: .25rem; }
.pay-method__badge { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .25em .6em; border-radius: 999px; background: var(--leaf); color: var(--cream); }
.pay-method__badge--soon { background: var(--sand); color: var(--leaf-deep); }

.co-confirm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem,3vw,2.4rem); align-items: start; margin-top: 2rem; }
.co-pay__note { color: var(--ink-soft); margin-bottom: 1.2rem; }
.co-pay__ship { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.co-pay__ship h4 { font-family: var(--font-display); text-transform: uppercase; font-size: .76rem; letter-spacing: .1em; color: var(--forest); margin-bottom: .4rem; }
.co-pay__ship p { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.co-confirm__demo { text-align: center; color: var(--ink-soft); font-size: .82rem; margin-top: 2rem; }
.co-confirm { max-width: 920px; }
@media (max-width: 820px) { .co-confirm__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   MOBILE POLISH
   ===================================================================== */
/* keep all form text >= 16px on phones so iOS doesn't zoom on focus */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 600px) {
  /* full-width, thumb-friendly primary actions */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-strip__actions { flex-direction: column; }
  .cta-strip__actions .btn { width: 100%; justify-content: center; }
  .pdp__buy { flex-direction: column; align-items: stretch; }
  .pdp__buy .qty { align-self: flex-start; }
  .pdp__buy .btn--sun { width: 100%; min-width: 0; }
  .article__cta { flex-direction: column; align-items: flex-start; }
  .article__cta .btn { width: 100%; justify-content: center; }
  /* larger tap targets for quantity steppers */
  .co-line__qty button { width: 36px; height: 36px; }
  .cart-item__qty button { min-width: 34px; min-height: 34px; }
  .qty button { width: 46px; }
  /* tighten vertical rhythm a little on small screens */
  .section { padding: clamp(3.2rem, 11vw, 5rem) 0; }
  .hero__inner { padding-top: 80px; }
  .pdp-crumb, .breadcrumb { font-size: .72rem; }
}
@media (max-width: 400px) {
  .display { font-size: 2.55rem; }
  .hero__title .script { font-size: 1.7rem; }
  .hero__meta b { font-size: 1.3rem; }
  .promo-bar .container { font-size: .76rem; gap: .4rem; padding: .5rem .8rem; }
  .container { width: min(100% - 2rem, var(--container)); }
}

/* =====================================================================
   MOBILE POLISH II (header bulk, cards, gallery, rewards stamp)
   ===================================================================== */
@media (max-width: 768px) {
  /* slimmer header */
  .nav { height: 58px; }
  .brand__badge { width: 30px; height: 31px; }
  .brand__name b { font-size: .9rem; }
  .brand__name span { font-size: .48rem; letter-spacing: .26em; }
  .cart-btn { width: 38px; height: 38px; }
  .nav__toggle { width: 40px; height: 40px; }
  /* compact promo bar */
  .promo-bar .container { padding: .45rem .9rem; gap: .45rem; font-size: .8rem; }
  .promo-bar__tag { font-size: .62rem; padding: .12em .5em; }
}
@media (max-width: 600px) {
  /* less-bulky info cards (Stay a while, principles, etc.) */
  .card { padding: 1.35rem 1.3rem; }
  .card__ico { width: 38px; height: 38px; margin-bottom: .8rem; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: .92rem; }
  /* moose rewards stamp was huge on mobile */
  .mark--stamp { width: 150px !important; }
}
/* gallery: drop the wide spans so all photos are uniform on phones */
@media (max-width: 760px) {
  .gallery { grid-auto-rows: 44vw; }
  .gallery .g-wide { grid-column: span 1; }
}

/* =====================================================================
   COOKIE CONSENT BANNER
   ===================================================================== */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 540px; margin-inline: auto;
  background: var(--forest-deep); color: var(--cream); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .4s var(--ease); }
.cookie-bar.show { transform: none; }
.cookie-bar p { font-size: .88rem; color: rgba(246,235,225,.9); flex: 1; min-width: 220px; margin: 0; }
.cookie-bar a { color: var(--sun); text-decoration: underline; }
.cookie-bar__ok { flex: none; background: var(--sun); color: var(--forest-deep); font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .7em 1.4em; border-radius: 999px; }
.cookie-bar__ok:hover { background: var(--sun-bright); }
@media (max-width: 480px) { .cookie-bar { padding: .9rem 1rem; } .cookie-bar__ok { width: 100%; justify-content: center; } }

/* =====================================================================
   CRO · free-ship bar, cart upsell, trust, subscriptions, fulfillment,
   ratings, scarcity, sticky add-to-cart, PDP reviews
   ===================================================================== */
.is-hidden { display: none !important; }

/* free-shipping progress bar (cart drawer + checkout) */
.ship-bar { margin-bottom: 1rem; }
.ship-bar__msg { font-size: .82rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.ship-bar__msg b { color: var(--leaf); font-family: var(--font-display); }
.ship-bar__msg--ok { color: var(--leaf); font-weight: 700; }
.ship-bar__track { height: 7px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.ship-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), var(--sun)); transition: width .5s var(--ease); }

/* drawer trust badges */
.cart-trust { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.cart-trust li { font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }

/* subscription tags on lines */
.cart-item__sub, .co-line__sub { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--leaf-deep); background: var(--sand); border-radius: 999px; padding: .1em .6em; margin-top: .2rem; letter-spacing: .03em; }
.co-line__sub { font-size: .74rem; }

/* cart upsell recommendations */
.cart-recs { margin: 1rem 0 .4rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.cart-recs__h { display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7rem; }
.cart-rec { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .7rem; padding: .55rem 0; }
.cart-rec__info b { font-family: var(--font-display); font-size: .9rem; display: block; }
.cart-rec__info span { font-size: .76rem; color: var(--ink-soft); }
.cart-rec__price { font-weight: 700; color: var(--leaf); font-size: .9rem; }
.cart-rec__add { background: var(--forest); color: var(--cream); border-radius: 999px; padding: .4em .9em; font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, transform .2s; }
.cart-rec__add:hover { background: var(--leaf); transform: translateY(-1px); }
#co-recs { margin-top: 1.4rem; }
#co-recs:empty { display: none; }
#co-recs .cart-recs { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0; background: var(--paper); }

/* checkout: pickup vs ship toggle */
.fulfill-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.6rem; }
.fulfill-opt { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.fulfill-opt.is-on { border-color: var(--sun); background: #fdf6ee; box-shadow: 0 0 0 1px var(--sun) inset; }
.fulfill-opt input { margin-top: .2rem; accent-color: var(--sun); width: 18px; height: 18px; flex: none; }
.fulfill-opt__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; display: block; }
.fulfill-opt__desc { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: .15rem; }
.co-pickup-note { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem; color: var(--leaf-deep); font-size: .92rem; }
.co-pickup-note b { font-family: var(--font-display); }
@media (max-width: 420px) { .fulfill-opts { grid-template-columns: 1fr; } }

/* checkout trust row under the place-order button */
.co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; margin-top: 1.1rem; }
.co-trust li { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--ink-soft); }
.co-trust svg { color: var(--leaf); flex: none; }

/* order bump */
.order-bump { display: flex; gap: .8rem; align-items: flex-start; margin: 1.2rem 0; padding: 1rem 1.1rem; border: 1px dashed var(--sun); border-radius: var(--radius-sm); background: #fdf6ee; cursor: pointer; }
.order-bump input { margin-top: .2rem; accent-color: var(--sun); width: 18px; height: 18px; flex: none; }
.order-bump b { font-family: var(--font-display); }
.order-bump span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }

/* star ratings (PDP + shop cards) */
.stars { color: var(--sun); letter-spacing: .08em; font-size: .95rem; line-height: 1; }
.pdp__rating { display: flex; align-items: center; gap: .55rem; margin: -.2rem 0 1rem; font-size: .88rem; color: var(--ink-soft); }
.pdp__rating a { color: var(--ink-soft); text-decoration: underline; }
.pdp__rating a:hover { color: var(--leaf); }
.product__rating { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 .5rem; font-size: .8rem; color: var(--ink-soft); }
.product__rating .stars { font-size: .85rem; }

/* scarcity / stock note */
.pdp__stock { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--leaf); margin-bottom: 1rem; }
.pdp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: ping 1.7s ease-in-out infinite; }

/* subscribe & save plan picker (PDP) */
.plan-opts { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.plan-opt { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.plan-opt.is-on { border-color: var(--sun); background: #fdf6ee; box-shadow: 0 0 0 1px var(--sun) inset; }
.plan-opt input { margin-top: .15rem; accent-color: var(--sun); width: 18px; height: 18px; flex: none; }
.plan-opt__title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.plan-opt__save { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: .2em .55em; border-radius: 999px; background: var(--leaf); color: var(--cream); }
.plan-opt__desc { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }
.sub-freq { margin-top: .6rem; width: 100%; max-width: 300px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-family: var(--font-body); font-size: .95rem; color: var(--ink); }

/* sticky add-to-cart on mobile PDPs */
.pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(0,0,0,.4); padding: .7rem 1rem; }
.pdp-sticky__price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.pdp-sticky__price small { font-size: .7rem; color: var(--ink-soft); font-weight: 600; }
.pdp-sticky .btn { flex: 1; justify-content: center; max-width: 60%; }
@media (max-width: 600px) { .pdp-sticky { display: flex; } body.has-pdp-sticky { padding-bottom: 76px; } }

/* PDP reviews section */
.pdp-reviews { max-width: 820px; }
.pdp-reviews__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.pdp-reviews__score { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--leaf); }
.pdp-reviews__meta .stars { font-size: 1.1rem; }
.pdp-reviews__meta span { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: .2rem; }
.pdp-review { padding: 1.3rem 0; border-bottom: 1px dashed var(--line); }
.pdp-review:last-child { border-bottom: 0; }
.pdp-review__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.pdp-review__top .stars { font-size: .85rem; }
.pdp-review__name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.pdp-review__verified { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); font-weight: 700; }
.pdp-review p { color: var(--ink-soft); margin: 0; }

/* ---------- UGC / social wall ---------- */
.ugc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ugc-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ugc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ugc-card:hover img, .ugc-card:focus-visible img { transform: scale(1.06); }
.ugc-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,36,30,.62), rgba(22,36,30,0) 55%); }
.ugc-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 999px; background: rgba(246,235,225,.92); color: var(--forest-deep); transition: transform .25s var(--ease), background .25s; }
.ugc-card__play svg { width: 22px; height: 22px; margin-left: 2px; }
.ugc-card:hover .ugc-card__play { transform: translate(-50%,-50%) scale(1.08); background: var(--sun); }
.ugc-card__badge { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: 5px; padding: .32em .62em; border-radius: 999px; background: rgba(22,36,30,.55); color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.ugc-card__handle { position: absolute; bottom: .7rem; left: .85rem; color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .02em; }
@media (max-width: 760px) { .ugc-grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .pdp__stock::before { animation: none; }
  .ship-bar__fill { transition: none; }
  .ugc-card img, .ugc-card__play { transition: none; }
}

.post__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__hero { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin: 0 0 1.8rem; }
.pdp__price--soon { color: var(--sun); font-size: 1.5rem; }

/* ============ Shop category quick-nav + sub-sections ============ */
.shop-cats { position: sticky; top: 78px; z-index: 90; background: rgba(246,235,225,.88); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); border-bottom: 1px solid var(--line); }
.shop-cats__row { display: flex; justify-content: center; gap: .5rem; overflow-x: auto; padding: .85rem 1rem; scrollbar-width: none; }
.shop-cats__row::-webkit-scrollbar { display: none; }
.shop-cats a { flex: 0 0 auto; padding: .55rem 1.2rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); background: transparent; border: 1.5px solid rgba(32,51,44,.18); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.shop-cats a:hover, .shop-cats a:focus-visible { background: var(--forest); color: var(--cream); border-color: var(--forest); transform: translateY(-1px); }
.shop-subhead { display: flex; align-items: center; gap: .85rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .98rem; color: var(--forest); margin: .5rem 0 1.7rem; }
.shop-subhead::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.shop-subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#coffee, .shop-subhead { scroll-margin-top: 146px; }
@media (max-width: 768px) {
  .shop-cats { top: 58px; }
  .shop-cats__row { justify-content: flex-start; }
  #coffee, .shop-subhead { scroll-margin-top: 122px; }
}
