/* ============================================================
   SmartRx — design system
   ============================================================ */
:root {
  /* Design-workbench tokens (Nudge). Defaults mirror the SmartRx palette. */
  --site-bg: #f5f7f2;
  --site-fg: #0d211c;
  --site-accent: #0b5c4e;
  --site-on-accent: #f4fff9;
  --site-surface: #ffffff;
  --site-muted: #61756e;
  --site-border: #dde6dd;
  --site-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --site-radius: 22px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --bg: var(--site-bg);
  --bg-2: #eef2ea;
  --surface: var(--site-surface);
  --surface-2: #f2f5ef;
  --surface-3: #e9efe6;
  --ink: var(--site-fg);
  --ink-2: #2f453e;
  --muted: var(--site-muted);
  --line: var(--site-border);
  --line-strong: #c9d7cd;
  --brand: var(--site-accent);
  --brand-deep: #083f36;
  --brand-2: #149b74;
  --brand-soft: #e3f3ec;
  --accent: #d9f27c;
  --accent-ink: #1c2e10;
  --danger: #bd4531;
  --danger-soft: #fbe9e5;
  --warn: #a86800;
  --warn-soft: #fdf3df;
  --success: #17835f;
  --shadow-sm: 0 1px 2px rgba(13, 33, 28, 0.05), 0 10px 30px -18px rgba(13, 33, 28, 0.18);
  --shadow-md: 0 18px 40px -24px rgba(8, 63, 54, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(8, 63, 54, 0.45);
  --radius: var(--site-radius);
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: var(--site-font);
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg: #081411;
  --bg-2: #0a1a16;
  --surface: #0e211b;
  --surface-2: #132b24;
  --surface-3: #17352c;
  --ink: #e9f4ee;
  --ink-2: #c6d8d0;
  --muted: #97aca5;
  --line: #1d3a31;
  --line-strong: #2a4d42;
  --brand: #2ec398;
  --brand-deep: #0e5747;
  --brand-2: #45d6ac;
  --brand-soft: #123329;
  --accent: #cff17f;
  --accent-ink: #1c2e10;
  --danger: #f08a74;
  --danger-soft: #3a1d18;
  --warn: #f0b75e;
  --warn-soft: #352a14;
  --success: #4fd0a1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[lang="bn"] body { font-family: "Noto Sans Bengali", var(--font-body); }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] .brand-text { font-family: "Noto Sans Bengali", var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.container { width: min(1220px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(940px, 100% - 48px); }

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 500;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 0.94rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  background: var(--surface-2); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-brand { background: var(--brand); color: #f4fff9; box-shadow: 0 10px 24px -14px rgba(11, 92, 78, 0.8); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(0.96); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; padding-inline: 14px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.danger { color: var(--danger); }
.btn-ghost.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 8px 14px; font-size: 0.85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--muted);
  font-size: 0.9rem; font-weight: 500; text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.link-btn:hover { color: var(--brand); text-decoration-color: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 4px 0;
  color: var(--brand); font-weight: 600; font-size: 0.92rem;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--ink-2);
  transition: background 0.18s, border-color 0.18s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
[data-theme="dark"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: none; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--brand-deep);
  color: #d7eee4;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar-msg { margin: 0; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar .link-btn { color: #d7eee4; font-size: 0.78rem; }
.topbar .link-btn:hover { color: white; }
.topbar-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.25); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(8, 63, 54, 0.25); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 42px; height: 42px; display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(11, 92, 78, 0.25)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.small { width: 36px; height: 36px; }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: baseline; gap: 3px;
}
.brand-dot { color: var(--brand-2); }
.brand-tag {
  font-family: var(--font-body); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-left: 4px; align-self: center;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav-link {
  border: 0; background: none; padding: 9px 13px; border-radius: 999px;
  font-size: 0.885rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); font-weight: 600; }
[data-theme="dark"] .nav-link.is-active { background: var(--surface-2); }

.header-search {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 300px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 12px; height: 44px; transition: border-color 0.18s, box-shadow 0.18s;
}
.header-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 12%, transparent); }
.header-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 0.87rem;
}
.header-search input::placeholder { color: var(--muted); }
.header-search kbd {
  font-family: var(--font-body); font-size: 0.68rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface-2);
}

.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.mini-select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  height: 38px; padding: 0 26px 0 11px; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-2); cursor: pointer; transition: background 0.16s, border-color 0.16s;
}
.mini-select:hover { background: var(--surface-2); border-color: var(--line); }
.mini-select.wide { min-width: 170px; background: var(--surface); border-color: var(--line); height: 42px; }
.mini-select option { background: var(--surface); color: var(--ink); }

.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-left: 2px; border-radius: 50%;
  background: var(--brand); color: #f4fff9; border: 0;
  box-shadow: 0 10px 22px -12px rgba(11, 92, 78, 0.7);
  transition: transform 0.18s, background 0.18s;
}
.cart-btn:hover { transform: translateY(-1px); background: var(--brand-deep); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.68rem; font-weight: 700; border-radius: 999px;
  border: 2px solid var(--bg);
}
.cart-count.bump { animation: countBump 0.4s cubic-bezier(0.22, 1.4, 0.4, 1); }
@keyframes countBump { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- views / hero ---------- */
.view { animation: viewIn 0.4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#view-home {
  background:
    radial-gradient(60% 320px at 82% 0%, rgba(20, 155, 116, 0.10), transparent 70%),
    radial-gradient(40% 280px at 8% 12%, rgba(217, 242, 124, 0.16), transparent 70%);
}
[data-theme="dark"] #view-home {
  background:
    radial-gradient(60% 320px at 82% 0%, rgba(46, 195, 152, 0.09), transparent 70%),
    radial-gradient(40% 280px at 8% 12%, rgba(207, 241, 127, 0.05), transparent 70%);
}

