/* =========================================================================
   Healthy Kart — Design System
   Pure-white canvas · deep pine-green brand · energetic tangerine accent
   ========================================================================= */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Color (OKLCH) */
  --bg:           oklch(1 0 0);
  --surface:      oklch(0.977 0.008 150);
  --surface-2:    oklch(0.958 0.013 150);
  --primary-tint: oklch(0.952 0.034 150);
  --ink:          oklch(0.23 0.021 160);
  --muted:        oklch(0.505 0.018 160);
  --line:         oklch(0.915 0.012 150);
  --line-strong:  oklch(0.86 0.014 150);

  --primary:      oklch(0.52 0.13 150);
  --primary-deep: oklch(0.40 0.105 152);
  --primary-12:   oklch(0.52 0.13 150 / 0.12);

  --accent:       oklch(0.64 0.196 41);
  --accent-deep:  oklch(0.55 0.18 38);
  --accent-tint:  oklch(0.952 0.045 55);
  --accent-12:    oklch(0.64 0.196 41 / 0.14);

  --success:      oklch(0.55 0.13 150);
  --warning:      oklch(0.80 0.145 80);
  --warning-ink:  oklch(0.42 0.10 75);
  --danger:       oklch(0.55 0.205 27);
  --danger-tint:  oklch(0.955 0.03 30);

  --on-primary:   oklch(1 0 0);
  --on-accent:    oklch(1 0 0);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.5rem;    --s-8: 3rem;
  --s-9: 4rem;     --s-10: 5rem;
  --section: clamp(3.5rem, 8vw, 7rem);
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Radii */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 30px;  --r-pill: 999px;

  /* Shadows (green-tinted, restrained) */
  --shadow-sm: 0 1px 2px oklch(0.4 0.05 150 / 0.05), 0 1px 3px oklch(0.4 0.05 150 / 0.05);
  --shadow-md: 0 6px 18px -4px oklch(0.4 0.05 150 / 0.10);
  --shadow-lg: 0 22px 55px -16px oklch(0.4 0.06 150 / 0.22);

  /* Layout */
  --container: 1240px;
  --container-narrow: 980px;
  --header-h: 72px;

  /* Z-index scale (semantic) */
  --z-base: 1;     --z-dropdown: 1000; --z-sticky: 1020;
  --z-backdrop: 1040; --z-drawer: 1050; --z-toast: 1080; --z-tooltip: 1090;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* ~ease-out-quint */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 130ms;  --t: 220ms;  --t-slow: 420ms;
}

/* -------------------------------------------------------------- Reset/base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--accent-12); }

/* ------------------------------------------------------------- Utilities */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }
.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;
}
.stack > * + * { margin-top: var(--s-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--primary);
}
.eyebrow::before {
  content: ""; width: 1.4rem; height: 2px; border-radius: 2px;
  background: var(--accent);
}

.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); margin-top: var(--s-3); }
.section-head p { color: var(--muted); margin-top: var(--s-3); font-size: 1.06rem; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); max-width: none; flex-wrap: wrap;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.97rem;
  line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  padding: 0.85rem 1.4rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t) var(--ease-out),
              background-color var(--t) var(--ease-out), filter var(--t);
  will-change: transform;
}
.btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); filter: brightness(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--accent  { --btn-bg: var(--accent);  --btn-fg: var(--on-accent); }
.btn--ink     { --btn-bg: var(--ink);     --btn-fg: var(--bg); }
.btn--outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); filter: none; }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 0.7rem; }
.btn--ghost:hover { background: var(--surface-2); box-shadow: none; transform: none; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--pill-icon { padding: 0.85rem; aspect-ratio: 1; }

/* ----------------------------------------------------------------- Tags */
.tag {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.005em;
  padding: 0.3rem 0.62rem; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.tag svg { width: 0.9em; height: 0.9em; }
.tag--protein { background: var(--accent-tint); color: var(--accent-deep); }
.tag--vegan   { background: var(--primary-tint); color: var(--primary-deep); }
.tag--gf      { background: oklch(0.95 0.04 90); color: oklch(0.45 0.10 80); }
.tag--keto    { background: oklch(0.95 0.035 320); color: oklch(0.45 0.13 330); }
.tag--lowcal  { background: oklch(0.95 0.04 230); color: oklch(0.45 0.11 245); }
.tag--sale    { background: var(--accent); color: var(--on-accent); }
.tag--bestseller { background: var(--ink); color: var(--bg); }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display);
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.04em; color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center; color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand b { color: var(--primary); font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: var(--s-3); }
.main-nav a {
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill); font-weight: 600;
  font-size: 0.95rem; color: var(--ink); transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-tint); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--ink);
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.7rem; font-weight: 800; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--bg); transform: scale(0); transition: transform var(--t) var(--ease-out);
}
.cart-count.is-shown { transform: scale(1); }
.cart-count.bump { animation: badge-bump 0.42s var(--ease-out); }
@keyframes badge-bump { 0%{transform:scale(1)} 35%{transform:scale(1.45)} 100%{transform:scale(1)} }

