/* Al Hamd Pharmacy customer website. Colours match the app (lib/utils/app_theme.dart). */
:root {
  --green: #0b7a55;
  --green-d: #075e41;
  --green-hover: #096a4a;
  --blue: #2b5be0;
  --pink: #d6336c;
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #f4f7f5;
  --text: #111114;
  --text2: #3a3a44;
  --muted: #5b5b66;
  --line: #e5ece8;
  --accent: #075e41;
  --g-tint: #e6f5ee;
  --b-text: #2347c2;
  --b-tint: #eaf0fe;
  --p-text: #9b1f4c;
  --p-tint: #fdebf2;
  --a-text: #8a5300;
  --a-tint: #fff4e0;
  --on-green: #ffffff;
  --shadow: 0 1px 2px rgba(17, 40, 30, 0.05), 0 8px 24px rgba(17, 40, 30, 0.08);
  --radius: 20px;
  --gutter: 40px;
  --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --card: #18211e;
    --soft: #18211e;
    --text: #f2f5f3;
    --text2: #d5dcd8;
    --muted: #a9b4ae;
    --line: #2a3531;
    --accent: #4cd9a8;
    --g-tint: #12302a;
    --b-text: #9db8ff;
    --b-tint: #1c2747;
    --p-text: #ff9dbe;
    --p-tint: #3a1723;
    --a-text: #f2c879;
    --a-tint: #33270f;
    --green: #12946a;
    --green-hover: #16a877;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.4px; line-height: 1.2; margin: 0; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.bold { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.start { justify-content: flex-start; }
.wrapx { display: flex; flex-wrap: wrap; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ssr { padding: 24px var(--gutter); max-width: var(--max); margin: 0 auto; }

/* ------------------------------------------------------------------ layout */
.page { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 56px; }
.page.narrow { max-width: 760px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--green); }
.sechead { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 14px; gap: 12px; }
.link { color: var(--accent); font-weight: 700; font-size: 14px; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.side-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; white-space: nowrap; }
.brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.search { flex: 1; position: relative; display: flex; align-items: center; }
.search input { width: 100%; background: var(--soft); border: 1px solid transparent; border-radius: 14px; padding: 12px 40px 12px 44px; font-size: 14.5px; }
.search input:focus { outline: none; border-color: var(--green); background: var(--bg); }
.search > svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 12px; font: 600 12px inherit; border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.iconbtn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; position: relative; flex: none; background: var(--bg); color: var(--text); }
.iconbtn:hover { border-color: var(--green); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--g-tint); color: var(--accent); font-weight: 800; display: grid; place-items: center; overflow: hidden; flex: none; border: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.catnav { max-width: var(--max); margin: 0 auto; display: flex; gap: 24px; padding: 0 var(--gutter); font-size: 14px; font-weight: 600; color: var(--text2); overflow-x: auto; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { padding: 10px 0 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.on { color: var(--accent); border-color: var(--green); }
.catnav .offers { margin-left: auto; color: var(--pink); }
.desk-only { display: initial; }
.back-link { display: none; }
.mobile-only { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--line); background: var(--bg); color: var(--text); white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { border-color: var(--green); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.primary:hover { background: var(--green-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--p-text); }
.btn.danger.solid { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.white { background: #fff; color: #075e41; border-color: #fff; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.big { padding: 15px 22px; font-size: 15.5px; }

/* ------------------------------------------------------------------ chips, boxes */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip.g { background: var(--g-tint); color: var(--accent); }
.chip.b { background: var(--b-tint); color: var(--b-text); }
.chip.p { background: var(--p-tint); color: var(--p-text); }
.chip.a { background: var(--a-tint); color: var(--a-text); }
.chip.n { background: var(--soft); color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.panel.tight { padding: 14px 16px; }
.box { border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.box > svg { flex: none; }
.box.g { background: var(--g-tint); }
.box.g > svg { color: var(--green); }
.box.b { background: var(--b-tint); }
.box.b > svg { color: var(--blue); }
.box.p { background: var(--p-tint); color: var(--p-text); }
.box.a { background: var(--a-tint); color: var(--a-text); }
.box.n { background: var(--soft); }
.box.n > svg { color: var(--green); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty b { color: var(--text); font-size: 17px; }
.empty .ei { width: 64px; height: 64px; border-radius: 50%; background: var(--g-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 6px; }
.alert { background: var(--p-tint); color: var(--p-text); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.loading { display: grid; place-items: center; padding: 60px 0; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--g-tint); border-top-color: var(--green); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--soft), color-mix(in srgb, var(--soft) 60%, var(--line)), var(--soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); font-size: 15px; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--p-text); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { padding: 10px 20px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); border: 0; background: transparent; }
.tabs button[aria-pressed='true'] { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.tabs.full { display: flex; }
.tabs.full button { flex: 1; }
.opt { border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--bg); }
.opt + .opt { margin-top: 10px; }
.opt > svg { color: var(--green); flex: none; }
.opt[aria-checked='true'] { border-color: var(--green); background: color-mix(in srgb, var(--g-tint) 55%, var(--bg)); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); margin-left: auto; flex: none; }
.opt[aria-checked='true'] .radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px var(--bg); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--bg); padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text2); }
.pill[aria-pressed='true'] { background: var(--g-tint); border-color: transparent; color: var(--accent); }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.hero.solo { grid-template-columns: 1fr; }
.rxhero { position: relative; overflow: hidden; border-radius: 26px; padding: 38px 40px; color: #fff; background: linear-gradient(120deg, #1db67f 0%, #0b7a55 52%, #0b5c78 100%); min-height: 300px; }
.rxhero h1 { font-size: 40px; line-height: 1.08; margin: 14px 0 12px; letter-spacing: -1px; max-width: 480px; }
.rxhero p { font-size: 16.5px; line-height: 1.5; margin: 0 0 24px; opacity: 0.95; max-width: 430px; }
.rxhero .chip { background: rgba(255, 255, 255, 0.18); color: #fff; }
.rxhero .circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.rxhero .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.rxpaper { position: absolute; right: 52px; top: 58px; width: 150px; height: 184px; background: #fff; border-radius: 16px; transform: rotate(6deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); padding: 20px; animation: float 5s ease-in-out infinite; }
.rxpaper i { display: block; height: 9px; border-radius: 5px; background: #d9e1e5; margin: 12px 0; }
.rxpaper .rx { font-weight: 800; color: var(--blue); font-size: 26px; font-style: italic; }
.rxpaper .cam { position: absolute; right: -18px; bottom: -14px; width: 58px; height: 58px; border-radius: 50%; background: var(--pink); border: 5px solid #fff; display: grid; place-items: center; color: #fff; }
@keyframes float { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rxpaper { animation: none; } * { scroll-behavior: auto !important; } }
.offer { border-radius: 26px; padding: 28px; background: var(--b-tint); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.offer h3 { font-size: 24px; margin: 12px 0 8px; letter-spacing: -0.4px; color: var(--b-text); max-width: 75%; }
.offer p { color: var(--text2); max-width: 70%; }
.offer .art-abs { position: absolute; right: 12px; bottom: 6px; opacity: 0.95; }
.offer.banner { padding: 0; background: var(--soft); }
.offer.banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.offer.banner .ov { position: relative; margin-top: auto; padding: 22px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; }
.offer.banner .ov h3 { color: #fff; max-width: none; }
.offer.banner .ov p { color: #fff; opacity: 0.9; max-width: none; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.tcard { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; }
.tcard small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ticon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { border-radius: 20px; padding: 20px 12px; text-align: center; font-weight: 700; font-size: 14.5px; transition: transform 0.15s; display: block; }
.cat:hover { transform: translateY(-2px); }
.cat .ci { width: 54px; height: 54px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 12px; }
.tone-0 { background: var(--g-tint); } .tone-0 .ci { color: var(--green); }
.tone-1 { background: var(--p-tint); } .tone-1 .ci { color: var(--pink); }
.tone-2 { background: var(--b-tint); } .tone-2 .ci { color: var(--blue); }
.tone-3 { background: var(--soft); } .tone-3 .ci { color: var(--text2); }
.tone-4 { background: var(--a-tint); } .tone-4 .ci { color: #c47f00; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--soft); border-radius: 20px; padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step b { display: block; font-size: 16px; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ products */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: var(--card); display: flex; flex-direction: column; transition: box-shadow 0.15s, border-color 0.15s; }
.pcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.art { border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.art .tag { position: absolute; left: 10px; top: 10px; }
.art.t-g { background: var(--g-tint); } .art.t-b { background: var(--b-tint); } .art.t-p { background: var(--p-tint); } .art.t-a { background: var(--a-tint); }
.pname { font-weight: 700; font-size: 15px; margin: 12px 4px 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta { color: var(--muted); font-size: 12.5px; margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow { display: flex; justify-content: space-between; align-items: center; margin: auto 4px 2px; padding-top: 12px; gap: 8px; }
.price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.add { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; border: 0; flex: none; }
.add:hover { background: var(--green-hover); }
.add[disabled] { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 2px; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 10px; font-size: 18px; font-weight: 700; display: grid; place-items: center; color: var(--text); }
.stepper button:hover { background: var(--soft); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.big button { width: 44px; height: 44px; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.filters { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 140px; }
.filters h3 { font-size: 14px; margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.flink { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--text2); text-align: left; border: 0; background: none; width: 100%; }
.flink:hover { background: var(--soft); }
.flink.on { background: var(--g-tint); color: var(--accent); }
.mobile-filters { display: none; }

/* medicine page */
.med { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.med .art { aspect-ratio: 1; border-radius: 26px; }
.med h1 { font-size: 36px; letter-spacing: -0.8px; margin: 14px 0 6px; }
.bigprice { font-size: 32px; font-weight: 800; }
.instock { color: var(--accent); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.alt { display: flex; gap: 14px; align-items: center; }
.alt .art { width: 64px; height: 64px; aspect-ratio: auto; flex: none; border-radius: 12px; }

/* ------------------------------------------------------------------ cart & checkout */
.line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .art { width: 72px; height: 72px; aspect-ratio: auto; flex: none; border-radius: 14px; }
.sum { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.sum .row.total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 18px; font-weight: 800; }
.sticky { position: sticky; top: 92px; }
.qr-img { width: 240px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 16px; background: #fff; padding: 12px; border: 1px solid var(--line); object-fit: contain; }
.drop { border: 2px dashed color-mix(in srgb, var(--green) 35%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--g-tint) 35%, var(--bg)); padding: 30px; text-align: center; cursor: pointer; display: block; width: 100%; transition: background 0.15s; }
.drop:hover, .drop.over { background: var(--g-tint); }
.drop .dcircle { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumb { width: 96px; height: 120px; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; }

/* order tracking */
.timeline { margin: 4px 0 0 2px; }
.tl { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.tl::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.tl:last-child { padding-bottom: 0; }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--green); }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); flex: none; display: grid; place-items: center; color: #fff; z-index: 1; }
.tl.done .dot { background: var(--green); border-color: var(--green); }
.tl.now .dot { border-color: var(--green); box-shadow: 0 0 0 5px var(--g-tint); }
.tl.bad .dot { background: var(--pink); border-color: var(--pink); }
.tl b { display: block; font-size: 15px; }
.tl.todo b { color: var(--muted); font-weight: 600; }
.tl span { font-size: 13px; color: var(--muted); }
.olist { display: flex; flex-direction: column; gap: 12px; }
.ocard { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ocard:hover { border-color: var(--green); }

/* account */
.side { display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--text2); }
.side a:hover { background: var(--soft); }
.side a.on { background: var(--g-tint); color: var(--accent); }
.side a .chip { margin-left: auto; }
.who { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.who .avatar { width: 52px; height: 52px; font-size: 20px; }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.menu-list a > svg:last-child { margin-left: auto; color: var(--muted); }
.ntf { display: flex; gap: 14px; padding: 16px; border-radius: 16px; text-align: left; width: 100%; border: 0; background: transparent; align-items: flex-start; }
.ntf:hover { background: var(--soft); }
.ntf.unread { background: color-mix(in srgb, var(--g-tint) 55%, var(--bg)); }
.ntf .ni { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }

.shop-map { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--soft); }
.panel > .shop-map { border-radius: 0; }

/* ------------------------------------------------------------------ dialogs, toasts */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 16, 0.5); display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.dialog { background: var(--bg); width: 100%; max-width: 460px; border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); max-height: calc(100vh - 32px); overflow: auto; animation: pop 0.18s ease-out; position: relative; }
.dialog.center { text-align: center; }
.dialog .x { position: absolute; top: 14px; right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { background: #101a16; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: pop 0.2s; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast.bad { background: #8c1d44; }
.toast a { color: #7fe3be; font-weight: 800; }

/* ------------------------------------------------------------------ footer + mobile bars */
footer.site { background: #0c1a15; color: #c9d6d0; margin-top: 40px; }
footer.site .in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; font-size: 14px; line-height: 1.8; }
footer.site b { color: #fff; display: block; margin-bottom: 6px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid #1f3029; max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); font-size: 12.5px; color: #8fa49b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabbar { display: none; }
.fab-cart { display: none; }

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: 1fr; }
  .offer { min-height: 220px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .desk-only { display: none !important; }
  .mobile-only { display: initial !important; }
  .back-link { display: inline-flex; gap: 4px; align-items: center; margin-bottom: 6px; }
  .top-in { gap: 10px; padding: 12px var(--gutter); flex-wrap: wrap; }
  .top-in .search { order: 9; flex-basis: 100%; }
  .top-in .brand { flex: 1; }
  .search kbd { display: none; }
  .catnav { display: none; }
  .page { padding: 18px var(--gutter) 32px; }
  h1 { font-size: 25px; }
  .rxhero { padding: 26px 22px; min-height: 0; border-radius: 22px; }
  .rxhero h1 { font-size: 26px; max-width: 70%; }
  .rxhero p { font-size: 14.5px; max-width: 64%; }
  .rxpaper { width: 88px; height: 110px; right: 18px; top: 34px; padding: 11px; border-radius: 12px; }
  .rxpaper .rx { font-size: 17px; }
  .rxpaper i { height: 5px; margin: 7px 0; }
  .rxpaper .cam { width: 40px; height: 40px; border-width: 3px; right: -12px; bottom: -10px; }
  .rxhero .btn.outline { display: none; }
  .offer { padding: 22px; border-radius: 22px; min-height: 180px; }
  .offer h3 { font-size: 20px; }
  .offer .art-abs { top: 14px; bottom: auto; right: 8px; }
  .offer .art-abs svg { width: 84px; height: 84px; }
  .offer > div:last-child { position: relative; z-index: 1; }
  .trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { padding: 12px; font-size: 13px; }
  .tcard small { display: none; }
  .ticon { width: 36px; height: 36px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat { padding: 12px 4px; font-size: 12px; border-radius: 16px; }
  .cat .ci { width: 40px; height: 40px; margin-bottom: 6px; }
  .cat .ci svg { width: 20px; height: 20px; }
  .steps { grid-template-columns: 1fr; }
  .sechead { margin: 26px 0 12px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 8px; border-radius: 16px; }
  .pname { font-size: 13.5px; margin-top: 8px; }
  .price { font-size: 15px; }
  .add { width: 34px; height: 34px; border-radius: 10px; }
  .stepper button { width: 28px; height: 28px; }
  .stepper span { min-width: 20px; }
  .two, .side-layout, .med { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .two > *, .side-layout > *, .med > * { min-width: 0; }
  .filters { display: none; }
  .mobile-filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
  .mobile-filters .pill { white-space: nowrap; }
  .med h1 { font-size: 26px; }
  .bigprice { font-size: 26px; }
  .sticky { position: static; }
  .grid2 { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  footer.site .in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 28px var(--gutter); }
  footer.site .in > :first-child, footer.site .in > :last-child { grid-column: 1 / -1; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 6px; min-width: 60px; border-radius: 12px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on svg { background: var(--g-tint); border-radius: 10px; }
  .tabbar svg { padding: 2px 10px; width: 44px; height: 26px; box-sizing: content-box; }
  .fab-cart { display: flex; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 41; background: var(--green); color: #fff; border-radius: 16px; padding: 13px 18px; gap: 10px; align-items: center; font-weight: 800; box-shadow: 0 10px 28px rgba(11, 122, 85, 0.4); }
  .toasts { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .dialog { padding: 22px; }
}
@media (max-width: 380px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}
