/* ==========================================================================
   Medicines by Class – page styles
   Desktop-first, matching the 1440px design; collapses to the 390px mobile
   pattern below 768px. Breakpoints per the design's spec sheet (1c).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); text-decoration: underline; }
*:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
button { font-family: inherit; }
.pe-scroll { scrollbar-width: none; }
.pe-scroll::-webkit-scrollbar { height: 0; width: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { background: var(--bg); padding-bottom: 56px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-top { height: 76px; padding: 0 40px; display: flex; align-items: center; gap: 28px; }
.hdr-logo { display: flex; align-items: center; flex: none; }
.hdr-logo:hover { text-decoration: none; }
.hdr-logo img { display: block; height: 30px; width: auto; }
.hdr-div { width: 1px; height: 40px; background: var(--line); }
.hdr-loc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }
.hdr-loc:hover { background: var(--teal-50); }
.hdr-loc-lbl { font-size: var(--fs-sm); color: var(--fg-2); }
.hdr-loc-val { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: var(--fw-bold); color: var(--fg-1); }
.hdr-spacer { flex: 1; }
.hdr-act { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-body-lg); color: var(--fg-1); }
.hdr-act:hover { background: var(--teal-50); color: var(--teal-700); text-decoration: none; }
.hdr-dot { position: relative; }
.hdr-dot::after { content: ""; position: absolute; top: -3px; right: -8px; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--coral-600); }
.hdr-nav { border-top: 1px solid var(--line-2); height: 54px; display: flex; align-items: center; justify-content: center; gap: 36px; }
.hdr-nav a { display: flex; align-items: center; gap: 6px; font-size: var(--fs-body-lg); font-weight: var(--fw-bold); color: var(--fg-1); padding: 6px 2px; }
.hdr-nav a:hover { color: var(--teal-700); text-decoration: none; }
.hdr-nav a[aria-current] { border-bottom: 2px solid var(--teal-600); }
.cart-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--teal-600); color: #fff; font-size: var(--fs-micro); font-weight: var(--fw-bold); display: none; align-items: center; justify-content: center; }
.cart-count.on { display: inline-flex; }

/* mobile header – hidden on desktop */
.mhdr { display: none; background: var(--surface); }
.mhdr-row { height: 56px; padding: 0 14px; display: flex; align-items: center; gap: 12px; }
.mhdr-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--fg-1); flex: none; }
.mhdr-logo img { display: block; height: 22px; width: auto; }
.mhdr-loc { width: 100%; height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 6px; background: var(--bg); border: 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.mhdr-loc span:first-child { font-size: var(--fs-sm); color: var(--fg-2); }
.mhdr-loc span:nth-child(2) { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--fg-1); }
.mhdr-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 10px; }
.mhdr-chips span { flex: none; display: flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--fg-1); background: var(--surface); }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.crumbs { padding: 16px 0 4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); flex-wrap: wrap; }
.crumbs a { color: var(--fg-2); }
.crumbs [aria-hidden] { color: var(--fg-3); }
.crumbs [aria-current] { color: var(--fg-1); font-weight: 700; }

/* ==========================================================================
   HERO – directory
   ========================================================================== */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 36px 28px; margin-top: 12px; }
.hero h1 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-1); margin: 0; }
.hero-sub { font-size: 16px; line-height: 26px; color: var(--fg-2); margin: 10px 0 0; max-width: 720px; text-wrap: pretty; }
.hero-search { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 720px; }
.field { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.field:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0,136,128,0.16); }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--fg-1); height: 100%; }
.field-clear { border: 0; background: var(--line-2); width: 28px; height: 28px; border-radius: var(--r-pill); cursor: pointer; color: var(--fg-2); font-size: 15px; line-height: 1; flex: none; }
.hero-count { font-size: 13px; color: var(--fg-3); width: 130px; flex: none; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; background: var(--info-bg); border-radius: var(--r-sm); padding: 12px 14px; max-width: 860px; }
.note p { font-size: 13px; line-height: 20px; color: var(--fg-2); margin: 0; }
.note svg { flex: none; margin-top: 1px; }

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.sec { margin-top: 44px; }
.sec > h2 { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--fg-1); margin: 0; }
.sec > p { font-size: 14px; color: var(--fg-2); margin: 6px 0 0; }

/* ==========================================================================
   POPULAR CLASS CARDS
   ========================================================================== */
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.pop-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.pop-card:hover { border-color: var(--teal-300); box-shadow: var(--sh-md); text-decoration: none; }
.tile { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: var(--teal-100); display: flex; align-items: center; justify-content: center; color: var(--teal-700); }
.pop-name { font-size: 16px; font-weight: 700; color: var(--fg-1); }
.pop-desc { font-size: 13px; line-height: 19px; color: var(--fg-2); }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pop-n { font-size: 13px; font-weight: 700; color: var(--fg-2); }
.pop-go { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--teal-600); }
.pop-more { display: none; }

/* ==========================================================================
   A–Z DIRECTORY
   ========================================================================== */
.dir-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 16px; overflow: hidden; }
.az { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: var(--teal-50); }
.az button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--fg-1); }
.az button:hover:not(:disabled) { border-color: var(--teal-300); color: var(--teal-700); }
.az button[aria-pressed="true"] { border-color: var(--teal-600); background: var(--teal-600); color: #fff; }
.az button:disabled { border-color: var(--line-2); background: var(--line-2); color: var(--fg-3); cursor: default; }

.groups { padding: 8px 20px 24px; }
.grp { padding-top: 20px; }
.grp-h { margin: 0 0 10px; }
.grp-btn { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--teal-700); text-align: left; cursor: default; }
.grp-rule { flex: 1; height: 1px; background: var(--line-2); }
.grp-count, .grp-chev { display: none; }
.grp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 24px; }
.grp-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--fg-1); }
.grp-list a:hover { background: var(--teal-50); color: var(--teal-700); text-decoration: none; }
.grp-list .n { font-size: 12px; font-weight: 700; color: var(--fg-3); }
.grp-list a:hover .n { color: var(--teal-600); }

.empty { padding: 56px 24px 64px; text-align: center; }
.empty-ico { width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty h3 { font-size: 18px; font-weight: 700; color: var(--fg-1); margin: 0; }
.empty p { font-size: 14px; color: var(--fg-2); margin: 8px 0 0; }
.btn-primary { height: 44px; padding: 0 22px; border-radius: var(--r-md); border: 0; background: var(--teal-600); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: var(--teal-700); }
.empty .btn-primary { margin-top: 18px; }

/* ==========================================================================
   SEO CONTENT CARDS
   ========================================================================== */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card h2 { font-size: 18px; font-weight: 700; color: var(--fg-1); margin: 0; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--fg-1); margin: 20px 0 8px; }
