/* ==========================================================================
   JSBBIL — styles.css
   Sections: 1.Tokens 2.Base 3.Utilities 4.Header/Nav 5.Buttons 6.Forms
   7.Product card 8.Home sections 9.Category page 10.Product page
   11.Cart page 12.Checkout 13.Confirmation 14.Toast 15.Footer 16.Responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --c-primary: #0F5132;
  --c-primary-dark: #0B3B24;
  --c-primary-soft: #E7F2EC;
  --c-primary-tint: #F3F9F5;
  --c-accent: #E8590C;
  --c-accent-dark: #D9480F;
  --c-accent-soft: #FDEEE3;
  --c-sale: #C92A2A;
  --c-star: #F59F00;
  --c-text: #212529;
  --c-text-muted: #5C646C;
  --c-bg: #F2F7F3;          /* sage mist — soft green-tinted page canvas */
  --c-bg-soft: #E4EEE7;     /* deeper sage — alternating section bands */
  --c-border: #E9ECEB;
  --c-success: #2F9E44;
  --c-error: #C92A2A;

  --font-head: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-full: 999px;

  --shadow-card: 0 1px 3px rgba(33, 37, 41, .08);
  --shadow-hover: 0 8px 24px rgba(33, 37, 41, .14);
  --shadow-header: 0 2px 8px rgba(33, 37, 41, .08);

  --container: 1200px;
  --header-h: 120px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* ---------- SPA views: only the active route's <section class="view"> shows ---------- */
.view[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  /* ambient brand light: soft deep-green glow top-right + warm accent glow
     bottom-left, pinned to the viewport so it stays put while scrolling */
  background:
    radial-gradient(1100px 560px at 86% -80px, rgba(15, 81, 50, .09), transparent 62%),
    radial-gradient(900px 480px at 8% 88%, rgba(232, 89, 12, .045), transparent 60%),
    var(--c-bg);
  background-attachment: fixed;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 var(--s3); color: var(--c-text); }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 var(--s3); }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.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;
}

/* ---------- 3. Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s7) 0; }
.section--soft { background: var(--c-bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-sub { color: var(--c-text-muted); max-width: 640px; margin: var(--s2) 0 0; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent);
  margin: 0 0 var(--s2);
}
.link-arrow { font-weight: 600; font-size: 14px; white-space: nowrap; }
.link-arrow::after { content: ' \2192'; }

/* ---------- 4. Header / promo / nav ---------- */
.promo-bar {
  background: var(--c-primary-dark); color: #fff; text-align: center;
  font-size: 13.5px; padding: var(--s2) var(--s4);
}
.promo-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.promo-bar .countdown {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-variant-numeric: tabular-nums; font-weight: 700; margin-left: var(--s1);
}
.promo-bar .countdown .cd-cell {
  background: rgba(255,255,255,.16); border-radius: var(--r-sm);
  padding: 1px 6px; min-width: 26px; display: inline-block; text-align: center;
}

.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); }
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-main {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s5); padding: var(--s3) var(--s4); max-width: var(--container); margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; width: auto; }
.logo:hover { text-decoration: none; }

.header-search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.header-search .search-box {
  display: flex; align-items: center; border: 1.5px solid var(--c-border);
  border-radius: var(--r-full); padding: var(--s1) var(--s3) var(--s1) var(--s4);
  background: var(--c-bg-soft); transition: border-color .15s, background .15s;
}
.header-search .search-box:focus-within { border-color: var(--c-primary); background: #fff; }
.header-search input {
  border: 0; background: transparent; flex: 1; padding: var(--s1) 0;
  font-size: 14px; outline: none; color: var(--c-text);
}
.search-icon { flex: none; color: var(--c-text-muted); margin-right: var(--s2); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-hover); overflow: hidden; z-index: 60;
}
.search-results:empty { display: none; }
.search-result-item {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--c-border);
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover, .search-result-item:focus { background: var(--c-primary-tint); }
.search-result-item img {
  width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-sm);
  background: var(--c-bg-soft); flex: none;
}
.search-result-item .sr-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.search-result-item .sr-price { font-size: 12.5px; color: var(--c-sale); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--c-text);
}
.icon-btn:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.account-menu { position: relative; }
.account-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-hover); padding: var(--s2); z-index: 60;
}
.account-dropdown a, .account-dropdown span {
  display: block; padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  font-size: 14px; color: var(--c-text); font-weight: 500;
}
.account-dropdown a:hover { background: var(--c-primary-tint); text-decoration: none; }
.account-dropdown .demo-note { font-size: 12px; color: var(--c-text-muted); padding: var(--s1) var(--s3); }