.nav-toggle { display: none; }

/* announcement bar */
.announce {
  background: var(--primary-deep); color: oklch(0.97 0.02 150);
  font-size: 0.86rem; font-weight: 600; text-align: center;
  padding: 0.5rem var(--gutter);
}
.announce b { color: oklch(0.92 0.09 90); }

/* -------------------------------------------------------------- Hero */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); overflow: clip; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-top: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-7); color: var(--muted); font-size: 0.9rem; }
.hero__trust div { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.hero__trust svg { width: 1.05rem; height: 1.05rem; color: var(--primary); }

.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
  position: absolute; background: var(--bg); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line);
}
.hero__float--macro { left: -8%; bottom: 12%; }
.hero__float--rating { right: -6%; top: 9%; }
.hero__float .ring {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-deep); font-weight: 800; font-size: 0.8rem;
}
.hero__float small { color: var(--muted); font-size: 0.76rem; display: block; }
.hero__float strong { font-size: 0.96rem; }
.hero__blob {
  position: absolute; inset: auto -20% -25% auto; width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, var(--primary-tint), transparent 68%); filter: blur(8px);
}

/* --------------------------------------------------- Goal selector */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.goal-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2);
  padding: 1.4rem 1.3rem 1.3rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  text-align: left; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.goal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.goal-card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-deep); margin-bottom: var(--s-2);
}
.goal-card__icon svg { width: 24px; height: 24px; }
.goal-card h3 { font-size: 1.18rem; }
.goal-card p { font-size: 0.9rem; color: var(--muted); }

/* India veg / non-veg indicator (FSSAI-style) */
.pc-top { display: flex; align-items: center; gap: 0.45rem; }
.veg-dot { width: 15px; height: 15px; border-radius: 3px; border: 1.6px solid currentColor; display: inline-grid; place-items: center; flex: none; }
.veg-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.veg-dot--veg { color: oklch(0.55 0.15 150); }
.veg-dot--nonveg { color: oklch(0.55 0.20 27); }
.veg-dot--egg { color: oklch(0.72 0.15 75); }

/* Search modal */
.search-modal { position: fixed; inset: 0; z-index: 1075; display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(1rem, 6vh, 5rem) var(--gutter) var(--s-6); background: oklch(0.2 0.03 155 / 0.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); overflow-y: auto; }
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-panel { width: 100%; max-width: 760px; background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateY(-12px); transition: transform var(--t) var(--ease-out); }
.search-modal.is-open .search-panel { transform: none; }
.search-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.search-i { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-input { flex: 1; border: none; outline: none; background: none; font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.search-meta { padding: var(--s-4) var(--s-5) 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.search-results { padding: var(--s-4) var(--s-5) var(--s-5); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3); }
.search-empty { grid-column: 1 / -1; padding: var(--s-8); text-align: center; color: var(--muted); }
@media (max-width: 560px) { .search-results { grid-template-columns: repeat(2, 1fr); } }

/* Auth + account */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 100px); display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.auth-card { width: 100%; max-width: 440px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin: var(--s-2) 0 var(--s-5); }
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--s-6); }
.auth-tab { flex: 1; padding: 0.6rem; border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: all var(--t-fast); }
.auth-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-card .field { margin-bottom: var(--s-4); }
.auth-error { display: none; align-items: center; gap: 0.5rem; background: var(--danger-tint); color: var(--danger); font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1rem; border-radius: var(--r-md); margin-bottom: var(--s-4); }
.auth-alt { text-align: center; margin-top: var(--s-5); color: var(--muted); font-size: 0.85rem; }
.auth-slim { border-bottom: 1px solid var(--line); }
.auth-slim .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.account-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.account-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.account-card h2 { font-size: 1.3rem; margin-bottom: var(--s-5); }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: none; }

