/*
Theme Name: Moringato
Theme URI: https://moringamor.com
Description: Independent WooCommerce theme for Moringato — pure organic moringa. Hand-built from the Figma design: cream & forest-green palette, Inter, pill navbar, marquee banner. No parent theme, no page builder.
Author: Moringato
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moringato
Tags: e-commerce, woocommerce
*/

/* ============================================================
   FONTS — self-hosted Inter (latin), no external requests
   ============================================================ */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/inter-700.woff2') format('woff2');
}

/* ============================================================
   DESIGN TOKENS — exact values from the Figma file
   ============================================================ */
:root {
  --cream:        #F3F4E9;  /* page background            */
  --ink:          #1E3620;  /* headings / primary text    */
  --ink-deep:     #0E1A0F;  /* banner, footer, bag pill   */
  --text-muted:   #6B7566;  /* body copy                  */
  --green:        #4F7A3D;  /* brand green (buttons)      */
  --green-bright: #5D8B31;  /* hero accent + main CTA     */
  --green-pale:   #DFECDF;  /* section gradient end       */
  --green-card:   #DFEADF;  /* story card                 */
  --green-badge:  #D8EDD8;  /* badge pills                */
  --green-label:  #99B299;  /* footer column headers      */
  --green-sub:    #CCE5CC;  /* product card subtitles     */
  --footer-dim:   #4D664D;  /* footer copyright           */

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-card: 20px;
  --r-story: 24px;
  --r-badge: 14px;
  --r-pill: 999px;

  --maxw: 1320px;
  --pad: 24px;

  --shadow-chip: 0 10px 30px rgba(14, 26, 15, .12);
  --shadow-card: 0 14px 34px rgba(14, 26, 15, .10);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.mt-wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
}

