/* ═══════════════════════════════════════════════════════════
   MAIN DRUG MART — "Neighbourhood Apothecary" design system
   Paper + ink + tomato. Editorial serif, Rx-label motifs.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Brand palette: logo red + navy (from the Main Drug Mart flyer) on warm paper */
  --paper:   #F7F1E3;
  --paper-2: #EFE6D0;
  --ink:     #1C2543;   /* deep navy-ink — text, borders, footer */
  --green:   #22335F;   /* dark navy panels (ailments, visit sections) */
  --green-2: #1B2C5E;
  --tomato:  #D3222A;   /* accent = the logo red */
  --red:     #D3222A;
  --navy:    #1B2C5E;
  --amber:   #E0A93E;
  --cream:   #FDFBF4;
  --line:    #C9BC9E;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Archivo", -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", Consolas, monospace;

  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--tomato); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tomato);
  margin-bottom: 0.9rem;
}
.kicker-light { color: var(--amber); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: none; }
.btn-solid { background: var(--tomato); border-color: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost-light { color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { box-shadow: 4px 4px 0 rgba(253,251,244,0.55); }

/* ── Top bar ── */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.topbar-items { white-space: nowrap; overflow-x: auto; text-align: center; }
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar-sep { margin: 0 0.7rem; opacity: 0.4; }

/* ── Language picker ── */
.lang-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.lang-pick select {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(253,251,244,0.35);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}
.lang-pick select:hover { border-color: var(--amber); color: var(--amber); }
.lang-pick select option { color: var(--ink); background: var(--paper); }

/* ── RTL (Arabic, Urdu) ──
   Layout grids/flex flip automatically with dir="rtl"; the bottle label,
   ticker, hero cards and pharmacist badge keep dir="ltr" in the HTML because
   their content is inherently LTR (English label art / decorative props). */

/* ── Masthead ── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wordmark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-roundel { width: 42px; height: 42px; flex-shrink: 0; filter: drop-shadow(1px 1px 0 var(--navy)); }
.wordmark-stack { display: flex; flex-direction: column; }

/* The real store logotype, extracted from the Main Drug Mart flyer */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.wordmark-tag {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--navy);
  margin-top: 0.3rem;
  white-space: nowrap;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--tomato); }
.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
.nav-burger {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 1.2rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ── Hero ── */
.hero { overflow: hidden; border-bottom: 2px solid var(--ink); }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-sub { font-size: 1.13rem; margin: 1.4rem 0 2rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; opacity: 0.75; }
.hero-note a { color: var(--tomato); font-weight: 600; }

/* Rx label cards */
.hero-cards { position: relative; height: 420px; }
.rxcard {
  position: absolute;
  width: 290px;
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 6px;
  padding: 1.1rem 1.25rem 0.9rem;
  box-shadow: 6px 6px 0 rgba(28,37,67,0.16);
}
.rxcard-head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  margin-bottom: 0.7rem;
}
.rxcard-head span { color: var(--tomato); font-weight: 600; }
.rxcard-title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.4rem; }
.rxcard-sig { font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; opacity: 0.8; }
.rxcard-foot {
  margin-top: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
}
.rxcard-1 { top: 0;    left: 4%;  transform: rotate(-4deg); }
.rxcard-2 { top: 34%;  right: 0;  transform: rotate(2.5deg); background: #FBF3DD; }
.rxcard-3 { bottom: 0; left: 0;   transform: rotate(-1.5deg); }
.rxcard { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.rxcard:hover { z-index: 3; }
.rxcard.front {
  z-index: 4;
  transform: rotate(0deg) scale(1.05);
  box-shadow: 10px 10px 0 rgba(28,37,67,0.22);
}

/* ── Ticker ── */
.ticker {
  background: var(--tomato);
  color: var(--cream);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 0.55rem 0;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: ticker 55s linear infinite;
}
.ticker-track span { padding: 0 1.1rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Quick actions ── */
.quick { border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.quick-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.quick-card {
  padding: 2rem 1.6rem 2.2rem;
  text-decoration: none;
  border-left: 2px solid var(--ink);
  transition: background 0.15s;
}
.quick-card:first-child { border-left: none; }
.quick-card:hover { background: var(--cream); }
.quick-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--tomato);
  font-weight: 600;
  letter-spacing: 0.15em;
}
.quick-card h3 { margin: 0.5rem 0 0.4rem; }
.quick-card p { font-size: 0.9rem; opacity: 0.75; }

/* ── Sections ── */
.section { padding: 5rem 1.5rem; }
.section-head { max-width: var(--maxw); margin: 0 auto 3rem; }
.section-sub { margin-top: 1.1rem; max-width: 40rem; font-size: 1.05rem; opacity: 0.85; }
.section-cream { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-dark { background: var(--green); color: var(--cream); }
.section-dark .kicker { color: var(--amber); }

/* ── Services ── */
.svc-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  grid-gap: 2px;
}
.svc { background: var(--cream); padding: 1.9rem 1.7rem 2.1rem; }
.svc h3 { margin-bottom: 0.6rem; }
.svc p { font-size: 0.95rem; opacity: 0.85; }
.svc-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tomato);
  text-decoration: none;
  border-bottom: 2px solid var(--tomato);
}