/* Account: at-a-glance + detailed order cards */
.glance__row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.glance__row:last-child { border-bottom: none; }
.glance__row strong { font-weight: 700; text-align: right; }

/* New Detailed Order UI */
.od-wrap { margin-bottom: var(--s-8); }
.od-head { margin-bottom: var(--s-4); }
.od-head h3 { font-size: 1.4rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: var(--s-3); }
.od-head p { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

.od-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
@media (max-width: 900px) { .od-grid { grid-template-columns: 1fr; } }

.od-left { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.5rem); }

.od-box { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.od-box-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .od-box-split { grid-template-columns: 1fr; } }

.od-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; display: block; }
.od-value { font-size: 0.9rem; color: var(--muted); line-height: 1.5; word-wrap: break-word; }

/* Tracking Timeline */
.od-tracking-head { display: flex; justify-content: space-between; margin-bottom: var(--s-5); }
.od-tracking-link { color: var(--primary); text-decoration: underline; font-weight: 600; font-size: 0.9rem; }
.od-timeline { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); position: relative; padding-left: 20px; }
.od-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: dashed 2px var(--line-strong); }
.od-t-item { position: relative; font-size: 0.9rem; }
.od-t-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); z-index: 2; }
.od-t-item.active::before { border-color: var(--primary); background: var(--primary); }
.od-t-item.active { font-weight: 700; color: var(--ink); }
.od-t-item .od-t-date { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }

/* Order Summary Box */
.od-items { display: flex; flex-direction: column; gap: var(--s-4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-4); margin-bottom: var(--s-4); }
.od-item { display: flex; align-items: flex-start; gap: var(--s-4); }
.od-item-img { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 4px; flex: none; }
.od-item-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.od-item-q { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 50%; background: oklch(0.2 0.02 200 / 0.85); color: var(--bg); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; backdrop-filter: blur(4px); }
.od-item-info { flex: 1; font-size: 0.9rem; color: var(--ink); }
.od-item-price { font-weight: 600; font-variant-numeric: tabular-nums; flex: none; font-size: 0.9rem; }

.od-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: var(--s-3); color: var(--muted); }
.od-summary-row b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.od-summary-row--total { border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-4); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.od-summary-row--total b { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.od-savings { margin-top: var(--s-4); background: var(--surface-2); padding: 0.6rem 0.8rem; border-radius: var(--r-sm); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.od-savings svg { width: 16px; height: 16px; color: var(--success); }

/* Live macro tracker (cart) */
.macro-tracker { background: var(--ink); color: oklch(0.95 0.01 150); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5); }
.macro-tracker__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.macro-tracker__top h3 { color: oklch(0.98 0.01 150); font-size: 1.15rem; }
.macro-tracker__top .muted { color: oklch(0.72 0.02 150); font-size: 0.84rem; }
.macro-tracker__badge { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.8rem; padding: 0.4rem 0.75rem; border-radius: var(--r-pill); white-space: nowrap; }
.macro-tracker__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.macro-tracker .macro-stat { background: oklch(1 0 0 / 0.07); border: none; }
.macro-tracker .macro-stat b { color: oklch(0.98 0.01 150); }
.macro-tracker .macro-stat b.hi { color: oklch(0.82 0.16 58); }
.macro-tracker .macro-stat span { color: oklch(0.72 0.02 150); }
.macro-tracker__bar { margin-top: var(--s-4); }
.macro-tracker__bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: var(--s-2); color: oklch(0.82 0.02 150); }
.macro-tracker__bar-label b { color: oklch(0.82 0.16 58); }
.macro-tracker__bar .progress { background: oklch(1 0 0 / 0.12); }
.macro-tracker__cta { margin-top: var(--s-4); font-size: 0.9rem; color: oklch(0.78 0.02 150); }
.macro-tracker__cta a { color: oklch(0.82 0.14 150); font-weight: 700; text-decoration: underline; }
@media (max-width: 560px) { .macro-tracker__grid { grid-template-columns: repeat(2, 1fr); } }

