/*
Theme Name: Ruwawa Coffee
Theme URI: https://ruwawacoffeefarm.com
Author: Ruwawa Coffee Farm
Author URI: https://ruwawacoffeefarm.com
Description: Custom storefront theme for Ruwawa Coffee Farm — React SPA with WooCommerce integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: ruwawa-coffee
*/

/* ============ Ruwawa Coffee — Design System ============ */
:root {
  /* Palette — Moss: soft sage greens + cream */
  --ivory: #F1EFE6;
  --bone: #E3E1D3;
  --cream: #F7F5EB;
  --espresso: #1C2418;
  --roast: #2C3A24;
  --bark: #475439;
  --ember: #4A6630;
  --ember-deep: #344A21;
  --moss: #4A6630;
  --mist: rgba(28, 36, 24, 0.08);
  --hairline: rgba(28, 36, 24, 0.15);

  --bg: var(--ivory);
  --bg-alt: var(--bone);
  --fg: var(--espresso);
  --fg-soft: var(--bark);
  --accent: var(--ember);

  /* Type */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.4rem, 1.3rem + 0.5vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.7rem + 1vw, 2.5rem);
  --step-4: clamp(2.8rem, 2.4rem + 2vw, 4rem);
  --step-5: clamp(3.8rem, 3rem + 4vw, 6.5rem);
  --step-6: clamp(5rem, 4rem + 6vw, 9rem);

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 8rem);
}

[data-theme="green"] {
  --ivory: #F1EFE6;
  --bone: #E3E1D3;
  --cream: #F7F5EB;
  --espresso: #1C2418;
  --roast: #2C3A24;
  --bark: #475439;
  --ember: #6B7F3F;
  --ember-deep: #44552A;
  --bg: var(--ivory);
  --fg: var(--espresso);
  --accent: var(--ember);
}
[data-theme="cherry"] {
  --ivory: #F5ECE4;
  --bone: #EDDCCF;
  --cream: #FBF2EA;
  --espresso: #2B1210;
  --roast: #4A1E1A;
  --bark: #6B2E28;
  --ember: #C1362B;
  --ember-deep: #8A2118;
  --bg: var(--ivory);
  --fg: var(--espresso);
  --accent: var(--ember);
}
[data-theme="night"] {
  --ivory: #1A130E;
  --bone: #241A12;
  --cream: #2B1F15;
  --espresso: #F5EDE0;
  --roast: #E8DCC8;
  --bark: #C9B89A;
  --ember: #E07B5F;
  --ember-deep: #C1572E;
  --bg: var(--ivory);
  --bg-alt: var(--bone);
  --fg: var(--espresso);
  --fg-soft: var(--bark);
  --accent: var(--ember);
  --hairline: rgba(245, 237, 224, 0.15);
  --mist: rgba(245, 237, 224, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Type helpers */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1; }
.mono { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; font-feature-settings: 'kern' 1, 'tnum' 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-5); line-height: 1.0; }
h3 { font-size: var(--step-3); line-height: 1.1; }
h4 { font-size: var(--step-2); line-height: 1.15; }

.italic { font-style: italic; }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.divider { border-top: 1px solid var(--hairline); }