/* Buttons */
.mt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
  border-radius: var(--r-pill);
  padding: 15px 26px;
  font: 500 14px/1 var(--font);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.mt-btn--primary { background: var(--green-bright); color: #fff; }
.mt-btn--primary:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.mt-btn--green { background: var(--green); color: #fff; }
.mt-btn--green:hover { background: var(--ink); color: #fff; }
.mt-btn--soft { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(30,54,32,.14); }
.mt-btn--soft:hover { background: #fff; color: var(--ink); }

/* Badge pill (OUR STORY / hero eyebrow) */
.mt-badge {
  display: inline-block;
  background: var(--green-badge);
  color: var(--green);
  border-radius: var(--r-badge);
  padding: 7px 14px;
  font: 600 11px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============================================================
   HEADER — floating pill navbar
   ============================================================ */
.mt-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px var(--pad) 8px;
}
/* Smoked-glass pill (miliamatcha.com style): translucent black over a
   backdrop blur, hairline white border, white text, centered logo with
   symmetric grow zones either side. */
.mt-nav {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  min-height: 60px;
  padding: 14px 40px;
  color: #fff;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.mt-nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.mt-nav__logo img { width: 56px; height: 43px; object-fit: contain; }
.mt-nav__menu {
  display: flex; gap: 36px; list-style: none; margin: 0; padding: 0;
  flex: 1 0 0;
}
.mt-nav__menu a {
  color: #fff; font: 500 13px/1 var(--font);
  text-transform: uppercase; letter-spacing: .04em;
}
.mt-nav__menu a:hover { color: #fff; text-decoration: underline; }
.mt-nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex: 1 0 0; }
.mt-nav__lang { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.mt-nav__lang a { color: rgba(255,255,255,.7); font: 500 12px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.mt-nav__lang a:hover { color: #fff; }
.mt-nav__lang .current-lang a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mt-nav__lang-mobile { display: none; }  /* burger-panel languages — mobile only (≤860px) */
.mt-nav__account { color: rgba(255,255,255,.85); font: 400 14px/1 var(--font); }
.mt-nav__account:hover { color: #fff; }
.mt-nav__bag {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 19px; padding: 11px 19px;
  font: 500 13px/1 var(--font);
}
.mt-nav__bag:hover { background: var(--green); border-color: var(--green); color: #fff; }
.mt-nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.mt-hero { padding: 56px 0 64px; }
.mt-hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
}
.mt-hero__title {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 22px 0 30px;
}
.mt-hero__title em { font-style: normal; color: var(--green-bright); }
.mt-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.mt-hero__media { position: relative; }
.mt-hero__media > img {
  border-radius: 17px;
  width: 100%; max-width: 438px;
  margin-left: auto;
  box-shadow: var(--shadow-card);
}
.mt-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.9);
  border-radius: var(--r-badge);
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-chip);
}
.mt-chip--tl { top: 22px; left: -10px; }
.mt-chip--br { bottom: 26px; right: -8px; }
.mt-chip__check {
  width: 26px; height: 26px; flex: 0 0 auto;
  background: var(--green); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.mt-chip__check svg { display: block; }
.mt-chip b { display: block; font: 600 14px/1.3 var(--font); color: var(--ink); }
.mt-chip div span { display: block; font: 400 12px/1.3 var(--font); color: var(--text-muted); }
/* ============================================================
   MARQUEE BANNER
   ============================================================ */
.mt-marquee {
  background: var(--ink-deep); color: #fff;
  overflow: hidden; white-space: nowrap;
  padding: 15px 0;
}
.mt-marquee__track {
  display: inline-flex;
  animation: mt-scroll 108s linear infinite;  /* -50% of 6 copies = 3 copy-widths → same speed as 1-copy/36s */
}
/* Flex containers ignore whitespace-only text nodes → spacing comes only from the ✦ padding. */
.mt-marquee span { display: inline-flex; align-items: center; font: 500 12px/1.4 var(--font); letter-spacing: .02em; }
.mt-marquee i { font-style: normal; color: var(--green-bright); padding: 0 18px; }
@keyframes mt-scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.mt-section { padding: 72px 0; }
.mt-section__head { text-align: center; margin-bottom: 44px; }
.mt-section__head h2 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.01em; margin: 0 0 10px; }
.mt-section__head p { color: var(--text-muted); font-size: 16px; margin: 0; }
.mt-grad { background: linear-gradient(180deg, var(--cream) 0%, var(--green-pale) 100%); }

/* ============================================================
   SUPERFOODS — product cards
   ============================================================ */
.mt-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mt-card {
  position: relative; display: block;
  border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mt-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(14,26,15,.16); }
.mt-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-card--soon > img { opacity: .55; }
.mt-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(102,102,102,0) 55%);
}
.mt-card__tag {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  border-radius: var(--r-pill); padding: 7px 13px;
  font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
}
.mt-card__tag--new { background: var(--green-bright); color: #fff; }
.mt-card__tag--soon { background: rgba(255,255,255,.92); color: var(--ink); }
.mt-card__body { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }
.mt-card__body h3 { color: #fff; font-size: 22px; margin: 0 0 3px; }
.mt-card__body span { color: var(--green-sub); font: 400 13px/1.4 var(--font); }

/* ============================================================
   FIGURES — stats band
   ============================================================ */
.mt-figures { padding: 64px 0; }
.mt-figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.mt-figures b {
  font-size: clamp(44px, 4.8vw, 64px); font-weight: 700; line-height: 1;
  color: var(--ink); display: block;
  font-variant-numeric: tabular-nums;  /* digits don't wiggle while counting up */
}
.mt-figures span { color: var(--text-muted); font-size: 14px; margin-top: 10px; display: block; }

/* ============================================================
   STORY — packaging + card + ritual steps
   ============================================================ */
.mt-story { padding: 72px 0 64px; position: relative; }
.mt-story__grid {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: 44px; align-items: center;
}
.mt-story__media { position: relative; min-height: 420px; }
.mt-story__media img { position: absolute; }
.mt-story__pack-back { left: 0; top: 0; width: 62%; z-index: 1; }
.mt-story__pack-front { left: 33%; top: 8%; width: 56%; z-index: 2; }
.mt-story__card {
  background: var(--green-card);
  border-radius: var(--r-story);
  padding: 44px 48px;
}
.mt-story__card h2 { font-size: clamp(28px, 3vw, 36px); margin: 16px 0 18px; }
.mt-story__card p { color: var(--text-muted); font-size: 15px; }
.mt-story__card .mt-btn { margin-top: 8px; }
.mt-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
  position: relative; z-index: 2;
}
.mt-step {
  background: #fff; border-radius: var(--r-card);
  padding: 26px 26px 24px;
  box-shadow: 0 8px 24px rgba(14,26,15,.06);
}
.mt-step__num {
  width: 32px; height: 32px;
  background: var(--green); color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font: 700 16px/1 var(--font);
  margin-bottom: 14px;
}
.mt-step h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.mt-step p { color: var(--text-muted); font-size: 13px; margin: 0; }
.mt-story__cup {
  position: absolute; right: -40px; bottom: -30px;
  width: 300px; z-index: 1; pointer-events: none;
}
/* ------------------------------------------------------------
   BREWING SCENE — one 14s clock drives everything in #story.
   Leaves fly pack → over the top → into the cup; one lands every
   beat (14s / 3 leaves = 4.667s). On each landing a ripple fires
   and the cup's tint steps greener; after the third landing the
   steam fades in. Scroll only STARTS the scene: inline JS in
   functions.php adds .is-brewing when #story becomes visible —
   nothing is scrubbed by scrolling.
   ---------------------------------------------------------- */
.mt-story:not(.is-brewing) .mt-story__leaves { visibility: hidden; }
.mt-story:not(.is-brewing) :is(.mt-leaf, .mt-leaf-pulse, .mt-story__cup, .mt-story__steam) {
  animation-play-state: paused;
}

/* Leaves. Delays are exact thirds of the loop: the three share one flight
   path (they never meet on it) and land on the ripple's exact spot. */
.mt-story__leaves {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
  container-type: size;   /* cqw/cqh below = % of the section's size */
}
.mt-leaf {
  position: absolute; top: 0; left: 0;
  width: 44px; height: auto;
  opacity: 0;
  scale: var(--s, 1);
  animation: mt-leaf-fly 14s ease-in-out var(--d, 0s) infinite;
}
.mt-leaf--2 { --s: .72; --d: -4.667s; }
.mt-leaf--3 { --s: .55; --d: -9.333s; }
@keyframes mt-leaf-fly {
  0%   { translate: 16cqw 24cqh; rotate: -20deg; opacity: 0; }
  8%   { opacity: .95; }
  22%  { translate: 34cqw -4cqh; rotate: 25deg; }
  45%  { translate: 62cqw -8cqh; rotate: -12deg; }
  64%  { translate: 84cqw 14cqh; rotate: 30deg; }
  82%  { translate: 93cqw 52cqh; rotate: -18deg; }
  90%  { translate: 95cqw 66cqh; rotate: -6deg; }
  99%  { opacity: .95; }
  100% { translate: 95cqw 76cqh; rotate: 8deg; opacity: 0; }
}

/* Ripple at the landing spot. Period = one beat, delay = the first landing,
   and it starts at full strength — it pops the instant a leaf vanishes. */
.mt-leaf-pulse {
  position: absolute; left: 95cqw; top: 76cqh;
  width: 96px; height: 42px; margin: -2px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(93,139,49,.75), rgba(93,139,49,0));
  opacity: 0;
  animation: mt-cup-pulse 4.667s linear 4.667s infinite;
}
@keyframes mt-cup-pulse {
  0%   { opacity: .95; scale: .5; }
  16%  { opacity: 0; scale: 1.5; }
  100% { opacity: 0; scale: 1.5; }
}

/* The cup steps greener on each landing beat, then stays green. */
.mt-story__cup { animation: mt-cup-steep 15s linear forwards; }
@keyframes mt-cup-steep {
  0%, 31.1%    { filter: sepia(0)  hue-rotate(0deg)  saturate(1)   brightness(1); }
  37.1%, 62.2% { filter: sepia(.2) hue-rotate(17deg) saturate(1.2) brightness(.99); }
  68.2%, 93.3% { filter: sepia(.4) hue-rotate(35deg) saturate(1.4) brightness(.98); }
  99.3%, 100%  { filter: sepia(.6) hue-rotate(52deg) saturate(1.6) brightness(.96); }
}

/* Steam: the wisps rise forever; their container only fades in right after
   the third landing finishes the brew. */
.mt-story__steam {
  position: absolute; right: 20px; bottom: 205px;
  width: 84px; height: 110px;
  pointer-events: none; z-index: 2;
  opacity: 0;
  animation: mt-steam-in 1.6s ease 14.8s forwards;
}
@keyframes mt-steam-in { to { opacity: 1; } }
.mt-story__steam i {
  position: absolute; bottom: 0;
  width: 14px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(158,178,158,0) 0%, rgba(158,178,158,.6) 45%, rgba(158,178,158,0) 100%);
  filter: blur(4px);
  opacity: 0;
  animation: mt-steam-rise 3.4s ease-in-out infinite;
}
.mt-story__steam i:nth-child(1) { left: 4px; }
.mt-story__steam i:nth-child(2) { left: 32px; height: 72px; animation-delay: -1.1s; }
.mt-story__steam i:nth-child(3) { left: 58px; height: 52px; animation-delay: -2.3s; }
@keyframes mt-steam-rise {
  0%   { transform: translateY(16px) scaleX(1); opacity: 0; }
  30%  { opacity: .8; }
  100% { transform: translateY(-52px) translateX(8px) scaleX(1.5); opacity: 0; }
}

/* Scroll-driven touches (progressive enhancement — static without support):
   the packs drift apart slightly and the ritual steps reveal in cascade. */
@supports (animation-timeline: view()) {
  .mt-story__pack-back  { animation: mt-pack-drift-back  linear both; animation-timeline: view(); }
  .mt-story__pack-front { animation: mt-pack-drift-front linear both; animation-timeline: view(); }
  .mt-step { animation: mt-step-in linear both; animation-timeline: view(); animation-range: entry 5% entry 60%; }
  .mt-step:nth-child(2) { animation-range: entry 20% entry 75%; }
  .mt-step:nth-child(3) { animation-range: entry 35% entry 90%; }
}
@keyframes mt-pack-drift-back  { from { translate: 0 -12px; } to { translate: 0 16px; } }
@keyframes mt-pack-drift-front { from { translate: 0 14px; }  to { translate: 0 -20px; } }
@keyframes mt-step-in {
  from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; }
}

/* ============================================================
   SERVICES (Icones row)
   ============================================================ */
.mt-services { padding: 64px 0; }
.mt-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.mt-service img { width: 44px; height: 44px; margin: 0 auto 14px; }
.mt-service h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.mt-service p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ============================================================
   BENEFITS
   ============================================================ */
.mt-benefits { padding: 76px 0; text-align: center; }
.mt-benefits h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 16px auto 44px; max-width: 16ch; }
.mt-benefits__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 34px 26px; align-items: end;
  max-width: 1180px; margin: 0 auto;
}
.mt-benefits__grid img { margin: 0 auto; max-height: 132px; width: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Newsletter (miliamatcha.com style) — standalone full-bleed section above
   the footer: photo background + dark scrim, glass field blurring the photo. */
.mt-news {
  position: relative; overflow: hidden;
  padding: 88px var(--pad);
  text-align: center;
}
.mt-news__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.mt-news::after {  /* legibility scrim over the photo */
  content: ''; position: absolute; inset: 0;
  background: rgba(14, 26, 15, .45);
}
.mt-news__inner { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; }
.mt-news h2 {
  color: #fff; font: 600 14px/1.4 var(--font);
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 10px;
}
.mt-news p { color: rgba(255, 255, 255, .9); font-size: 12px; margin: 0 0 24px; }
.mt-news__field {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  padding: 22px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.mt-news__field input {
  flex: 1; min-width: 0;
  background: none; border: 0; padding: 0;
  color: #fff; font: 500 12px/1.4 var(--font);
}
.mt-news__field input::placeholder { color: rgba(255, 255, 255, .85); }
.mt-news__field button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #fff; font: 600 12px/1 var(--font);
  letter-spacing: .06em; text-transform: uppercase;
}
.mt-news__field button:hover { color: var(--green-bright); }
.mt-news__hp { position: absolute; left: -9999px; }
.mt-news__done { color: #fff; font-size: 13px; }

.mt-footer {
  background: var(--ink-deep);
  color: var(--text-muted);
  padding: 64px 0 40px;
  font-size: 14px;
}
.mt-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.mt-footer__brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mt-footer__brand-row img { width: 32px; height: 33px; }
.mt-footer__brand-row b { color: #fff; font-size: 16px; }
.mt-footer__tagline { max-width: 22ch; line-height: 1.75; }
.mt-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.mt-footer__social a { font-size: 18px; line-height: 1; }  /* colors come from .mt-footer a rules */
.mt-footer h4 {
  color: var(--green-label);
  font: 600 12px/1 var(--font);
  letter-spacing: .1em; text-transform: uppercase;
  margin: 6px 0 20px;
}
.mt-footer ul { list-style: none; margin: 0; padding: 0; }
.mt-footer li { margin-bottom: 12px; }
.mt-footer a { color: var(--text-muted); }
.mt-footer a:hover { color: #fff; }
.mt-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 52px; font-size: 12px;
}
.mt-footer__copy { color: var(--footer-dim); }

/* ============================================================
   INNER PAGES (blog / pages / archives)
   ============================================================ */
.mt-page { padding-top: 48px; padding-bottom: 72px; }  /* keep .mt-wrap side padding */
.mt-page__title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 28px; }
.mt-content { max-width: 760px; }
.mt-content:has(ul.products) { max-width: none; }  /* pages embedding a product grid (FR “Boutique”) */
.mt-content a { text-decoration: underline; }
.mt-content img { border-radius: var(--r-card); }
.mt-loop article { border-bottom: 1px solid rgba(30,54,32,.1); padding: 26px 0; }
.mt-loop h2 { font-size: 24px; margin: 0 0 8px; }
.mt-meta { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce-page .mt-page, .mt-woo { padding-top: 40px; padding-bottom: 72px; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--green) !important;
  background: #fff;
  border-radius: 12px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--green) !important; }

/* shop grid — mirror the Superfoods cards */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 0 40px !important; padding: 0 !important;
  list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product img {
  border-radius: var(--r-card);
  aspect-ratio: 1/1; object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-card);
  margin: 0 0 14px !important;
  transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover img { transform: translateY(-4px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px !important; font-weight: 600; color: var(--ink);
  padding: 0 0 2px !important;
}
.woocommerce ul.products li.product .price {
  color: var(--text-muted) !important; font-size: 14px !important; font-weight: 500;
}
.woocommerce ul.products li.product .price ins { color: var(--green); text-decoration: none; }
.woocommerce ul.products li.product .button {
  margin-top: 10px;
  background: var(--ink-deep); color: #fff;
  border-radius: var(--r-pill); padding: 11px 20px;
  font: 500 13px/1 var(--font);
}
.woocommerce ul.products li.product .button:hover { background: var(--green); }
.woocommerce span.onsale {
  background: var(--green-bright); color: #fff;
  border-radius: var(--r-pill);
  min-height: 0; min-width: 0; line-height: 1;
  padding: 7px 13px; font: 600 11px/1 var(--font);
  letter-spacing: .1em; text-transform: uppercase;
  top: 14px; left: 14px; margin: 0;
}

/* pagination + ordering */
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 10px; padding: 10px 15px; color: var(--ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--green-badge); }
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count { color: var(--text-muted); font-size: 13px; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid rgba(30,54,32,.16); border-radius: var(--r-pill);
  padding: 8px 14px; background: #fff;
}

/* single product */
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--r-card); }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--green); font-size: 22px; font-weight: 600;
}
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text-muted); }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce button.button,
.wc-block-components-button:not(.is-link),
.woocommerce a.button, .woocommerce input.button {
  background: var(--green) !important; color: #fff !important;
  border-radius: var(--r-pill) !important;
  font: 500 14px/1.2 var(--font) !important;
  padding: 14px 26px;
  border: 0;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--ink) !important; }
