/* medo.ge — mobile-first stylesheet */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --ink: #0b1324;
  --text: #1c2638;
  --muted: #5d6b82;
  --faint: #8a96a8;
  --border: #e4e9f1;
  --border-strong: #d3dbe6;
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-ink: #064e48;
  --brand-soft: #e3f5f2;
  --brand-softer: #f0faf8;
  --sale: #e11d48;
  --sale-soft: #ffe8ee;
  --ok: #15803d;
  --ok-soft: #e4f6ea;
  --warn: #b45309;
  --warn-soft: #fdf2df;
  --no: #c2262e;
  --no-soft: #fdebec;
  --unk: #5d6b82;
  --unk-soft: #eef2f7;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .05);
  --shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 6px 20px -6px rgba(11, 19, 36, .10);
  --shadow-lg: 0 2px 6px rgba(11, 19, 36, .05), 0 18px 40px -12px rgba(11, 19, 36, .18);
  --font: "Noto Sans Georgian", "BPG Arial", "Sylfaen", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
img { max-width: 100%; }
s { color: var(--faint); }
button, input, select { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { color: var(--muted); max-width: 70ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Logo: "med" + pill-shaped "o" ---------- */
.logo { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -.045em; color: var(--ink); font-family: "Noto Sans Georgian", system-ui, sans-serif; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo__pill { display: inline-block; width: .5em; height: .84em; margin: 0 .07em 0 .09em; border-radius: 999px; transform: translateY(.04em) rotate(-38deg); border: .085em solid var(--brand); background: linear-gradient(180deg, #fff 0 50%, var(--brand) 50% 100%); box-shadow: inset 0 .05em .08em rgba(255, 255, 255, .6); }
.logo__tld { font-weight: 600; color: var(--faint); letter-spacing: -.02em; font-size: .62em; margin-left: .06em; }
.logo--light { color: #fff; }
.logo--light .logo__tld { color: rgba(255, 255, 255, .6); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.main-nav { display: none; gap: 4px; justify-self: end; }
.main-nav a { color: var(--muted); font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.search--header { grid-column: 1 / -1; order: 3; }

/* ---------- Search ---------- */
.search { position: relative; display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; transition: border-color .15s, background .15s, box-shadow .15s; }
.search:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search__icon { flex: none; margin-left: 14px; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; color: var(--ink); border-radius: 999px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; margin: 4px; padding: 0 18px; min-height: 36px; cursor: pointer; font-weight: 600; transition: background .15s, transform .1s; }
.search button:hover { background: var(--brand-strong); }
.search button:active { transform: scale(.97); }
.search kbd { display: none; margin-right: 10px; font: 600 .72rem var(--font); color: var(--faint); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; background: var(--surface); }
.search--hero { max-width: 680px; margin: 0 auto; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-lg); }
.search--hero input { padding: 16px 12px; font-size: 1.05rem; }
.search--hero .search__icon { margin-left: 20px; }
.search--hero button { padding: 0 26px; min-height: 48px; margin: 6px; font-size: 1rem; }
.ac-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 40; max-height: 70vh; overflow-y: auto; text-align: left; }
.ac-list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); }
.ac-list li a:hover, .ac-list li[aria-selected="true"] a { background: var(--brand-softer); color: var(--ink); }
.ac-list .ac-sub { display: block; font-size: .78rem; color: var(--muted); }
.ac-list .ac-price { white-space: nowrap; font-weight: 700; color: var(--brand-strong); font-size: .92rem; }
.ac-list .ac-all a { justify-content: center; color: var(--brand-strong); font-weight: 600; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 8px; text-align: center; }
.hero__panel { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 36px 18px 30px;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(13, 148, 136, .16), transparent 60%),
    radial-gradient(50% 70% at 95% 10%, rgba(56, 189, 248, .14), transparent 60%),
    radial-gradient(60% 60% at 50% 120%, rgba(16, 185, 129, .12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(13, 148, 136, .18); }
.hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; max-width: 720px; margin: 0 auto 10px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-strong), #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chips__label { font-size: .82rem; color: var(--faint); align-self: center; }
.chips--wrap { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 500; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.chip:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-1px); }
.chip small { color: var(--faint); font-weight: 400; }
.chip--active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip--active:hover { color: #fff; transform: none; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 24px; font-size: .85rem; color: var(--muted); }
.trust strong { color: var(--ink); }
.trust__ph { display: flex; align-items: center; gap: 6px; }
.trust__ph .ph-badge { width: 28px; height: 28px; font-size: .7rem; border-radius: 8px; margin-left: -6px; border: 2px solid var(--surface); }
.trust__ph .ph-badge:first-child { margin-left: 0; }

/* ---------- Sections & cards ---------- */
.section { margin: 36px 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section__head h2 { margin: 0; font-size: 1.25rem; }
.section__head a { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drug-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; color: var(--text); min-height: 150px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.drug-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.drug-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-softer); color: var(--brand); }
.drug-card__name { overflow-wrap: anywhere; font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--ink); }
.drug-card__meta { font-size: .78rem; color: var(--muted); }
.drug-card__price { margin-top: auto; display: flex; align-items: baseline; gap: 5px; }
.drug-card__price .from { font-size: .75rem; color: var(--muted); }
.drug-card__price strong { color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.drug-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: var(--muted); }
.drug-card .badge--sale { position: absolute; top: 12px; right: 12px; }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.3; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tile__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-softer); color: var(--brand); }
.tile__body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.tile small { color: var(--muted); font-weight: 400; font-size: .78rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.steps .steps__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(13, 148, 136, .7); }
.steps strong { display: block; color: var(--ink); margin-bottom: 2px; }
.steps div span { color: var(--muted); font-size: .88rem; }

.ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ph-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; color: var(--ink); font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ph-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.ph-item small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ph-badge { --ph: var(--brand); flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ph); color: #fff; font-weight: 700; font-size: .85rem; overflow: hidden; letter-spacing: -.02em; }
.ph-badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ---------- Badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.55; margin: 0; white-space: nowrap; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--best { background: var(--brand-soft); color: var(--brand-ink); }
.badge--rx { background: var(--warn-soft); color: var(--warn); }
.badge--save { background: var(--ok-soft); color: var(--ok); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.stock--ok { color: var(--ok); }
.stock--warn { color: var(--warn); }
.stock--no { color: var(--no); }
.stock--unk { color: var(--unk); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; border: 1.5px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(13, 148, 136, .8); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--outline { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-softer); }
.btn--ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn--ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--faint); margin: 16px 0 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-strong); }