/* ============ Top Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem var(--gutter);
  min-height: 56px;
}
.logo {
  display: flex; align-items: center;
  position: relative;
  z-index: 1;
}
.logo-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--ember), var(--ember-deep) 60%, var(--espresso));
  display: inline-block;
  position: relative; top: 3px;
}
.nav-links {
  display: flex; justify-content: center; gap: 2.2rem;
  font-size: 0.92rem;
}
.nav-links a { position: relative; padding: 0.25rem 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--fg);
  transition: right 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: var(--ember); transform: translateY(-1px); }
.btn-ghost { border-color: var(--hairline); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 0; }
.btn-link {
  padding: 0; border-radius: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.cart-btn {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  position: relative;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--sans);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
}
.cart-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cart-label { font-size: 0.88rem; }
.cart-dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--ember); color: #fff;
  font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 0 5px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.hero-copy {
  padding: 6vh var(--gutter) 4vh;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-meta-item strong { font-family: var(--serif); font-size: 1.4rem; }
.hero-h1 {
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.92;
  margin: 2rem 0;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero-h1 em {
  font-style: italic;
  color: var(--ember);
}
.hero-sub {
  max-width: 44ch;
  color: var(--fg-soft);
  font-size: var(--step-1);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-footnote {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; margin-top: 3rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-soft);
}
.hero-image {
  position: relative;
  background: var(--bone);
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image-caption {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--cream);
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero-image-caption .no { font-family: var(--serif); font-size: 3rem; line-height: 1; font-style: italic; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--fg-soft);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-dot { width: 6px; height: 6px; background: var(--ember); border-radius: 50%; display: inline-block; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Product Grid ============ */
.section-head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.section-head h2 { max-width: 14ch; }
.section-head-right { text-align: right; max-width: 34ch; color: var(--fg-soft); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 1.5rem;
  padding-top: 0.5rem;
}
.home-shop-cta { display: none; }
.home-shop-all-desktop { display: inline; }
.product {
  cursor: pointer;
  position: relative;
}
.product-media {
  aspect-ratio: 4/5;
  background: var(--bone);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}
.product-media img, .product-media .placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.5, 0.2, 1);
}
.product:hover .product-media img, .product:hover .product-media .placeholder { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--espresso); color: var(--cream);
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.product-badge.ember { background: var(--ember); }
.product-badge.bone { background: var(--cream); color: var(--espresso); }

.product-quick {
  position: absolute; inset: auto 1rem 1rem 1rem;
  display: flex; gap: 0.5rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.product:hover .product-quick { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .product-quick { opacity: 1; transform: translateY(0); }
}
.product-quick button {
  flex: 1;
  background: var(--cream); color: var(--espresso);
  padding: 0.7rem 0.8rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.product-quick button:hover { background: var(--espresso); color: var(--cream); }
.product-quick button.primary { background: var(--espresso); color: var(--cream); }
.product-quick button.primary:hover { background: var(--ember); }

.product-info {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: baseline;
}
.product-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.product-price { font-family: var(--mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.product-price .was { text-decoration: line-through; color: var(--fg-soft); margin-right: 0.4rem; opacity: 0.6; }
.product-notes {
  grid-column: 1 / -1;
  font-size: 0.85rem; color: var(--fg-soft);
  display: flex; gap: 0.8rem; align-items: center;
  font-style: italic;
  font-family: var(--serif);
}
.product-notes .dot { width: 4px; height: 4px; background: var(--ember); border-radius: 50%; }

.product-add-mobile {
  display: none;
  position: absolute; bottom: 5.5rem; right: 0.75rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
  border: none; font-size: 1.3rem; line-height: 1;
  align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.15s;
}
.product-add-mobile:active { transform: scale(0.92); background: var(--ember); }
@media (hover: none) {
  .product-add-mobile { display: flex; }
  .product-quick { display: none !important; }
  .product:hover .product-media img { transform: none; }
}

/* Placeholder art for products */
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(36,25,18,0.04) 18px 19px),
    var(--bone);
  color: var(--fg-soft);
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}

/* ============ Story sections ============ */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1;
  max-width: 22ch;
  letter-spacing: -0.02em;
}
.pull-quote em { color: var(--ember); font-style: italic; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.two-col-media {
  aspect-ratio: 4/5;
  background: var(--bone);
  overflow: hidden;
  border-radius: 2px;
}
.two-col-media img { width: 100%; height: 100%; object-fit: cover; }

/* Traceability timeline */
.trace {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 3rem;
}
.trace-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--hairline);
  position: relative;
  transition: background 0.3s ease;
}
.trace-step:last-child { border-right: 0; }
.trace-step:hover { background: var(--cream); }
.trace-no {
  font-family: var(--serif); font-style: italic;
  font-size: 3rem; color: var(--ember); line-height: 1;
  margin-bottom: 2rem;
}
.trace-step h4 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.trace-step p { color: var(--fg-soft); font-size: 0.95rem; }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--espresso);
  color: var(--cream);
}
.stats-item {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(245, 237, 224, 0.1);
  text-align: center;
}
.stats-item:last-child { border-right: 0; }
.stats-no {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stats-no em { color: #E8A87C; font-style: italic; }
.stats-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0.7;
}

/* Flavor wheel */
.flavor {
  display: flex; justify-content: center; align-items: center;
  min-height: 560px;
  position: relative;
}
.flavor-pill {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.88rem;
  transition: all 0.3s;
  background: var(--cream);
  position: absolute;
}
.flavor-pill:hover { background: var(--ember); color: #fff; border-color: var(--ember); transform: scale(1.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.flavor-pill .mono {
  font-size: 0.62rem; display: block; opacity: 0.6;
  margin-top: 2px;
}

/* Testimonial */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  padding: 2.5rem;
  border: 1px solid var(--hairline);
  background: var(--cream);
  display: flex; flex-direction: column;
  min-height: 340px;
}
.testimonial-stars {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.15em; color: var(--ember);
  margin-bottom: 1.5rem;
}
.testimonial-quote {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.4;
  flex: 1;
  letter-spacing: -0.005em;
}
.testimonial-author { margin-top: 2rem; font-size: 0.9rem; }
.testimonial-author strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; font-style: italic; }
.testimonial-author span { color: var(--fg-soft); font-size: 0.85rem; }