/* Admin panel */
.admin-body { background: var(--surface); min-height: 100vh; }
.admin-topbar { background: var(--ink); color: oklch(0.95 0.01 150); padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: var(--z-sticky); }
.admin-topbar .brand { color: oklch(0.99 0.01 150); font-size: 1.15rem; }
.admin-topbar .brand b { color: oklch(0.8 0.13 150); }
.admin-tag { background: var(--accent); color: var(--on-accent); font-size: 0.66rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 0.5rem; }
#admin-actions { display: flex; gap: var(--s-2); }
.admin-topbar .btn--ghost { color: oklch(0.88 0.01 150); }
.admin-topbar .btn--ghost:hover { background: oklch(1 0 0 / 0.08); }
.admin-topbar .btn--outline { box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.25); color: oklch(0.95 0.01 150); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: var(--s-6) 0; }
.admin-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.admin-stat b { font-family: var(--font-display); font-size: 1.8rem; display: block; line-height: 1; letter-spacing: -0.03em; }
.admin-stat span { color: var(--muted); font-size: 0.85rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--s-5); align-items: start; }
.admin-list { max-height: 620px; overflow-y: auto; margin: 0 calc(-1 * var(--s-2)); padding: 0 var(--s-2); }
.admin-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: none; }
.admin-row__img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; background: var(--surface); border-radius: var(--r-sm); padding: 3px; flex: none; }
.admin-row__main { flex: 1; min-width: 0; }
.admin-row__main strong { display: block; font-size: 0.94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row__main span { font-size: 0.8rem; }
.admin-row .price { font-size: 1rem; }
.admin-del { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; transition: all var(--t-fast); }
.admin-del:hover { background: var(--danger-tint); color: var(--danger); }
.admin-body textarea { font-family: var(--font-sans); resize: vertical; }
.admin-body .container { padding-bottom: var(--s-10); }
@media (max-width: 860px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } .admin-grid { grid-template-columns: 1fr; } }
.goal-card__go { margin-top: auto; padding-top: var(--s-3); font-weight: 700; color: var(--primary); font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem; transition: gap var(--t); }
.goal-card__go svg { width: 1.05em; height: 1.05em; flex: none; }
.goal-card:hover .goal-card__go { gap: 0.7rem; }
/* energetic variant for fitness goals */
.goal-card--energy { background: var(--ink); border-color: transparent; color: oklch(0.95 0.01 150); }
.goal-card--energy h3 { color: oklch(0.98 0.01 150); }
.goal-card--energy p { color: oklch(0.78 0.02 150); }
.goal-card--energy .goal-card__icon { background: var(--accent-12); color: oklch(0.78 0.18 50); }
.goal-card--energy .goal-card__go { color: oklch(0.82 0.16 55); }

/* ------------------------------------------------------- Feature strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.feature { display: flex; flex-direction: column; gap: var(--s-2); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary); }
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* ---------------------------------------------------------- Product card */
.product-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface);
  display: grid; place-items: center; padding: 1.2rem;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform var(--t-slow) var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.06) rotate(-1deg); }