/* language switcher (mirrors the account menu) */
.lang-menu { position: relative; }
.lang-menu .icon-btn { width: auto; padding: 0 12px; gap: 6px; }
.lang-code { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 168px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-hover); padding: var(--s2); z-index: 60;
}
.lang-dropdown button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  width: 100%; padding: var(--s2) var(--s3); border: 0; border-radius: var(--r-sm);
  background: transparent; font-size: 14px; color: var(--c-text); font-weight: 500;
  text-align: left; cursor: pointer;
}
.lang-dropdown button:hover { background: var(--c-primary-tint); }
.lang-dropdown button.is-current { color: var(--c-primary); font-weight: 700; }
.lang-dropdown button.is-current::after { content: '✓'; font-size: 12px; }
.lang-opt-code { font-size: 11px; font-weight: 700; color: var(--c-text-muted); letter-spacing: .04em; }
.lang-dropdown button.is-current .lang-opt-code { color: var(--c-primary); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px;
  border-radius: var(--r-full); background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 4px; line-height: 1;
}
.cart-count.is-zero { display: none; }

/* main nav */
.main-nav { border-top: 1px solid var(--c-border); background: var(--c-bg); }
.nav-list { display: flex; align-items: center; gap: var(--s1); max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s3) var(--s3);
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--c-text);
  border: 0; background: none; white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover, .nav-item.is-open > button { color: var(--c-primary); text-decoration: none; }
.nav-item.is-active > a, .nav-item.is-active > button { color: var(--c-primary); }
.nav-item.is-active > a::after {
  content: ''; position: absolute; left: var(--s3); right: var(--s3); bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--c-accent);
}
.nav-item { position: relative; }
.nav-item .caret { width: 8px; height: 8px; flex: none; }
.nav-badge {
  background: var(--c-accent); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .04em;
}
/* ---------- Floating goal dock (auto-hide side panel) ---------- */
.goal-dock {
  --dock-handle-w: 34px;
  --dock-panel-w: 340px;
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 130; font-family: var(--font-body);
}
.goal-dock-handle {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  width: var(--dock-handle-w); padding: var(--s4) 0 var(--s3);
  border: 0; cursor: pointer; background: var(--c-primary); color: #fff;
  border-radius: var(--r-md) 0 0 var(--r-md);
  box-shadow: -2px 2px 12px rgba(15, 81, 50, .25);
  transition: background .18s ease;
}
.goal-dock-handle:hover, .goal-dock.is-open .goal-dock-handle { background: var(--c-primary-dark); }
.goal-dock-handle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.goal-dock-handle-ico { display: flex; }
.goal-dock-handle-text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.goal-dock-panel {
  position: absolute; top: 50%; right: var(--dock-handle-w);
  width: var(--dock-panel-w); max-height: calc(100dvh - 140px); overflow-y: auto;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  box-shadow: var(--shadow-hover); padding: var(--s5) var(--s5) var(--s4);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1) var(--s3);
  /* hidden: pushed off the right edge of the viewport */
  transform: translate(calc(100% + var(--dock-handle-w) + 16px), -50%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.goal-dock.is-open .goal-dock-panel {
  transform: translate(0, -50%);
  visibility: visible;
  transition: transform .28s ease, visibility 0s linear 0s;
}
.goal-dock-panel .mm-title {
  grid-column: 1 / -1; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-muted); margin-bottom: var(--s1);
}
.goal-dock-panel .mega-link { padding: var(--s2); font-size: 13.5px; gap: var(--s2); }
.goal-dock-all {
  grid-column: 1 / -1; margin-top: var(--s2); padding-top: var(--s3);
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  font-weight: 600; font-size: 13.5px; color: var(--c-primary);
}
.goal-dock-all:hover { color: var(--c-accent); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .goal-dock-panel { transition: visibility 0s; }
}
.mega-link {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3);
  border-radius: var(--r-md); color: var(--c-text); font-weight: 500; font-size: 14px;
}
.mega-link:hover { background: var(--c-primary-tint); text-decoration: none; }
.mega-link .goal-ico { flex: none; }