/* Footer */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 3.5rem var(--gutter) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 237, 224, 0.12);
}
.footer h5 {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245, 237, 224, 0.5);
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.footer ul a { opacity: 0.8; transition: opacity 0.2s; }
.footer ul a:hover { opacity: 1; color: var(--ember); }
.footer-brand {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.footer-tag { opacity: 0.7; max-width: 32ch; font-size: 0.95rem; line-height: 1.5; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}
.footer-huge {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 4rem 0 2rem;
  color: rgba(245, 237, 224, 0.12);
  user-select: none;
  text-align: center;
}

/* Drawer (cart & PDP) */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(36, 25, 18, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--bg);
  color: var(--fg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.3, 0.6, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 80px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--hairline);
}
.drawer-head h3 { font-size: 1.4rem; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.drawer-close:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 2rem; }
.drawer-foot {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--hairline);
  background: var(--cream);
}

/* Cart items */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item-media {
  width: 80px; height: 100px;
  background: var(--bone);
  border-radius: 2px;
  overflow: hidden;
}
.cart-item-media img, .cart-item-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.2rem; }
.cart-item-opt { font-size: 0.82rem; color: var(--fg-soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.cart-qty {
  display: inline-flex; align-items: center; margin-top: 0.8rem;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-family: var(--mono); font-size: 0.85rem;
}
.cart-qty button { padding: 0.3rem 0.7rem; }
.cart-qty span { padding: 0 0.5rem; min-width: 24px; text-align: center; }
.cart-item-price { font-family: var(--mono); font-size: 0.9rem; align-self: start; }
.cart-item-remove { display: block; font-size: 0.75rem; color: var(--fg-soft); text-decoration: underline; margin-top: 0.5rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem;
  font-family: var(--serif); font-size: 1.4rem;
}
.cart-total .mono { font-size: 1rem; }
.checkout-note {
  font-size: 0.78rem; color: var(--fg-soft);
  margin-top: 1rem; text-align: center;
}

/* PDP drawer */
.pdp-media {
  aspect-ratio: 4/5;
  background: var(--bone);
  margin: -2rem -2rem 2rem;
  overflow: hidden;
}
.pdp-media img, .pdp-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.pdp-title { font-size: 2.4rem; line-height: 1; margin-bottom: 0.5rem; }
.pdp-notes { font-family: var(--serif); font-style: italic; color: var(--fg-soft); margin-bottom: 1.5rem; font-size: 1.1rem; }
.pdp-price {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--mono); font-size: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.5rem;
}
.pdp-price .was { text-decoration: line-through; color: var(--fg-soft); font-size: 1rem; }
.pdp-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.pdp-spec { display: flex; flex-direction: column; }
.pdp-spec .mono { color: var(--fg-soft); margin-bottom: 0.2rem; font-size: 0.7rem; }
.pdp-spec strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.pdp-opt-group { margin-bottom: 1.5rem; }
.pdp-opt-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--fg-soft); }
.pdp-opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdp-opt {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.88rem;
  transition: all 0.2s;
  background: var(--cream);
}
.pdp-opt.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.pdp-opt:hover:not(.active) { border-color: var(--fg); }