.hero {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 48px;
  align-items: center; padding: 64px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent);
  padding: 7px 14px; border-radius: 999px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); position: relative; flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--brand-2); animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero h1 { margin: 22px 0 18px; max-width: 12ch; }
.grad {
  background: linear-gradient(96deg, var(--brand) 8%, var(--brand-2) 58%, #7fbf4f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 50ch; }

.hero-search {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px 8px 8px 16px; max-width: 540px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-2) 12%, transparent), var(--shadow-sm); }
.hero-search > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 0.98rem; padding: 8px 0; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn { padding: 11px 20px; }

.quick-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-label { font-size: 0.8rem; color: var(--muted); margin-right: 2px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 0.8rem; font-weight: 500; color: var(--ink-2);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 26px 0 0; margin: 0; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.trust-row svg { width: 17px; height: 17px; color: var(--brand); }

/* hero art */
.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; overflow: clip; }
.hero-orb {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(20, 155, 116, 0.32), rgba(20, 155, 116, 0.08) 60%, transparent 72%);
  filter: blur(6px);
}
[data-theme="dark"] .hero-orb { background: radial-gradient(circle at 35% 30%, rgba(46, 195, 152, 0.25), rgba(46, 195, 152, 0.05) 60%, transparent 72%); }

.rx-card {
  position: relative; z-index: 2; width: min(360px, 100%);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
  border-radius: 26px; padding: 26px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  transform: rotate(-2deg);
  animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
.rx-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background-image: radial-gradient(rgba(11, 92, 78, 0.10) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.5; mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.rx-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.rx-label { display: block; font-size: 0.62rem; letter-spacing: 0.18em; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.rx-card-top strong { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; }
.verified-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand-2) 25%, transparent);
  padding: 5px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
}
.verified-chip svg { width: 13px; height: 13px; }