/* ── Minor ailments ── */
.ailment-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.7rem;
}
.ailment {
  background: transparent;
  border: 1.5px solid rgba(253,251,244,0.35);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, transform 0.13s;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.ailment:hover, .ailment.active {
  background: rgba(253,251,244,0.12);
  border-color: var(--amber);
  transform: translateY(-2px);
}
.ailment.active { border-color: var(--tomato); background: rgba(211,34,42,0.20); }
.ailment .num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
  flex-shrink: 0;
}
.ailment .aka {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.65;
}

.ailment-detail {
  position: relative;
  max-width: var(--maxw);
  margin: 1.6rem auto 0;
  background: var(--cream);
  color: var(--ink);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.25);
}
.ailment-detail h3 { font-size: 1.7rem; }
.detail-aka { font-family: var(--mono); font-size: 0.8rem; color: var(--tomato); margin: 0.2rem 0 0.9rem; }
.detail-actions { display: flex; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }
.detail-actions .btn-ghost-light { color: var(--ink); border-color: var(--ink); }
.detail-close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.6;
}
.detail-close:hover { opacity: 1; }

/* ── Forms ── */
.form-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.form-intro p { margin-top: 1rem; font-size: 1.05rem; }
.privacy-stamp {
  margin-top: 1.6rem;
  border: 2px dashed var(--green);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--navy);
  background: rgba(27,44,94,0.06);
  transform: rotate(-0.6deg);
}
.form {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 8px 8px 0 rgba(28,37,67,0.15);
  display: grid;
  gap: 1.1rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}
.form .opt { font-weight: 400; opacity: 0.6; font-size: 0.82rem; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(228,87,46,0.15);
}
.radio-row { border: none; display: flex; gap: 1.5rem; align-items: center; }
.radio-row legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.radio { font-weight: 500; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.radio input { accent-color: var(--tomato); width: 1.05rem; height: 1.05rem; }
.form-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-actions .btn { font-size: 0.92rem; }

/* ── Pharmacist ── */
.pharmacist { border-top: 2px solid var(--ink); }
.pharm-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.pharm-copy p { margin: 1rem 0 1.6rem; max-width: 36rem; font-size: 1.05rem; }
.pharm-badge {
  position: relative;
  width: 260px; height: 260px;
  margin: 0 auto;
}
.pharm-badge-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  animation: spin 30s linear infinite;
}
.pharm-badge-ring span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
  opacity: 0.55;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pharm-badge-core {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.05;
}

/* ── Visit ── */
.visit-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 1.2rem;
}
.visit-card {
  border: 1.5px solid rgba(253,251,244,0.35);
  border-radius: 10px;
  padding: 1.7rem 1.6rem;
}
.visit-card h3 { color: var(--amber); margin-bottom: 1rem; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(253,251,244,0.25);
  font-size: 1.02rem;
}
.contact-list li span {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}
.contact-list a { color: var(--cream); text-decoration-color: var(--amber); }
.hours-note { margin-bottom: 1.2rem; opacity: 0.9; }
.visit-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 6px;
  filter: sepia(0.25) saturate(0.85);
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 1.5rem 2.5rem;
  overflow: hidden;
}
.footer-logo {
  display: block;
  width: min(92vw, 1000px);
  height: auto;
  margin: 0 auto 2.2rem;
  user-select: none;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.4));
}
.footer-meta { text-align: center; font-size: 0.92rem; }
.footer-meta p { margin: 0.3rem 0; }
.footer-meta a { color: var(--amber); }
.footer-fine { margin-top: 1.2rem !important; font-size: 0.78rem; opacity: 0.55; max-width: 46rem; margin-left: auto; margin-right: auto; text-align: center; }