.pdp-add-row {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.6rem; margin-bottom: 1rem;
}
.pdp-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-family: var(--mono);
}
.pdp-qty button { padding: 0.5rem 0.9rem; }
.pdp-qty span { padding: 0 0.5rem; min-width: 24px; text-align: center; }

.pdp-desc { color: var(--fg-soft); line-height: 1.6; margin-top: 1.5rem; font-size: 0.95rem; }

/* Page badges row (top) */
.top-bar {
  background: var(--espresso);
  color: var(--cream);
  padding: 0.6rem var(--gutter);
  text-align: center;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  overflow: hidden;
}
.top-bar-inner { display: flex; justify-content: center; gap: 2.5rem; }
.top-bar-inner span::before { content: '✦'; color: var(--ember); margin-right: 0.5rem; }

/* ============ Routes ============ */
.route { display: none; }
.route.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shop page */
.shop-head {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}
.shop-head h1 { font-size: var(--step-5); line-height: 0.95; }
.shop-head p { color: var(--fg-soft); max-width: 40ch; }

.filter-bar {
  display: flex; gap: 0.5rem; padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: sticky; top: 58px; z-index: 10;
  background: var(--bg);
}
.filter {
  padding: 0.55rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.85rem;
  background: transparent;
  transition: all 0.2s;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.filter.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.filter:hover:not(.active) { border-color: var(--fg); }

/* Sustainability circular diagram */
.circular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.circular-viz {
  aspect-ratio: 1;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Export / FAQ */
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 1.8rem 0;
  cursor: pointer;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.faq-q-icon {
  font-family: var(--mono); font-size: 1.5rem;
  transition: transform 0.3s;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: var(--fg-soft); font-size: 1rem; line-height: 1.6;
  max-width: 72ch;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 1rem; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--espresso); color: var(--cream);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s;
  display: flex; gap: 0.6rem; align-items: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #7FB078; }

/* Tweak panel */
.tweaks {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.2rem;
  z-index: 90;
  box-shadow: 0 10px 40px rgba(36,25,18,0.12);
  width: 280px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h5 {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--fg-soft);
}
.tweaks-row { margin-bottom: 1rem; }
.tweaks-row:last-child { margin-bottom: 0; }
.tweaks-label {
  display: block; font-size: 0.8rem; margin-bottom: 0.4rem;
  color: var(--fg-soft);
}
.tweaks-opts { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tweaks-opt {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg);
}
.tweaks-opt.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.tweaks-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tweaks-swatch.active { border-color: var(--fg); }

/* ============ Mobile nav ============ */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative; z-index: 60;
}
.nav-burger:active { background: var(--mist); }
.nav-burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, width 0.28s;
  transform-origin: center;
}
.nav-burger span:nth-child(2) { width: 10px; margin-left: -6px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 16px; }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 16px; }

/* Full-screen overlay */
.mobile-nav-scrim { display: none; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 55;
  background: var(--espresso);
  flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  flex-shrink: 0;
}
.mobile-nav-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(245,237,224,0.2);
  background: transparent; color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: background 0.2s;
}
.mobile-nav-close:active { background: rgba(245,237,224,0.1); }