.rx-line-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rx-line-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line); border-radius: 13px; }
.rx-pill { width: 22px; height: 10px; border-radius: 999px; background: var(--brand-2); flex: none; transform: rotate(-32deg); }
.rx-pill.alt { background: #e8a05b; }
.rx-pill.soft { background: #7d9dff; }
.rx-line-name { font-size: 0.83rem; font-weight: 600; }
.rx-line-dose { margin-left: auto; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.rx-progress { margin-top: 20px; }
.rx-progress-head { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-bottom: 7px; }
.rx-progress-head strong { color: var(--ink); font-weight: 600; }
.rx-progress-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rx-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 10px 14px; box-shadow: var(--shadow-md); font-size: 0.76rem;
}
.float-chip strong { display: block; font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.float-chip small { color: var(--muted); font-size: 0.69rem; }
.chip-a { top: 44px; left: -14px; animation: chipFloat 6s ease-in-out infinite; }
.chip-b { bottom: 48px; right: -8px; animation: chipFloat 6s ease-in-out 1.4s infinite; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.chip-ic svg { width: 18px; height: 18px; }
.chip-ic.mint { background: var(--brand-soft); color: var(--brand); }
.chip-ic.lime { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
[data-theme="dark"] .chip-ic.lime { color: var(--accent); background: rgba(207, 241, 127, 0.12); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 34px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.compact { margin-bottom: 18px; }
.eyebrow-plain {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 9px;
}
.eyebrow-plain.light { color: var(--accent); }
.section-head h2 { max-width: 20ch; }
.muted-note { color: var(--muted); font-size: 0.83rem; }

/* category rail */
.category-rail {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; min-height: 118px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint, var(--brand-2)) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.cat-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--tint, var(--brand-2)) 14%, var(--surface));
  color: var(--tint, var(--brand-2)); flex: none;
}
.cat-ic svg { width: 21px; height: 21px; }
.cat-name { font-weight: 600; font-size: 0.86rem; line-height: 1.25; }
.cat-count { font-size: 0.72rem; color: var(--muted); margin-top: auto; }
.cat-card::after {
  content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  right: -34px; bottom: -44px; background: var(--tint, var(--brand-2)); opacity: 0.07;
}

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-open { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; color: inherit; }
.card-art {
  position: relative; height: 150px; display: grid; place-items: center;
  background:
    radial-gradient(90% 90% at 70% 15%, rgba(255, 255, 255, 0.5), transparent 60%),
    color-mix(in srgb, var(--tint, var(--brand-2)) 13%, var(--surface));
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .card-art {
  background:
    radial-gradient(90% 90% at 70% 15%, rgba(255, 255, 255, 0.06), transparent 60%),
    color-mix(in srgb, var(--tint, var(--brand-2)) 17%, var(--surface));
}
.card-art .art-svg { width: 92px; height: 92px; transition: transform 0.25s ease; }
.product-card:hover .art-svg { transform: scale(1.06) rotate(-2deg); }
.badge-rx {
  position: absolute; top: 12px; left: 12px;
  background: color-mix(in srgb, var(--ink) 86%, transparent); color: var(--bg);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 6px; text-transform: uppercase;
}
[data-theme="dark"] .badge-rx { background: var(--ink); color: #081411; }
.badge-low {
  position: absolute; top: 12px; right: 12px;
  background: color-mix(in srgb, var(--accent) 72%, var(--surface)); color: var(--accent-ink);
  font-size: 0.64rem; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.card-body { padding: 15px 16px 10px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.03em; padding: 3px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.tag.cat { color: var(--tint, var(--brand)); background: color-mix(in srgb, var(--tint, var(--brand)) 10%, var(--surface)); }
.product-card h3 { font-size: 0.99rem; letter-spacing: -0.01em; margin-bottom: 3px; }
.generic { font-size: 0.78rem; color: var(--muted); }
.maker { font-size: 0.7rem; color: var(--muted); opacity: 0.85; margin-top: 2px; }
.rating { display: flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 0.74rem; color: var(--muted); }
.rating svg { width: 13px; height: 13px; color: #e7a93b; }
.rating strong { color: var(--ink-2); font-weight: 600; }
.card-foot { margin-top: auto; padding: 10px 16px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; }
.price small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--brand); display: grid; place-items: center;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.add-btn svg { width: 18px; height: 18px; }
.add-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(90deg); }
.stock { font-size: 0.68rem; color: var(--success); font-weight: 600; }
.stock.low { color: var(--warn); }

/* ---------- smart banner ---------- */
.smart-banner {
  margin: 34px 0; border-radius: 30px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px;
  background:
    radial-gradient(80% 120% at 90% 10%, rgba(217, 242, 124, 0.16), transparent 60%),
    linear-gradient(120deg, #0a453b, #0b5c4e 55%, #0e6a58);
  color: #eaf6f0; padding: 48px 52px; position: relative;
}
.smart-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.25; mask-image: linear-gradient(90deg, transparent 20%, black);
  pointer-events: none;
}
.smart-banner-copy { position: relative; z-index: 1; }
.smart-banner h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-bottom: 12px; max-width: 14ch; }
.smart-banner p { color: rgba(234, 246, 240, 0.78); max-width: 46ch; font-size: 0.98rem; }
.smart-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.smart-note { font-size: 0.78rem; color: rgba(234, 246, 240, 0.6); }
.smart-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 230px; }
.dose-card {
  width: min(330px, 100%); background: rgba(255, 255, 255, 0.96); color: #0d211c;
  border-radius: 22px; padding: 21px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
}
.dose-time { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; border-bottom: 1px solid #e2eade; padding-bottom: 10px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.dose-time span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: #61756e; text-transform: uppercase; letter-spacing: 0.1em; }
.dose-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.dose-row strong { display: block; font-size: 0.83rem; font-weight: 600; }
.dose-row small { color: #61756e; font-size: 0.72rem; }
.dose-check {
  width: 23px; height: 23px; border-radius: 50%; border: 1.7px solid #c9d7cd;
  display: grid; place-items: center; flex: none; color: #fff;
}
.dose-check.on { background: #149b74; border-color: #149b74; }
.dose-check svg { width: 13px; height: 13px; }
.dose-toast {
  position: absolute; bottom: -2px; right: 6px; display: inline-flex; align-items: center; gap: 8px;
  background: #d9f27c; color: #1c2e10; border-radius: 12px; padding: 9px 14px;
  font-size: 0.75rem; font-weight: 500; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.5);
}
.dose-toast .pulse-dot { background: #1c2e10; }
.dose-toast .pulse-dot::after { border-color: #1c2e10; }
.dose-toast strong { font-weight: 700; }

/* ---------- promises / tips / stores ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s, box-shadow 0.2s;
}
.promise-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.promise-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; }
.promise-ic svg { width: 23px; height: 23px; }
.promise-ic.mint { background: var(--brand-soft); color: var(--brand); }
.promise-ic.lime { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); color: #596c1c; }
[data-theme="dark"] .promise-ic.lime { background: rgba(207, 241, 127, 0.12); color: var(--accent); }
.promise-ic.sky { background: #e3f0f8; color: #2a7fa8; }
[data-theme="dark"] .promise-ic.sky { background: rgba(79, 179, 232, 0.12); color: #7cc8ee; }
.promise-card h3 { margin-bottom: 8px; }
.promise-card p { color: var(--muted); font-size: 0.9rem; }

.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tip-card {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s; color: inherit;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tip-top { display: flex; align-items: center; gap: 9px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2); }
.tip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--brand-2)); }
.tip-card h3 { font-size: 1.06rem; line-height: 1.25; }
.tip-card p { color: var(--muted); font-size: 0.85rem; }
.tip-meta { margin-top: auto; padding-top: 8px; font-size: 0.72rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tip-meta svg { width: 14px; height: 14px; }

.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.store-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: var(--success); }
.store-status.closed { color: var(--muted); }
.store-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.store-card h3 { font-size: 1.05rem; }
.store-address { font-size: 0.82rem; color: var(--muted); }
.store-hours { font-size: 0.78rem; color: var(--ink-2); display: flex; align-items: center; gap: 7px; margin-top: auto; }
.store-hours svg { width: 15px; height: 15px; color: var(--muted); }
.store-actions { display: flex; gap: 8px; padding-top: 6px; }

/* ---------- page heads / shop ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding: 46px 0 30px;
}
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 10px; max-width: 20ch; }
.page-head p { color: var(--muted); max-width: 62ch; }
.shop-search-wrap {
  display: flex; align-items: center; gap: 9px; flex: none; width: min(320px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px;
}
.shop-search-wrap:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 12%, transparent); }
.shop-search-wrap svg { width: 18px; height: 18px; color: var(--muted); }
.shop-search-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 0.9rem; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.filter-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
@media (min-width: 900px) { .filter-scroll { flex-wrap: wrap; overflow: visible; } }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 8px 15px; font-size: 0.8rem; font-weight: 500; white-space: nowrap;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.filter-pill:hover { border-color: var(--brand-2); color: var(--brand); }
.filter-pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="dark"] .filter-pill.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.toolbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.check-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-2); cursor: pointer; }
.check-toggle input { width: 16px; height: 16px; accent-color: var(--brand); }
.results-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.results-bar p { font-size: 0.84rem; color: var(--muted); }
.results-bar strong { color: var(--ink); }
.shop-grid { padding-bottom: 60px; }

.empty-state { text-align: center; padding: 64px 24px 90px; }
.empty-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--surface-2); color: var(--muted); margin-bottom: 16px; }
.empty-ic svg { width: 26px; height: 26px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 42ch; margin: 0 auto 18px; font-size: 0.9rem; }

/* ---------- rx view ---------- */
.rx-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: start; }
.upload-zone {
  border: 1.5px dashed var(--line-strong); border-radius: 24px; background: var(--surface);
  padding: 46px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--brand-2); background: var(--brand-soft); }
.upload-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.upload-ic svg { width: 26px; height: 26px; }
.upload-zone h2 { font-size: 1.35rem; }
.upload-zone p { color: var(--muted); font-size: 0.86rem; }
.upload-zone .btn { margin-top: 10px; }
.upload-fineprint { font-size: 0.72rem !important; color: var(--muted); max-width: 40ch; }
.rx-demo-hint {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 18px 20px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 20%, transparent);
  border-radius: 16px;
}
.rx-demo-hint p { flex: 1; min-width: 220px; font-size: 0.82rem; color: var(--ink-2); }
.rx-demo-hint .link-arrow { font-size: 0.8rem; }
.hint-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); flex: none; }
.hint-ic svg { width: 17px; height: 17px; }

.rx-list-panel, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { font-size: 1.12rem; }
.count-badge { font-size: 0.72rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
.rx-list { display: grid; gap: 10px; }
.rx-item { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: var(--surface-2); }
.rx-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.rx-thumb-ph { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.rx-thumb-ph svg { width: 20px; height: 20px; }
.rx-item-info { flex: 1; min-width: 0; }
.rx-item-info strong { display: block; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-item-info small { font-size: 0.7rem; color: var(--muted); }
.rx-status { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warn); background: var(--warn-soft); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.rx-remove { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; }
.rx-remove:hover { color: var(--danger); background: var(--danger-soft); }
.rx-remove svg { width: 16px; height: 16px; }
.mini-empty { text-align: center; padding: 26px 12px; color: var(--muted); font-size: 0.83rem; }
.mini-empty svg { width: 28px; height: 28px; margin: 0 auto 8px; opacity: 0.6; }

.steps-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 60px; padding: 0; }
.steps-row li { display: flex; gap: 13px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 0.9rem;
}
.steps-row strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.steps-row p { font-size: 0.8rem; color: var(--muted); }

/* ---------- reminders ---------- */
.reminder-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
.schedule-panel { padding: 24px; }
.today-schedule { display: grid; gap: 8px; }
.schedule-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: opacity 0.2s, background 0.2s;
}
.schedule-item.taken { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand-2) 25%, var(--line)); }
.schedule-time { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; width: 52px; color: var(--ink); flex: none; }
.schedule-info { flex: 1; min-width: 0; }
.schedule-info strong { display: block; font-size: 0.84rem; }
.schedule-info small { color: var(--muted); font-size: 0.72rem; }
.take-btn {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; padding: 6px 12px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; flex: none;
}
.take-btn svg { width: 13px; height: 13px; }
.take-btn:hover { border-color: var(--brand-2); color: var(--brand); }
.take-btn.done { background: var(--brand); color: #fff; border-color: var(--brand); }
.streak-card {
  display: flex; gap: 12px; align-items: center; margin-top: 16px;
  background: linear-gradient(120deg, var(--brand-soft), color-mix(in srgb, var(--accent) 22%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand-2) 18%, var(--line));
  border-radius: 16px; padding: 15px 17px;
}
.streak-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--brand); flex: none; }
.streak-ic svg { width: 20px; height: 20px; }
.streak-card strong { font-size: 0.88rem; }
.streak-card p { font-size: 0.74rem; color: var(--muted); }

.form-panel { display: grid; gap: 16px; }
.form-panel h3 { font-size: 1.1rem; }
.field { display: grid; gap: 6px; }
.field label, .field-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 11px; padding: 10px 12px; font-size: 0.88rem; outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 12%, transparent); }
.field textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .wide { grid-column: 1 / -1; }
.select-wrap.full { width: 100%; }
.select-wrap.full select { width: 100%; }
.select-wrap.full::after { right: 15px; }
.select-wrap.full select {
  appearance: none; -webkit-appearance: none; width: 100%;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 11px;
  padding: 10px 32px 10px 12px; font-size: 0.88rem; outline: none;
}
.select-wrap.full select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 12%, transparent); }
.time-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.time-chip { position: relative; }
.time-chip input { position: absolute; opacity: 0; pointer-events: none; }
.time-chip span {
  display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.time-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="dark"] .time-chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.time-chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.custom-time-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.custom-time-row label { font-size: 0.76rem; color: var(--muted); }