.nav-spacer { flex: 1; }
.hamburger { display: none; }

/* ticker */
.ticker {
  background: var(--c-primary); color: #fff; overflow: hidden; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: var(--s2) 0;
}
.ticker-track { display: inline-flex; gap: var(--s7); animation: ticker-scroll 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: var(--s3); }
.ticker-track span::before { content: '\2713'; color: #8FD6B4; font-weight: 700; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: var(--s2) var(--s5); border-radius: var(--r-sm); border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  text-decoration: none; line-height: 1.5;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); text-decoration: none; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); text-decoration: none; }
.btn--secondary { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary-soft); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--c-text-muted); border-color: transparent; }
.btn--ghost:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.btn--lg { padding: var(--s3) var(--s6); font-size: 16px; }
.btn--sm { padding: var(--s1) var(--s3); font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 6. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.field label .req { color: var(--c-error); }
.input, .select {
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  padding: var(--s2) var(--s3); font-size: 15px; color: var(--c-text); background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus, .select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); outline: none; }
.input.is-error, .select.is-error { border-color: var(--c-error); }
.field-error { font-size: 12.5px; color: var(--c-error); min-height: 0; }
.field-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-grid .col-span-2 { grid-column: span 2; }

/* ---------- 7. Product card ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
}
.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #d8e2dc; }
.product-card .pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--c-bg-soft); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-media:hover { text-decoration: none; }
.pc-badge {
  position: absolute; top: var(--s2); left: var(--s2); z-index: 2;
  background: var(--c-sale); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .03em;
}
.pc-badge--new { background: var(--c-primary); }
.pc-badge--limited { background: var(--c-accent); }
.pc-save {
  position: absolute; top: var(--s2); right: var(--s2); z-index: 2;
  background: #fff; color: var(--c-sale); border: 1.5px solid var(--c-sale);
  font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-sm);
}
.pc-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); flex: 1; }
.pc-title {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--c-text);
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pc-title:hover { color: var(--c-primary); text-decoration: none; }
.pc-rating { display: flex; align-items: center; gap: var(--s1); font-size: 12.5px; color: var(--c-text-muted); }
.pc-price { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.pc-price .sale { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--c-sale); }
.pc-price .compare { font-size: 13.5px; color: var(--c-text-muted); text-decoration: line-through; }
.pc-price .save-pct { font-size: 12px; font-weight: 700; color: var(--c-success); }
.pc-meta { font-size: 12px; color: var(--c-text-muted); }
.pc-actions { margin-top: auto; display: flex; align-items: center; gap: var(--s2); }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm); overflow: hidden; flex: none;
}
.qty-stepper button {
  width: 30px; height: 34px; border: 0; background: var(--c-bg-soft);
  color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.qty-stepper .qty-val { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.pc-actions .btn { flex: 1; padding: var(--s2) var(--s3); font-size: 14px; }

/* stars */
.stars { position: relative; display: inline-block; line-height: 1; flex: none; }
.stars .stars-bg { color: #DEE2E6; }
.stars .stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--c-star); }

/* ---------- 8. Home sections ---------- */
/* hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #E6F0E9 0%, #F2F7F3 58%, #FAFCFA 100%);
}
.hero-track { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: var(--s8) var(--s4);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center;
  min-height: 380px;
}
.hero-copy .eyebrow { color: var(--c-accent); }
.hero-copy h2 { font-size: 40px; margin-bottom: var(--s4); }
.hero-copy p { font-size: 17px; color: var(--c-text-muted); max-width: 460px; margin-bottom: var(--s5); }
.hero-copy .btn { font-size: 16px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-hover); aspect-ratio: 8/5; object-fit: cover; background: var(--c-border); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: var(--r-full); border: 0;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; color: var(--c-text);
}
.hero-arrow:hover { background: #fff; color: var(--c-primary); }
.hero-arrow--prev { left: var(--s4); }
.hero-arrow--next { right: var(--s4); }
.hero-dots { position: absolute; bottom: var(--s4); left: 50%; transform: translateX(-50%); display: flex; gap: var(--s2); z-index: 5; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: var(--r-full); border: 0;
  background: rgba(33,37,41,.25); padding: 0;
}
.hero-dots button.is-active { background: var(--c-accent); transform: scale(1.25); }

/* goals grid */
.goals-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
.goal-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s2); border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.goal-tile:hover { border-color: var(--c-primary); box-shadow: var(--shadow-card); transform: translateY(-2px); text-decoration: none; }
.goal-ico {
  width: 48px; height: 48px; border-radius: var(--r-full); background: var(--c-primary-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-primary); flex: none;
}
.goal-tile span { font-size: 13px; font-weight: 600; color: var(--c-text); line-height: 1.3; }