.product-card__media--photo { padding: 0; }
.product-card__media--photo img { object-fit: cover; mix-blend-mode: normal; }
.product-card__flags { position: absolute; top: 0.7rem; left: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.product-card__fav {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: oklch(1 0 0 / 0.9); display: grid; place-items: center; color: var(--muted);
  box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(-4px); transition: all var(--t);
}
.product-card:hover .product-card__fav, .product-card__fav:focus-visible { opacity: 1; transform: none; }
.product-card__fav:hover { color: var(--danger); }
.product-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.product-card__cat { font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__name { font-family: var(--font-sans); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; line-height: 1.25; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; }
.macros { display: flex; gap: 0.9rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.macros b { color: var(--ink); font-weight: 600; }
.macros .hi { color: var(--accent-deep); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.price { font-family: var(--font-sans); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.price s { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-right: 0.35rem; }
.price small { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.add-btn {
  position: relative; z-index: var(--z-base); width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease-out), background var(--t), filter var(--t);
}
.add-btn:hover { filter: brightness(1.07); transform: scale(1.08); }
.add-btn:active { transform: scale(0.92); }
.add-btn.is-added { background: var(--success); }
.add-btn svg { width: 20px; height: 20px; }

.rating { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.rating svg { width: 0.95em; height: 0.95em; color: var(--warning); }
.rating span { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------- Bundles */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.bundle {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; color: oklch(0.98 0.01 150);
  isolation: isolate;
}
.bundle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform var(--t-slow) var(--ease-out); }
.bundle::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, oklch(0.18 0.04 155 / 0.92) 8%, oklch(0.18 0.04 155 / 0.2) 55%, transparent); }
.bundle:hover img { transform: scale(1.05); }
.bundle__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bundle__body h3 { color: oklch(0.99 0.01 150); font-size: 1.45rem; }
.bundle__body p { color: oklch(0.86 0.02 150); font-size: 0.92rem; }
.bundle__meta { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.bundle__price { font-weight: 800; font-size: 1.2rem; }
.bundle--wide { grid-column: span 1; }

/* ----------------------------------------------------- Split / banner */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); color: oklch(0.96 0.01 150);
}
.split__media { position: relative; min-height: 360px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.split__body h2 { color: oklch(0.99 0.01 150); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.split__body p { color: oklch(0.82 0.02 150); font-size: 1.05rem; max-width: 42ch; }
.split--accent { background: var(--accent-deep); }
.split--accent .split__body h2, .split--accent .split__body p { color: oklch(0.99 0.02 50); }
.stat-row { display: flex; gap: var(--s-6); margin-top: var(--s-2); }
.stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; color: oklch(0.99 0.01 150); }
.stat span { font-size: 0.85rem; color: oklch(0.8 0.02 150); }
.split--accent .stat b { color: oklch(0.99 0.02 50); }
.split--accent .stat span { color: oklch(0.86 0.04 50); }

/* ------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; }
.step { position: relative; padding-top: var(--s-5); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--accent-deep);
  position: absolute; top: 0; left: 0;
}
.step h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: 0.95rem; }
.step::after { content: ""; position: absolute; top: 6px; left: 2.4rem; right: 0; height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent); }
.step:last-child::after { display: none; }

/* ------------------------------------------------------------ Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.review .rating { margin-bottom: var(--s-3); }
.review p { font-size: 1rem; color: var(--ink); }
.review__by { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--s-4); }
.review__av { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.review__by strong { font-size: 0.92rem; display: block; }
.review__by small { color: var(--muted); font-size: 0.8rem; }

/* ----------------------------------------------------- Newsletter / CTA */
.cta-band {
  border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, var(--primary) 0%, var(--primary-deep) 70%);
  color: oklch(0.98 0.02 150); position: relative; overflow: hidden;
}
.cta-band h2 { color: oklch(0.99 0.01 150); font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: oklch(0.86 0.03 150); max-width: 48ch; margin: var(--s-4) auto 0; font-size: 1.05rem; }
.newsletter { display: flex; gap: var(--s-2); max-width: 460px; margin: var(--s-6) auto 0; }
.newsletter input {
  flex: 1; padding: 0.9rem 1.2rem; border-radius: var(--r-pill); border: none;
  background: oklch(1 0 0 / 0.16); color: oklch(0.99 0.01 150); font-weight: 600;
}
.newsletter input::placeholder { color: oklch(0.86 0.02 150); }
.newsletter input:focus-visible { outline-color: oklch(0.92 0.09 90); background: oklch(1 0 0 / 0.24); }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: oklch(0.82 0.015 150); padding-block: clamp(3rem, 6vw, 5rem) var(--s-7); margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); }
.site-footer .brand { color: oklch(0.99 0.01 150); }
.site-footer .brand b { color: oklch(0.78 0.13 150); }
.footer-about { max-width: 34ch; margin-top: var(--s-4); font-size: 0.93rem; color: oklch(0.75 0.02 150); }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: oklch(0.7 0.02 150); margin-bottom: var(--s-4); font-weight: 700; }
.footer-col a { display: block; padding: 0.32rem 0; color: oklch(0.84 0.015 150); font-size: 0.95rem; transition: color var(--t-fast); }
.footer-col a:hover { color: oklch(0.85 0.12 150); }
.footer-social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: oklch(1 0 0 / 0.08); color: oklch(0.9 0.01 150); transition: background var(--t-fast); }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  border-top: 1px solid oklch(1 0 0 / 0.1); margin-top: var(--s-8); padding-top: var(--s-5);
  font-size: 0.86rem; color: oklch(0.66 0.02 150); }