/* ── Bottle label guide ── */
.bottle-guide {
  max-width: var(--maxw);
  margin: 0 auto 3.5rem;
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 12px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 8px 8px 0 rgba(28,37,67,0.12);
}
.bottle-legend { list-style: none; display: grid; gap: 1rem; margin-top: 1.4rem; }
.bottle-legend li { display: flex; gap: 0.85rem; font-size: 0.97rem; align-items: flex-start; }
.legend-num {
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  margin-top: 0.1rem;
}
.bottle-label { position: relative; }
.bottle-label img {
  width: 100%;
  display: block;
  /* the PNG carries its own bottle-wrap shading + rounded alpha corners */
  filter: drop-shadow(5px 6px 0 rgba(28,37,67,0.12));
}
.hotspot {
  position: absolute;
  border: 3px solid var(--red);
  border-radius: 10px;
  background: rgba(211,34,42,0.07);
  cursor: pointer;
  animation: hotspot-pulse 2.2s ease-out infinite;
}
.hotspot:hover { background: rgba(211,34,42,0.16); }
.hotspot span {
  position: absolute;
  top: -14px; left: -10px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.hotspot-bar span { left: auto; right: -10px; }
.hotspot-rx  { left: 1.6%;  top: 28.8%; width: 22.1%; height: 13.3%; }
.hotspot-bar { left: 85.8%; top: 29.1%; width: 12.1%; height: 56.1%; }
@keyframes hotspot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(211,34,42,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(211,34,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(211,34,42,0); }
}

/* ── Refill section header + three-way chooser ── */
.refill-head { max-width: var(--maxw); margin: 0 auto 2.2rem; }
.refill-head p { margin-top: 1rem; font-size: 1.05rem; max-width: 44rem; }
.fastlanes-row {
  max-width: var(--maxw);
  margin: 0 auto 3.5rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.fastlane.fastlane-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.4rem 1.3rem 1.3rem;
}
.lane-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}
.refill-tip { max-width: var(--maxw); margin: -2.3rem auto 3.5rem; }

/* ── Fast lanes (photo + barcode refill) ── */
.fastlanes { margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.fastlane {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.fastlane:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.fastlane-icon { font-size: 1.7rem; flex-shrink: 0; }
.fastlane-svg { width: 44px; height: 30px; color: var(--red); }
.fastlane-label strong { display: block; font-size: 1rem; margin-bottom: 0.1rem; }
.fastlane-tip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 0.7rem;
}

/* ── Barcode scanner modal ── */
.scan-modal[hidden] { display: none; }
.scan-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18,25,50,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.scan-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.35);
}
.scan-hint { font-size: 0.92rem; opacity: 0.8; margin: 0.5rem 0 1rem; }
#scan-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 8px;
  border: 2px solid var(--ink);
  object-fit: cover;
}
#scan-video[hidden] { display: none; }
.scan-photo-btn {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
}
.scan-status {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0.7rem 0 1rem;
  color: var(--green);
}
.scan-status.err { color: var(--red); }
.scan-got {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green);
}
.scan-rx-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; }
.rx-chip {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
}
.scan-again {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--red);
}
.scan-phone-label { font-weight: 600; font-size: 0.9rem; display: block; }
.scan-phone-label input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  font-size: 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.scan-note { font-size: 0.88rem; opacity: 0.75; margin: 0.8rem 0 1.1rem; }

.scan-manual label { font-weight: 600; font-size: 0.88rem; }
.scan-manual-row { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.scan-manual-row input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--paper);
}
.scan-manual-row .btn { padding: 0.55rem 1.2rem; }

/* ── Hours ── */
.hours-list { margin-bottom: 1rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(253,251,244,0.25);
  font-size: 1.02rem;
}
.hours-row span:first-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
  align-self: center;
}
.hours-row.closed span:last-child { color: var(--amber); font-style: italic; }
.hours-note { font-size: 0.88rem; opacity: 0.75; }

/* ── NEW badge on ailment tiles ── */
.ailment .new-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--tomato);
  color: var(--cream);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.45rem;
  vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-cards { height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card:nth-child(3) { border-left: none; }
  .quick-card { border-top: 2px solid var(--ink); }
  .quick-card:nth-child(-n+2) { border-top: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .fastlanes-row { grid-template-columns: 1fr; }
  .refill-tip { margin-top: -2.6rem; }
  .bottle-guide { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.6rem; }
  .pharm-inner { grid-template-columns: 1fr; text-align: center; }
  .pharm-copy p { margin-left: auto; margin-right: auto; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.9rem;
  }
  .nav.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .wordmark-tag { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .rxcard { width: 240px; }
  .section { padding: 3.5rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .pharm-badge-ring { animation: none; }
  html { scroll-behavior: auto; }
}