.card p { font-size: 14px; line-height: 22px; color: var(--fg-2); margin: 12px 0 0; text-wrap: pretty; }
.card p:first-of-type + p { margin-top: 12px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps .num { flex: none; width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--teal-100); color: var(--teal-700); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps .t { display: block; font-size: 14px; font-weight: 700; color: var(--fg-1); }
.steps .d { display: block; font-size: 14px; line-height: 21px; color: var(--fg-2); margin-top: 2px; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }
.checks span { font-size: 15px; line-height: 23px; color: var(--fg-2); }
.checks strong { color: var(--fg-1); font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tiles div { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.tiles b { display: block; font-size: 14px; font-weight: 700; color: var(--fg-1); }
.tiles span { font-size: 13px; color: var(--fg-2); }
.tiles .wide { grid-column: span 2; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left; }
.faq-q:hover { background: var(--teal-50); }
.faq-q span { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.faq-chev { flex: none; color: var(--teal-600); display: flex; transition: transform 180ms ease-out; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a { font-size: 14px; line-height: 22px; color: var(--fg-2); margin: 0; padding: 0 64px 22px 24px; }

/* ==========================================================================
   TRUST / DISCLAIMER
   ========================================================================== */
.trust { margin-top: 32px; background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-lg); padding: 24px 28px; }
.trust p { font-size: 14px; line-height: 22px; color: var(--fg-2); margin: 0; }
.trust-meta { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.trust-by { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--teal-700); }
.trust-date { font-size: 13px; color: var(--fg-2); }
.trust a { font-size: 13px; font-weight: 700; }

/* ==========================================================================
   CLASS PAGE – hero
   ========================================================================== */
.chero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; margin-top: 12px; display: flex; gap: 28px; align-items: flex-start; }
.chero-ico { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--teal-100); display: flex; align-items: center; justify-content: center; color: var(--teal-700); }
.chero-main { flex: 1; min-width: 0; }
.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); }
.pill-muted { font-size: 12px; font-weight: 700; color: var(--fg-2); background: var(--bg); border-radius: var(--r-pill); padding: 4px 10px; }
.chero h1 { font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-1); margin: 8px 0 0; }
.chero-sub { font-size: 16px; line-height: 26px; color: var(--fg-2); margin: 10px 0 0; max-width: 780px; text-wrap: pretty; }
.chero-meta { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.chero-meta .n { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.chero-meta .s { font-size: 14px; color: var(--fg-2); }
.chero-meta .vr { width: 1px; height: 14px; background: var(--line); }
.chero-meta .g { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--save-600); }
.chero-side { flex: none; width: 264px; background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chero-side div { display: flex; align-items: flex-start; gap: 10px; }
.chero-side svg { flex: none; margin-top: 1px; color: var(--teal-700); }
.chero-side b { font-size: 13px; line-height: 19px; color: var(--fg-1); font-weight: 700; }
.chero-side b span { display: block; font-weight: 400; color: var(--fg-2); }
.chero-pills { display: none; }


/* ---- layout ---- */
.class-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 24px; align-items: start; }

/* ---- sidebar ---- */
.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-top b { font-size: 16px; font-weight: 700; color: var(--fg-1); }
.side-clear { font-size: 13px; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; color: var(--teal-600); }
.side-clear:hover { text-decoration: underline; }
.side hr { height: 1px; background: var(--line-2); border: 0; margin: 16px 0; }
.side hr + .side-h { margin-top: 0; }
.side-h { font-size: 13px; font-weight: 700; color: var(--fg-1); }
.side-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.side-opts label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.side-opts input { width: 16px; height: 16px; accent-color: var(--teal-600); flex: none; }
.side-opts label:has(input:disabled) { color: var(--fg-3); cursor: default; }
.side-opts .n { color: var(--fg-3); }
.side-forms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-pill { font-size: 12px; font-weight: 700; color: var(--fg-1); background: var(--bg); border: 1px solid transparent; border-radius: var(--r-pill); padding: 7px 12px; cursor: pointer; }
.form-pill:hover:not(:disabled) { border-color: var(--teal-300); color: var(--teal-700); }
.form-pill[aria-pressed="true"] { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.form-pill:disabled { color: var(--fg-3); cursor: default; opacity: 0.6; }
.side-rel { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.side-rel b { font-size: 13px; font-weight: 700; color: var(--fg-1); }
.side-rel div { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.side-rel a { font-size: 13px; }

/* ---- toolbar ---- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.toolbar h2 { font-size: 18px; font-weight: 700; color: var(--fg-1); margin: 0; }
.toolbar .sub { font-size: 13px; color: var(--fg-2); }
.mtools { display: none; }
.sortwrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); flex: none; }
.sortwrap select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--fg-1); cursor: pointer; }

/* ---- medicine cards ---- */
.med-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.med { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 268px; }
.med:hover { border-color: var(--teal-300); box-shadow: var(--sh-md); }
.med-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge-rx { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); background: var(--bg); border-radius: var(--r-xs); padding: 4px 7px; }
.badge-off { font-size: 11px; font-weight: 700; color: var(--coral-700); background: var(--coral-100); border-radius: var(--r-xs); padding: 4px 7px; visibility: hidden; }
.badge-off.on { visibility: visible; }
.med-name { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--fg-1); }
.med-name:hover { color: var(--teal-700); text-decoration: none; }
.med-comp { font-size: 12px; line-height: 17px; color: var(--fg-2); }
.med-pack { font-size: 12px; color: var(--fg-3); }
.med-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.price-row { display: flex; align-items: baseline; gap: 8px; min-height: 25px; }
.price { font-size: 18px; font-weight: 700; color: var(--fg-1); }
.mrp { font-size: 13px; font-weight: 600; color: var(--fg-3); text-decoration: line-through; }
.save { font-size: 12px; font-weight: 700; color: var(--save-600); margin-top: 2px; min-height: 17px; }
.btn-add { width: 100%; height: 40px; margin-top: 12px; border: 1px solid var(--teal-600); border-radius: var(--r-md); background: var(--surface); color: var(--teal-600); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-add:hover:not(:disabled) { background: var(--teal-600); color: #fff; }
.btn-add:disabled { border-color: var(--line); color: var(--fg-3); background: var(--bg); cursor: default; }
.med.is-loading .price, .med.is-loading .mrp, .med.is-loading .save { opacity: 0.45; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-ghost { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border: 1px solid var(--teal-600); border-radius: var(--r-md); font-size: 15px; font-weight: 700; color: var(--teal-600); background: var(--surface); cursor: pointer; }
.btn-ghost:hover { background: var(--teal-50); text-decoration: none; }
.pager .note-txt { font-size: 13px; color: var(--fg-2); }

/* ---- related classes (mobile block) ---- */
.rel-list { display: flex; flex-direction: column; }
.rel-list a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 14px; color: var(--fg-1); border-top: 1px solid var(--line-2); }
.rel-list a:hover { color: var(--teal-700); text-decoration: none; }
.rel-list .n { font-size: 12px; color: var(--fg-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ft { background: var(--footer-bg); padding: 44px 40px 24px; }
.ft-grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr 1.15fr 0.8fr; gap: 32px; }
.ft-group + .ft-group { margin-top: 28px; }
.ft-title { display: flex; }
.ft-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--fg-1); text-align: left; cursor: default; }
.ft-chev { display: none; }
.ft-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ft-list a { font-size: 14px; color: var(--fg-2); }
.ft-list a:hover { color: var(--teal-700); }
.ft-social { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.ft-social a { color: var(--ink); display: flex; }
.ft-pay { max-width: 1360px; margin: 40px auto 0; }
.ft-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.ft-pay-brands { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ft-pay-brands span { font-size: 15px; font-weight: 700; }
.ft-copy { font-size: 15px; color: var(--fg-2); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.totop { position: fixed; right: 16px; bottom: 20px; z-index: 55; height: 44px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-md); font-size: 13px; font-weight: 700; color: var(--fg-1); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms; }
.totop.on { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   BOTTOM SHEET (mobile sort / filter)
   ========================================================================== */
.scrim { position: fixed; inset: 0; background: rgba(28,31,34,0.45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity 200ms ease-out, visibility 200ms; }
.scrim.on { opacity: 1; visibility: visible; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 82vh; overflow-y: auto; transform: translateY(100%); transition: transform 220ms ease-out; padding-bottom: env(safe-area-inset-bottom); }
.sheet.on { transform: none; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); }
.sheet-hd b { font-size: 16px; font-weight: 700; color: var(--fg-1); }
.sheet-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--fg-2); margin-right: -10px; }
.sheet-body { padding: 8px 16px 20px; }
.sheet-opt { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line-2); font-family: inherit; font-size: 15px; color: var(--fg-1); text-align: left; cursor: pointer; }
.sheet-opt[aria-checked="true"] { color: var(--teal-700); font-weight: 700; }
.sheet-opt[aria-checked="true"] .tick { display: flex; }
.sheet-opt .tick { display: none; color: var(--teal-600); }
/* the sheet reuses the sidebar markup, so it has to opt back in to display
   after the <=1023px rule hides the real sidebar */
.sheet .side { display: block; border: 0; padding: 0; border-radius: 0; }

/* ==========================================================================
   RESPONSIVE – per the design spec sheet (1c)
   ========================================================================== */

/* 1024–1279 : fluid container, 3-up cards, 3-col directory */
@media (max-width: 1279px) {
  .container { max-width: none; }
  .pop-grid { grid-template-columns: repeat(3, 1fr); }
  .grp-list { grid-template-columns: repeat(3, 1fr); }
  .hdr-top { padding: 0 24px; }
  .hdr-nav { gap: 24px; }
  .med-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768–1023 : 2-up cards, 2-col directory */
@media (max-width: 1023px) {
  .pop-grid { grid-template-columns: repeat(2, 1fr); }
  .grp-list { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .side { display: none; }
  .chero { flex-wrap: wrap; }
  .chero-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .chero-side div { flex: 1 1 200px; }
}

/* <768 : the mobile pattern */
@media (max-width: 767px) {
  .hdr { display: none; }
  .mhdr { display: block; }
  .page { padding-bottom: 24px; }
  .container { padding: 0; }

  .crumbs { padding: 12px 16px 0; }
  .crumbs ol { gap: 6px; font-size: 12px; }

  /* hero becomes a full-bleed surface band */
  .hero { border-radius: 0; border-left: 0; border-right: 0; margin-top: 12px; padding: 20px 16px 22px; }
  .hero h1 { font-size: 26px; line-height: 34px; }
  .hero-sub { font-size: 14px; line-height: 22px; margin-top: 8px; }
  .hero-search { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
  .field { height: 48px; padding: 0 14px; }
  .field input { font-size: 15px; }
  .hero-count { width: auto; }
  .note { margin-top: 14px; padding: 10px 12px; }
  .note p { font-size: 12px; line-height: 18px; }

  .sec { margin-top: 26px; padding: 0 16px; }
  .sec > h2 { font-size: 18px; line-height: 24px; }
  .sec > p { font-size: 13px; }

  /* popular: 2-up, first six only until expanded */
  .pop-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
  .pop-card { padding: 14px; gap: 8px; min-height: 148px; order: var(--mo, 99); }
  .pop-grid:not(.is-open) .m-extra { display: none; }
  .tile { width: 36px; height: 36px; }
  .pop-name { font-size: 14px; line-height: 19px; }
  .pop-desc { font-size: 12px; line-height: 17px; }
  .pop-foot { border-top: 0; padding-top: 0; }
  .pop-n { font-size: 12px; font-weight: 700; color: var(--teal-600); }
  .pop-go { display: none; }
  .pop-more { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 12px; border: 1px solid var(--teal-600); border-radius: var(--r-md); font-size: 14px; font-weight: 700; color: var(--teal-600); background: var(--surface); cursor: pointer; order: 98; grid-column: span 2; }
  .pop-grid.is-open .pop-more { display: none; }

  /* A–Z becomes a horizontally scrollable pill row outside the card */
  .dir-card { border-radius: 0; border-left: 0; border-right: 0; margin-top: 0; background: transparent; border-top: 0; }
  .az { background: transparent; border-bottom: 0; flex-wrap: nowrap; overflow-x: auto; padding: 14px 16px 4px; margin: 0 -16px; gap: 8px; }
  .az button { flex: none; min-width: 44px; height: 44px; font-size: 15px; }

  .groups { padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 14px; overflow: hidden; }
  .grp { padding-top: 0; border-bottom: 1px solid var(--line-2); }
  .grp:last-child { border-bottom: 0; }
  .grp-h { margin: 0; }
  .grp-btn { min-height: 52px; padding: 0 16px; justify-content: space-between; font-size: 16px; cursor: pointer; }
  .grp-rule { display: none; }
  .grp-count { display: inline; font-size: 12px; font-weight: 400; color: var(--fg-3); margin-left: 10px; }
  .grp-letter { flex: 1; }
  .grp-chev { display: flex; color: var(--teal-600); transition: transform 180ms ease-out; }
  .grp-btn[aria-expanded="true"] .grp-chev { transform: rotate(180deg); }
  .grp-list { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
  .grp-list a { min-height: 48px; padding: 12px 16px; border-top: 1px solid var(--line-2); border-radius: 0; }

  .empty { padding: 40px 20px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 14px; }

  .content-grid { gap: 12px; margin-top: 26px; padding: 0 16px; }
  .card { border-radius: var(--r-md); padding: 18px 16px; }
  .card h2 { font-size: 18px; }
  .card h3 { font-size: 15px; margin: 14px 0 6px; }
  .card p { font-size: 14px; line-height: 22px; margin-top: 10px; }
  .checks span, .steps .d { font-size: 14px; line-height: 21px; }
  .steps .t { font-size: 14px; }
  .tiles { grid-template-columns: 1fr; }
  .tiles .wide { grid-column: auto; }

  .faq-card { border-radius: var(--r-md); }
  .faq-q { min-height: 52px; padding: 14px 16px; gap: 12px; }
  .faq-q span { font-size: 14px; line-height: 20px; }
  .faq-a { font-size: 13px; line-height: 21px; padding: 0 16px 16px; }

  .trust { margin: 12px 16px 0; border-radius: var(--r-md); padding: 16px; }
  .trust p { font-size: 13px; line-height: 20px; }
  .trust-meta { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
  .trust-by, .trust-date { font-size: 12px; }

  /* ---- class page ---- */
  .chero { flex-direction: column; gap: 0; padding: 18px 16px; }
  .chero-ico { display: none; }
  .chero h1 { font-size: 22px; line-height: 28px; }
  .chero-sub { font-size: 14px; line-height: 22px; margin-top: 8px; }
  .chero-meta { gap: 14px; margin-top: 12px; }
  .chero-meta .n, .chero-meta .s { font-size: 13px; }
  .chero-meta .g, .chero-meta .vr-last { display: none; }
  .chero-side { display: none; }
  .chero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .chero-pills span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-pill); padding: 7px 12px; }

  .class-grid { margin-top: 0; }
  .toolbar { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding: 12px 16px; }
  .toolbar h2 { font-size: 13px; font-weight: 700; }
  .toolbar .sub { display: none; }
  .sortwrap { display: none; }
  .mtools { display: flex; gap: 8px; }
  .mtool { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--fg-1); cursor: pointer; }
  .mtool.has-filters { border-color: var(--teal-600); color: var(--teal-700); }

  .med-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 0; margin-top: 0; }
  .med { padding: 12px; gap: 6px; min-height: 214px; }
  .med-name { font-size: 13px; line-height: 18px; }
  .med-comp { font-size: 11px; line-height: 16px; }
  .med-pack { font-size: 11px; }
  .med-foot { padding-top: 8px; border-top: 0; }
  .price { font-size: 15px; }
  .mrp { font-size: 11px; }
  .save { display: none; }
  .badge-rx, .badge-off { font-size: 10px; padding: 3px 6px; }
  .btn-add { height: 44px; margin-top: 8px; border-radius: var(--r-sm); }
  .pager { padding: 16px; }
  .pager .btn-ghost { width: 100%; height: 48px; font-size: 14px; }
  .pager .note-txt { display: none; }

  /* ---- footer becomes an accordion ---- */
  .ft { padding: 20px 16px 24px; }
  .ft-grid { display: block; }
  .ft-col { display: contents; }
  .ft-group { border-bottom: 1px solid var(--footer-line); }
  .ft-group + .ft-group { margin-top: 0; }
  .ft-toggle { min-height: 48px; font-size: 14px; cursor: pointer; }
  .ft-chev { display: flex; color: var(--fg-1); transition: transform 180ms ease-out; }
  .ft-toggle[aria-expanded="true"] .ft-chev { transform: rotate(180deg); }
  .ft-list { margin: 0; padding: 0 0 14px; }
  .ft-list a { font-size: 13px; }
  .ft-social-title { font-size: 14px; margin-top: 20px; }
  .ft-social { gap: 14px; margin-top: 10px; }
  .ft-social svg { width: 20px; height: 20px; }
  .ft-pay { margin-top: 20px; }
  .ft-pay > div:first-child { font-size: 14px; }
  .ft-pay-row { margin-top: 10px; }
  .ft-pay-brands { gap: 10px 16px; }
  .ft-pay-brands span { font-size: 12px; }
  .ft-copy { font-size: 12px; margin-top: 8px; }
}

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

/* ==========================================================================
   ADDITIONS: T&C markers, qty stepper, best-match banner
   ========================================================================== */
.badge-wrap { display: flex; align-items: center; gap: 6px; }
.tnc { font-size: 9px; line-height: 1; font-weight: var(--fw-semi); color: var(--fg-3); text-decoration: underline; text-underline-offset: 2px; letter-spacing: 0.02em; flex: none; }
.tnc:hover { color: var(--fg-2); }
.tnc-price { align-self: center; margin-left: 2px; }

.qty { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; margin-top: 12px; border: 1px solid var(--teal-600); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.qty-b { width: 40px; height: 100%; border: 0; background: none; color: var(--teal-600); font-size: 18px; font-weight: var(--fw-bold); cursor: pointer; line-height: 1; }
.qty-b:hover { background: var(--teal-50); }
.qty-n { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--teal-700); }

.bestmatch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 20px; background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-md); }
.bestmatch:hover { border-color: var(--teal-600); text-decoration: none; }
.bestmatch-l { font-size: var(--fs-body); color: var(--fg-2); }
.bestmatch-l b { color: var(--fg-1); font-weight: var(--fw-semi); }
.bestmatch-r { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--teal-700); }
.bestmatch-r b { font-weight: var(--fw-bold); }
.bestmatch-r span { color: var(--fg-3); font-size: var(--fs-xs); }

@media (max-width: 767px) {
  .bestmatch { margin: 16px 16px 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .qty { height: 44px; margin-top: 8px; border-radius: var(--r-sm); }
  .tnc-price { display: none; }
}

/* server said the cart needs a session */
.btn-login { text-decoration: none; }
.btn-login:hover { background: var(--teal-600); color: #fff; text-decoration: none; }

/* items added while logged out, waiting to be pushed to the real cart */
.sync-note { display: block; position: absolute; top: 100%; right: 0; margin-top: 2px;
  white-space: nowrap; font-size: var(--fs-micro); font-weight: var(--fw-semi);
  color: var(--coral-700); }
.hdr-act[data-cart-link] { position: relative; }
.hdr-act[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* login hand-off banner (cart needs a session; login has no return-url) */
.cart-banner { position: sticky; top: 0; z-index: 70; display: flex; align-items: center;
  justify-content: center; gap: 14px; flex-wrap: wrap; padding: 11px 16px;
  font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.cart-banner.waiting { background: var(--warning-bg); color: #8a5a00; }
.cart-banner.done { background: var(--teal-50); color: var(--teal-700); border-bottom: 1px solid var(--teal-200); }
.cart-banner button, .cart-banner a { border: 1px solid currentColor; background: none;
  border-radius: var(--r-pill); padding: 5px 14px; font: inherit; color: inherit;
  cursor: pointer; text-decoration: none; }
.cart-banner button:hover, .cart-banner a:hover { background: rgba(255,255,255,.6); text-decoration: none; }

/* ==========================================================================
   DESIGN v2 – gradient heroes, category cards, compact popular rows
   ========================================================================== */
.eyebrow-sm { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 6px; }

/* soft teal -> blue gradient card, per the design */
.hero, .chero {
  background: linear-gradient(115deg, #E7F6F0 0%, #EEF5FA 55%, #E5EFFC 100%);
  border: 1px solid #DCEAF2;
}
.hero h1 { font-size: 38px; line-height: 46px; letter-spacing: -0.02em; }
.hero-sub { font-size: 15px; line-height: 24px; }

/* class cards in the A–Z grid */
.grp-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cls-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); height: 100%; }
.cls-card:hover { border-color: var(--teal-300); box-shadow: var(--sh-md); text-decoration: none; }
.cls-tile { flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; }
.cls-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cls-cat { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; }
.cls-name { font-size: 15px; font-weight: var(--fw-bold); color: var(--fg-1); }
.cls-desc { font-size: var(--fs-sm); line-height: 19px; color: var(--fg-2); }
.cls-n { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--teal-600); margin-top: 2px; }
.cls-go { flex: none; color: var(--fg-3); align-self: center; display: flex; }
.cls-card:hover .cls-go { color: var(--teal-600); }
.grp-list a:hover { background: none; }

/* popular = compact rows, 3 up */
.pop-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pop-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.pop-row:hover { border-color: var(--teal-300); box-shadow: var(--sh-md); text-decoration: none; }
.pop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pop-row .pop-name { font-size: 15px; font-weight: var(--fw-bold); color: var(--fg-1); }
.pop-row .pop-n { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--teal-600); }

/* class page: single-column content, per design v2 */
.content-grid { grid-template-columns: 1fr; max-width: 860px; }
.grid-note { font-size: var(--fs-xs); line-height: 17px; color: var(--fg-3); margin: 14px 0 0; }
.grid-note a { color: var(--fg-2); text-decoration: underline; }

@media (max-width: 1023px) { .grp-list, .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .hero h1 { font-size: 26px; line-height: 33px; }
  .grp-list, .pop-grid { grid-template-columns: 1fr; }
  .cls-card, .pop-row { border-radius: var(--r-md); }
  .grp-list a { min-height: 0; padding: 14px; border-top: 0; }
  .grid-note { padding: 0 16px; }
}


/* ==========================================================================
   DESIGN v2 – exact port (header + hero + A-Z)
   ========================================================================== */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-top { height: 76px; padding: 0 40px; display: flex; align-items: center; gap: 28px;
  max-width: 1440px; margin: 0 auto; }
.hdr-logo { display: flex; flex-direction: column; gap: 1px; flex: none; }
.hdr-tag { font-size: 13px; font-style: italic; font-weight: 600; color: var(--teal-600);
  letter-spacing: -0.01em; padding-left: 34px; }
.hdr-logo img { display: block; height: 30px; width: auto; }
.hdr-nav { display: flex; align-items: center; gap: 22px; margin-left: 4px; }
.hdr-nav a { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700;
  color: var(--fg-1); padding: 6px 2px; border-bottom: 0; white-space: nowrap; }
.hdr-nav a:hover { color: var(--teal-700); text-decoration: none; }
.hdr-nav a[aria-current] { color: var(--teal-700); border-bottom: 2px solid var(--teal-600); }
.hdr-cart { display: flex; align-items: center; gap: 8px; flex: none; position: relative;
  padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: var(--fg-1); }
.hdr-cart:hover { background: var(--teal-50); color: var(--teal-700); text-decoration: none; }

/* --- hero --- */
.hero { position: relative; overflow: hidden;
  background: linear-gradient(105deg, #E7F6F0 0%, #EEF5FA 52%, #E5EFFC 100%);
  border: 1px solid var(--teal-100); border-radius: var(--r-lg);
  padding: 40px 44px 34px; margin-top: 12px; }
.hero-in { position: relative; max-width: 720px; }
.hero .eyebrow-sm { font-size: 13px; letter-spacing: .08em; color: var(--teal-700); margin: 0; }
.hero h1 { font-size: 38px; line-height: 46px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fg-1); margin: 10px 0 0; }
.hero-sub { font-size: 16px; line-height: 26px; color: var(--fg-2); margin: 10px 0 0; max-width: 540px; }
.hero .field { height: 56px; padding: 0 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-top: 24px; max-width: 620px; gap: 10px; }
.hero .field input { font-size: 15px; }
.hero-note { font-size: 12px; line-height: 18px; color: var(--fg-3); margin: 12px 0 0; max-width: 560px; }
.hero-cred { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid rgba(0,136,128,0.14); }
.cred-by { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--teal-700); }
.cred-sep { width: 1px; height: 14px; background: rgba(0,136,128,0.2); }
.cred-date { font-size: 13px; color: var(--fg-2); }
.hero-cred a { font-size: 13px; font-weight: 700; }

/* --- hero decoration (CSS geometry only, per the design) --- */
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art span { position: absolute; display: block; }
.ha-circle { right: 210px; top: -70px; width: 190px; height: 190px; border-radius: 999px;
  background: rgba(255,255,255,0.8); }
.ha-card { right: 104px; top: 46px; width: 224px; height: 152px; border-radius: 18px;
  background: var(--teal-600); border: 9px solid #fff; box-shadow: var(--sh-md);
  transform: rotate(-7deg); display: flex; flex-direction: column; justify-content: center;
  gap: 12px; padding: 0 26px; }
.ha-card i { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.82); }
.ha-card i:nth-child(2) { width: 76%; background: rgba(255,255,255,0.7); }
.ha-card i:nth-child(3) { width: 56%; background: rgba(255,255,255,0.58); }
.ha-rx { right: 58px; top: 22px; width: 64px; height: 64px; border-radius: 999px; background: #fff;
  box-shadow: var(--sh-sm); display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--teal-700); }