.custom-time-row input[type="time"] { width: auto; padding: 7px 10px; }
.custom-times { display: flex; gap: 6px; flex-wrap: wrap; }
.custom-times .chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; font-size: 0.74rem; }
.custom-times .chip button { border: 0; background: none; padding: 0; color: var(--muted); display: grid; place-items: center; }
.custom-times .chip button svg { width: 12px; height: 12px; }
.fineprint { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.fineprint.light { color: rgba(234, 246, 240, 0.55); }

.list-panel { margin-top: 22px; }
.reminder-list { display: grid; gap: 10px; }
.reminder-item { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start; }
.reminder-color { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--brand-2); }
.reminder-main { flex: 1; min-width: 0; }
.reminder-main strong { display: block; font-size: 0.86rem; }
.reminder-main small { font-size: 0.73rem; color: var(--muted); }
.reminder-times { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.reminder-times span { font-size: 0.68rem; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.reminder-del { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; flex: none; }
.reminder-del:hover { color: var(--danger); background: var(--danger-soft); }
.reminder-del svg { width: 15px; height: 15px; }

/* ---------- health ---------- */
.symptom-panel { padding: 28px; }
.symptom-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.symptom-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px;
  padding: 9px 15px; font-size: 0.84rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.symptom-chip:hover { border-color: var(--tint, var(--brand-2)); }
.symptom-chip.is-active { background: var(--surface); border-color: var(--tint, var(--brand-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint, var(--brand-2)) 14%, transparent); color: var(--ink); }
.symptom-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--brand-2)); }
.symptom-detail { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; animation: viewIn 0.3s ease both; }
.symptom-detail h3 { font-size: 1.3rem; margin-bottom: 10px; }
.care-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.care-list li { display: flex; gap: 9px; font-size: 0.84rem; color: var(--ink-2); }
.care-list svg { width: 15px; height: 15px; color: var(--brand-2); flex: none; margin-top: 3px; }
.symptom-products { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.symptom-product {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 11px; background: var(--surface-2); text-align: left; width: 100%; color: inherit;
}
.symptom-product:hover { border-color: var(--line-strong); }
.symptom-product .art-svg { width: 34px; height: 34px; }
.symptom-product div { flex: 1; min-width: 0; }
.symptom-product strong { display: block; font-size: 0.79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.symptom-product small { font-size: 0.68rem; color: var(--muted); }
.symptom-product .mini-price { font-size: 0.8rem; font-weight: 700; }
.flag-box { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); border-radius: 15px; padding: 16px 18px; }
.flag-box h4 { display: flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--danger); margin-bottom: 9px; }
.flag-box h4 svg { width: 15px; height: 15px; }
.flag-box ul { margin: 0; padding-left: 17px; display: grid; gap: 5px; font-size: 0.8rem; color: var(--ink-2); }
.health-disclaimer { font-size: 0.7rem; color: var(--muted); margin-top: 12px; }

