:root {
  --ink: #17332e;
  --ink-soft: #405a54;
  --muted: #6b7c77;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --surface-green: #edf5f0;
  --surface-blue: #eef5f8;
  --line: #d8e1dc;
  --teal: #146256;
  --teal-deep: #0f3f38;
  --green: #2e9a5b;
  --green-dark: #197443;
  --red: #b82f3b;
  --red-soft: #fff0f0;
  --amber: #a86c16;
  --amber-soft: #fff7e6;
  --blue: #276a87;
  --shadow-sm: 0 8px 24px rgba(22, 51, 46, 0.07);
  --shadow-lg: 0 24px 70px rgba(10, 40, 35, 0.2);
  --radius: 8px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body.bangla, [lang="bn"] { font-family: "Noto Sans Bengali", Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(39, 106, 135, 0.35); outline-offset: 3px; }
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.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: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: var(--radius); color: #fff; background: var(--teal-deep); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.catalog-header { position: sticky; top: 0; z-index: 30; min-height: var(--header-height); border-bottom: 1px solid rgba(216, 225, 220, 0.92); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(15px); }
.header-main { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: var(--radius); color: #eafff0; background: var(--teal); box-shadow: 0 10px 22px rgba(20, 98, 86, 0.2); }
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.catalog-nav { display: flex; align-items: center; justify-content: center; gap: 26px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.catalog-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.catalog-nav a:hover, .catalog-nav a.active { color: var(--teal); border-color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-action { min-width: 42px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; font-weight: 800; }
.icon-action svg { width: 19px; height: 19px; }
.icon-action span { font-size: 13px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 800; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button svg { width: 19px; height: 19px; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(46, 154, 91, 0.22); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--line); color: var(--teal); background: #fff; }
.button-secondary:hover { border-color: var(--teal); background: var(--surface-green); }

.catalog-hero { position: relative; min-height: 430px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #173d36; }
.catalog-hero-image { position: absolute; inset: 0; background-image: url("../images/medicure-medicine-shelf.jpg"); background-position: center 48%; background-size: cover; }
.catalog-hero-image::after { content: ""; position: absolute; inset: 0; background: rgba(9, 40, 35, 0.78); }
.catalog-hero-content { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 52px; }
.catalog-hero .eyebrow { color: #8fe0b0; }
.catalog-hero h1 { max-width: 840px; margin-bottom: 12px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(43px, 5.2vw, 72px); font-weight: 400; line-height: 0.98; letter-spacing: 0; }
.catalog-hero .hero-copy { max-width: 740px; margin-bottom: 26px; color: #dcebe6; font-size: 18px; }
.hero-search { width: min(850px, 100%); min-height: 66px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px 7px 20px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); }
.hero-search > svg { width: 23px; color: var(--teal); }
.hero-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.hero-search input::placeholder { color: #77847f; }
.hero-search button { min-height: 50px; display: inline-flex; align-items: center; gap: 9px; padding: 0 20px; border: 0; border-radius: 6px; color: #fff; background: var(--green); font-weight: 800; }
.hero-search button:hover { background: var(--green-dark); }
.hero-search button svg { width: 18px; }
.hero-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: #dcebe6; font-size: 13px; }
.hero-popular > span { font-weight: 700; }
.hero-popular button { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 5px; color: #fff; background: rgba(255, 255, 255, 0.09); }
.hero-popular button:hover { background: rgba(255, 255, 255, 0.18); }

.catalog-trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; }
.trust-grid > div { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid svg { width: 21px; color: var(--teal); }
.trust-grid span { display: grid; }
.trust-grid strong { color: var(--ink); font-size: 16px; }
.trust-grid small { color: var(--muted); font-size: 11px; }
.method-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 10px 18px; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 800; }
.method-button svg { width: 18px; color: currentColor; }
.safety-strip { border-bottom: 1px solid #efc4c7; background: var(--red-soft); }
.safety-strip .shell { min-height: 58px; display: flex; align-items: center; gap: 12px; }
.safety-strip svg { width: 22px; flex: 0 0 auto; color: var(--red); }
.safety-strip p { margin: 0; color: #71232b; font-size: 13px; }

.catalog-workspace { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 34px; padding-top: 42px; padding-bottom: 72px; }
.filter-panel { align-self: start; position: sticky; top: 96px; padding-right: 24px; border-right: 1px solid var(--line); }
.filter-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.filter-heading .eyebrow { margin-bottom: 3px; }
.filter-heading h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.close-filters { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-group { margin-bottom: 18px; }
.filter-group label, .quick-filter legend { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.filter-group select, .sort-control select { width: 100%; height: 44px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background-color: #fff; }
.filter-group select:hover, .sort-control select:hover { border-color: #9eb3aa; }
.quick-filter { display: grid; gap: 10px; margin: 24px 0 20px; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-filter legend { float: left; width: 100%; }
.quick-filter label { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; color: var(--ink-soft); font-size: 12px; }
.quick-filter input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal); }
.clear-filters { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 13px; font-weight: 800; }
.clear-filters svg { width: 16px; }
.filter-note { display: flex; gap: 9px; margin-top: 26px; padding: 14px; border-left: 3px solid var(--amber); color: #694d22; background: var(--amber-soft); }
.filter-note svg { width: 19px; flex: 0 0 auto; }
.filter-note p { margin: 0; font-size: 11px; }
.mobile-filter-button { display: none; }
.filter-backdrop { display: none; }

.results-panel { min-width: 0; }
.results-toolbar { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-count { margin-bottom: 2px; color: var(--ink); }
.results-count strong { font-size: 20px; }
.results-context { margin: 0; color: var(--muted); font-size: 12px; }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sort-control select { width: auto; min-width: 150px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters button { min-height: 31px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #bfd4c8; border-radius: 5px; color: var(--teal-deep); background: var(--surface-green); font-size: 11px; font-weight: 700; }
.active-filters svg { width: 13px; }
.medicine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.medicine-card { min-width: 0; min-height: 485px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(15, 63, 56, 0.03); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.medicine-card:hover { transform: translateY(-2px); border-color: #aac8ba; box-shadow: var(--shadow-sm); }
.card-topline { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.medicine-type { padding: 4px 7px; border-radius: 4px; color: var(--teal-deep); background: var(--surface-green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.medicine-type.combination { color: #6e4b13; background: var(--amber-soft); }
.medicine-type.range { color: var(--blue); background: var(--surface-blue); }
.record-count { color: var(--muted); font-size: 9px; font-weight: 700; }
.medicine-heading { min-height: 72px; }
.medicine-heading h2 { margin-bottom: 3px; font-family: "Instrument Serif", Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.02; letter-spacing: 0; overflow-wrap: anywhere; }
.medicine-heading h2 a:hover { color: var(--teal); }
.medicine-heading p { margin: 0; color: var(--teal); font-size: 13px; font-weight: 700; }
.aliases { min-height: 34px; margin: 7px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.aliases span { display: block; color: var(--ink-soft); font-weight: 800; }
.identity-row { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-bottom: 13px; }
.identity-row svg { width: 17px; color: var(--green-dark); }
.identity-row p { margin: 0; min-width: 0; }
.identity-row span, .medicine-facts dt, .potency-row > span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.identity-row strong { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.indication-block { min-height: 96px; margin-bottom: 15px; padding: 11px 12px; border-left: 3px solid var(--green); background: var(--surface-green); }
.indication-block.traditional { border-left-color: var(--amber); background: var(--amber-soft); }
.indication-block.none { border-left-color: var(--line); background: #f5f7f5; }
.indication-block span { display: block; margin-bottom: 5px; color: var(--green-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.indication-block.traditional span { color: #7d571b; }
.indication-block p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.medicine-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.medicine-facts div { min-width: 0; }
.medicine-facts dd { margin: 0; color: var(--ink-soft); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.medicine-facts small { color: var(--teal); font-weight: 800; }
.potency-row { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.potency-row > div { min-height: 43px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.potency-row b { padding: 3px 6px; border: 1px solid #cce0d5; border-radius: 4px; color: var(--teal); background: #f8fbf9; font-size: 9px; }
.potency-row b.more-potencies { border-color: transparent; color: var(--muted); background: transparent; }
.card-link { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px -20px -20px; padding: 0 20px; border-top: 1px solid var(--line); color: var(--teal); font-size: 11px; font-weight: 800; }
.card-link:hover { color: #fff; background: var(--teal); }
.card-link svg { width: 17px; }
.loading-state, .empty-state { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; }
.loading-state p { color: var(--muted); }
.loading-spinner { width: 42px; height: 42px; margin-bottom: 14px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 12px; color: var(--muted); }
.empty-state h2 { margin-bottom: 7px; font-size: 22px; }
.empty-state p { max-width: 510px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pagination button { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-soft); background: #fff; font-size: 11px; font-weight: 800; }
.pagination button:hover:not(:disabled), .pagination button.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.pagination button:disabled { opacity: 0.45; cursor: default; }
.pagination button svg { width: 16px; }
.page-numbers { display: flex; align-items: center; gap: 5px; }

.source-band { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-blue); }
.source-band-grid { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 38px; }
.source-band .eyebrow { margin-bottom: 5px; color: var(--blue); }
.source-band h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1.05; }
.source-band p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.catalog-footer { color: #dce9e5; background: #102f2a; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-top: 46px; padding-bottom: 38px; }
.footer-brand { margin-bottom: 14px; color: #fff; }
.footer-main p, .footer-main a, .footer-main button { color: #b9cbc5; font-size: 12px; }
.footer-main strong { display: block; margin-bottom: 10px; color: #fff; font-size: 12px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-main button { padding: 0; border: 0; background: transparent; }
.footer-main a:hover, .footer-main button:hover { color: #fff; }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom p { margin: 0; color: #91aaa2; font-size: 10px; }

.methodology-dialog { width: min(760px, calc(100% - 32px)); max-height: min(84vh, 820px); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-lg); }
.methodology-dialog::backdrop { background: rgba(7, 28, 25, 0.72); }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-header .eyebrow { margin-bottom: 4px; }
.dialog-header h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dialog-close svg { width: 19px; }
.dialog-body { padding: 8px 26px 28px; }
.dialog-body section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dialog-body h3 { margin-bottom: 6px; font-size: 15px; }
.dialog-body p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.dialog-sources { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.dialog-sources a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); font-size: 11px; font-weight: 800; }
.dialog-sources svg { width: 15px; }

/* Generated medicine profiles */
.profile-page { background: #fff; }
.breadcrumbs { min-height: 54px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs svg { width: 14px; }
.breadcrumbs span { color: var(--ink); font-weight: 700; }
.profile-hero { padding: 52px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.profile-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 60px; align-items: center; }
.profile-hero h1 { margin-bottom: 4px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(48px, 6vw, 78px); font-weight: 400; line-height: 0.98; letter-spacing: 0; overflow-wrap: anywhere; }
.bangla-name { margin-bottom: 16px; color: var(--teal); font-size: 22px; font-weight: 700; }
.profile-intro { max-width: 740px; color: var(--ink-soft); font-size: 16px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 5px 8px; border: 1px solid #c9dbd1; border-radius: 4px; color: var(--teal); background: #fff; font-size: 10px; font-weight: 800; }
.profile-quick-facts { border-left: 3px solid var(--teal); background: #fff; box-shadow: var(--shadow-sm); }
.profile-quick-facts p { display: grid; gap: 3px; margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.profile-quick-facts p:last-child { border-bottom: 0; }
.profile-quick-facts span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.profile-quick-facts strong { color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.safety-banner { border-bottom: 1px solid #efc4c7; background: var(--red-soft); }
.safety-banner .shell { min-height: 66px; display: flex; align-items: center; gap: 12px; }
.safety-banner svg { width: 24px; flex: 0 0 auto; color: var(--red); }
.safety-banner p { margin: 0; color: #71232b; font-size: 13px; }
.profile-layout { display: grid; grid-template-columns: 200px minmax(0, 800px); justify-content: center; gap: 62px; padding-top: 48px; padding-bottom: 80px; }
.profile-nav { align-self: start; position: sticky; top: 98px; display: grid; gap: 3px; padding-right: 24px; border-right: 1px solid var(--line); }
.profile-nav strong { margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.profile-nav a { padding: 7px 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.profile-nav a:hover { color: var(--teal); }
.profile-sections > section { padding: 4px 0 48px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.profile-sections > section:last-child { margin-bottom: 0; }
.section-kicker { margin-bottom: 6px; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.profile-sections h2 { margin-bottom: 12px; font-family: "Instrument Serif", Georgia, serif; font-size: 38px; font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.profile-sections > section > p:not(.section-kicker) { color: var(--ink-soft); font-size: 14px; }
.traditional-context { margin-top: 20px; padding: 18px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.traditional-context strong { color: #75501a; font-size: 11px; text-transform: uppercase; }
.traditional-context p { margin: 7px 0; color: var(--ink-soft); font-size: 13px; }
.traditional-context small { color: var(--muted); font-size: 10px; }
.ingredient-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.ingredient-list li { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 15px; background: #fff; }
.ingredient-list strong { font-size: 13px; }
.ingredient-list span { color: var(--teal); font-size: 11px; font-weight: 800; }
.ingredient-list small { color: var(--muted); font-size: 10px; }
.claim-row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.claim-row p { margin-bottom: 8px; color: var(--ink-soft); font-size: 13px; }
.claim-row a, .source-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 10px; font-weight: 800; }
.claim-row svg, .source-link svg { width: 14px; }
.red-note { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--red); color: #71232b; background: var(--red-soft); }
.red-note strong { font-size: 11px; text-transform: uppercase; }
.red-note p { margin: 5px 0 0; font-size: 12px; }
.brand-list { border-top: 1px solid var(--line); }
.brand-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr); gap: 18px 30px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand-row .maker { color: var(--teal); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.brand-row h3 { margin: 3px 0; font-size: 16px; }
.brand-row > div > p { margin: 0; color: var(--muted); font-size: 11px; }
.brand-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brand-facts p { display: grid; align-content: start; gap: 4px; margin: 0; color: var(--ink-soft); font-size: 10px; }
.brand-facts strong { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.label-direction { grid-column: 1 / -1; padding: 13px 15px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.label-direction strong { color: #775018; font-size: 10px; text-transform: uppercase; }
.label-direction p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.brand-row > .source-link { grid-column: 1 / -1; }
.empty-note { color: var(--muted); font-size: 12px; }
.section-intro { margin-bottom: 20px; }
.seller-list { border-top: 1px solid var(--line); }
.seller-row { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.seller-row span:first-child { display: grid; }
.seller-row strong { font-size: 13px; }
.seller-row small { color: var(--muted); font-size: 10px; }
.seller-row > svg { width: 16px; color: var(--blue); }
.verification { padding: 4px 7px; border-radius: 4px; color: var(--green-dark); background: var(--surface-green); font-size: 9px; font-weight: 800; }
.verification.stale { color: #7a5319; background: var(--amber-soft); }
.retailer-searches { margin-top: 18px; }
.retailer-searches summary { color: var(--teal); font-size: 11px; font-weight: 800; cursor: pointer; }
.retailer-searches[open] { display: flex; flex-wrap: wrap; gap: 8px; }
.retailer-searches[open] summary { width: 100%; margin-bottom: 8px; }
.retailer-searches a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); font-size: 10px; font-weight: 700; }
.retailer-searches svg { width: 14px; }
.source-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.source-list li { border-bottom: 1px solid var(--line); }
.source-list a { display: grid; grid-template-columns: 1fr minmax(160px, 0.7fr) 18px; align-items: center; gap: 18px; padding: 14px 0; }
.source-list strong { color: var(--blue); font-size: 11px; }
.source-list span { color: var(--muted); font-size: 10px; }
.source-list svg { width: 15px; color: var(--blue); }

@media (max-width: 1100px) {
  .catalog-nav { display: none; }
  .header-main { grid-template-columns: 1fr auto; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .method-button { grid-column: 1 / -1; justify-content: center; padding: 10px; border-top: 1px solid var(--line); }
  .medicine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-band-grid { grid-template-columns: 1fr 1.4fr; }
  .source-band-grid .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 720px); }
  .header-whatsapp span { display: none; }
  .header-whatsapp { width: 44px; min-height: 44px; padding: 0; }
  .catalog-hero { min-height: 450px; }
  .catalog-hero-content { padding-top: 44px; padding-bottom: 44px; }
  .catalog-hero h1 { font-size: 50px; }
  .catalog-hero .hero-copy { font-size: 15px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); padding-top: 10px; }
  .trust-grid > div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-child(2n) { border-right: 0; }
  .catalog-workspace { display: block; padding-top: 24px; }
  .mobile-filter-button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--teal); background: #fff; font-weight: 800; }
  .mobile-filter-button svg { width: 18px; }
  .active-filter-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 10px; }
  .filter-panel { width: min(330px, 88vw); height: 100dvh; position: fixed; z-index: 60; top: 0; left: 0; overflow: auto; padding: 24px; border: 0; background: #fff; transform: translateX(-105%); transition: transform 180ms ease; }
  .filters-open { overflow: hidden; }
  .filters-open .filter-panel { transform: translateX(0); }
  .filters-open .filter-backdrop { position: fixed; z-index: 55; inset: 0; display: block; background: rgba(8, 31, 27, 0.68); }
  .close-filters { display: grid; place-items: center; }
  .results-toolbar { align-items: flex-end; }
  .profile-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .profile-layout { grid-template-columns: 1fr; gap: 26px; }
  .profile-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px 15px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-nav strong { width: 100%; }
}

@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .shell { width: min(100% - 24px, 520px); }
  .header-main { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand > span:last-child { font-size: 14px; }
  .brand small { font-size: 8px; }
  .language-toggle { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  .language-toggle span { display: none; }
  .header-whatsapp { width: 40px; min-height: 40px; }
  .catalog-hero { min-height: 460px; align-items: flex-start; }
  .catalog-hero-image { background-position: 58% center; }
  .catalog-hero-content { padding-top: 42px; }
  .catalog-hero h1 { max-width: 360px; font-size: 45px; }
  .catalog-hero .hero-copy { max-width: 390px; margin-bottom: 20px; font-size: 14px; }
  .hero-search { min-height: 58px; grid-template-columns: 22px 1fr 48px; padding-left: 14px; }
  .hero-search button { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .hero-search button span { display: none; }
  .hero-search input { font-size: 13px; }
  .hero-popular { gap: 6px; }
  .hero-popular button { font-size: 11px; }
  .trust-grid { width: 100%; grid-template-columns: 1fr 1fr; }
  .trust-grid > div { min-height: 70px; padding: 10px 12px; }
  .trust-grid > div:first-child { padding-left: 12px; }
  .trust-grid strong { font-size: 13px; }
  .trust-grid small { font-size: 9px; }
  .trust-grid svg { width: 18px; }
  .safety-strip .shell { padding: 10px 0; align-items: flex-start; }
  .safety-strip p { font-size: 11px; }
  .results-toolbar { min-height: 112px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .sort-control { justify-content: space-between; }
  .sort-control select { flex: 1; }
  .medicine-grid { grid-template-columns: 1fr; }
  .medicine-card { min-height: 455px; }
  .pagination > button span { display: none; }
  .page-numbers button:nth-child(n+6) { display: none; }
  .source-band { padding: 34px 0; }
  .source-band-grid { grid-template-columns: 1fr; gap: 18px; }
  .source-band-grid .button { grid-column: auto; }
  .source-band h2 { font-size: 31px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 16px 0; }
  .dialog-header { padding: 20px 18px 15px; }
  .dialog-header h2 { font-size: 29px; }
  .dialog-body { padding: 6px 18px 22px; }
  .profile-page .catalog-header .button span { display: none; }
  .profile-page .catalog-header .button { width: 40px; min-width: 40px; min-height: 40px; padding: 0; font-size: 0; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; }
  .breadcrumbs span { overflow: hidden; text-overflow: ellipsis; }
  .profile-hero { padding: 38px 0; }
  .profile-hero h1 { font-size: 50px; }
  .profile-layout { padding-top: 30px; padding-bottom: 50px; }
  .profile-nav { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .profile-nav strong { display: none; }
  .profile-sections h2 { font-size: 33px; }
  .ingredient-list { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: 1fr; }
  .brand-facts, .label-direction, .brand-row > .source-link { grid-column: 1; }
  .seller-row { grid-template-columns: 1fr 18px; }
  .verification { grid-column: 1; justify-self: start; grid-row: 2; }
  .seller-row > svg { grid-column: 2; grid-row: 1; }
  .source-list a { grid-template-columns: 1fr 18px; }
  .source-list span { grid-column: 1; }
  .source-list svg { grid-column: 2; grid-row: 1; }
}

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