.woocommerce div.product form.cart div.quantity .qty {
  border: 1px solid rgba(30,54,32,.16); border-radius: var(--r-pill);
  padding: 12px 6px 12px 14px; background: #fff; height: auto;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: rgba(30,54,32,.12); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }

/* cart / checkout (classic + blocks) */
.woocommerce table.shop_table {
  border: 1px solid rgba(30,54,32,.1); border-radius: 14px;
  border-collapse: separate; overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--green-pale); color: var(--ink); }
.woocommerce-cart table.cart img { border-radius: 10px; width: 64px; }
.wc-block-components-price-slider__range-input-progress,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--green) !important;
}
.wc-block-grid__product .wp-block-button__link,
.wp-block-button__link.add_to_cart_button {
  background: var(--ink-deep); color: #fff;
  border-radius: var(--r-pill); border: 0;
  font: 500 13px/1 var(--font); padding: 11px 20px;
}
.wc-block-grid__product .wp-block-button__link:hover,
.wp-block-button__link.add_to_cart_button:hover { background: var(--green); }
.wc-block-grid__product-title { color: var(--ink); font-weight: 600; }
#add_payment_method .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--green) !important; border-radius: var(--r-pill) !important;
}

/* account — centered shell, everything in cards */
.woocommerce-account .mt-page__title { text-align: center; }
.woocommerce-account .mt-content { max-width: 960px; margin: 0 auto; }
.woocommerce-account:not(.logged-in) h2 { text-align: center; }