/* rewards */
.section--rewards { background: var(--c-primary); color: #fff; }
.section--rewards h2, .section--rewards h3 { color: #fff; }
.rewards-inner { display: grid; gap: var(--s6); }
.rewards-copy { max-width: 720px; }
.rewards-copy .eyebrow { color: #8FD6B4; }
.rewards-sub { color: rgba(255,255,255,.82); font-size: 16px; margin: 0; }
.rewards-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.reward-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: var(--s5);
}
.reward-card p { color: rgba(255,255,255,.78); font-size: 14px; margin: var(--s2) 0 0; }
.reward-card .reward-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s3);
}
.rewards-inner .btn { justify-self: start; }

/* categories grid */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.category-tile {
  position: relative; display: flex; align-items: flex-end; border-radius: var(--r-md);
  overflow: hidden; aspect-ratio: 4/3; color: #fff;
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--c-border); transition: transform .3s; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,81,50,0) 30%, rgba(11,59,36,.78) 100%);
}
.category-tile span { position: relative; z-index: 2; padding: var(--s4); font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.category-tile:hover { text-decoration: none; }

/* reviews wall */
.reviews-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.review-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3);
}
.review-card .stars { font-size: 15px; }
.review-card blockquote { margin: 0; font-size: 14.5px; color: var(--c-text); }
.review-card footer { margin-top: auto; display: flex; align-items: center; gap: var(--s3); }
.avatar {
  width: 38px; height: 38px; border-radius: var(--r-full); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 14px;
}
.review-card .who { font-size: 13px; }
.review-card .who strong { display: block; font-size: 13.5px; }
.review-card .who span { color: var(--c-text-muted); font-size: 12.5px; }

/* newsletter */
.section--newsletter { background: var(--c-accent-soft); }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center;
}
.newsletter-inner h2 { margin-bottom: var(--s2); }
.newsletter-inner p { color: var(--c-text-muted); margin: 0; }
.newsletter-form { display: flex; gap: var(--s2); min-width: 420px; }
.newsletter-form .input { min-width: 0; flex: 1; }

/* ---------- 9. Category page ---------- */
.page-category { padding: var(--s5) 0 var(--s8); }
.breadcrumb { font-size: 13px; color: var(--c-text-muted); margin-bottom: var(--s4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--s2); color: var(--c-border); }
.category-header h1 { margin-bottom: var(--s2); }
.category-desc { color: var(--c-text-muted); max-width: 720px; margin-bottom: var(--s5); }
.category-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--s6); align-items: start; }