/* ---------- Drug page ---------- */
.drug-head { display: grid; gap: 14px; margin-bottom: 14px; }
.drug-head__main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.drug-head h1 { margin-bottom: 12px; font-size: 1.5rem; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: .84rem; color: var(--ink); font-weight: 500; }
.facts span { color: var(--muted); font-weight: 400; }
.drug-head .badge--rx { margin-top: 12px; }
.price-box { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.price-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .35), transparent 70%); pointer-events: none; }
.price-box__label { color: rgba(255, 255, 255, .7); font-size: .86rem; }
.price-box__range { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 8px; color: #fff; }
.price-box__range span { color: rgba(255, 255, 255, .5); font-weight: 500; font-size: 1.3rem; }
.price-box__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: rgba(255, 255, 255, .78); margin-bottom: 16px; }
.price-box .badge--save { background: rgba(74, 222, 128, .16); color: #86efac; }
.price-box .btn--primary { background: #2dd4bf; color: var(--ink); box-shadow: none; position: relative; z-index: 1; }
.price-box .btn--primary:hover { background: #5eead4; color: var(--ink); }
.price-box .muted { color: rgba(255, 255, 255, .7); }
.variants { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.variants__label { font-size: .85rem; color: var(--muted); width: 100%; font-weight: 500; }

.offers__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.offers__bar h2 { margin: 0; font-size: 1.25rem; }
.offers__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
select { padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); max-width: 100%; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 3px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.offer-list { display: grid; gap: 10px; }
.offer { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ph price" "unit stock" "time time" "cta cta"; gap: 8px 12px; align-items: center; transition: box-shadow .2s var(--ease); }
.offer:hover { box-shadow: var(--shadow); }
.offer--best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.offer--out { opacity: .7; }
.offer--head { display: none; }
.offer__ph { grid-area: ph; display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer__name { font-weight: 700; color: var(--ink); }
.offer__price { grid-area: price; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.offer__price strong { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.offer__price-old { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.offer__unit { grid-area: unit; font-size: .84rem; color: var(--muted); }
.offer__stock { grid-area: stock; text-align: right; }
.offer__time { grid-area: time; font-size: .78rem; color: var(--faint); }
.offer__cta { grid-area: cta; }
.offer__cta .btn { width: 100%; }
.offer__k { color: var(--faint); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-softer); color: var(--brand-ink); border: 1px solid var(--brand-soft); border-radius: var(--r); padding: 12px 14px; font-size: .86rem; margin: 14px 0; }
.notice svg { flex: none; margin-top: 2px; }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r); padding: 28px; text-align: center; }
.drug-cols { display: grid; gap: 14px; margin-top: 10px; }
.drug-cols .card h2 { font-size: 1.05rem; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 10px; }
.mini-table th, .mini-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.mini-table th { color: var(--muted); font-weight: 600; font-size: .78rem; }
details summary { cursor: pointer; color: var(--brand-strong); font-weight: 600; }

/* sticky mobile CTA */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(11, 19, 36, .2); transform: translateY(110%); transition: transform .25s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar__info { flex: 1; min-width: 0; line-height: 1.25; }
.buybar__info small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info strong { font-size: 1.15rem; color: var(--ink); }
.has-buybar .site-footer { padding-bottom: 90px; }

/* ---------- Listing ---------- */
.listing__layout { display: grid; gap: 14px; margin-top: 14px; }
.filters__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.filters__box summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.filters__box summary::-webkit-details-marker { display: none; }
.filters__box summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.filters__box[open] summary::after { transform: rotate(-135deg); }
.filters__box[open] summary { margin-bottom: 10px; }
.filters .count { background: var(--brand); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 8px; }
.filters fieldset { border: 0; border-top: 1px solid var(--border); padding: 12px 0 8px; margin: 0; }
.filters legend { font-weight: 700; font-size: .8rem; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.filters fieldset .check, .filters fieldset select { clear: both; }
.filters select { width: 100%; }
.filters__actions { display: flex; gap: 8px; padding-top: 12px; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result__link { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.result__link:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--text); }
.result__name { font-weight: 700; display: block; color: var(--ink); }
.result__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.result__price { text-align: right; white-space: nowrap; }
.result__price .from { font-size: .74rem; color: var(--muted); display: block; }
.result__price strong { color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.result__price small { color: var(--muted); display: block; font-size: .78rem; }
.result__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .78rem; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--border); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: .9rem; }
.pager a { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; }
.pager a:hover { border-color: var(--brand); }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.prose h2 { margin-top: 1.5em; }
.error-page { text-align: center; padding: 70px 16px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 0; letter-spacing: -.04em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--ink); color: rgba(255, 255, 255, .72); padding: 36px 0 28px; font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.notice--footer { display: block; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); margin: 0 0 28px; }
.notice--footer strong { color: #fff; }
.footer-cols { display: grid; gap: 22px; margin-bottom: 24px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 6px; font-size: .92rem; }
.footer-cols p { margin: 10px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ≥ 640px */
@media (min-width: 640px) {
  .main-nav { display: flex; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "ph price cta" "unit stock time"; }
  .offer__cta .btn { width: auto; }
  .offer__time { text-align: right; }
  .footer-cols { grid-template-columns: 2fr 1fr 1fr; }
  h1 { font-size: 1.8rem; }
  .hero { padding-top: 36px; }
  .hero__panel { padding: 56px 32px 44px; }
  .hero h1 { font-size: 2.5rem; }
  .search kbd { display: inline-block; }
  .buybar { display: none; }
  .has-buybar .site-footer { padding-bottom: 28px; }
}

/* ≥ 960px: desktop */
@media (min-width: 960px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
  .search--header { grid-column: auto; order: 0; max-width: 560px; width: 100%; justify-self: center; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .drug-head { grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; }
  .drug-head h1 { font-size: 1.85rem; }
  .drug-cols { grid-template-columns: 3fr 2fr; align-items: start; }
  .variants__label { width: auto; }
  .hero h1 { font-size: 3rem; }
  /* table-like rows */
  .offer-list { gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
  .offer { grid-template-columns: minmax(0, 2.3fr) 1.4fr 1fr 1.4fr 1fr auto; grid-template-areas: "ph price unit stock time cta"; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 14px 20px; }
  .offer:hover { box-shadow: none; background: var(--brand-softer); }
  .offer:last-child { border-bottom: 0; }
  .offer--head { display: grid; background: var(--surface-2); font-size: .76rem; color: var(--muted); font-weight: 700; padding: 10px 20px; }
  .offer--head:hover { background: var(--surface-2); }
  .offer--best { box-shadow: inset 4px 0 0 var(--brand); background: var(--brand-softer); }
  .offer__price { text-align: left; align-items: flex-start; }
  .offer__stock, .offer__time { text-align: left; }
  .offer__k { display: none; }
  .listing__layout { grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
  .filters { position: sticky; top: 84px; }
  .filters__box summary { pointer-events: none; }
  .filters__box summary::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v2 — photos, real logos, showcase hero, refined components
   ===================================================================== */
.offer__price strong, .price-box__range, .drug-card__price strong, .result__price strong, .showcase__price, .buybar__info strong { font-variant-numeric: tabular-nums; }
.site-header { transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11, 19, 36, .35); border-bottom-color: transparent; }
.section__head > div { min-width: 0; }
.section__head a { display: inline-flex; align-items: center; gap: 4px; }
.section__eyebrow { display: block; font-size: .74rem; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: 2px; }
.section__eyebrow--sale { color: var(--sale); }

/* Product image */
.pimg { position: relative; display: grid; place-items: center; background: #fff; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s var(--ease); }
.pimg--empty { color: #a7d9d2; background: radial-gradient(circle at 30% 25%, #f0faf8, #e3f1f4 70%); }

/* Pharmacy logo badges */
.ph-badge--logo { background: #fff; border: 1px solid var(--border); padding: 3px; }
.ph-badge--logo img { object-fit: contain; border-radius: 8px; }

/* Hero v2 */
.hero__panel { text-align: left; padding: 28px 20px; }
.hero__blob { position: absolute; border-radius: 999px; pointer-events: none; }
.hero__blob--1 { width: 140px; height: 54px; right: -30px; top: 30px; transform: rotate(-35deg); background: linear-gradient(90deg, #99f6e4 50%, #fff 50%); border: 3px solid #5eead4; opacity: .35; }
.hero__blob--2 { width: 90px; height: 34px; left: -20px; bottom: 26px; transform: rotate(25deg); background: linear-gradient(90deg, #bae6fd 50%, #fff 50%); border: 3px solid #7dd3fc; opacity: .35; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy { text-align: center; }
.hero h1 { margin-left: auto; margin-right: auto; }
.chips--hero { margin-top: 18px; }
.showcase { display: block; background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-lg); color: var(--text); max-width: 440px; width: 100%; margin: 0 auto; transition: transform .25s var(--ease); }
.showcase:hover { transform: translateY(-3px); color: var(--text); }
.showcase__head { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.showcase__img { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--border); flex: none; }
.showcase__label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--brand); }
.showcase__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
.showcase__name { display: block; color: var(--ink); line-height: 1.3; margin: 2px 0; }
.showcase__rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.showcase__rows li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.showcase__rows li.is-best { background: var(--brand-softer); box-shadow: inset 0 0 0 1px var(--brand-soft); }
.showcase__rows .ph-badge { width: 32px; height: 32px; border-radius: 9px; }
.showcase__ph { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; color: var(--ink); display: flex; flex-direction: column; line-height: 1.25; }
.showcase__ph .stock { font-size: .72rem; }
.showcase__price { font-weight: 800; color: var(--ink); }
.showcase__rows li.is-best .showcase__price { color: var(--brand-strong); }
.showcase__save { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, .5); } 50% { box-shadow: 0 0 0 5px rgba(13, 148, 136, 0); } }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin: 18px 0 0; }
.logo-strip__label { width: 100%; text-align: center; font-size: .78rem; font-weight: 600; color: var(--faint); }
.logo-strip__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .88rem; transition: transform .2s var(--ease), box-shadow .2s; }
.logo-strip__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.logo-strip__item .ph-badge { width: 30px; height: 30px; border-radius: 999px; }
.logo-strip__item .ph-badge img { border-radius: 999px; }

/* Benefits */
.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.benefits__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-softer); color: var(--brand); }
.benefits strong { display: block; color: var(--ink); font-size: .92rem; }
.benefits div span { font-size: .8rem; color: var(--muted); }

/* Drug card v2 */
.drug-card { padding: 0; min-height: 0; overflow: hidden; gap: 0; }
.drug-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-bottom: 1px solid var(--border); }
.drug-card__media .pimg { position: absolute; inset: 0; padding: 14px; }
.drug-card:hover .pimg img { transform: scale(1.05); }
.drug-card .badge--sale { position: absolute; top: 10px; left: 10px; right: auto; }
.drug-card .badge--rx { position: absolute; top: 10px; right: 10px; }
.drug-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.drug-card__price { margin-top: 6px; }
.drug-card__foot svg { vertical-align: -2px; }

/* Tile colours per category icon */
.tile--heart .tile__icon { background: #ffe4ea; color: #e11d48; }
.tile--bolt .tile__icon { background: #fef3c7; color: #d97706; }
.tile--shield .tile__icon { background: #e0e7ff; color: #4f46e5; }
.tile--stomach .tile__icon { background: #ffedd5; color: #ea580c; }
.tile--flower .tile__icon { background: #fce7f3; color: #db2777; }
.tile--leaf .tile__icon { background: #dcfce7; color: #16a34a; }
.tile--drop .tile__icon { background: #e0f2fe; color: #0284c7; }

/* Drug page v2 */
.drug-head__main { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.drug-head__img { width: 100%; aspect-ratio: 1 / 1; max-width: 220px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--border); padding: 12px; }
.drug-head__info { flex: 1 1 100%; min-width: 0; }
.img-credit { margin: 12px 0 0; font-size: .72rem; color: var(--faint); }
.offer .ph-badge { width: 44px; height: 44px; }

/* Search results v2 */
.result__link { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
.result__img { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--border); padding: 4px; }
.result__img.pimg--empty svg { width: 22px; height: 22px; }
.result__foot { grid-column: 1 / -1; }

/* Autocomplete thumbnails */
.ac-list li a { justify-content: flex-start; }
.ac-img { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.ac-img--empty { background: radial-gradient(circle at 30% 25%, #f0faf8, #e3f1f4 70%); }
.ac-main { flex: 1; min-width: 0; }
.ac-price { margin-left: auto; }

@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .logo-strip__label { width: auto; margin-right: 4px; }
  .drug-head__img { width: 180px; max-width: none; margin: 0; }
  .drug-head__main { flex-wrap: nowrap; }
  .drug-head__info { flex: 1 1 0; }
}
@media (min-width: 960px) {
  .hero__panel { padding: 56px 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .hero__copy { text-align: left; }
  .hero h1 { margin-left: 0; font-size: 2.75rem; }
  .hero__sub { margin-left: 0; }
  .search--hero { margin: 0; }
  .chips--hero { justify-content: flex-start; }
  .showcase { margin: 0 0 0 auto; transform: rotate(1.2deg); }
  .showcase:hover { transform: rotate(0) translateY(-3px); }
  .drug-head__img { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .showcase__label::before { animation: none; } }

.listing > h1:first-child { margin-top: 24px; }