.ha-plus { right: 300px; bottom: 30px; width: 54px; height: 54px; border-radius: 999px; background: #fff;
  box-shadow: var(--sh-sm); display: flex; align-items: center; justify-content: center; }
.ha-cap { right: 52px; bottom: 24px; width: 118px; height: 50px; border-radius: 999px; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--sh-sm); transform: rotate(-38deg); display: flex; }
.ha-cap i { flex: 1; }
.ha-cap i:first-child { background: #FBD3B4; }
.ha-cap i:last-child { background: #F2695C; }

/* --- section heads + A-Z --- */
.sec > h2 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 6px 0 0; }
.sec .eyebrow-sm { font-size: 12px; letter-spacing: .08em; margin: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head p { font-size: 13px; color: var(--fg-2); margin: 6px 0 0; }
.result-pill { flex: none; font-size: 13px; font-weight: 700; color: var(--fg-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.az { background: none; border-bottom: 0; padding: 18px 0 0; gap: 6px; }
.az button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; }
.dir-card { background: none; border: 0; border-radius: 0; margin-top: 0; overflow: visible; }
.groups { padding: 16px 0 0; }
.grp { padding-top: 16px; }

@media (max-width: 1023px) {
  .hero-art { display: none; }
  .hero { padding: 28px 24px 24px; }
  .hdr-nav { gap: 14px; overflow-x: auto; }
}
@media (max-width: 767px) {
  .hero { border-radius: 0; border-left: 0; border-right: 0; padding: 22px 16px 20px; }
  .hero h1 { font-size: 26px; line-height: 33px; margin-top: 6px; }
  .hero .eyebrow-sm { font-size: 11px; }
  .hero-sub { font-size: 14px; line-height: 22px; }
  .hero .field { height: 48px; margin-top: 16px; }
  .hero-cred { gap: 8px; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .az { padding: 14px 0 0; overflow-x: auto; flex-wrap: nowrap; }
  .groups { padding: 12px 0 0; background: none; border: 0; }
  .grp { border-bottom: 0; }
}

/* ==========================================================================
   FIXES – content width, class hero, page background
   ========================================================================== */
/* design grid: 1200px content, 24px gutters. Content sections are full width,
   not a narrow reading column. */
.content-grid { max-width: none; grid-template-columns: 1fr; gap: 20px; }
.container { max-width: 1200px; padding: 0 24px; }

/* the page surface is the grey canvas, never white */
html, body { background: var(--bg); }
.page { background: var(--bg); }

/* --- class page hero --- */
.chero { position: relative; overflow: hidden; display: block;
  background: linear-gradient(105deg, #E7F6F0 0%, #EEF5FA 52%, #E5EFFC 100%);
  border: 1px solid var(--teal-100); border-radius: var(--r-lg);
  padding: 32px 36px 28px; margin-top: 12px; }
.chero-art { position: absolute; inset: 0; pointer-events: none; }
.chero-art span { position: absolute; display: block; border-radius: 999px; }
.ca-1 { right: -60px; top: -110px; width: 300px; height: 300px; background: rgba(255,255,255,0.55); }
.ca-2 { right: 40px; bottom: -170px; width: 300px; height: 300px;
  background: none; border: 44px solid rgba(255,255,255,0.42); }
.chero-in { position: relative; display: flex; align-items: flex-start; gap: 24px; }
.chero-ico { flex: none; width: 74px; height: 74px; border-radius: var(--r-md);
  background: #fff; border: 6px solid rgba(255,255,255,0.9); box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center; color: var(--teal-600); }
.chero-main { flex: 1; min-width: 0; }
.chero .eyebrow-sm { font-size: 13px; letter-spacing: .08em; margin: 0; }
.chero h1 { font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fg-1); margin: 8px 0 0; }
.chero-sub { font-size: 15px; line-height: 25px; color: var(--fg-2); margin: 8px 0 0; max-width: 660px; }
.chero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px;
  font-size: 14px; color: var(--fg-2); }
.chero-meta .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--fg-3); flex: none; }
.chero-meta .pill-muted { background: #fff; color: var(--fg-1); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 6px 14px; box-shadow: var(--sh-xs); }
.chero-cred { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid rgba(0,136,128,0.14); }
.chero-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chero-chips span { display: flex; align-items: center; gap: 7px; background: #fff;
  border-radius: 999px; padding: 9px 16px; box-shadow: var(--sh-xs);
  font-size: 13px; font-weight: 700; color: var(--fg-1); }
.chero-chips svg { color: var(--teal-600); flex: none; }
/* the old side panel and mobile pill row are replaced by the above */
.chero-side, .chero-pills { display: none !important; }

@media (max-width: 1023px) { .chero-art { display: none; } }
@media (max-width: 767px) {
  .chero { border-radius: 0; border-left: 0; border-right: 0; padding: 20px 16px; }
  .chero-in { gap: 14px; }
  .chero-ico { width: 52px; height: 52px; border-width: 4px; }
  .chero h1 { font-size: 24px; line-height: 30px; }
  .chero-sub { font-size: 14px; line-height: 22px; }
  .chero-meta { font-size: 13px; gap: 8px; margin-top: 12px; }
  .chero-cred { gap: 8px; margin-top: 14px; padding-top: 12px; }

  .chero-chips { gap: 8px; }
  .chero-chips span { font-size: 12px; padding: 8px 12px; }
  .content-grid { padding: 0 16px; }
}

/* ==========================================================================
   MOBILE FRAMES – ported from the design's 1b / 2b
   ========================================================================== */
@media (max-width: 767px) {
  .page { background: var(--bg); padding-bottom: 24px; }
  .container { padding: 0; }

  /* header: 56px row, 44px targets, delivery bar below */
  .mhdr { display: block; background: var(--surface); box-shadow: var(--sh-sm); }
  .mhdr-row { height: 56px; padding: 0 14px; gap: 12px; }
  .mhdr-btn { width: 44px; height: 44px; color: var(--fg-1); }
  .mhdr-logo img { height: 22px; }
  .mhdr-loc { width: 100%; height: 40px; padding: 0 16px; gap: 6px; background: var(--bg);
    border: 0; border-top: 1px solid var(--line-2); }
  .mhdr-loc span:first-child { font-size: 13px; font-weight: 400; color: var(--fg-2); }
  .mhdr-loc span:nth-child(2) { font-size: 13px; font-weight: 700; color: var(--fg-1); }
  .mhdr-chips { display: none; }

  .crumbs { padding: 12px 16px 0; }
  .crumbs ol { gap: 6px; font-size: 12px; }

  /* heroes are inset cards on mobile, not full-bleed bands */
  .hero, .chero {
    background: linear-gradient(120deg, #E9F6F1 0%, #EDF5FA 55%, #E7F0FB 100%);
    margin: 12px 12px 0; border: 1px solid var(--teal-100); border-radius: var(--r-lg);
    padding: 18px 16px 14px; }
  .hero h1 { font-size: 26px; line-height: 33px; margin-top: 6px; }
  .chero h1 { font-size: 24px; line-height: 30px; }
  .hero .eyebrow-sm, .chero .eyebrow-sm { font-size: 11px; }
  .hero-sub, .chero-sub { font-size: 14px; line-height: 22px; }
  .hero .field { height: 46px; margin-top: 14px; padding: 0 14px; }
  .hero-note { font-size: 11px; line-height: 17px; margin-top: 10px; }
  .hero-cred, .chero-cred { margin-top: 14px; padding-top: 12px; gap: 6px 10px; }
  .cred-by, .cred-date, .hero-cred a, .chero-cred a { font-size: 12px; }

  .chero-in { gap: 12px; }
  .chero-ico { width: 48px; height: 48px; border-width: 4px; }
  .chero-meta { font-size: 12px; gap: 8px; margin-top: 10px; }
  .chero-chips span { font-size: 11px; padding: 7px 11px; gap: 5px; }
  .hero-art, .chero-art { display: block; }
  .hero-art .ha-card, .hero-art .ha-rx, .hero-art .ha-plus, .hero-art .ha-cap { display: none; }
  .ha-circle, .ca-1 { right: -46px; top: -58px; width: 150px; height: 150px;
    background: rgba(255,255,255,0.75); }
  .ca-2 { display: none; }

  /* sections */
  .sec { margin-top: 26px; padding: 0 16px; }
  .sec > h2 { font-size: 19px; line-height: 26px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .az { padding: 14px 0 0; gap: 8px; overflow-x: auto; flex-wrap: nowrap; margin: 0; }
  .az button { flex: none; min-width: 44px; height: 44px; font-size: 14px; }
  .pop-grid, .grp-list { grid-template-columns: 1fr; gap: 10px; }
  .groups { padding: 12px 0 0; background: none; border: 0; margin-top: 0; }
  .grp { padding-top: 14px; border-bottom: 0; }
  .grp-btn { min-height: 44px; padding: 0; }
  .cls-card, .pop-row { min-height: 44px; }

  /* content + grids */
  .content-grid { padding: 0 16px; gap: 12px; margin-top: 26px; }
  .med-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 0; }
  .toolbar { border-radius: 0; border-left: 0; border-right: 0; padding: 12px 16px; }
  .trust { margin: 12px 16px 0; }
}

/* ==========================================================================
   HEADER ALIGNMENT / MOBILE MENU / PAYMENT LOGOS
   ========================================================================== */
/* header contents share the 1200px content column instead of hugging the edge */
.hdr-top { max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 24px; }
.hdr-tag { display: none; }
.hdr-logo { align-self: center; }

/* mobile: hamburger panel carrying the primary nav */
.mhdr-menu { display: flex; flex-direction: column; background: var(--surface);
  border-top: 1px solid var(--line-2); }
.mhdr-menu a { display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--fg-1);
  border-bottom: 1px solid var(--line-2); }
.mhdr-menu a:hover { background: var(--teal-50); color: var(--teal-700); text-decoration: none; }
.mhdr-menu a svg { color: var(--fg-3); }

/* payment partner logos */
.ft-pay-brands { gap: 10px 14px; }
.pay-ico { display: inline-flex; align-items: center; justify-content: center;
  height: 30px; background: #fff; border-radius: 4px; padding: 2px 4px; }
.pay-ico img { display: block; height: 30px; width: 50px; object-fit: contain; }

/* the bottom strip no longer repeats the credibility line */
.trust-meta { display: none; }

/* ==========================================================================
   STICKY HEADER + SURFACE CORRECTIONS
   ========================================================================== */
.hdr { position: sticky; top: 0; z-index: 80; background: var(--surface); }
.mhdr { position: sticky; top: 0; z-index: 80; }
.cart-banner { top: 76px; }
.qty-b:disabled { opacity: .35; cursor: default; }
.qty-b:disabled:hover { background: none; }

@media (max-width: 767px) {
  /* the sticky JS class is redundant now the header is sticky by default */
  .cart-banner { top: 56px; }
  /* the toolbar was a full-bleed white band, which read as a white page.
     inset it so the grey canvas stays visible either side. */
  .toolbar { margin: 12px 12px 0; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 12px 14px; }
  .med-grid { padding: 12px 12px 0; }
  .pager { padding: 16px 12px; }
  .grid-note { padding: 0 12px; }
  .content-grid { padding: 0 12px; }
  .trust { margin: 12px 12px 0; }
  .sec { padding: 0 12px; }
  .hero, .chero { margin: 12px 12px 0; }
}

/* ==========================================================================
   TWO-LINE TRUST CHIP + EDITABLE CART DRAWER
   ========================================================================== */
.chip-2l { align-items: center; }
.chip-2l b { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.chip-2l i { font-style: normal; font-size: 10px; font-weight: 600; color: var(--fg-3); }

.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: 380px;
  max-width: 92vw; background: var(--surface); box-shadow: -8px 0 28px rgba(28,31,34,.14);
  display: flex; flex-direction: column; }
.cd-hd { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.cd-hd b { font-size: 16px; font-weight: 700; color: var(--fg-1); }
.cd-hd span { color: var(--fg-3); font-weight: 700; }
.cd-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.cd-empty { font-size: 14px; color: var(--fg-3); padding: 32px 0; text-align: center; }
.cd-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line-2); }
.cd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cd-info a { font-size: 13px; font-weight: 700; line-height: 18px; color: var(--fg-1); }
.cd-info a:hover { color: var(--teal-700); }
.cd-info span { font-size: 11px; color: var(--fg-3); }
.cd-info b { font-size: 14px; font-weight: 700; color: var(--fg-1); margin-top: 2px; }
.cd-qty { flex: none; display: flex; align-items: center; gap: 2px; border: 1px solid var(--teal-600);
  border-radius: var(--r-sm); overflow: hidden; height: 32px; }
.cd-qty button { width: 30px; height: 100%; border: 0; background: none; color: var(--teal-600);
  font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; }
.cd-qty button:hover:not(:disabled) { background: var(--teal-50); }
.cd-qty button:disabled { opacity: .35; cursor: default; }
.cd-qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--teal-700); }
.cd-del { flex: none; background: none; border: 0; cursor: pointer; color: var(--fg-3); padding: 4px; }
.cd-del:hover { color: var(--error); }
.cd-foot { border-top: 1px solid var(--line-2); padding: 16px 18px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.cd-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cd-total span { font-size: 14px; color: var(--fg-2); }
.cd-total b { font-size: 18px; font-weight: 700; color: var(--fg-1); }
.cd-foot .btn-primary { width: 100%; }
.cd-note { font-size: 11px; line-height: 16px; color: var(--fg-3); margin: 10px 0 0; text-align: center; }

@media (max-width: 767px) {
  .cart-drawer { top: auto; left: 0; width: auto; max-width: none; max-height: 86vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -8px 28px rgba(28,31,34,.16); }
  .chip-2l i { font-size: 9px; }
}

/* floating sticky header – detached bar that rides over the content */
.hdr, .mhdr { position: sticky; top: 0; z-index: 90; box-shadow: var(--sh-sm); border-bottom: 0; }
.hdr { backdrop-filter: saturate(1.05); }
.hdr.is-float, .mhdr.is-float { box-shadow: var(--sh-md); }

/* ==========================================================================
   STICKY FIX + MOBILE LOGO
   ==========================================================================
   position:sticky resolves against the nearest scrolling ancestor, but it can
   only travel inside its own PARENT's box. .hdr sat inside <header>, which is
   exactly as tall as .hdr – so it had zero room and never stuck. The <header>
   element itself has to be the sticky one. */
header { position: sticky; top: 0; z-index: 90; }
.hdr, .mhdr { position: static; box-shadow: none; }
header { box-shadow: var(--sh-sm); }
.hdr { border-bottom: 0; }

@media (max-width: 767px) {
  /* bigger, optically centred logo between the menu and cart controls */
  .mhdr-logo { flex: 1; display: flex; align-items: center; justify-content: center; }
  .mhdr-logo img { height: 40px; width: auto; }
  .mhdr-row { height: 64px; }
  .cart-banner { top: 64px; }
}

/* ==========================================================================
   LIVE PHARMEASY.IN COMPONENTS — values taken from production CSS
   ========================================================================== */

/* buttons: 40px, 8px radius, white fill + 1px teal border, label 14/500 #134e48
   (.styles_submitButton / .styles_submitButtonText on the live PDP) */
.btn-add {
  height: 40px; border-radius: var(--r-md); padding: 4px 0;
  background: #fff; border: 1px solid var(--teal-600);
  font-size: 14px; line-height: 24px; font-weight: var(--fw-medium);
  color: var(--teal-800);
}
.btn-add:hover:not(:disabled) { background: var(--teal-600); color: #fff; }
.btn-primary {
  height: 40px; border-radius: var(--r-md);
  font-size: 14px; line-height: 24px; font-weight: var(--fw-semi);
}
.btn-ghost {
  height: 40px; border-radius: var(--r-md);
  font-size: 14px; line-height: 24px; font-weight: var(--fw-semi);
  color: var(--teal-800); border: 1px solid var(--teal-600);
}

/* breadcrumb: #4f585e, capitalised, single line with ellipsis
   (.BreadCrumbLink_breadCrumb) */
.crumbs ol { font-size: var(--fs-sm); line-height: 1.5; gap: 8px; }
.crumbs a, .crumbs [aria-current] {
  text-transform: capitalize; color: var(--fg-2); line-height: 1.5;
  max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crumbs [aria-current] { color: var(--fg-1); font-weight: var(--fw-semi); }

/* headings follow the live scale — 26 / 22 / 18, never 800 */
.hero h1  { font-size: 26px; line-height: 34px; font-weight: var(--fw-bold); }
.chero h1 { font-size: 26px; line-height: 34px; font-weight: var(--fw-bold); }
.sec > h2 { font-size: 18px; line-height: 28px; font-weight: var(--fw-bold); }
.card h2  { font-size: 18px; line-height: 28px; font-weight: var(--fw-bold); }
.card h3  { font-size: 16px; line-height: 24px; font-weight: var(--fw-semi); }
.toolbar h2 { font-size: 16px; line-height: 24px; font-weight: var(--fw-semi); }

/* cards + chips take the live 8px radius */
.med, .cls-card, .pop-row, .card, .faq-card, .dir-card, .side, .toolbar,
.hero, .chero, .trust { border-radius: var(--r-md); }
.med-name { font-size: 14px; line-height: 20px; font-weight: var(--fw-semi); }
.price    { font-size: 16px; line-height: 24px; font-weight: var(--fw-bold); }
.mrp      { font-size: 12px; font-weight: var(--fw-regular); }
.save     { font-size: 12px; font-weight: var(--fw-medium); }
.badge-rx, .badge-off { font-size: 10px; font-weight: var(--fw-semi); border-radius: var(--r-sm); }
.hdr-nav a { font-size: 14px; line-height: 24px; font-weight: var(--fw-semi); }
.cls-name  { font-size: 14px; line-height: 24px; font-weight: var(--fw-semi); }
.cls-desc  { font-size: 12px; line-height: 18px; }
.cls-cat, .eyebrow-sm { font-size: 11px; font-weight: var(--fw-semi); }
.az button { border-radius: var(--r-md); font-size: 13px; font-weight: var(--fw-semi); }
.form-pill, .result-pill, .pill-muted, .chero-chips span { border-radius: var(--r-pill); font-weight: var(--fw-semi); }

/* hamburger rows match the live nav sizing */
.mhdr-menu a { font-size: 14px; line-height: 24px; font-weight: var(--fw-semi); }

/* ==========================================================================
   PRODUCT CARD + MOBILE HEADER — matched to the live listing page
   ========================================================================== */
.med { padding: 12px; gap: 4px; min-height: 0; }
.med .badge-rx { align-self: flex-start; font-size: 10px; font-weight: var(--fw-semi);
  color: var(--fg-2); background: var(--bg); border-radius: var(--r-sm); padding: 2px 6px; }
.med-name { font-size: 14px; line-height: 20px; font-weight: var(--fw-semi); color: var(--fg-1);
  margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.med-by   { font-size: 12px; line-height: 18px; color: var(--fg-3); }
.med-pack { font-size: 12px; line-height: 18px; color: var(--fg-3); }

/* price block: struck MRP on its own line, then price + red % OFF inline */
.med-foot { margin-top: auto; padding-top: 8px; border-top: 0; }
.med-foot .mrp { display: block; font-size: 12px; line-height: 18px; color: var(--fg-3);
  text-decoration: line-through; font-weight: var(--fw-regular); }
.price-row { display: flex; align-items: baseline; gap: 8px; min-height: 0; }
.price { font-size: 16px; line-height: 24px; font-weight: var(--fw-bold); color: var(--fg-1); }
.badge-off { background: none; padding: 0; border-radius: 0; color: var(--coral-700);
  font-size: 12px; font-weight: var(--fw-semi); visibility: hidden; }
.badge-off.on { visibility: visible; }
.med-coupon { display: block; font-size: 11px; line-height: 16px; color: var(--fg-3); margin-top: 2px; }
.med-coupon .tnc { font-size: 9px; }
.save, .badge-wrap, .tnc-price { display: none; }

/* Add to cart: SOLID teal, full width — the live listing CTA */
.med .btn-add {
  width: 100%; height: 40px; margin-top: 10px;
  background: var(--teal-600); color: #fff; border: 1px solid var(--teal-600);
  border-radius: var(--r-md); font-size: 14px; font-weight: var(--fw-semi);
}
.med .btn-add:hover:not(:disabled) { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.med .btn-add:disabled { background: var(--bg); border-color: var(--line); color: var(--fg-3); }
.med .qty { margin-top: 10px; height: 40px; border-radius: var(--r-md); }

@media (max-width: 767px) {
  /* live mobile header: hamburger + logo LEFT, actions right — not centred */
  .mhdr-logo { flex: 0 0 auto; justify-content: flex-start; }
  .mhdr-logo img { height: 30px; }
  .mhdr-row { height: 56px; gap: 6px; }
  .mhdr-row .hdr-spacer { flex: 1; }
  .med { padding: 10px; }
  .med-name { font-size: 14px; }
}

/* filter pills on the toolbar row, live styling */
.mtool { height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: 13px; font-weight: var(--fw-medium); color: var(--fg-1); gap: 6px; }

/* ==========================================================================
   MOBILE NAVBAR — hamburger + cart matched to the live app bar
   ========================================================================== */
@media (max-width: 767px) {
  .mhdr-row { height: 56px; padding: 0 12px 0 14px; gap: 8px; align-items: center; }

  /* two stacked bars, short coral over long dark — the live mark */
  .mhdr-burger { width: 30px; height: 44px; justify-content: flex-start; padding: 0; }
  .mhdr-burger svg { display: block; }

  .mhdr-logo { flex: 0 0 auto; margin-left: 4px; }
  .mhdr-logo img { height: 30px; }
  .mhdr-row .hdr-spacer { flex: 1 1 auto; }

  /* cart sits hard against the right edge */
  /* push to the right edge with auto margin — the old spacer div was removed
     when the logo was centred, so flex:1 had nothing to grow */
  .mhdr-cart { position: relative; width: 40px; height: 44px;
    margin-left: auto; margin-right: 0;
    justify-content: flex-end; color: var(--fg-1); }
  .mhdr-cart .cart-count {
    position: absolute; top: 4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--teal-600); color: #fff;
    font-size: 11px; font-weight: var(--fw-bold);
    border-radius: var(--r-pill); border: 2px solid #fff;
    align-items: center; justify-content: center;
  }
}

/* sidebar filter groups collapse, like the live left rail */
.side-h { display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: var(--fw-semi); color: var(--fg-1); }
.side-h::after { content: ""; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3);
  transform: rotate(45deg); margin-top: -4px; }
.side-top b { font-size: 16px; font-weight: var(--fw-bold); }

/* ==========================================================================
   REAL STATUS · LIST HEADING · HERO ICON · HEADER MARKS
   ========================================================================== */
/* an unavailable product states the reason plainly instead of a greyed CTA */
.med .btn-add:disabled {
  background: none; border: 0; color: var(--coral-700);
  font-size: 13px; font-weight: var(--fw-semi); text-align: left;
  height: auto; padding: 8px 0 0; cursor: default; opacity: 1;
}
.med .btn-add:disabled:hover { background: none; }

/* list heading on its own line; sort + filter left-aligned, no box */
.list-title { font-size: 18px; line-height: 28px; font-weight: var(--fw-bold);
  color: var(--fg-1); margin: 20px 0 8px; }
.toolbar { background: none; border: 0; border-radius: 0; padding: 0 0 8px;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.toolbar .sub { font-size: 13px; color: var(--fg-2); }
.sortwrap { margin-left: auto; }
.mtools { order: -1; }

.mhdr-logo svg { display: block; height: 29px; width: auto; }

@media (max-width: 767px) {
  /* the hero tile ate ~74px of a 375px screen and squeezed the H1 */
  .chero-ico { display: none; }
  .chero-in { display: block; }
  .list-title { margin: 16px 12px 6px; font-size: 16px; line-height: 24px; }
  .toolbar { padding: 0 12px 8px; gap: 8px; }
  .toolbar .sub { width: 100%; order: 2; }
  .sortwrap { display: none; }
  .mtools { order: 1; margin: 0; }
  .mhdr-logo svg { height: 26px; }
}

/* ==========================================================================
   OVERRIDES — these must sit last; earlier mobile blocks re-declare them
   ========================================================================== */
@media (max-width: 767px) {
  .chero-ico { display: none; }
  .chero-in  { display: block; }
  /* the sort/filter row is not a card: no fill, no border, left aligned */
  .toolbar {
    background: none; border: 0; border-radius: 0;
    margin: 0; padding: 0 12px 10px;
    justify-content: flex-start; gap: 8px; flex-wrap: wrap;
  }
  .toolbar .mtools { order: 1; margin-left: 0; }
  .toolbar .sub    { order: 2; width: 100%; margin-top: 6px; }
  .sortwrap { display: none; }
}
.toolbar { background: none; border: 0; border-radius: 0; justify-content: flex-start; }

/* ==========================================================================
   BREADCRUMB · LIST HEAD + SORT · MOBILE SORT/FILTER BAR
   ========================================================================== */
/* live breadcrumb: chevron separators, last crumb teal */
.crumbs ol { font-size: 14px; line-height: 20px; gap: 6px; }
.crumbs a { color: var(--fg-1); font-weight: var(--fw-semi); text-transform: none; }
.crumbs a:hover { color: var(--teal-600); }
.crumbs .crumb-sep { display: flex; align-items: center; color: var(--fg-3); }
.crumbs [aria-current] { color: var(--teal-600); font-weight: var(--fw-semi); text-transform: none; }

/* heading left, "Sort By:" + select right, on one row */
.list-head { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 24px 0 4px; }
.list-title { margin: 0; font-size: 22px; line-height: 30px; font-weight: var(--fw-bold); }
.sortwrap { margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg-2); }
.sortwrap span { white-space: nowrap; }
.sortwrap select { height: 44px; min-width: 190px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  font-size: 15px; font-weight: var(--fw-regular); color: var(--fg-1); cursor: pointer; }
.toolbar { padding: 0 0 12px; }

@media (max-width: 767px) {
  .crumbs { margin: 8px 16px 0; padding: 0; }
  .crumbs ol { font-size: 13px; line-height: 18px; }
  .list-head { margin: 16px 12px 4px; }
  .list-title { font-size: 18px; line-height: 26px; }
  .sortwrap { display: none; }

  /* live mobile pattern: a fixed Sort | Filter bar pinned to the bottom */
  .mtools { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    display: flex; background: var(--surface); border-top: 1px solid var(--line-2);
    box-shadow: 0 -4px 16px rgba(48,54,60,.08);
    padding-bottom: env(safe-area-inset-bottom); margin: 0; }
  .mtool { flex: 1; height: 54px; border: 0; border-radius: 0; background: none;
    justify-content: center; gap: 8px; font-size: 16px; font-weight: var(--fw-semi);
    color: var(--fg-1); position: relative; }
  .mtool + .mtool::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 1px; background: var(--line-2); }
  .mtool.has-filters::after { content: ""; position: absolute; top: 14px; right: 22px;
    width: 7px; height: 7px; border-radius: 50%; background: #e5187a; }
  .mtool.has-filters { border-color: transparent; color: var(--fg-1); }
  .page { padding-bottom: 66px; }         /* clear the fixed bar */
  .totop { bottom: 66px; }
}

/* ==========================================================================
   CART MARK · HEADER BORDER · BREADCRUMB PADDING · STICKY BAR REVEAL
   ========================================================================== */
/* one cart mark for both breakpoints, red count bubble like the live header */
.hdr-cart .cart-ico { position: relative; display: inline-flex; }
.hdr-cart svg { display: block; }
.cart-count {
  background: var(--coral-600); color: #fff;
  min-width: 20px; height: 20px; padding: 0 6px;
  font-size: 11px; font-weight: var(--fw-bold);
  border-radius: var(--r-pill); border: 0;
  align-items: center; justify-content: center;
}
.hdr-cart .cart-count { position: absolute; top: -7px; left: 9px; }
.mhdr-cart .cart-count { background: var(--coral-600); border: 2px solid #fff; }

/* no rule above the desktop nav */
.hdr, .hdr-nav { border-top: 0; }
.hdr-nav { border-top: 0 !important; }

/* desktop breadcrumb breathing room */
.crumbs { padding: 24px 0 16px; }

@media (max-width: 767px) {
  .crumbs { margin: 8px 16px 0; padding: 0 0 4px; }

  /* hidden until the first product CTA comes into view */
  .mtools.is-armed { transform: translateY(110%); transition: transform .22s ease-out; }
  .mtools.is-armed.on { transform: translateY(0); }
}

@media (max-width: 767px) {
  .crumbs ol { font-size: 10px; line-height: 18px; }
  .crumbs .crumb-sep svg { width: 10px; height: 10px; }
}

/* ============================================================
   Quantity picker + FAQ heading                (round 12)
   ============================================================ */

/* FAQ heading sits outside the card, left aligned, 18px */
.faq-title{
  font-size:18px; line-height:26px; font-weight:600;
  color:var(--fg-1); text-align:left;
  margin:0 0 12px; padding:0;
}

/* The quantity picker. A compact dropdown anchored to the button — same
   control as the live search results, not a full-width sheet. Roughly five
   rows are visible and the rest scrolls. */
.qty-sheet{
  position:fixed; z-index:80; background:#fff;
  width:184px; border-radius:10px;
  box-shadow:0 6px 24px rgba(16,24,32,.18), 0 0 0 1px rgba(16,24,32,.06);
  overflow:hidden;
}
.qty-sheet[hidden]{ display:none; }
.qs-hd{
  font-size:14px; font-weight:600; color:var(--fg-1);
  padding:12px 14px; border-bottom:1px solid var(--line);
  background:#fff;
}
.qs-list{
  max-height:190px;              /* ~5 rows, then scroll */
  overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.qs-opt{
  appearance:none; -webkit-appearance:none;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; text-align:left; cursor:pointer;
  border:0; border-bottom:1px solid var(--line); background:#fff;
  padding:0 14px; height:38px;
  font:400 14px/38px var(--font); color:var(--fg-1);
}
.qs-opt:last-child{ border-bottom:0; }
.qs-opt:hover{ background:#f5f7f8; }
.qs-opt.on{ background:#eef2f9; font-weight:600; }
.qs-rm{ color:var(--fg-2); }
.qs-max{ font-style:normal; font-size:12px; color:var(--fg-3); font-weight:400; }

/* Button flips to the in-cart quantity, still tappable to edit */
.btn-add.in-cart{
  background:#fff; color:var(--teal-600);
  border:1px solid var(--teal-600);
}
.btn-add.in-cart:hover{ background:#f0faf9; }

/* caret on the in-cart button */
.btn-add.in-cart{ display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.btn-add .qc{ width:10px; height:6px; flex:none; }

/* ============================================================
   Navigation dropdowns + credibility line       (round 13)
   ============================================================ */

/* No page in this directory IS the Medicine page, so nothing in the primary
   nav should read as current. */
.hdr-nav a[aria-current] { border-bottom: 0; }

.hdr-nav { display: flex; align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a, .nav-top {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700; color: var(--fg-1);
  padding: 6px 2px; cursor: pointer; white-space: nowrap;
}
.nav-item > a:hover, .nav-top:hover { color: var(--teal-700); text-decoration: none; }

/* Panel opens on hover and on keyboard focus, so it is reachable by tab. */
.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 196px; padding: 6px 0; margin-top: 6px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(16,24,32,.16), 0 0 0 1px rgba(16,24,32,.06);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  /* visibility flips instantly on open and only lags on close, so the panel is
     clickable the moment it appears rather than 140ms later */
  transition: opacity .14s, transform .14s, visibility 0s linear .14s;
}
.nav-item.has-kids:hover .nav-drop,
.nav-item.has-kids:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .14s, transform .14s, visibility 0s;
}
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop a {
  display: block; padding: 9px 16px;
  font-size: 14px; font-weight: 400; line-height: 20px; color: var(--fg-1);
}
.nav-drop a:hover { background: #f5f7f8; color: var(--teal-700); text-decoration: none; }

/* the chevron only ever appears on items that actually open a panel */
.nav-item.has-kids > a svg, .nav-top svg { transition: transform .14s; }
.nav-item.has-kids:hover > a svg, .nav-item.has-kids:hover .nav-top svg { transform: rotate(180deg); }

/* mobile: section label plus indented children */
.mhdr-menu .m-head {
  display: block; padding: 13px 16px 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg-3);
}
.mhdr-menu .m-sub { padding-left: 28px; font-weight: 400; }

/* "Reviewed by" carries the emphasis; the person's name is set light */
.cred-by { font-weight: 400; }
.cred-by b { font-weight: 700; }
.cred-name { font-weight: 400; color: inherit; }
/* still a link, but underlining it made the line look busy next to the
   separator and the policy link; the teal on hover carries the affordance */
a.cred-name { text-decoration: none; }
a.cred-name:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Desktop header, two rows                      (round 14)
   Row 1: logo | divider | search | Offers | Cart
   Row 2: centred primary nav
   ============================================================ */
.hdr-top {
  height: 76px; padding: 0 40px;
  display: flex; align-items: center; gap: 20px;
}
.hdr-div { width: 1px; height: 38px; background: var(--line); flex: none; }

/* search grows to fill the middle but stays capped, as on the live header */
.hdr-search {
  flex: 1 1 auto; max-width: 720px; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 6px 0 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .14s, box-shadow .14s;
}
.hdr-search:focus-within {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(16,132,126,.12);
}
.hs-ico { display: flex; color: var(--fg-3); flex: none; }
.hdr-search input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 400 15px/24px var(--font); color: var(--fg-1);
}
.hdr-search input::placeholder { color: var(--fg-3); }
.hdr-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hs-btn {
  flex: none; border: 0; cursor: pointer;
  height: 38px; padding: 0 26px; border-radius: 999px;
  background: var(--teal-600); color: #fff;
  font: 600 15px/38px var(--font);
}
.hs-btn:hover { background: var(--teal-700); }

.hdr-offers {
  display: flex; align-items: center; gap: 7px; flex: none;
  font-size: 15px; font-weight: 400; color: var(--fg-1);
}
.hdr-offers:hover { color: var(--teal-700); text-decoration: none; }

/* Row 2 — the nav sits centred on its own line, divided from the search row */
.hdr-bar { border-top: 1px solid var(--line); }
.hdr-nav {
  height: 54px; display: flex; align-items: center; justify-content: center;
  gap: 34px; margin: 0; overflow: visible;
}
.hdr-nav .nav-item > a, .hdr-nav .nav-top { font-size: 15px; }

@media (max-width: 1180px) {
  .hdr-top { padding: 0 24px; gap: 14px; }
  .hdr-search { max-width: none; }
  .hdr-nav { gap: 22px; }
  .hdr-nav .nav-item > a, .hdr-nav .nav-top { font-size: 14px; }
}

/* ============================================================
   Rotating placeholder + mobile search           (round 15)
   ============================================================ */

/* the hint cross-fades rather than snapping between categories */
.hdr-search input::placeholder,
.msearch input::placeholder { transition: opacity .18s; opacity: 1; }
.hdr-search input.hint-out::placeholder,
.msearch input.hint-out::placeholder { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hdr-search input::placeholder,
  .msearch input::placeholder { transition: none; }
}

/* mobile search bar, revealed under the header row */
.msearch {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 10px; padding: 0 5px 0 14px;
  height: 42px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
}
.msearch[hidden] { display: none; }
.msearch:focus-within {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(16,132,126,.12);
}
.msearch input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 400 14px/22px var(--font); color: var(--fg-1);
}
.msearch input::placeholder { color: var(--fg-3); }
.msearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.msearch .hs-btn { height: 32px; padding: 0 16px; font-size: 14px; line-height: 32px; }
.msearch .hs-ico { color: var(--fg-3); }
.msearch .hs-ico svg { width: 18px; height: 18px; }

.mhdr-search-btn { color: var(--fg-1); }
.mhdr-search-btn svg { width: 22px; height: 22px; }

/* ============================================================
   Header sizing from the live header's box model  (round 16)
   top row 1440x64 · inner container 1360 wide, 40px side padding
   search 531x48, padding 4px 4px 4px 24px, radius 100px,
   border 1px solid rgb(215,223,229)
   ============================================================ */
/* full width with 40px gutters, matching the live 1440 row / 1360 content —
   an earlier round had capped this at 1200px */
.hdr-top { height: 64px; max-width: none; margin: 0; padding: 0 40px; gap: 16px; }
.hdr-bar > .hdr-nav { padding: 0 40px; }
.hdr-div { height: 32px; }

/* the search is centred in the leftover space rather than stretched across it */
.hdr-centre { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.hdr-search {
  flex: 0 1 531px; width: 531px; max-width: 100%;
  height: 48px; padding: 0 4px 0 24px; gap: 10px;
  border: 1px solid rgb(215,223,229); border-radius: 100px;
}
.hs-btn { height: 38px; line-height: 38px; padding: 0 24px; font-size: 14px; }
.hdr-search input { font-size: 14px; }

/* nav row: the 40px list plus a little breathing room, not 54px */
.hdr-nav { height: 44px; gap: 30px; }
.hdr-nav .nav-item > a, .hdr-nav .nav-top { font-size: 14px; padding: 4px 2px; }

@media (max-width: 1180px) {
  .hdr-top { padding: 0 24px; gap: 12px; }
  .hdr-search { flex: 1 1 auto; width: auto; }
}

/* mobile: magnifier pushed right so it sits just before the cart. The cart
   already carried margin-left:auto, which split the free space between the
   two and left a gap; the search takes it now and the cart sits flush. */
.mhdr-search-btn { margin-left: auto; }
.mhdr-cart { margin-left: 0; }

/* ============================================================
   Rx glyph, coupon line, tighter nav row       (round 17)
   ============================================================ */

/* the ℞ mark replaces the "Rx" text badge; white on the teal chip */
.badge-rx.is-rx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: var(--teal-600); color: #fff; border-radius: 6px;
}
.badge-rx .rx-ico { display: block; width: 18px; height: 18px; }

/* Coupon threshold line. Deliberately the smallest thing on the card, but
   10px is about the floor for legible text on a phone — 5px renders at a
   third the height of body copy and is effectively unreadable. */
.med-coupon { font-size: 10px; line-height: 14px; color: var(--fg-3); }

/* nav row height, matching the live header's nav band */
.hdr-nav { height: 40px; }

/* ============================================================
   Mobile filter sheet + iOS quirks              (round 18)
   ============================================================ */

/* iOS Safari zooms the page whenever a focused input is under 16px, and it
   never zooms back out. 16px is the threshold, not a design choice. */
@media (max-width: 767px) {
  .msearch input,
  .hdr-search input,
  input[type="search"],
  input[type="text"],
  select,
  textarea { font-size: 16px; }
}

/* The Sort|Filter bar is fixed above everything; while a sheet is open it
   would sit right on top of the Apply button and swallow the tap. */
body.sheet-open .mtools { display: none; }

/* Safari reports safe-area-inset-bottom as 0 while its address bar is
   showing and ~34px once it hides on scroll, so an uncapped inset makes the
   bar visibly grow mid-scroll. Cap it: still clears the home indicator,
   without the jump. */
@media (max-width: 767px) {
  .mtools { padding-bottom: min(env(safe-area-inset-bottom), 8px); }
  .page { padding-bottom: calc(62px + min(env(safe-area-inset-bottom), 8px)); }
}

/* sheet header: Filters — Clear all — ✕ */
.sheet-hd { display: flex; align-items: center; gap: 12px; }
.sheet-clear {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font: 600 14px/20px var(--font); color: var(--teal-600); padding: 4px 2px;
}
.sheet-clear:hover { color: var(--teal-700); }
.sheet-x { margin-left: 0; }

/* Apply button pinned under the options, clear of the safe area */
.sheet-apply {
  width: 100%; margin-top: 20px; height: 48px;
  font-size: 16px; font-weight: 600;
}

/* ============================================================
   Hero compaction + card restyle                (round 19)
   ============================================================ */

/* Rx affordance beside the H1, replacing the "Prescription required" chip */
.h1-rx {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; position: relative;
  width: 30px; height: 30px; margin-left: 10px; padding: 0;
  border: 0; border-radius: 7px; cursor: pointer;
  background: var(--teal-600); color: #fff;
}
.h1-rx .rx-ico { width: 20px; height: 20px; }
.h1-rx:hover { background: var(--teal-700); }
.rx-note {
  position: fixed; z-index: 90; left: 0; top: 0;
  width: 260px; max-width: calc(100vw - 24px);
  padding: 10px 13px; border-radius: 8px;
  background: var(--fg-1); color: #fff;
  font: 400 13px/18px var(--font); font-weight: 400; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility 0s linear .14s;
}
.h1-rx[aria-expanded="true"] .rx-note {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .14s, transform .14s, visibility 0s;
}

  .h1-rx { width: 26px; height: 26px; margin-left: 8px; }
  .h1-rx .rx-ico { width: 17px; height: 17px; }
}

/* Sort now lives in the filter rail */
.side .sortwrap { display: block; margin-top: 2px; }
.side .sortwrap select { width: 100%; height: 40px; font-size: 14px; font-weight: 400; }

/* Add to cart: outlined, filling in only on hover — less wall-to-wall green.
   Scoped to .med to outrank the earlier solid-green `.med .btn-add` rule. */
.med .btn-add {
  background: #fff; color: var(--teal-600);
  border: 1.5px solid var(--teal-600);
  transition: background .14s, color .14s, border-color .14s;
}
.med .btn-add:hover:not(:disabled) { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.med .btn-add:disabled { background: #fff; color: var(--fg-3); border-color: var(--line); }
.med .btn-add.in-cart { background: #fff; color: var(--teal-600); border: 1.5px solid var(--teal-600); }
.med .btn-add.in-cart:hover { background: var(--teal-600); color: #fff; }

/* Back to top: icon only, same corner radius as the cards' buttons */
.totop {
  gap: 0; padding: 0; width: 44px; height: 44px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
}
.totop svg { margin: 0; display: block; }

/* dosage pills: softened, not lozenges */
.form-pill { border-radius: var(--r-sm); }

/* ============================================================
   Mobile sidebar menu, mirroring the live one   (round 20)
   ============================================================ */
.mhdr-menu { padding: 0; background: #fff; }
.m-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 0; width: 100%;
  font-size: 15px; line-height: 22px; font-weight: 400; color: var(--fg-1);
  background: #fff; text-align: left;
}
.m-tile:hover { text-decoration: none; background: #f5f7f8; }
.m-tile svg { flex: none; width: 24px; height: 24px; color: var(--fg-1); }
.mt-tx { flex: 1; min-width: 0; }
.m-badge {
  flex: none; padding: 2px 7px; border-radius: 4px;
  background: #ffd400; color: var(--fg-1);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
/* the live menu groups with a soft rule above certain tiles */
.m-shadow { box-shadow: inset 0 -1px 0 var(--line-2), inset 0 1px 0 var(--line-2); }

/* Lab Tests / Health Insights expand; nothing else shows a chevron */
.m-acc { display: block; padding: 0; }
.m-acc > summary {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer; list-style: none;
}
.m-acc > summary::-webkit-details-marker { display: none; }
.m-acc > summary:hover { background: #f5f7f8; }
.m-acc > summary > svg:last-child { transition: transform .16s; }
.m-acc[open] > summary > svg:last-child { transform: rotate(180deg); }
.mhdr-menu a.m-tile { justify-content: flex-start; padding: 14px 18px; font-weight: 400; }
.mhdr-menu a.m-kid {
  display: block; padding: 11px 18px 11px 56px;
  font-size: 14px; line-height: 20px; font-weight: 400;
  color: var(--fg-2); background: #fbfcfd;
}
.mhdr-menu a.m-kid:hover { text-decoration: none; color: var(--teal-700); background: #f2f5f7; }

/* ============================================================
   Credibility line spacing                      (round 22)
   ============================================================ */
/* "Reviewed by" and the name are one phrase — the flex gap on .cred-by was
   separating them as if they were siblings of the shield icon. */
.cred-t { display: inline; }
.cred-t b { font-weight: 700; }
.cred-by { gap: 7px; }

/* a rule between the reviewer and the policy link reads better than a space */
.cred-sep { display: inline-block; width: 1px; height: 13px; background: rgba(0,136,128,.28); flex: none; }
.hero-cred, .chero-cred { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* language toggle in the header (bilingual pages only) */
.hdr-lang{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;margin-right:4px;border:1px solid #D6E3E1;border-radius:999px;color:#008880;background:#fff;font:700 13px/1 Inter,Mulish,sans-serif;text-decoration:none;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}
.hdr-lang:hover{background:#F2F9F8;border-color:#008880;color:#00736C}
.hdr-lang svg{flex:0 0 auto;display:block}
@media (max-width:560px){.hdr-lang{padding:7px 8px;margin-right:2px}.hdr-lang-txt{display:none}}

/* mobile header language toggle: plain icon button matching the row */
.hdr-lang-m{border:none;background:transparent;color:#1C1F22;padding:8px;margin:0;border-radius:10px}
.hdr-lang-m:hover{background:#F2F9F8;border-color:transparent;color:#008880}
.hdr-lang-m .hdr-lang-txt{display:none}

/* ===== GLP-1 header tweaks (cart removed, offers-only, content-aligned, drawer nav) ===== */
/* remove the cart icon from both the desktop and mobile headers */
.hdr-cart, .mhdr-cart { display: none !important; }

/* align the desktop rail to the 1120px content column: logo hard-left, offers hard-right */
.hdr-top { max-width: 1120px; margin: 0 auto; padding: 0 20px; gap: 20px; }
.hdr-centre { flex: 1 1 auto; min-width: 0; }     /* search fills the middle, pushing offers to the right edge */

/* ---- mobile hamburger: 80%-width, full-height drawer with a transparent click-to-close scrim ---- */
.m-scrim { position: fixed; inset: 0; z-index: 190; background: transparent; }
.m-scrim[hidden] { display: none; }
.mhdr-menu {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 80%; max-width: 340px; height: 100vh; height: 100dvh;
  background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 2px 0 24px rgba(15, 46, 44, .18); padding-bottom: 32px;
}
.mhdr-menu[hidden] { display: none; }
/* menu items: Inter, roomier vertical rhythm */
.mhdr-menu a, .mhdr-menu summary {
  font-family: Inter, Mulish, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  padding: 15px 20px !important;
}
.mhdr-menu .mt-tx { font-size: 15px; font-weight: 600; }
.mhdr-menu .m-kid { padding: 12px 20px 12px 58px !important; font-size: 14px; }

/* ---- "Install the PharmEasy App" banner at the foot of the mobile drawer ---- */
.mhdr-menu .pe-app-banner { margin-top: 6px; padding: 18px 20px 20px; background: #F0F8F4; border-top: 1px solid #E1EFE8; }
.pe-app-banner .pab-title { font: 800 15px/1.3 Inter, Mulish, sans-serif; color: #1C1F22; margin-bottom: 8px; }
.pe-app-banner .pab-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pe-app-banner .pab-stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.pe-app-banner .pab-rtext { color: #5C636D; font: 600 13px/1 Inter, Mulish, sans-serif; }
.pe-app-banner .pab-item { display: flex; align-items: center; gap: 8px; color: #25282B; font: 500 13px/1.4 Inter, Mulish, sans-serif; margin-bottom: 8px; }
.pe-app-banner .pab-item svg { flex: none; }
.mhdr-menu .pe-app-banner a.pab-btn {
  display: block !important; margin-top: 12px; padding: 12px 16px !important;
  background: #008880; color: #fff !important; text-align: center; border-radius: 10px;
  font: 800 14px/1 Inter, Mulish, sans-serif !important; text-decoration: none;
}
.mhdr-menu .pe-app-banner a.pab-btn:hover { background: #00736C; }

/* ---- breadcrumb (design ported from medicines-by-class: nav>ol>li, chevron
   separators, current crumb in teal) ---- */
.glp-crumb { max-width: 1120px; margin: 0 auto; padding: 16px 20px 4px; }
.glp-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.glp-crumb li { display: inline-flex; align-items: center; gap: 2px; font: 600 18px/24px Inter, Mulish, -apple-system, sans-serif; color: #25282B; }
.glp-crumb a { color: #25282B; text-decoration: none; }
.glp-crumb a:hover { color: #008880; }
.glp-crumb svg { flex: none; width: 16px; height: 16px; color: #8E97A3; }
.glp-crumb [aria-current="page"] { color: #008880; }
@media (max-width: 560px) {
  .glp-crumb { padding: 12px 14px 2px; }
  /* one line that scrolls sideways instead of wrapping to a ragged 2-3 lines */
  .glp-crumb ol { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .glp-crumb ol::-webkit-scrollbar { display: none; }
  .glp-crumb li { font-size: 14px; line-height: 20px; gap: 1px; white-space: nowrap; flex: 0 0 auto; }
  .glp-crumb li:last-child { padding-right: 14px; }   /* the current crumb isn't flush against the edge */
  .glp-crumb svg { width: 14px; height: 14px; }
}

/* ---- anchor jumps (reference numbers, TOC) land BELOW the sticky header +
   mobile chip strip, not under them. !important beats the inline
   scroll-margin-top:20px the templates/patch set on ids. ---- */
#dc-root [id] { scroll-margin-top: 116px !important; }
@media (max-width: 560px) { #dc-root [id] { scroll-margin-top: 124px !important; } }

/* price-page picker (compare cost widgets): native <details> styled as a button,
   no default disclosure triangle */
.price-pick > summary { list-style: none; }
.price-pick > summary::-webkit-details-marker { display: none; }
.price-pick > summary::marker { content: ""; }
.price-pick > summary { outline: none; }