.filters-panel { position: sticky; top: calc(var(--header-h) + var(--s4)); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s4); }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.filters-head h2 { font-size: 16px; margin: 0; }
.filter-group { border-top: 1px solid var(--c-border); padding: var(--s4) 0 var(--s2); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: var(--s3); }
.filter-opt { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) 0; font-size: 14px; cursor: pointer; }
.filter-opt input { accent-color: var(--c-primary); width: 16px; height: 16px; flex: none; }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--c-text-muted); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  flex-wrap: wrap; margin-bottom: var(--s4);
}
.result-count { font-size: 13.5px; color: var(--c-text-muted); margin: 0; }
.toolbar-right { display: flex; align-items: center; gap: var(--s3); }
.sort-label { font-size: 13.5px; color: var(--c-text-muted); }
.select { width: auto; min-width: 170px; padding: var(--s1) var(--s2); font-size: 13.5px; }
.view-toggle { display: flex; border: 1.5px solid var(--c-border); border-radius: var(--r-sm); overflow: hidden; }
.view-btn {
  width: 36px; height: 34px; border: 0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-muted);
}
.view-btn.is-active { background: var(--c-primary); color: #fff; }
.view-btn svg { display: block; }

.load-more-wrap { text-align: center; margin-top: var(--s6); }
.empty-state { text-align: center; padding: var(--s8) var(--s4); color: var(--c-text-muted); }
.empty-state p { font-size: 17px; margin-bottom: var(--s4); }

/* list view */
.product-grid.is-list { grid-template-columns: 1fr; gap: var(--s3); }
.product-grid.is-list .product-card { flex-direction: row; }
.product-grid.is-list .pc-media { width: 200px; flex: none; aspect-ratio: 1; }
.product-grid.is-list .pc-body { padding: var(--s4); }

/* ---------- 10. Product detail ---------- */
.page-product { padding: var(--s5) 0 var(--s8); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: var(--s7); align-items: start; }
.pd-gallery .pd-main-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-bg-soft);
}
.pd-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); }
.pd-thumbs button {
  width: 72px; height: 72px; border-radius: var(--r-sm); border: 1.5px solid var(--c-border);
  overflow: hidden; padding: 0; background: #fff;
}
.pd-thumbs button.is-active { border-color: var(--c-primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .pd-brand { font-size: 13.5px; color: var(--c-text-muted); margin-bottom: var(--s1); }
.pd-info h1 { font-size: 26px; margin-bottom: var(--s2); }
.pd-rating-row { display: flex; align-items: center; gap: var(--s2); font-size: 13.5px; color: var(--c-text-muted); margin-bottom: var(--s4); }
.pd-rating-row a { font-weight: 600; }
.pd-price-box {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  background: var(--c-bg-soft); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s4);
}
.pd-price-box .sale { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--c-sale); }
.pd-price-box .compare { font-size: 16px; color: var(--c-text-muted); text-decoration: line-through; }
.pd-price-box .save-badge {
  background: var(--c-sale); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-sm);
}
.pd-buy-row { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.pd-buy-row .qty-stepper button { width: 36px; height: 42px; }
.pd-buy-row .qty-stepper .qty-val { min-width: 36px; font-size: 15px; }
.pd-buy-row .btn { min-width: 220px; }
.pd-points { font-size: 13px; color: var(--c-accent); font-weight: 600; margin-bottom: var(--s4); }
.pd-trust { display: grid; gap: var(--s2); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s5); }
.pd-trust .trust-item { display: flex; align-items: center; gap: var(--s2); font-size: 13.5px; color: var(--c-text-muted); }
.pd-trust .trust-item svg { color: var(--c-success); flex: none; }
.pd-summary { color: var(--c-text); }

.pd-tabs { margin-top: var(--s7); }
.pd-tablist { display: flex; gap: var(--s1); border-bottom: 2px solid var(--c-border); overflow-x: auto; }
.pd-tab {
  padding: var(--s3) var(--s4); border: 0; background: none; font-family: var(--font-head);
  font-weight: 600; font-size: 15px; color: var(--c-text-muted); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.pd-tab.is-active { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.pd-tabpanel { padding: var(--s5) 0; max-width: 860px; }
.pd-tabpanel[hidden] { display: none; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts-table caption { text-align: left; font-weight: 600; font-size: 13px; color: var(--c-text-muted); padding-bottom: var(--s2); }
.facts-table th, .facts-table td { border-bottom: 1px solid var(--c-border); padding: var(--s2) var(--s2); text-align: left; }
.facts-table th:last-child, .facts-table td:last-child { text-align: right; }
.facts-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); }
.fda-note { font-size: 12.5px; color: var(--c-text-muted); font-style: italic; margin-top: var(--s4); }

.rating-summary { display: grid; grid-template-columns: 180px 1fr; gap: var(--s6); align-items: center; margin-bottom: var(--s5); }
.rating-summary .big { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; }
.rating-bars { display: grid; gap: var(--s1); }
.rating-bar-row { display: grid; grid-template-columns: 56px 1fr 40px; gap: var(--s2); align-items: center; font-size: 12.5px; color: var(--c-text-muted); }
.rating-bar-row .bar { height: 8px; border-radius: var(--r-full); background: var(--c-border); overflow: hidden; }
.rating-bar-row .bar i { display: block; height: 100%; background: var(--c-star); border-radius: var(--r-full); }
.review-list { display: grid; gap: var(--s4); }
.review-item { border-bottom: 1px solid var(--c-border); padding-bottom: var(--s4); }
.review-item .review-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.review-item .review-head .stars { font-size: 13px; }
.review-item .review-head .who { font-size: 13px; color: var(--c-text-muted); }
.review-item h4 { font-size: 14.5px; margin-bottom: var(--s1); }
.review-item p { font-size: 14px; color: var(--c-text); margin: 0; }

.related-head { font-size: 20px; margin: var(--s7) 0 var(--s5); }

/* ---------- 11. Cart page ---------- */
.page-cart { padding: var(--s5) 0 var(--s8); }
.page-cart h1 { margin-bottom: var(--s2); }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s6); align-items: start; margin-top: var(--s5); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text-muted); padding: 0 var(--s3) var(--s3); border-bottom: 1px solid var(--c-border);
}
.cart-table td { padding: var(--s4) var(--s3); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: var(--s4); }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--c-bg-soft); flex: none; }
.cart-item .ci-name { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--c-text); }
.cart-item .ci-name:hover { color: var(--c-primary); text-decoration: none; }
.cart-item .ci-sku { font-size: 12px; color: var(--c-text-muted); }
.cart-table .col-price, .cart-table .col-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-table .col-total { font-weight: 700; }
.cart-table .compare { display: block; font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; font-weight: 400; }
.link-remove { background: none; border: 0; color: var(--c-text-muted); font-size: 13px; padding: var(--s1); border-radius: var(--r-sm); }
.link-remove:hover { color: var(--c-error); background: var(--c-bg-soft); }