.footer-pay { display: flex; gap: 0.5rem; align-items: center; }
.footer-pay span { padding: 0.25rem 0.55rem; border-radius: 6px; background: oklch(1 0 0 / 0.1); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }

/* ====================================================== SHOP / LISTING */
.shop-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
.breadcrumbs { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-3); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--line-strong); }

.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.filter-group { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: var(--s-3); }
.check { display: flex; align-items: center; gap: 0.6rem; padding: 0.32rem 0; cursor: pointer; font-size: 0.95rem; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.check .cnt { margin-left: auto; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.check:hover { color: var(--primary); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  padding: 0.5rem 0.95rem; border-radius: var(--r-pill); font-size: 0.9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: all var(--t-fast); display: inline-flex; align-items: center; gap: 0.4rem;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip[aria-pressed="true"]:hover { color: var(--on-primary); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-size: 0.95rem; }
.shop-toolbar .count b { color: var(--ink); }
.select {
  padding: 0.6rem 2.3rem 0.6rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--bg); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 15px;
}
.filter-toggle { display: none; }
.filter-clear { background: none; color: var(--accent-deep); font-weight: 700; font-size: 0.9rem; }
.filter-clear:hover { text-decoration: underline; }
.filter-head { display: none; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
@media (max-width: 880px) { .filter-head { display: flex; } }

/* PDP details (nutrition + accordion) */
.pdp-details { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .pdp-details { grid-template-columns: 1fr; } }

/* =================================================== PRODUCT DETAIL */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: var(--s-6); }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: var(--s-3); }
.pdp__main {
  aspect-ratio: 1; border-radius: var(--r-xl); background: var(--surface); overflow: hidden;
  display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); position: relative;
}
.pdp__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__thumbs { display: flex; gap: var(--s-2); }
.pdp__thumb { width: 74px; height: 74px; border-radius: var(--r-md); background: var(--surface); border: 2px solid var(--line);
  display: grid; place-items: center; padding: 0.5rem; cursor: pointer; transition: border-color var(--t-fast); }
.pdp__thumb img { mix-blend-mode: multiply; }
.pdp__thumb[aria-current="true"] { border-color: var(--primary); }

.pdp__info > * + * { margin-top: var(--s-4); }
.pdp__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.pdp__rating-row { display: flex; align-items: center; gap: var(--s-4); }
.pdp__price { display: flex; align-items: baseline; gap: var(--s-3); }
.pdp__price .price { font-size: 1.9rem; }
.pdp__lede { color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.pdp__buy { display: flex; gap: var(--s-3); align-items: stretch; flex-wrap: wrap; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--ink); transition: background var(--t-fast); }
.qty button:hover { background: var(--surface-2); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty input { width: 44px; text-align: center; border: none; font-weight: 700; font-variant-numeric: tabular-nums; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.buy-options { display: flex; flex-direction: column; gap: var(--s-2); }
.buy-option { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.buy-option:hover { border-color: var(--primary); }
.buy-option:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.buy-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.buy-option strong { font-weight: 700; }
.buy-option .save { color: var(--accent-deep); font-weight: 700; font-size: 0.85rem; }
.buy-option p { font-size: 0.88rem; color: var(--muted); }

.pdp__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); padding: var(--s-5) 0; border-block: 1px solid var(--line); }
.pdp__perk { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; font-weight: 600; }
.pdp__perk svg { width: 1.3rem; height: 1.3rem; color: var(--primary); flex: none; }
.pdp__perk span { color: var(--muted); font-weight: 500; display: block; font-size: 0.8rem; }

/* nutrition facts panel */
.nutrition { font-family: var(--font-mono); border: 2px solid var(--ink); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); max-width: 360px; }
.nutrition h4 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.03em; border-bottom: 8px solid var(--ink); padding-bottom: 0.3rem; }
.nutrition__serve { font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--line-strong); }
.nutrition__row { display: flex; justify-content: space-between; padding: 0.42rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.nutrition__row b { font-weight: 600; }
.nutrition__row.cal { font-size: 1rem; border-bottom: 4px solid var(--ink); }
.nutrition__row.cal b { font-weight: 700; }
.nutrition__row .pct { color: var(--muted); }
.nutrition__row--sub { padding-left: var(--s-4); color: var(--muted); }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) 0; font-weight: 700; font-size: 1.02rem; text-align: left; }
.accordion__head svg { width: 1.2rem; height: 1.2rem; color: var(--muted); transition: transform var(--t); flex: none; }
.accordion__head[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease-out); }
.accordion__panel > div { overflow: hidden; }
.accordion__head[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { color: var(--muted); padding-bottom: var(--s-4); }

/* ======================================================= CART */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: var(--s-6); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__media { width: 96px; height: 96px; border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; padding: 0.6rem; }
.cart-item__media img { mix-blend-mode: multiply; max-height: 100%; object-fit: contain; }
.cart-item__name { font-weight: 700; font-size: 1.05rem; }
.cart-item__meta { color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); margin-top: 0.2rem; }
.cart-item__remove { color: var(--muted); font-size: 0.84rem; font-weight: 600; margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 0.3rem; }
.cart-item__remove:hover { color: var(--danger); }
.cart-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.cart-item .qty { transform: scale(0.9); transform-origin: right; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); position: sticky; top: calc(var(--header-h) + 1rem); }
.summary h3 { font-size: 1.3rem; margin-bottom: var(--s-4); }
.summary__row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.96rem; }
.summary__row .muted { color: var(--muted); }
.summary__row--total { border-top: 1px solid var(--line-strong); margin-top: var(--s-3); padding-top: var(--s-4); font-size: 1.25rem; font-weight: 800; }
.summary__row--total .price { font-size: 1.35rem; }
.summary__row .free { color: var(--success); font-weight: 700; }

