:root {
  --bg: #f7f8f6; --surface: #ffffff; --surface-2: #f1f3ef; --text: #15201a; --muted: #5f6b64; --faint: #8a948e;
  --line: #e3e7e2; --brand: #0f3d2a; --brand-2: #17603f; --accent: #1f8a55; --accent-soft: #e5f4ec;
  --sale: #c2410c; --sale-soft: #fff1e6; --img-bg: #ffffff;
  --shadow: 0 1px 2px rgba(16, 32, 24, .06), 0 4px 16px rgba(16, 32, 24, .06);
  --shadow-hover: 0 2px 4px rgba(16, 32, 24, .08), 0 12px 28px rgba(16, 32, 24, .12);
  --radius: 14px; --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1411; --surface: #161e1a; --surface-2: #1c2621; --text: #e9eeeb; --muted: #a2ada7; --faint: #78847d;
    --line: #26322c; --accent: #4cc489; --accent-soft: #183326; --sale: #fb923c; --sale-soft: #3a2416; --img-bg: #f4f5f3;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 8px 24px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--brand) 96%, transparent);
  backdrop-filter: saturate(140%) blur(8px); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 17px; }
.logo svg { flex: none; }
.nav nav { margin-left: auto; display: flex; gap: 4px; }
.nav nav a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; padding: 8px 12px; border-radius: 8px; }
.nav nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.logo, .nav nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav nav a:not(.primary) { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .logo { font-size: 15px; }
  .nav nav a.primary { padding: 7px 12px; font-size: 13px; }
}
.nav nav a.primary { background: #7ee2a8; color: var(--brand); opacity: 1; font-weight: 600; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #1f7a4f 0%, transparent 60%), linear-gradient(180deg, var(--brand) 0%, #0b2e20 100%);
  color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; max-width: 760px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #7ee2a8; }
.hero p { margin: 0 0 28px; font-size: 17px; color: rgba(255,255,255,.78); max-width: 620px; }
.search { display: flex; background: #fff; border-radius: 14px; padding: 6px; max-width: 640px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.search svg { flex: none; margin: 0 4px 0 12px; align-self: center; color: #6b766f; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 8px; font-size: 16px; color: #15201a; background: transparent; }
.search button { border: 0; background: var(--accent); color: #fff; font-weight: 600; padding: 0 22px; border-radius: 10px; cursor: pointer; }
.search button:hover { background: #197a4a; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.75); }
.stats b { color: #fff; font-size: 20px; display: block; letter-spacing: -.02em; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 4px rgba(126,226,168,.2); flex: none; }

/* Sections */
section { padding: 48px 0 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.head p { margin: 4px 0 0; color: var(--muted); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer;
  text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 10px; }
.cat b { font-size: 15px; }
.cat span { font-size: 13px; color: var(--muted); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--img-bg); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.thumb .ph { color: #b9c2bc; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .01em; }
.body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.name { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-s { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.price strong { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price s { color: var(--faint); font-size: 14px; }
.ppg { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.store-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.store-line .dot { width: 6px; height: 6px; box-shadow: none; background: var(--accent); }
.store-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .body { padding: 10px; gap: 4px; }
  .grid .name { font-size: 14px; }
  .grid .price strong { font-size: 18px; }
  .grid .ppg { margin-left: 0; width: 100%; }
  .grid .chip-s:nth-child(n+2) { display: none; }
  .grid .store-line { font-size: 12px; }
  .grid .thumb img { padding: 6px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat .ic { margin-bottom: 6px; }
}

/* Deals carousel */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 64px) / 5); } }

/* Compare layout */
.layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .layout { grid-template-columns: 240px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; }
@media (min-width: 900px) { .filters { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; } }
.filters summary { list-style: none; cursor: pointer; font-weight: 600; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary .chev { transform: rotate(180deg); }
.fgroup { padding: 12px 0; border-top: 1px solid var(--line); }
.fgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 0 0 8px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.opt .n { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.pill[aria-pressed=true] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.toggle { display: flex; align-items: center; justify-content: space-between; font-size: 14px; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.clear { margin-top: 12px; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .q { flex: 1 1 240px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.toolbar .q svg { color: var(--faint); flex: none; }
.toolbar .q input { border: 0; outline: 0; background: transparent; padding: 10px 8px; width: 100%; }
.toolbar select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.count { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.more { display: block; margin: 28px auto 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 24px; font-weight: 600; cursor: pointer; }
.more:hover { border-color: var(--accent); color: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%;
  animation: sh 1.2s infinite; border-radius: var(--radius); height: 320px; }
@keyframes sh { to { background-position: -200% 0; } }

/* Pharmacies */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.store { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.store h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.store .addr { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin-top: 6px; }
.status .dot { box-shadow: none; width: 8px; height: 8px; background: var(--accent); }
.status.soon .dot { background: var(--faint); }
.status.stale .dot { background: var(--sale); }
.status.soon { color: var(--muted); }
.store .links { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; }
.promo { background: var(--sale-soft); color: var(--sale); border-radius: 8px; padding: 8px 10px; font-size: 13px; }

/* CTA + footer */
.cta { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.cta p { margin: 0; color: var(--muted); max-width: 560px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; }
.btn:hover { background: var(--brand-2); }
footer { margin-top: 56px; background: var(--brand); color: rgba(255,255,255,.7); padding: 40px 0; font-size: 13px; }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr 2fr; } }
footer .logo { color: #fff; margin-bottom: 8px; }
footer p { margin: 0 0 8px; }

/* Footer links */
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
footer .about { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.flinks h4 { color: #fff; font-size: 13px; margin: 0 0 8px; }
.flinks a { display: block; color: rgba(255,255,255,.7); text-decoration: none; padding: 3px 0; }
.flinks a:hover { color: #fff; }

/* Home: reports and guides */
.latest { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; margin-bottom: 16px; }
.latest:hover { box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.latest h3 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.latest p { margin: 0; color: var(--muted); }
.guides { display: flex; flex-wrap: wrap; gap: 8px; }
.guides a { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; text-decoration: none; font-size: 14px; font-weight: 500; }
.guides a:hover { border-color: var(--accent); color: var(--accent); }
.store h3 a { text-decoration: none; }
.store h3 a:hover { color: var(--accent); }

/* Inner pages */
.phero { background: radial-gradient(1000px 300px at 85% -10%, #1f7a4f 0%, transparent 60%), linear-gradient(180deg, var(--brand) 0%, #0b2e20 100%);
  color: #fff; padding: 32px 0 40px; }
.phero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; max-width: 820px; font-weight: 800; }
.phero p { margin: 0; font-size: 16px; color: rgba(255,255,255,.8); max-width: 700px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn.light { background: #7ee2a8; color: var(--brand); }
.btn.light:hover { background: #a6efc4; }
.btn.ghost { background: rgba(255,255,255,.1); }
.btn.ghost:hover { background: rgba(255,255,255,.18); }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.note { color: var(--muted); font-size: 14px; }
.tbl { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; white-space: nowrap; }
.t a { color: var(--accent); text-decoration: none; font-weight: 600; }
.t a:hover { text-decoration: underline; }
.t .sub { display: block; color: var(--faint); font-size: 12px; }
.down { color: var(--accent); font-weight: 600; }
.up { color: var(--sale); font-weight: 600; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.rlist { display: grid; gap: 12px; }

/* News */
.newslist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.newslist li { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.newslist li:last-child { border-bottom: 0; }
.newslist a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.newslist a:hover { color: var(--accent); }
.newslist span { font-size: 13px; color: var(--muted); }

/* Saved items */
.card { position: relative; }
.card .name { text-decoration: none; }
.card .name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.save { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); color: #6b766f; display: grid; place-items: center; cursor: pointer; padding: 0; }
.save svg { fill: none; }
.save:hover { color: var(--sale); }
.save[aria-pressed=true] { color: #e0457b; border-color: #f3b4c9; }
.save[aria-pressed=true] svg { fill: currentColor; }
.dropped { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; align-self: flex-start; }
.savedbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.savedbar .link { background: none; border: 0; cursor: pointer; padding: 0; }
.savedbar[hidden] { display: none; }
.city { color: var(--faint); font-weight: 500; }
.store h3 .city { font-size: 14px; }

/* More filters */
.opt .who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.opt .who small { font-size: 12px; color: var(--faint); }
.pill .pn { color: var(--faint); font-size: 11px; margin-left: 2px; }
.pill[aria-pressed=true] .pn { color: rgba(255,255,255,.75); }
.range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.range label { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.range .pre { white-space: nowrap; }
.range input, .fselect { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.range input:focus, .fselect:focus { border-color: var(--accent); outline: none; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cal { flex: none; width: 54px; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); padding: 6px 0; line-height: 1.1; }
.cal span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cal b { display: block; font-size: 22px; letter-spacing: -.02em; }
.what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.what a { font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.3; }
.what a:hover { color: var(--accent); }
.what .when { font-size: 14px; font-weight: 500; }
.what .where { font-size: 13px; color: var(--muted); }
.what p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.events.past .cal { background: var(--surface-2); color: var(--faint); }
#events[hidden] { display: none; }