.ship-progress { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s5); }
.ship-progress p { font-size: 13.5px; margin: 0 0 var(--s2); font-weight: 600; }
.ship-progress .bar { height: 8px; border-radius: var(--r-full); background: var(--c-border); overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--c-success); border-radius: var(--r-full); transition: width .3s; }
.ship-progress.is-complete p { color: var(--c-success); }

.summary-card { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s5); position: sticky; top: calc(var(--header-h) + var(--s4)); }
.summary-card h2 { font-size: 18px; margin-bottom: var(--s4); }
.summary-row { display: flex; justify-content: space-between; gap: var(--s4); font-size: 14.5px; padding: var(--s1) 0; }
.summary-row .val { font-variant-numeric: tabular-nums; }
.summary-row--savings .val { color: var(--c-success); font-weight: 600; }
.summary-row--total {
  border-top: 1px solid var(--c-border); margin-top: var(--s3); padding-top: var(--s3);
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
}
.promo-form { display: flex; gap: var(--s2); margin: var(--s4) 0; }
.promo-form .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  background: var(--c-primary-soft); color: var(--c-primary); border-radius: var(--r-sm);
  padding: var(--s2) var(--s3); font-size: 13.5px; font-weight: 600; margin: var(--s4) 0;
}
.promo-applied button { background: none; border: 0; color: var(--c-primary); font-size: 12.5px; text-decoration: underline; }
.summary-card .btn { margin-top: var(--s3); }
.cart-empty { text-align: center; padding: var(--s8) var(--s4); }
.cart-empty .empty-art { margin-bottom: var(--s5); color: var(--c-border); }
.cart-empty h2 { margin-bottom: var(--s2); }
.cart-empty p { color: var(--c-text-muted); margin-bottom: var(--s5); }