.progress-wrap { background: var(--primary-tint); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-5); }
.progress-wrap p { font-size: 0.88rem; font-weight: 600; margin-bottom: var(--s-3); }
.progress-wrap p b { color: var(--primary-deep); }
.progress { height: 8px; border-radius: var(--r-pill); background: oklch(1 0 0 / 0.7); overflow: hidden; }
.progress__bar { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0; transition: width var(--t-slow) var(--ease-out); }

.promo { display: flex; gap: var(--s-2); margin: var(--s-5) 0; }
.promo input { flex: 1; padding: 0.7rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--bg); font-weight: 600; }

.cart-empty { text-align: center; padding: var(--s-10) var(--s-4); }
.cart-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; margin: 0 auto var(--s-5); color: var(--muted); }
.cart-empty h2 { font-size: 1.7rem; }
.cart-empty p { color: var(--muted); margin: var(--s-3) 0 var(--s-6); }

/* ======================================================= CHECKOUT */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: var(--s-6); }
.checkout-steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-7); font-size: 0.88rem; flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 600; }
.checkout-steps li b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: 0.78rem; }
.checkout-steps li.active { color: var(--ink); }
.checkout-steps li.active b { background: var(--primary); color: var(--on-primary); }
.checkout-steps li::after { content: ""; width: 1.2rem; height: 1px; background: var(--line-strong); }
.checkout-steps li:last-child::after { display: none; }

.fieldset { margin-bottom: var(--s-7); }
.fieldset > h3 { font-size: 1.25rem; margin-bottom: var(--s-5); display: flex; align-items: center; gap: 0.6rem; }
.fieldset > h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-size: 0.9rem; font-family: var(--font-sans); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.col-2 { grid-column: span 2; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  padding: 0.8rem 1rem; border-radius: var(--r-md); border: 1.5px solid var(--line-strong);
  background: var(--bg); font-weight: 500; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-12); }
.field input::placeholder { color: oklch(0.65 0.01 150); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field.invalid input { border-color: var(--danger); }
.field .err { font-size: 0.8rem; color: var(--danger); font-weight: 600; display: none; align-items: center; gap: 0.3rem; }
.field.invalid .err { display: flex; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); }
.slot { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.slot:hover { border-color: var(--primary); }
.slot:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.slot input { position: absolute; opacity: 0; }
.slot strong { display: block; font-size: 0.95rem; }
.slot span { font-size: 0.82rem; color: var(--muted); }
.slot .free { color: var(--success); font-weight: 700; }

.pay-methods { display: flex; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 130px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); cursor: pointer; text-align: center; font-weight: 700; transition: border-color var(--t-fast), background var(--t-fast); }
.pay-method:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.pay-method input { position: absolute; opacity: 0; }