.mobile-nav-links {
  flex: 1; list-style: none;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1rem 1.5rem 0;
  gap: 0;
}
.mobile-nav-links li {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s, transform 0.4s;
  border-bottom: 1px solid rgba(245,237,224,0.07);
}
.mobile-nav-links li:first-child { border-top: 1px solid rgba(245,237,224,0.07); }
.mobile-nav.open .mobile-nav-links li { opacity: 1; transform: translateY(0); }
.mobile-nav.open .mobile-nav-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open .mobile-nav-links li:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav.open .mobile-nav-links li:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-links li:nth-child(4) { transition-delay: 0.18s; }
.mobile-nav.open .mobile-nav-links li:nth-child(5) { transition-delay: 0.21s; }
.mobile-nav.open .mobile-nav-links li:nth-child(6) { transition-delay: 0.24s; }
.mobile-nav.open .mobile-nav-links li:nth-child(7) { transition-delay: 0.27s; }

.mobile-nav-links li button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 0;
  font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2rem);
  font-style: italic; color: rgba(245,237,224,0.75);
  background: transparent; border: none; cursor: pointer;
  text-align: left; letter-spacing: -0.01em;
  transition: color 0.15s;
}
.mobile-nav-links li button:active { color: var(--cream); }
.mobile-nav-links li button.active {
  color: var(--cream);
  font-weight: 400;
}
.mobile-nav-links li button.active::after {
  content: '—';
  font-family: var(--mono); font-size: 0.7rem; font-style: normal;
  color: var(--ember); letter-spacing: 0;
}

.mobile-nav-foot {
  padding: 1.5rem;
  flex-shrink: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s 0.3s, transform 0.4s 0.3s;
}
.mobile-nav.open .mobile-nav-foot { opacity: 1; transform: translateY(0); }