/* ---------- 12. Checkout ---------- */
.page-checkout { padding: var(--s5) 0 var(--s8); }
.page-checkout h1 { margin-bottom: var(--s4); }
.demo-banner {
  background: var(--c-accent-soft); border: 1px solid #F5C6A8; color: #8A3B04;
  border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: 13.5px; margin-bottom: var(--s5);
}
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--s7); align-items: start; }
.co-section { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s5); margin-bottom: var(--s4); }
.co-section h2 { font-size: 17px; margin-bottom: var(--s4); display: flex; align-items: center; gap: var(--s3); }
.co-section h2 .step-num {
  width: 26px; height: 26px; border-radius: var(--r-full); background: var(--c-primary);
  color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.delivery-opt {
  display: flex; align-items: center; gap: var(--s3); border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.delivery-opt:hover { border-color: var(--c-primary); }
.delivery-opt.is-selected { border-color: var(--c-primary); background: var(--c-primary-tint); }
.delivery-opt input { accent-color: var(--c-primary); width: 17px; height: 17px; flex: none; }
.delivery-opt .do-name { font-weight: 600; font-size: 14.5px; }
.delivery-opt .do-eta { font-size: 12.5px; color: var(--c-text-muted); }
.delivery-opt .do-price { margin-left: auto; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.delivery-opt .do-price.free { color: var(--c-success); }

.co-items { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.co-item { display: flex; align-items: center; gap: var(--s3); font-size: 13.5px; }
.co-item img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--c-bg-soft); flex: none; }
.co-item .coi-name { font-weight: 600; line-height: 1.3; }
.co-item .coi-qty { color: var(--c-text-muted); font-size: 12.5px; }
.co-item .coi-price { margin-left: auto; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 13. Confirmation ---------- */
.page-confirmation { padding: var(--s8) 0; }
.confirm-card { max-width: 760px; margin: 0 auto; text-align: center; }
.confirm-check {
  width: 76px; height: 76px; border-radius: var(--r-full); background: var(--c-primary-soft);
  color: var(--c-success); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s5);
}
.confirm-card h1 { margin-bottom: var(--s3); }
.confirm-card .confirm-sub { color: var(--c-text-muted); font-size: 16px; margin-bottom: var(--s6); }
.order-box { border: 1px solid var(--c-border); border-radius: var(--r-md); text-align: left; padding: var(--s5); margin-bottom: var(--s5); }
.order-box .ob-row { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; font-size: 14px; border-bottom: 1px dashed var(--c-border); }
.order-box .ob-row:last-child { border-bottom: 0; }
.order-box .ob-row .k { color: var(--c-text-muted); }
.order-box .ob-row .v { font-weight: 600; text-align: right; }
.order-box .ob-row .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.order-items { border: 1px solid var(--c-border); border-radius: var(--r-md); text-align: left; padding: var(--s5); margin-bottom: var(--s5); }
.order-items h2 { font-size: 16px; margin-bottom: var(--s4); }
.order-items .oi-row { display: flex; gap: var(--s3); align-items: center; padding: var(--s2) 0; font-size: 14px; }
.order-items .oi-row img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--c-bg-soft); }
.order-items .oi-row .oi-price { margin-left: auto; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-items .oi-total { display: flex; justify-content: space-between; border-top: 1px solid var(--c-border); margin-top: var(--s3); padding-top: var(--s3); font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.confirm-disclaimer { font-size: 12.5px; color: var(--c-text-muted); font-style: italic; margin-top: var(--s5); }
.confirm-actions { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s6); }

/* ---------- 14. Toast ---------- */
#toast-root { position: fixed; bottom: var(--s5); right: var(--s5); z-index: 200; display: grid; gap: var(--s2); }
.toast {
  background: var(--c-primary-dark); color: #fff; border-radius: var(--r-md);
  padding: var(--s3) var(--s5); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-hover); display: flex; align-items: center; gap: var(--s2);
  animation: toast-in .25s ease; max-width: 320px;
}
.toast--success { background: var(--c-success); }
.toast--error { background: var(--c-error); }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- 15. Footer ---------- */
.site-footer { background: #0B3B24; color: rgba(255,255,255,.75); margin-top: var(--s8); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6);
  padding: var(--s8) 0 var(--s7);
}
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s4); }
.site-footer a { color: rgba(255,255,255,.75); font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: var(--s2); }
.footer-brand img { height: 34px; width: auto; margin-bottom: var(--s4); }
.footer-brand p { font-size: 13.5px; max-width: 300px; }
.fda-disclaimer { font-size: 12px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.14); padding: var(--s5) 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: var(--s4) 0 var(--s6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.pay-icons { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.pay-icons span {
  display: inline-flex; align-items: center; gap: 7px; line-height: 1;
  background: rgba(255,255,255,.92); color: #212529; font-size: 15px; font-weight: 700;
  border-radius: 9px; padding: 4.5px 11px; letter-spacing: .02em;
}
.pay-mark { width: 24px; height: 15px; flex: none; display: block; }
.footer-bottom-right { display: flex; align-items: center; gap: var(--s4); }
.social-icons { display: flex; gap: var(--s2); }
.social-icons a {
  width: 32px; height: 32px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.social-icons a:hover { background: rgba(255,255,255,.12); }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .nav-list { overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .goals-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; }
  .hero-copy h2 { font-size: 30px; }
  .category-layout { grid-template-columns: 220px 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .reviews-wall { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: var(--s4); }
  .newsletter-form { min-width: 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  h1 { font-size: 26px; }
  .section { padding: var(--s6) 0; }
  .header-main { grid-template-columns: auto 1fr auto; gap: var(--s3); }
  .header-search { display: none; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block; position: fixed; inset: 0; z-index: 150; background: #fff;
    padding: var(--s5); overflow-y: auto;
  }
  .main-nav.is-open .nav-list { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
  .main-nav.is-open .nav-item > a, .main-nav.is-open .nav-item > button { padding: var(--s3) 0; border-bottom: 1px solid var(--c-border); width: 100%; justify-content: space-between; font-size: 16px; }
  .nav-close { display: inline-flex; margin-bottom: var(--s4); }
  .hamburger { display: inline-flex; }
  .ticker-track { animation-duration: 20s; }

  /* goal dock: larger touch target, narrower panel */
  .goal-dock { --dock-handle-w: 40px; --dock-panel-w: min(320px, 82vw); }
  .goal-dock-panel { max-height: calc(100dvh - 180px); }

  .product-grid, .goals-grid, .categories-grid, .reviews-wall, .rewards-cards { grid-template-columns: repeat(2, 1fr); }
  .product-grid.is-list .pc-media { width: 120px; }
  .category-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .filters-panel[hidden] { display: none; }
  .filters-toggle { display: inline-flex; margin-bottom: var(--s3); }
  .pd-layout { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-span-2 { grid-column: span 1; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  #toast-root { left: var(--s4); right: var(--s4); bottom: var(--s4); }
  .toast { max-width: none; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { width: 100%; }
  .order-box .ob-row, .order-items .oi-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .product-grid, .goals-grid, .categories-grid, .reviews-wall, .rewards-cards { grid-template-columns: 1fr; }
  .product-grid.is-list .pc-media { width: 100%; }
  .product-grid.is-list .product-card { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-copy h2 { font-size: 26px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
}

/* mobile-only helpers */
.nav-close { display: none; }
.filters-toggle { display: none; }
@media (max-width: 768px) { .nav-close { display: inline-flex; } .filters-toggle { display: inline-flex; } }

/* placeholder image block (used before AI art is ready) */
.img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E4EEE7 0%, #D5E4DA 100%);
  color: var(--c-text-muted); font-family: var(--font-head); font-weight: 600; font-size: 13px;
  text-align: center; padding: var(--s3);
}

/* ---------- 16. Account modal & order status (storefront accounts) ---------- */
.account-dropdown .acct-greeting {
  display: block; padding: var(--s2) var(--s3) var(--s1); font-size: 13px;
  color: var(--c-text-muted); font-weight: 600;
}
.acct-modal {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: var(--s4);
}
.acct-modal[hidden] { display: none; }
.acct-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 30, 22, .45);
  backdrop-filter: blur(2px);
}
.acct-modal__panel {
  position: relative; width: 100%; max-width: 420px; background: #fff;
  border-radius: var(--r-lg); box-shadow: var(--shadow-hover); padding: var(--s6) var(--s5);
  animation: acct-pop .18s ease;
}
@keyframes acct-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.acct-modal__close {
  position: absolute; top: var(--s3); right: var(--s3); width: 34px; height: 34px;
  border: 0; border-radius: var(--r-full); background: var(--c-bg); color: var(--c-text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.acct-modal__close:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.acct-title { font-family: var(--font-head); font-size: 22px; color: var(--c-primary); margin: 0 0 var(--s4); }
.acct-form .field { margin-bottom: var(--s3); }
.acct-form .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.acct-form .input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: 15px; font-family: var(--font-body); color: var(--c-text); background: #fff;
}
.acct-form .input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.acct-form .field-error { color: var(--c-error); font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.acct-switch { text-align: center; font-size: 13.5px; color: var(--c-text-muted); margin-top: var(--s4); }
.acct-switch a { color: var(--c-primary); font-weight: 600; }
.acct-note { color: var(--c-text-muted); font-size: 14px; margin: 0 0 var(--s4); }
.acct-loading { color: var(--c-text-muted); font-size: 14px; padding: var(--s3) 0; }
.acct-order {
  border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s3) var(--s4);
  margin-bottom: var(--s3); background: var(--c-bg);
}
.acct-order-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.acct-order-no { font-weight: 700; font-size: 14px; color: var(--c-text); }
.acct-order-meta { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--c-text-muted); }
.acct-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); }
.acct-badge--proc { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.acct-badge--ship { background: var(--c-primary-soft); color: var(--c-primary); }