.safety-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 0.76rem; font-weight: 500; color: var(--ink-2); flex: none; }
.safety-chip svg { width: 17px; height: 17px; color: var(--brand); }

.consult-banner {
  margin: 20px 0 70px; border-radius: 30px; padding: 46px 52px;
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center;
  background:
    radial-gradient(70% 120% at 10% 0%, rgba(217, 242, 124, 0.18), transparent 55%),
    linear-gradient(120deg, #0a3d34, #0b5c4e);
  color: #eaf6f0;
}
.consult-banner > div > p { color: rgba(234, 246, 240, 0.75); max-width: 46ch; margin: 10px 0 18px; font-size: 0.94rem; }
.consult-banner h2 { color: #fff; font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.consult-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.consult-points li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(234, 246, 240, 0.85); }
.consult-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.consult-form { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 24px; display: grid; gap: 14px; }
.consult-form .btn { margin-top: 4px; }

/* ---------- account ---------- */
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-card strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; }
#view-account .panel { margin-bottom: 22px; }
#ordersList { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface-2); flex-wrap: wrap; }
.order-head strong { font-size: 0.86rem; }
.order-head small { display: block; color: var(--muted); font-size: 0.72rem; }
.order-status { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.order-status.delivered { background: var(--brand-soft); color: var(--success); }
.order-body { padding: 14px 16px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.order-thumbs { display: flex; }
.order-thumb { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface); display: grid; place-items: center; margin-left: -8px; font-size: 0.7rem; font-weight: 700; color: var(--brand); }
.order-thumb:first-child { margin-left: 0; }
.order-body p { flex: 1; font-size: 0.8rem; color: var(--muted); min-width: 180px; }
.order-actions { display: flex; gap: 8px; margin-left: auto; }
.timeline { display: flex; gap: 0; padding: 4px 16px 16px; flex-wrap: wrap; }
.tl-step { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--muted); }
.tl-step::after { content: ""; width: 22px; height: 1.5px; background: var(--line); margin: 0 7px; }
.tl-step:last-child::after { display: none; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tl-step.done { color: var(--success); }
.tl-step.done .tl-dot { background: var(--success); }
.tl-step.current .tl-dot { background: var(--warn); }
.profile-form { display: grid; gap: 16px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--brand-deep); color: rgba(234, 246, 240, 0.8); margin-top: 20px; }
[data-theme="dark"] .footer { background: #05100d; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 48px 0 34px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 0.84rem; color: rgba(234, 246, 240, 0.62); margin-top: 14px; max-width: 34ch; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mini-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: rgba(234, 246, 240, 0.75); }
.mini-badge svg { width: 13px; height: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(234, 246, 240, 0.45); margin-bottom: 3px; }
.footer-col button, .footer-col span { background: none; border: 0; padding: 0; font-size: 0.84rem; color: rgba(234, 246, 240, 0.72); text-align: left; }
.footer-col button:hover { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; display: flex; gap: 14px; align-items: flex-start; }
.disclaimer strong { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); flex: none; margin-top: 2px; }
.disclaimer p { font-size: 0.73rem; color: rgba(234, 246, 240, 0.5); max-width: 110ch; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 0.72rem; color: rgba(234, 246, 240, 0.45); flex-wrap: wrap; }
.footer-meta { display: flex; align-items: center; gap: 10px; }
.footer .link-btn { color: rgba(234, 246, 240, 0.55); font-size: 0.72rem; }
.footer .link-btn:hover { color: #fff; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* ---------- drawer / overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 20, 16, 0.55); backdrop-filter: blur(3px); z-index: 100; animation: fadeIn 0.25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(440px, 100%); background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.4);
  transform: translateX(105%); transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
  visibility: hidden;
}
.cart-drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; margin-bottom: 2px; }
.drawer-head .muted-note { font-size: 0.74rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: grid; align-content: start; gap: 12px; }
.cart-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; }
.cart-item-art { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tint, var(--brand-2)) 12%, var(--surface)); }
.cart-item-art .art-svg { width: 40px; height: 40px; }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-main strong { font-size: 0.85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-main small { font-size: 0.7rem; color: var(--muted); }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 27px; height: 27px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.qty-stepper button:hover { background: var(--surface-2); color: var(--brand); }
.qty-stepper button svg { width: 13px; height: 13px; }
.qty-stepper span { min-width: 24px; text-align: center; font-size: 0.78rem; font-weight: 600; }
.cart-line-price { font-size: 0.84rem; font-weight: 700; }
.cart-item-x { border: 0; background: none; color: var(--muted); padding: 2px; align-self: flex-start; }
.cart-item-x:hover { color: var(--danger); }
.cart-item-x svg { width: 14px; height: 14px; }
.rx-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; color: var(--warn); background: var(--warn-soft); padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }

.ship-progress { padding: 14px 22px 0; }
.ship-progress-copy { font-size: 0.74rem; color: var(--muted); margin-bottom: 7px; }
.ship-progress-copy strong { color: var(--brand); }
.ship-track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ship-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width 0.4s ease; }
.rx-warning { margin: 14px 22px 0; display: flex; gap: 9px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); border-radius: 12px; padding: 10px 12px; }
.rx-warning svg { width: 17px; height: 17px; color: var(--warn); flex: none; margin-top: 1px; }
.rx-warning p { font-size: 0.75rem; color: var(--ink-2); }
.smart-saving { margin: 4px 22px 0; background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand-2) 35%, transparent); border-radius: 13px; padding: 11px 13px; display: flex; gap: 9px; align-items: flex-start; }
.smart-saving > svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 1px; }
.smart-saving p { font-size: 0.74rem; color: var(--ink-2); }
.smart-saving button { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 0.74rem; text-decoration: underline; padding: 0; margin-top: 2px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; background: var(--surface); }
.totals { display: grid; gap: 7px; margin-bottom: 13px; }
.total-row { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--muted); }
.total-row strong { color: var(--ink); font-weight: 600; }
.total-row.grand { font-size: 1rem; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.total-row.grand strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.drawer-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.68rem; color: var(--muted); margin-top: 10px; }
.drawer-note svg { width: 13px; height: 13px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty-ic { width: 58px; height: 58px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.cart-empty-ic svg { width: 26px; height: 26px; }
.cart-empty h3 { margin-bottom: 6px; }
.cart-empty p { color: var(--muted); font-size: 0.83rem; margin-bottom: 16px; }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(5, 20, 16, 0.58);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease both; overflow-y: auto;
}
.modal {
  background: var(--surface); width: min(760px, 100%); border-radius: 24px;
  box-shadow: var(--shadow-lg); max-height: min(88vh, 900px); overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both; position: relative;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal.wide { width: min(880px, 100%); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink-2); backdrop-filter: blur(6px);
}
.modal-close:hover { background: var(--surface-2); }
.modal-close svg { width: 16px; height: 16px; }
body.no-scroll { overflow: hidden; }

.product-modal-body { display: grid; grid-template-columns: 340px 1fr; }
.product-modal-art {
  padding: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    color-mix(in srgb, var(--tint, var(--brand-2)) 14%, var(--surface));
  border-right: 1px solid var(--line);
}
[data-theme="dark"] .product-modal-art { background: color-mix(in srgb, var(--tint, var(--brand-2)) 16%, var(--surface)); }
.product-modal-art .art-svg { width: 150px; height: 150px; }
.art-note { font-size: 0.7rem; color: var(--muted); text-align: center; max-width: 24ch; }
.product-modal-main { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.pm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-title { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; }
.pm-generic { color: var(--muted); font-size: 0.88rem; margin-top: -10px; }
.pm-maker { color: var(--muted); font-size: 0.8rem; margin-top: -10px; }
#shopMore { display: flex; justify-content: center; margin: 30px 0 10px; }
#shopMore[hidden] { display: none; }
.pm-rating { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.pm-rating svg { width: 14px; height: 14px; color: #e7a93b; }
.pm-price-row { display: flex; align-items: baseline; gap: 10px; }
.pm-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.pm-pack { font-size: 0.76rem; color: var(--muted); }
.pm-desc { font-size: 0.88rem; color: var(--ink-2); }
.pm-section { border-top: 1px solid var(--line); padding-top: 13px; }
.pm-section h4 { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 5px; }
.pm-section p { font-size: 0.82rem; color: var(--ink-2); }
.pm-warn { color: var(--warn) !important; }
.pm-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.pm-actions .qty-stepper { height: 44px; border-radius: 999px; }
.pm-actions .qty-stepper button { width: 38px; height: 42px; }
.pm-actions .btn { flex: 1; }
.pm-stock { font-size: 0.72rem; color: var(--success); font-weight: 600; }
.pm-stock.low { color: var(--warn); }
.pm-swap { background: var(--brand-soft); border-radius: 12px; padding: 11px 13px; font-size: 0.78rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.pm-swap svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.pm-swap button { border: 0; background: none; color: var(--brand); font-weight: 700; text-decoration: underline; padding: 0; font-size: inherit; }

/* checkout */
.checkout-body { padding: 30px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
.checkout-main { display: grid; gap: 20px; align-content: start; }
.co-step h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.co-num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; flex: none; }
.co-fields { display: grid; gap: 11px; }
.co-fields .field-grid { gap: 11px; }
.delivery-options { display: grid; gap: 8px; }
.radio-card {
  display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-strong);
  border-radius: 13px; padding: 12px 14px; cursor: pointer; transition: border-color 0.16s, background 0.16s;
  position: relative;
}
.radio-card:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.radio-card input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.radio-card div { flex: 1; }
.radio-card strong { display: block; font-size: 0.84rem; }
.radio-card small { font-size: 0.72rem; color: var(--muted); }
.radio-price { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.pay-fields { display: grid; gap: 10px; margin-top: 10px; padding: 14px; background: var(--surface-2); border-radius: 13px; }
.pay-fields .field-grid { grid-template-columns: 1fr 1fr; }
.rx-select-box { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand-2) 25%, transparent); border-radius: 13px; padding: 12px 14px; font-size: 0.78rem; }
.rx-select-box strong { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; margin-bottom: 6px; }
.rx-select-box svg { width: 15px; height: 15px; color: var(--brand); }
.rx-select-box select { width: 100%; margin-top: 6px; border-radius: 9px; border: 1px solid var(--line-strong); padding: 8px 10px; background: var(--surface); font-size: 0.8rem; }
.rx-blocked { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: 13px; padding: 13px 15px; font-size: 0.8rem; color: var(--ink-2); }
.rx-blocked strong { display: block; color: var(--danger); margin-bottom: 3px; font-size: 0.82rem; }
.rx-blocked button { margin-top: 8px; }
.co-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; align-self: start; position: sticky; top: 0; }
.co-summary h3 { font-size: 0.95rem; margin-bottom: 12px; }
.co-lines { display: grid; gap: 10px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.co-line { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; }
.co-line-art { width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--tint) 13%, var(--surface)); display: grid; place-items: center; flex: none; }
.co-line-art .art-svg { width: 24px; height: 24px; }
.co-line div { flex: 1; min-width: 0; }
.co-line strong { display: block; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.co-line small { color: var(--muted); font-size: 0.68rem; }
.co-line > span { font-weight: 600; font-size: 0.78rem; }
.co-totals { display: grid; gap: 6px; border-top: 1px solid var(--line-strong); padding-top: 12px; }
.co-totals .total-row { font-size: 0.8rem; }
.checkout-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }
.checkout-foot .fineprint { max-width: 40ch; }
.checkout-foot .btn { min-width: 190px; }
.form-error { color: var(--danger); font-size: 0.74rem; margin-top: 2px; }

/* success */
.success-body { padding: 46px 36px 36px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.success-ring { width: 74px; height: 74px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); margin-bottom: 10px; animation: popIn 0.5s cubic-bezier(0.22, 1.2, 0.4, 1) both; }
.success-ring svg { width: 34px; height: 34px; }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-body h2 { font-size: 1.9rem; }
.success-body > p { color: var(--muted); max-width: 48ch; font-size: 0.9rem; }
.success-order { margin: 14px 0 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 20px; font-size: 0.8rem; }
.success-order strong { font-family: var(--font-display); letter-spacing: 0.02em; }
.success-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.success-note { font-size: 0.72rem; color: var(--muted); margin-top: 10px; max-width: 44ch; }

/* tip modal */
.tip-modal-body { padding: 36px; }
.tip-modal-body .tip-top { margin-bottom: 10px; }
.tip-modal-body h2 { font-size: 1.7rem; margin-bottom: 12px; max-width: 24ch; }
.tip-modal-body p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 12px; }
.tip-modal-body .fineprint { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }

/* confirm modal */
.confirm-body { padding: 34px; text-align: center; }
.confirm-body h2 { font-size: 1.5rem; margin-bottom: 8px; }
.confirm-body p { color: var(--muted); font-size: 0.88rem; max-width: 42ch; margin: 0 auto 22px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* toasts */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg);
  border-radius: 13px; padding: 12px 16px; font-size: 0.83rem; font-weight: 500;
  box-shadow: var(--shadow-md); animation: toastIn 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  pointer-events: auto;
}
[data-theme="dark"] .toast { background: var(--accent); color: var(--accent-ink); }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1380px) {
  .brand-tag { display: none; }
  .header-search { max-width: 280px; }
  .nav-link { padding: 9px 11px; }
}

@media (max-width: 1120px) {
  .header-search { display: none; }
  .main-nav { margin-left: 0; }
  .nav-link { padding: 9px 10px; }
  .hero { gap: 30px; }
  .category-rail { grid-template-columns: repeat(4, 1fr); }
  .chip-a { left: -4px; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .main-nav { display: none; }
  .header-inner { gap: 10px; }
  .header-tools { margin-left: auto; }
  .currency-wrap { display: none; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-link {
    flex: 1; border: 0; background: none; display: flex; flex-direction: column;
    align-items: center; gap: 3px; padding: 6px 4px; color: var(--muted);
    font-size: 0.64rem; font-weight: 500; border-radius: 10px;
  }
  .bottom-link svg { width: 21px; height: 21px; }
  .bottom-link.is-active { color: var(--brand); }
  .view { padding-bottom: 78px; }
  footer.footer { padding-bottom: 64px; }
  .hero { grid-template-columns: 1fr; padding: 42px 0 24px; }
  .hero h1 { max-width: 16ch; }
  .hero-art { min-height: 380px; margin-top: 10px; }
  .rx-card { width: min(340px, 100%); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-grid, .tips-grid, .store-grid { grid-template-columns: repeat(2, 1fr); }
  .smart-banner { grid-template-columns: 1fr; padding: 36px; }
  .smart-visual { min-height: 200px; }
  .category-rail { grid-template-columns: repeat(4, 1fr); }
  .rx-layout, .reminder-layout { grid-template-columns: 1fr; }
  .symptom-detail { grid-template-columns: 1fr; }
  .consult-banner { grid-template-columns: 1fr; padding: 36px; }
  .checkout-body { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .product-modal-body { grid-template-columns: 1fr; }
  .product-modal-art { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .product-modal-art .art-svg { width: 110px; height: 110px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .page-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .shop-search-wrap { width: 100%; }
  .steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container, .narrow { width: calc(100% - 32px); }
  .hero { padding-top: 30px; }
  .hero-sub { font-size: 0.98rem; }
  .hero-search { flex-wrap: wrap; padding: 8px; border-radius: 16px; }
  .hero-search > svg { margin-left: 8px; }
  .hero-search input { flex: 1 1 160px; padding: 8px 4px; }
  .hero-search .btn { width: 100%; }
  .hero-art { min-height: 340px; }
  .float-chip { font-size: 0.7rem; padding: 8px 11px; }
  .chip-a { top: 10px; left: -4px; }
  .chip-b { bottom: 14px; right: -2px; }
  .rx-card { padding: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-art { height: 126px; }
  .card-body { padding: 12px 13px 8px; }
  .card-foot { padding: 8px 13px 13px; }
  .product-card h3 { font-size: 0.9rem; }
  .category-rail { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .cat-card { padding: 13px; min-height: 104px; }
  .cat-name { font-size: 0.78rem; }
  .promise-grid, .tips-grid, .store-grid { grid-template-columns: 1fr; }
  .smart-banner { padding: 28px; border-radius: 22px; }
  .smart-banner h2 { max-width: none; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head.center { text-align: left; align-items: flex-start; }
  .header-tools .icon-btn { display: none; }
  .header-tools #accountBtn { display: inline-grid; }
  .brand-tag { display: none; }
  .brand-text { font-size: 1.25rem; }
  .brand-mark { width: 36px; height: 36px; }
  .mini-select { height: 34px; padding-right: 22px; }
  .header-inner { gap: 8px; }
  .shop-toolbar { top: 0; position: static; backdrop-filter: none; background: transparent; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .mini-select.wide { min-width: 150px; }
  .page-head { padding-top: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .disclaimer { flex-direction: column; gap: 6px; }
  .cart-drawer { width: 100%; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 22px; }
  .checkout-body { padding: 22px; }
  .product-modal-main { padding: 22px; }
  .checkout-foot { flex-direction: column; align-items: stretch; }
  .checkout-foot .btn { width: 100%; }
  .account-stats { gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .stat-card strong { font-size: 1.35rem; }
  .order-actions { margin-left: 0; }
  .symptom-panel, .panel, .schedule-panel { padding: 18px; }
  .consult-banner { padding: 28px; border-radius: 22px; margin-bottom: 50px; }
  .consult-form { padding: 18px; }
  .steps-row { margin-bottom: 40px; }
  .toasts { bottom: 84px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.9rem); }
}

@media (max-width: 430px) {
  .category-rail { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-wrap: wrap; }
  .header-tools .select-wrap { display: none; }
  .product-grid { gap: 10px; }
  .card-art { height: 114px; }
  .add-btn { width: 34px; height: 34px; }
  .field-grid { grid-template-columns: 1fr; }
  .co-fields .field-grid { grid-template-columns: 1fr 1fr; }
  .qty-stepper button { width: 25px; }
  .rx-line-dose { display: none; }
}

/* Nudge token consumers — root variables set by the Sites design workbench. */
.hero { padding: calc(64px * var(--site-space, 1)) 0 calc(40px * var(--site-space, 1)); }
h1 { font-size: calc(clamp(2.2rem, 4.6vw, 4rem) * var(--site-type, 1)); }
h2 { font-size: calc(clamp(1.6rem, 2.7vw, 2.4rem) * var(--site-type, 1)); }
.btn, .product-card { transition-duration: calc(180ms * var(--site-motion, 1)); }
.btn-brand { color: var(--site-on-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}