.mobile-nav-foot a {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(245,237,224,0.15);
  border-radius: 6px;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,237,224,0.55);
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}
.mobile-nav-foot a:active { border-color: rgba(245,237,224,0.4); color: var(--cream); }
.mobile-nav-foot a[href^="mailto"] { grid-column: 1 / -1; font-size: 0.65rem; opacity: 0.5; border-style: dashed; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { aspect-ratio: 4/5; }
  .two-col { grid-template-columns: 1fr; }
  .trace, .stats { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head-right { text-align: left; }
  .shop-head { grid-template-columns: 1fr; }
  .circular { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-nav { display: flex; }
}

@media (max-width: 600px) {
  /* Layout */
  .trace, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  /* Shop — 2-col grid on small screens */
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 0.6rem; }
  .home-shop-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 0.6rem; }
  .home-shop-cta { display: block; margin-top: 1.75rem; }
  .home-shop-all-desktop { display: none; }

  /* Product card mobile fixes */
  .product-media { aspect-ratio: 1/1; margin-bottom: 0.6rem; }
  .product-info { grid-template-columns: 1fr; gap: 0.2rem; }
  .product-price { grid-column: 1; font-size: 0.72rem; white-space: normal; }
  .product-price .was { display: block; margin: 0 0 0.1rem; }
  .product-notes { display: none; }
  .product-add-mobile { bottom: 0.6rem; right: 0.5rem; width: 32px; height: 32px; font-size: 1.1rem; }
  .product-title { font-size: 0.88rem; line-height: 1.2; }
  .product-badge { font-size: 0.6rem; padding: 0.3rem 0.6rem; top: 0.6rem; left: 0.6rem; }

  /* Section head tighter on mobile */
  .section-head { margin-bottom: 2rem; }
  .section-head h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  /* Shop page */
  .shop-head {
    padding: clamp(1.5rem,5vw,2.5rem) 0 clamp(1.2rem,4vw,2rem);
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .shop-head h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); line-height: 1.0; margin-top: 0.4rem; }
  .shop-head p { font-size: 0.88rem; line-height: 1.55; max-width: 100%; }

  .filter-bar {
    top: 54px;
    padding: 0.6rem 0;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  .filter { padding: 0.4rem 0.75rem; font-size: 0.65rem; letter-spacing: 0.08em; }
  .filter-bar .item-count { display: none; }

  .shop-grid { padding-top: 0; }
  .shop-bottom-cta { padding: 2rem 0 1.5rem; }

  /* Nav */
  .nav-inner { padding: 0 1rem; }
  .cart-label { display: none; }
  .cart-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

  /* Sections */
  .wrap { padding-left: 0.9rem; padding-right: 0.9rem; }
  .section { padding-top: clamp(2.5rem, 8vw, 4rem); padding-bottom: clamp(2.5rem, 8vw, 4rem); }

  /* Pull quote */
  .pull-quote { font-size: clamp(1.6rem, 7vw, 2.5rem); }

  /* Flavor wheel — stack pills as a grid on small screens */
  .flavor { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: static; padding: 1rem 0; }
  .flavor-pill { position: static; transform: none !important; width: 100%; border-radius: 6px; justify-content: flex-start; }

  /* Drawer full-width on mobile */
  .drawer { width: 100vw; border-radius: 16px 16px 0 0; top: auto; height: 90vh; transform: translateY(100%); }
  .drawer.open { transform: translateY(0); }
  .drawer-head { padding: 1.2rem 1.5rem; }
  .drawer-body { padding: 1.2rem 1.5rem; }
  .drawer-foot { padding: 1rem 1.5rem 1.5rem; }

  /* Cart */
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 0.75rem; }
  .cart-item-media { width: 64px; height: 80px; }

  /* Buttons — full width stacking */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  /* Product card */
  .product-card { border-radius: 6px; }

  /* FAQ */
  .faq-q { font-size: 1.1rem; }

  /* Footer */
  .footer { padding: 2.5rem 1.1rem 1.5rem; }
  .footer-grid { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Toast — full width near bottom */
  .toast { left: 1rem; right: 1rem; width: auto; transform: translateX(0) translateY(100px); bottom: 1.5rem; border-radius: 8px; }
  .toast.show { transform: translateX(0) translateY(0); }

  /* Two-col stacked — media first on mobile */
  .two-col { gap: 1.5rem; }
  .two-col-media { aspect-ratio: 4/3; }

  /* ── Global type scale on mobile ── */
  /* Headings */
  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); line-height: 1.05; }
  h2 { font-size: clamp(1.8rem, 7.5vw, 2.8rem); line-height: 1.05; }
  h3 { font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.1; }
  h4 { font-size: clamp(1.1rem, 4vw, 1.5rem); line-height: 1.15; }
  h1.serif, h2.serif, h3.serif { letter-spacing: -0.02em; }

  /* Body */
  body { font-size: 0.95rem; line-height: 1.6; }
  p { max-width: 100%; }

  /* Eyebrow — smaller tracking on narrow screens */
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.14em; }

  /* Hero */
  .hero-h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); letter-spacing: -0.03em; }
  .hero-sub { font-size: 0.95rem; line-height: 1.55; max-width: 100%; }
  .hero-copy { padding: 3vh 0 3vh; }

  /* Pull quote */
  .pull-quote { font-size: clamp(1.25rem, 5.5vw, 1.8rem); line-height: 1.2; max-width: 100%; }
  .pull-quote-attr { font-size: 0.62rem; gap: 0.3rem 1.5rem; margin-top: 1.25rem; }

  /* Flavor legend — 2-col wrap on mobile */
  .flavor-legend { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
  .flavor-legend > div { gap: 0.1rem; }

  /* Trace steps — less padding, smaller number */
  .trace-step { padding: 1.5rem 1rem; }
  .trace-no { font-size: 2rem; margin-bottom: 1rem; }
  .trace-step h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }
  .trace-step p { font-size: 0.88rem; line-height: 1.55; }

  /* Stats — smaller numbers, tighter padding */
  .stats-item { padding: 1.8rem 0.75rem; }
  .stats-no { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 0.3rem; }
  .stats-label { font-size: 0.6rem; letter-spacing: 0.1em; }

  /* Testimonials */
  .testimonial { padding: 1.25rem; min-height: 0; }
  .testimonial-quote { font-size: 1.05rem; line-height: 1.45; }
  .testimonial-author { margin-top: 1.25rem; }
  .testimonial-author strong { font-size: 0.95rem; }
  .testimonial-author span { font-size: 0.78rem; }

  /* Footer */
  .footer-brand { font-size: 1.8rem; }
  .footer-tag { font-size: 0.88rem; }
  .footer-huge { font-size: clamp(3.5rem, 18vw, 8rem); line-height: 0.88; }
  .footer ul li { margin-bottom: 0.5rem; }
  .footer ul a { font-size: 0.9rem; }
  .footer-head { font-size: 0.62rem; margin-bottom: 0.75rem; }

  /* Section heads */
  .section-head-right { font-size: 0.92rem; line-height: 1.55; }
  .section-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--hairline); }

  /* Page-level h1 (shop, coffee, export, etc.) */
  .wrap h1.serif { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .wrap p { font-size: 0.95rem; line-height: 1.6; }

  /* Shipping table — horizontal scroll with visual hint */
  .shipping-table-wrap { -webkit-overflow-scrolling: touch; border-radius: 4px; }
  .shipping-table-wrap table { font-size: 0.78rem; }
  .shipping-table-wrap th, .shipping-table-wrap td { padding: 0.65rem 0.6rem; white-space: nowrap; }

  /* Form inputs touch-friendly */
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="date"], select, textarea {
    font-size: 16px !important; /* prevent iOS auto-zoom */
    min-height: 44px;
  }

  /* Export form — tighten section heads and spacing */
  .export-form-check-grid { grid-template-columns: 1fr 1fr !important; }

  /* Export page lot info — single column for very narrow */
  .export-lot-grid { grid-template-columns: 1fr 1fr !important; }

  /* FAQ on export page */
  .faq-q { font-size: 1rem; gap: 1rem; }
  .faq-item { padding: 1.2rem 0; }

  /* Export form section separator breathing room */
  .export-section-head { padding-top: 2rem !important; }

  /* TopBar — stack vertically on very small screens */
  .top-bar-inner { flex-direction: column; gap: 0.35rem; padding: 0.6rem var(--gutter); text-align: center; }
  .top-bar-inner > div:first-child { font-size: 0.65rem; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

  /* Drawer — allow scroll, sticky footer */
  .drawer { height: auto; max-height: 92vh; overflow-y: auto; }
  .drawer-foot { position: sticky; bottom: 0; background: var(--bg); z-index: 2; }

  /* Marquee — smaller on mobile */
  .marquee-track { font-size: 1rem; gap: 1.5rem; padding: 0.8rem 0; }

  /* Touch targets — bring up to 44px */
  .product-add-mobile { width: 44px; height: 44px; font-size: 1.2rem; bottom: 0.5rem; right: 0.5rem; }
  .drawer-close { width: 44px; height: 44px; }
  .nav-burger { width: 44px; height: 44px; }
  .mobile-nav-close { width: 44px; height: 44px; }
  .cart-qty button, .pdp-qty button { min-height: 44px; min-width: 44px; }

  /* Mobile nav — horizontal padding for tap targets */
  .mobile-nav-links li button { padding: 1.1rem 0.5rem; min-height: 48px; }

  /* Export checkbox grid — single col at very narrow */
  .export-form-check-grid { grid-template-columns: 1fr !important; }
}

/* ── 480px intermediate breakpoint ── */
@media (max-width: 480px) {
  /* Product grid — single column */
  .shop-grid, .home-shop-grid { grid-template-columns: 1fr !important; gap: 1.25rem 0; }
  .product-media { aspect-ratio: 3/2; }

  /* Testimonials — single col */
  .testimonials { grid-template-columns: 1fr; }

  /* Circular SVG — full width */
  .circular-viz { max-width: 100%; }

  /* Hero CTA — stack on tablet range too */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  /* Carousel caption min sizes */
  .carousel-caption-text { font-size: clamp(1.1rem, 3.5vw, 2.2rem) !important; }
  .carousel-caption-sub { font-size: 0.72rem !important; }
}

/* ── 768px: testimonials, hero CTA ── */
@media (max-width: 768px) {
  .testimonials { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 1rem; }
  .hero-image { aspect-ratio: 3/4; }
}