.mini-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; }
.mini-item__media { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--bg); display: grid; place-items: center; padding: 0.3rem; position: relative; flex: none; }
.mini-item__media img { mix-blend-mode: multiply; max-height: 100%; }
.mini-item__q { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.mini-item__name { font-size: 0.9rem; font-weight: 600; flex: 1; }
.mini-item__price { font-weight: 700; font-size: 0.92rem; }
.summary--checkout { background: var(--bg); border: 1px solid var(--line); }

.lock-note { display: flex; align-items: center; gap: 0.5rem; justify-content: center; color: var(--muted); font-size: 0.84rem; margin-top: var(--s-4); }
.lock-note svg { width: 0.95rem; height: 0.95rem; }

/* confirmation */
.confirm { text-align: center; max-width: 540px; margin: 0 auto; padding: var(--section) 0; }
.confirm__check { width: 88px; height: 88px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; margin: 0 auto var(--s-5); animation: pop 0.5s var(--ease-out); }
.confirm__check svg { width: 44px; height: 44px; }
@keyframes pop { 0%{transform:scale(0)} 60%{transform:scale(1.12)} 100%{transform:scale(1)} }
.confirm h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.confirm p { color: var(--muted); margin: var(--s-4) 0; font-size: 1.08rem; }
.confirm__order { display: inline-flex; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.6rem 1.2rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: var(--s-6); }

/* =================================================== Drawer / overlay */
.overlay { position: fixed; inset: 0; background: oklch(0.2 0.03 155 / 0.45); z-index: var(--z-backdrop);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); backdrop-filter: blur(2px); }
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 90vw); background: var(--bg);
  z-index: var(--z-drawer); transform: translateX(100%); transition: transform var(--t-slow) var(--ease-out-expo);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5); border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.2rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.drawer__foot { padding: var(--s-5); border-top: 1px solid var(--line); }

/* mobile nav links */
.mobile-nav a { display: block; padding: var(--s-4) 0; font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--primary); }

/* ----------------------------------------------------------- Toast */
.toast-zone { position: fixed; bottom: var(--s-6); left: 50%; transform: translateX(-50%); z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--s-2); align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.7rem; background: var(--ink); color: oklch(0.97 0.01 150);
  padding: 0.85rem 1.2rem; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.92rem;
  animation: toast-in 0.4s var(--ease-out-expo), toast-out 0.4s var(--ease-out) forwards 2.6s;
  pointer-events: auto;
}
.toast svg { width: 1.2rem; height: 1.2rem; color: oklch(0.82 0.13 150); }
.toast a { color: oklch(0.85 0.12 150); font-weight: 700; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }

/* ========================================================== Responsive */
@media (max-width: 1080px) {
  .features, .goals { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .bundles, .reviews, .steps { grid-template-columns: 1fr; }
  .bundles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__photo { aspect-ratio: 16 / 12; }
  .hero__float--macro { left: 4%; }
  .hero__float--rating { right: 4%; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 240px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary--mobile-bottom { order: 2; }
  /* shop: filters become a drawer */
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--bg);
    z-index: var(--z-drawer); padding: var(--s-5); overflow-y: auto; transform: translateX(-100%);
    transition: transform var(--t-slow) var(--ease-out-expo); box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .pdp__perks { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* trim header to essentials so it never overflows narrow screens */
  .header-actions [aria-label="Search"],
  .header-actions [aria-label="Account"] { display: none; }
  .header-actions { gap: var(--s-1); }
  .brand { font-size: 1.1rem; }
  .goals, .features { grid-template-columns: 1fr; }
  .bundles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field.col-2 { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: var(--s-3); }
  .product-card__body { padding: 0.8rem 0.85rem 0.95rem; }
  .product-card__name { font-size: 0.95rem; }
  .hero__cta .btn { flex: 1; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__media { width: 72px; height: 72px; }
  .cart-item__end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
}

/* PDP macro stats */
.macro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.macro-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-3); text-align: center; }
.macro-stat b { font-family: var(--font-mono); font-size: 1.35rem; display: block; line-height: 1.1; }
.macro-stat b.hi { color: var(--accent-deep); }
.macro-stat span { font-size: 0.76rem; color: var(--muted); }
@media (max-width: 560px) { .macro-stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .product-card:hover, .goal-card:hover, .btn:hover { transform: none; }
}