/* login / register (logged out): centered card */
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
  max-width: 440px; margin: 10px auto 40px;
  background: #fff; border: 0;
  border-radius: var(--r-card);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-card);
}
.woocommerce-account .woocommerce-form-login__rememberme { display: block; margin-bottom: 4px; }
.woocommerce-account .woocommerce-form-login__submit { width: 100%; margin-top: 8px; }
.woocommerce-account .lost_password { text-align: center; margin: 16px 0 0; font-size: 13px; }

/* my account (logged in): sticky nav card + content card */
.woocommerce-account.logged-in .mt-content > .woocommerce {
  display: grid; grid-template-columns: 230px 1fr;
  gap: 28px; align-items: start;
}
/* Woo's clearfix pseudo-elements would become anonymous grid items and
   shift everything one cell — kill them and place the two cards explicitly. */
.woocommerce-account.logged-in .mt-content > .woocommerce::before,
.woocommerce-account.logged-in .mt-content > .woocommerce::after { display: none; }
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  grid-area: 1 / 1;
  float: none; width: auto;
  background: #fff; border-radius: var(--r-card);
  padding: 14px; box-shadow: var(--shadow-card);
  position: sticky; top: 100px;
}
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  grid-area: 1 / 2;
  float: none; width: auto; min-width: 0;
  background: #fff; border-radius: var(--r-card);
  padding: 32px 36px; box-shadow: var(--shadow-card);
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message {
  background: var(--cream);  /* readable on the white card */
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin-bottom: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 11px 16px; border-radius: 12px; color: var(--ink);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--green-badge); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid rgba(30,54,32,.16); border-radius: 12px;
  padding: 12px 14px; background: #fff; font-family: var(--font);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .mt-products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .mt-benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .mt-story__cup { width: 220px; right: -20px; }
}
@media (max-width: 860px) {
  .mt-nav__menu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border-radius: 18px;
    flex-direction: column; gap: 0; padding: 10px;
    box-shadow: var(--shadow-card);
  }
  .mt-nav { position: relative; padding: 10px 16px; gap: 8px; }
  .mt-nav__menu.is-open { display: flex; }
  .mt-nav__menu a { display: block; padding: 13px 16px; color: var(--ink); }  /* white panel */
  .mt-nav__menu a:hover { color: var(--green); }
  /* Languages live in the burger panel here — the inline switcher goes away. */
  .mt-nav__lang { display: none; }
  .mt-nav__menu .mt-nav__lang-mobile { display: block; }
  .mt-nav__menu li:not(.mt-nav__lang-mobile) + .mt-nav__lang-mobile {
    border-top: 1px solid rgba(30,54,32,.12);
    margin-top: 8px; padding-top: 8px;
  }
  .mt-nav__menu .mt-nav__lang-mobile.current-lang a { color: var(--green); }
  .mt-nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
    margin-left: -6px; order: -1;  /* burger first, logo beside it */
  }
  .mt-nav__toggle span { width: 20px; height: 2px; background: #fff; display: block; }
  .mt-nav__right { gap: 12px; }
  .mt-nav__account { padding: 8px 0; }
  .mt-nav__bag { padding: 10px 14px; }
  .mt-hero__grid, .mt-story__grid { grid-template-columns: 1fr; }
  .mt-hero__media > img { margin: 0 auto; }
  .mt-figures__grid, .mt-services__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .mt-steps { grid-template-columns: 1fr; }
  .mt-story__media { min-height: 0; height: 74vw; max-height: 480px; }
  .mt-story__cup { display: none; }
  .mt-story__leaves, .mt-story__steam { display: none; }  /* no cup on mobile */
  .mt-footer__grid { grid-template-columns: 1fr 1fr; }
  .woocommerce-account.logged-in .mt-content > .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation { grid-area: auto; position: static; }
  .woocommerce-account.logged-in .woocommerce-MyAccount-content { grid-area: auto; }
}
@media (max-width: 560px) {
  .mt-products, .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .mt-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .mt-section { padding: 52px 0; }
  .mt-hero { padding: 36px 0 48px; }
  .mt-chip--tl { left: 0; }
  .mt-chip--br { right: 0; }
  .mt-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .mt-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION — must stay LAST: media queries add no
   specificity, so these only win by source order.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mt-marquee__track { animation: none; }
  .mt-leaf, .mt-leaf-pulse { animation: none; }  /* stay at opacity 0 — no brewing scene */
  .mt-story__cup { animation: none; }            /* cup stays clear */
  .mt-story__steam { display: none; }
  .mt-story__pack-back, .mt-story__pack-front { animation: none; }
  .mt-step { animation: none; }                  /* steps just show, no reveal */
}
