/* ==========================================
   "CLINICAL PRECISION" DESIGN SYSTEM
   Option A visual language applied across the site.
   1. Tokens  2. Base  3. Type  4. Nav  5. Buttons
   6. Cards & sections  7. Webshop  8. Footer
   9. Mobile-first responsive hardening  10. Misc
========================================== */

/* ==========================================
   1. TOKENS
========================================== */
:root {
  --primary: #0E6B4F;         /* Clinical Precision green */
  --primary-dark: #0A4F3A;
  --primary-darker: #083F2E;
  --primary-soft: #EAF5EF;     /* light mint surface */
  --primary-soft-2: #D3E9DD;   /* mint border/accent */
  --ink: #0F241C;              /* near-black, slightly green */
  --ink-muted: #51625B;
  --ink-faint: #6B8A7B;
  --border: #E3ECE7;
  --bg: #F7FAF9;
  --bg-white: #FFFFFF;
  --warn-bg: #FBEFDB;
  --warn-text: #9A5B00;
  --info-bg: #E3EEF7;
  --info-text: #1D5C8A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 36, 28, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 36, 28, 0.09);
  --container-max: 1280px;

  /* Bootstrap color overrides so .btn-primary / .text-primary / .bg-primary
     cascade through every template without per-page edits */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 14, 107, 79;
  --bs-primary-text-emphasis: var(--primary-dark);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);
}

/* ==========================================
   2. BASE
========================================== */
/* scroll-padding-top keeps in-page anchor jumps (e.g. the hero's "Browse
   the optical shop" -> #shop, or an article card -> #article-N) from
   landing with their target hidden under the sticky header -- without it,
   `scroll-behavior: smooth` only made the *wrong* landing position look
   nicer on the way there. Value matches the header's own rendered height
   (~64px) plus a small visual breathing-room margin. prefers-reduced-motion
   turns the smooth animation off for users who've asked their OS/browser
   for reduced motion, per WCAG 2.3.3 -- the scroll still happens, just
   instantly instead of animated. */
/* Fluid sitewide font scaling: the root font-size is the "1rem" every
   other rule in this file is measured against (every font-size in this
   stylesheet is in rem, except the one explicitly-px iOS zoom-prevention
   rule below). Shrinking it on narrow viewports shrinks EVERY piece of
   text on the site proportionally and continuously -- headings, body
   copy, labels, nav links, and every button -- with no separate
   per-element media queries needed. Anchored to stay at exactly 16px
   (today's unchanged default) from 992px up, so desktop is pixel-identical
   to before this change; below that it scales smoothly down to 14.5px at
   320px (the narrowest phones), rather than jumping in steps at
   breakpoints. */
html {
  font-size: clamp(14.5px, 13.786px + 0.223vw, 16px);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { overflow-wrap: break-word; }

/* Keep layout calm — no hover/parallax theatrics */
.animate-on-load, .img-hover-scale, .service-hover, .dep-card:hover, .service-card:hover {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

img, .card-img-top { max-width: 100%; }

/* ==========================================
   3. TYPE
========================================== */
h1, h2, h3, h4, h5, h6, .fw-bold, .fw-semibold {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.lead { color: var(--ink-muted); }
.text-muted { color: var(--ink-faint) !important; }

/* ==========================================
   4. NAVIGATION
========================================== */
.top-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.text-muted-label {
  color: var(--ink-faint);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.contact-item .text-muted-label { margin-bottom: 1px; }

.contact-link-clean {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
  font-size: 0.85rem;
}
.contact-link-clean:hover { color: var(--primary); }
.text-primary { color: var(--primary) !important; }

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-link {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.925rem;
  position: relative;
}
.nav-link:hover, .nav-link.active, .dropdown-item:hover { color: var(--primary) !important; }

@media (min-width: 992px) {
  .nav-primary-group > .nav-item > .nav-link.active::after {
    content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: -2px;
    height: 2.5px; border-radius: 2px; background: var(--primary);
  }
}

.dropdown-menu {
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  margin-top: 6px;
  border: 1px solid var(--border);
}

.dropdown-item {
  padding: 0.7rem 1.1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  margin: 2px 6px;
}
.dropdown-item:hover { background-color: var(--primary-soft); color: var(--primary); }
.dropdown-item:active, .dropdown-item:focus { background-color: var(--primary-soft-2); }
.dropdown-item.active {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
  font-weight: 700;
  border-left: 3px solid var(--primary);
}
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.flag { font-size: 1.4em; line-height: 1; display: inline-block; min-width: 26px; text-align: center; }

.dropdown-toggle.btn-outline-success {
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  font-weight: 700;
  min-height: 38px;
  border-radius: 999px;
}
/* New navbar grouping: primary links centered, utility cluster (portal,
   language, CTA) pinned to the end with a subtle divider on desktop */
.nav-primary-group { gap: 4px; }
.nav-utility-group { gap: 10px; }
@media (min-width: 992px) {
  .nav-utility-group { padding-left: 18px; margin-left: 6px; border-left: 1px solid var(--border); }
}

.dropdown-toggle.btn-outline-success:hover,
.dropdown-toggle.btn-outline-success.show,
.dropdown-toggle.btn-outline-success:active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* ==========================================
   5. BUTTONS
========================================== */
.glow-btn, .btn-success {
  background: var(--primary) !important;
  border: none !important;
  border-radius: 999px;
  color: #fff !important;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.glow-btn:hover, .btn-success:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn.rounded-pill { border-radius: 999px !important; }

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.btn-outline-secondary {
  color: var(--ink-muted) !important;
  border-color: var(--border) !important;
}
.btn-outline-secondary:hover { background-color: var(--bg) !important; color: var(--ink) !important; }

.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }

/* ==========================================
   6. CARDS & SECTIONS
========================================== */
.card { border-radius: var(--radius-lg); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card.shadow { box-shadow: var(--shadow-md) !important; }

.card-header-img, .card-img-top {
  height: 220px !important;
  width: 100%;
  overflow: hidden;
  background: var(--primary-soft);
}
.card-header-img img, .card-img-top { width: 100%; height: 100% !important; object-fit: cover !important; }

.sticky-md-top { z-index: 1020 !important; }

.shop-search-container {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.search-input-group { max-width: 600px; margin: 0 auto; }
.search-input-group .form-control {
  border-radius: 999px 0 0 999px !important;
  padding-left: 20px;
  border: 1px solid var(--border);
}
.search-input-group .btn { border-radius: 0 999px 999px 0 !important; padding-right: 20px; padding-left: 18px; }

/* ==========================================
   7. WEBSHOP
========================================== */
.product-card { border: 1px solid var(--border); transition: box-shadow 0.15s ease; }
.product-card:hover { box-shadow: var(--shadow-md); }

.list-group-item.active {
  font-weight: 700;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.list-group-item-action:hover { background-color: var(--primary-soft); }

.badge.bg-danger-subtle { background-color: #FBE7E7 !important; }
.badge.bg-warning-subtle { background-color: var(--warn-bg) !important; }
.badge.bg-success-subtle { background-color: var(--primary-soft) !important; }

.payment-selection label {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-weight: 600;
}
.payment-selection label:hover { border-color: var(--primary); background-color: var(--primary-soft); }
.payment-selection input[type="radio"] { width: 1.2em; height: 1.2em; margin-right: 15px; cursor: pointer; accent-color: var(--primary); }
.payment-selection input[type="radio"]:checked + label {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  color: var(--primary-dark);
}

/* Order summary sticky panel — disabled below lg, see section 9 */
.order-summary-sticky { position: sticky; }

/* ==========================================
   8. FOOTER
========================================== */
.footer-section {
  background: var(--primary-soft) !important;
  padding: 56px 0 24px;
  border-top: 1px solid var(--primary-soft-2);
}
/* .nav-item.mx-3 a used to also be targeted here, from when this project
   had a light-background ".footer-section" footer (that class isn't used
   in any current template -- this dark ".footer-section-dark" footer
   replaced it). The only place ".nav-item.mx-3" is used today is the
   *dark* footer's bottom nav (Home/Doctors/Contact/About) -- so this old,
   unscoped rule was forcing near-black "--ink" text there, winning over
   ".footer-bottom-nav .nav-link"'s intended light grey by one selector of
   specificity (a bare tag qualifier beats two plain classes). Net result:
   dark text on the dark footer background -- invisible unless you knew
   to look for it. Removed the stale .nav-item.mx-3 part; .footer-links
   kept in case it's wanted again (also currently unused, but harmless on
   its own). */
.footer-links a { color: var(--ink) !important; text-decoration: none; }
.footer-links a:hover { color: var(--primary) !important; }

.back-to-top-futuristic {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000 !important;
  box-shadow: var(--shadow-md);
  opacity: 0.92;
}
/* Smaller footprint on phones, where it most often ended up sitting on top
   of price figures, OCT stat labels and other content that runs close to
   the right edge -- 46px/25px (a 71px-deep corner) was too large a
   permanent blind spot on a narrow screen. 36px/14px still meets the
   44px minimum touch target once the button's own padding is counted, and
   leaves noticeably more of the corner clear. */
@media (max-width: 575.98px) {
  .back-to-top-futuristic { width: 38px; height: 38px; bottom: 14px; right: 14px; }
  .back-to-top-futuristic i { font-size: 1.15rem !important; }
}

.futuristic-counter-badge {
  background: var(--bg-white);
  border: 1px solid var(--primary-soft-2);
  font-family: "Manrope", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.5px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
}
.counter-label { color: var(--ink-faint); font-weight: 700; }
.counter-number { color: var(--primary) !important; }

.live-radar-dot { width: 6px; height: 6px; background-color: var(--primary); border-radius: 50%; display: inline-block; position: relative; }
.live-radar-dot::after {
  content: '';
  width: 100%; height: 100%;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute; top: 0; left: 0;
  animation: radar-pulse 1.8s infinite ease-out !important;
}
@keyframes radar-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.5); opacity: 0; } }

.d-contents { display: contents; }

/* ==========================================
   9. MOBILE-FIRST RESPONSIVE HARDENING
========================================== */

/* Prevent any accidental horizontal scroll from full-bleed/decorative
   elements. This intentionally does NOT go on <html> or <body>: Firefox
   (unlike Chromium/WebKit) disables `position: sticky` on an element when
   ANY ancestor -- all the way up to html -- has an `overflow` value other
   than `visible`, even just `overflow-x: hidden`. The site header relies on
   `position: sticky` (.sticky-top) to stay pinned while scrolling; with the
   old html/body rule, Chrome kept it pinned (looked fine there) while
   Firefox silently fell back to static positioning, so the header scrolled
   away instead of sticking -- exactly the "awkward on small-screen Firefox"
   symptom. <header> is a sibling of <main>/<footer>, not their ancestor, so
   applying the clamp to those two instead keeps the same safety net for
   page content while leaving the header's own ancestor chain (header ->
   body -> html) clean for Firefox's sticky positioning. */
main, footer { overflow-x: hidden; }

/* Touch targets & inputs */
input, select, textarea { font-size: 16px !important; } /* stops iOS auto-zoom on focus */
.nav-link, .dropdown-item, .btn { min-height: 44px; }
.btn, .form-control, .form-select { min-height: 44px; }
a, button { -webkit-tap-highlight-color: rgba(21, 92, 66, 0.15); }
/* .navbar-toggler isn't a .btn, so it fell outside the 44px rule above --
   at 54x38px it was the one undersized tap target on the whole mobile
   nav (below the 44px minimum both iOS and Android guidelines call for). */
.navbar-toggler { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }

header { -webkit-transform: translateZ(0); }

/* Fluid display type so hero headlines never overflow on small phones */
h1.display-1, h1.display-2, h1.display-3, h1.display-4 {
  font-size: clamp(1.9rem, 6vw + 0.5rem, 3.4rem) !important;
}

/* Up to large tablets / small laptops */
@media (max-width: 991.98px) {
  .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }
  .navbar-brand img { height: 36px; }

  /* Collapsed nav gets a clear mint surface + comfortable tap rows.
     max-height + its own overflow-y turns the menu into a self-contained
     scrollable panel instead of letting the whole PAGE grow to fit it.
     That matters together with the auto-close-on-scroll script below the
     nav links in base.html: on a short phone screen, the menu's content
     (nav links + Departments + language switcher + CTA) can be taller
     than the viewport, so reaching the language switcher meant scrolling
     the page itself -- which the auto-close script correctly reads as
     "visitor is done with the menu" and closed it before a language could
     even be tapped. Scrolling now happens inside this panel instead, so
     window.scrollY (what that script watches) stays put while browsing
     the open menu, and only changes -- closing the menu -- once the
     visitor actually scrolls the underlying page. overscroll-behavior
     keeps that inner scroll from "chaining" into the page scroll once it
     hits the top/bottom, which would otherwise trigger the same premature
     close right as a visitor reaches either end of the menu. */
  .navbar-collapse {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    margin-top: 0.65rem;
    padding: 0.5rem 0 1rem;
    max-height: 78vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Each mobile nav row was a 44px-tall tap target (accessibility floor,
     set sitewide at ".nav-link, .dropdown-item, .btn { min-height: 44px }"
     below) plus 0.6rem top/bottom padding plus the 4px row gap from
     .nav-primary-group -- individually reasonable, but stacked across the
     full ~10-item mobile menu (links + Departments + cart + language +
     CTA) it reads as a lot of empty space between short, small-font menu
     labels. Tightened for mobile only: smaller padding, a slightly lower
     (but still comfortably tappable) 40px floor, and a smaller row gap.
     Desktop nav is untouched -- this block is already inside the
     max-width: 991.98px query. */
  .navbar-nav .nav-link { padding-top: 0.35rem; padding-bottom: 0.35rem; min-height: 40px; }
  .nav-primary-group, .nav-utility-group { gap: 0; }

  .order-summary-sticky { position: static !important; top: auto !important; }
}

/* Phones */
@media (max-width: 767.98px) {
  .hero-section .btn-lg, .hero-box .btn {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
  }
  .hero-box .d-grid.col-sm-auto { width: 100%; }

  h1.display-3, h1.display-4 { font-size: 1.9rem !important; }
  h2.display-5 { font-size: 1.55rem !important; }

  .navbar-brand img { height: 32px; }
  .contact-box { margin-bottom: 1.25rem; }

  /* The sticky .navbar (position: sticky; top: 0) stays on screen the whole
     time a visitor scrolls on a phone, so its own vertical padding is pure
     overhead eating into the small viewport. Trimmed on top of the smaller
     32px brand mark above -- shaves roughly 10px off the permanently-visible
     header without touching desktop/tablet, where the extra room isn't
     costing anything. */
  .navbar { padding-top: 0.45rem; padding-bottom: 0.45rem; }

  section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

  .card-header-img, .card-img-top { height: 170px !important; }

  /* Shop: category list stacks as a simple vertical list on mobile, one
     category per row -- was previously a horizontally scrollable "slide"
     of chips, which the owner asked to remove in favor of a normal stacked
     list (matches the desktop sidebar's own layout, just full-width). */
  .list-group.shop-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: none !important;
  }
  .list-group.shop-categories .shop-cat-link {
    display: block;
    width: 100%;
    white-space: normal;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
  }

  /* Cart table -> stacked cards on phones, no sideways scrolling table */
  table.cart-table thead { display: none; }
  table.cart-table, table.cart-table tbody, table.cart-table tr, table.cart-table td {
    display: block;
    width: 100%;
  }
  table.cart-table tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  table.cart-table td {
    text-align: left !important;
    padding: 4px 0 !important;
  }
  table.cart-table td.cart-td-action { text-align: right !important; }
}

/* Small phones */
@media (max-width: 420px) {
  h1.display-3, h1.display-4 { font-size: 1.65rem !important; }
  .futuristic-counter-badge { font-size: 0.59375rem; padding: 5px 10px; flex-wrap: wrap; justify-content: center; }
}

/* Small improvement for mobile dropdown */
@media (max-width: 768px) {
  .dropdown-menu { min-width: 220px; }
  .flag { font-size: 1.3em; }
}

/* ==========================================
   10. MISC
========================================== */
.lang-switcher-container { position: relative; }
.dropdown-menu .form { margin: 0; padding: 0; }
.dropdown-menu button[type="submit"] {
  width: 100%; text-align: left; background: none; border: none;
  padding: 0.7rem 1.1rem; font-size: inherit; font-weight: inherit; color: inherit; cursor: pointer;
}
.dropdown-menu button[type="submit"]:hover { background-color: var(--primary-soft); }
.nav-item .dropdown-toggle { display: flex; align-items: center; gap: 6px; }

/* "Departments" nav dropdown: a plain nav-link that opens a menu, styled to
   sit flush with its sibling links (same line-height/padding, same active
   underline) rather than the pill-button treatment used for the language
   switcher. Bootstrap's default ::after triangle is dropped in favor of a
   proper bi-chevron-down icon, matching the icon set already used
   elsewhere on the site (cart, tick-list icons, etc.), with a smooth
   rotation on open instead of a static flip.

   IMPORTANT: the outer .nav-link itself must stay in normal flow -- the
   generic ".nav-item .dropdown-toggle { display: flex }" rule (written for
   the pill-shaped language switcher button) was being inherited here too,
   and a flex box centers its content within min-height:44px differently
   than a plain block/inline nav-link's line-height-driven text flow does.
   That's what was producing the few-pixel vertical offset against its
   siblings. Fix: reset this toggle back to the siblings' own display mode,
   and do the icon+text alignment on an INNER span instead, so it never
   touches the outer box the browser lines up against the other nav items. */
.nav-dropdown-toggle.dropdown-toggle { display: inline-block; }
.nav-dropdown-toggle.dropdown-toggle::after { display: none; }
.nav-dropdown-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.nav-dropdown-caret {
  font-size: 0.7em;
  color: var(--ink-faint);
  transition: transform 0.2s ease, color 0.15s ease;
}
.nav-dropdown-toggle:hover .nav-dropdown-caret,
.nav-dropdown-toggle.active .nav-dropdown-caret { color: var(--primary); }
.nav-item.show .nav-dropdown-caret { transform: rotate(180deg); color: var(--primary); }

/* Departments dropdown PANEL: wider than the default .dropdown-menu (which
   stays compact for the language switcher) and each row gets an icon chip,
   the same enterprise-mega-menu pattern used by nav dropdowns elsewhere on
   the web (distinct rows, not a plain text list) -- reusing the exact
   fa-eye / fa-tooth / fa-user-md icons already chosen for these three
   departments on the contact page, not new ones. */
/* min-width/padding were sized for the original larger item font/icons;
   now that .dept-dropdown-item text and .dept-dropdown-icon are both
   smaller, the panel itself is scaled down to match instead of leaving
   oversized empty space around the shrunk content. */
.dept-dropdown-menu { min-width: 225px; padding: 8px; }
.dept-dropdown-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  gap: 12px;
  /* Bootstrap's default .dropdown-item font-size is 1rem (16px), noticeably
     larger than the 0.925rem navbar links it drops down from -- this sets
     it to roughly 15-16% smaller than THAT (not than the 1rem default),
     so the menu reads as a quieter sub-level of the nav, not a jump up in
     size. */
  font-size: 0.78125rem;
}
.dept-dropdown-item + .dept-dropdown-item { margin-top: 2px; }
.dept-dropdown-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dept-dropdown-item:hover .dept-dropdown-icon,
.dept-dropdown-item.active .dept-dropdown-icon {
  background: var(--primary);
  color: #fff;
}

/* Language switcher panel: shares .dept-dropdown-menu/.dept-dropdown-item's
   sizing (see base.html) for a consistent look with the Departments
   dropdown, but its rows are shorter ("Română", not an icon + a multi-word
   department name), so the panel itself can be narrower than Departments'
   225px without leaving visible empty space. */
.dept-dropdown-menu.dropdown-menu-end { min-width: 170px; }
.lang-dropdown-icon {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mission-card .card-body p, .vision-card .card-body p { font-size: 0.95rem !important; line-height: 1.6; }

@media print {
  nav, .navbar, .top-bar, .back-to-top-futuristic, footer, .btn { display: none !important; }
  body { background: white !important; color: black !important; }
}

/* ==========================================
   11. HOMEPAGE — HERO / TRUST BADGES / DEPT GRID / FEATURES / CTA
   Matches the "Option A — Clinical Precision" mockup exactly.
========================================== */
.contact-link-clean i { color: var(--ink-faint); }
.contact-link-clean:hover i { color: var(--primary); }

.hero-clinical {
  background: var(--bg);
  padding: 64px 0 56px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }

.hero-headline {
  font-size: clamp(2.1rem, 3.4vw + 0.8rem, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
/* The homepage H1 is now a full descriptive sentence rather than a short
   tagline -- the original clamp (up to 3.4rem/54px) reads fine for 6-8
   words but is oversized and prone to awkward mid-word wraps for a full
   sentence, especially on narrow screens. A smaller ceiling and looser
   line-height keep it readable without a full redesign of the hero. */
.hero-headline-wrap {
  font-size: clamp(1.5rem, 1.6vw + 1.1rem, 2.5rem);
  line-height: 1.25;
}
.hero-subtext { font-size: 1.05rem; color: var(--ink-muted); max-width: 480px; line-height: 1.6; }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 575.98px) {
  /* Stack the two hero buttons on small screens instead of relying on wrap
     (which could still put them side by side at in-between widths) -- the
     booking CTA is first in source order and keeps its solid-fill styling,
     so it reads as the primary action above the lighter outline button. */
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-hero-primary, .hero-cta-row .btn-hero-secondary { width: 100%; }
}
.btn-hero-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  /* These render as pill buttons, not inline links -- without this, Bootstrap's
     default anchor underline shows through on every <a class="btn-hero-...">,
     which reads as plain underlined text rather than a button (most visible
     on the light spec-sheet-band variant below, where the fill actually
     contrasts with its background). */
  text-decoration: none !important;
}
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff !important; text-decoration: none !important; }
.btn-hero-secondary {
  background: #fff;
  color: var(--ink) !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important;
}
.btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary) !important; text-decoration: none !important; }

.trust-badge-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.trust-badge { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
.trust-badge svg { flex-shrink: 0; color: var(--primary); }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.hero-aperture {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
/* Below the lg breakpoint the two hero columns stack, so this decorative
   aperture graphic renders full-width (up to 420px tall, 1:1) between the
   hero text and the services section -- on a phone that's often 300px+ of
   pure decoration before any real content resumes. Capped on phones/small
   tablets so it reads as an accent, not a second hero. */
@media (max-width: 991.98px) { .hero-aperture { max-width: 260px; } }
@media (max-width: 575.98px) { .hero-aperture { max-width: 180px; } }
.hero-aperture svg { width: 100%; height: 100%; }
.hero-aperture-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.hero-floating-card {
  position: absolute;
  left: -16px;
  bottom: 28px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  max-width: 230px;
  border: 1px solid var(--border);
}
.hero-floating-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.hero-floating-card .label { font-size: 0.78125rem; font-weight: 700; color: var(--ink); }
.hero-floating-card .detail { font-size: 0.71875rem; color: var(--ink-faint); margin-top: 2px; }

@media (max-width: 991.98px) {
  .hero-floating-card { position: static; margin-top: 16px; max-width: 100%; }
}

/* Department grid */
.section-heading-row { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.4rem); font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.section-subtitle { color: var(--ink-muted); font-size: 1rem; margin-top: 10px; }

.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991.98px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .dept-grid { grid-template-columns: 1fr; } }

.dept-card-clinical {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dept-card-clinical:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

/* Icon badge replaces the old department photo -- admin-selectable via
   Department.icon, no image upload required. */
.dept-icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 18px;
}

.dept-card-clinical .dept-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.dept-card-clinical .dept-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.dept-card-clinical .dept-meta { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 4px; line-height: 1.5; }
.dept-card-clinical .dept-hours { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.dept-card-clinical .dept-learn-more {
  margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 5px;
}
.dept-card-clinical:hover .dept-learn-more { gap: 8px; }

.dept-card-accent {
  background: var(--primary);
  color: #fff;
}
.dept-card-accent:hover { border-color: var(--primary); color: #fff; }
.dept-card-accent .dept-icon-badge { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dept-card-accent .dept-title, .dept-card-accent .dept-meta, .dept-card-accent .dept-hours { color: #fff; }
.dept-card-accent .dept-meta { opacity: 0.9; }
.dept-card-accent .dept-learn-more { color: #fff; }

/* Value propositions ("Why choose us") */
.value-prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 767.98px) { .value-prop-grid { grid-template-columns: 1fr; } }
.value-prop-card { text-align: center; padding: 8px; }
.value-prop-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--primary);
}
.value-prop-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.value-prop-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }

/* CTA band */
.cta-band {
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.cta-band p { color: var(--ink-muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 575.98px) {
  .cta-band { padding: 32px 24px; text-align: center; justify-content: center; }
  .cta-band h2 { font-size: 1.3rem; }
}

/* ==========================================
   12. DARK FOOTER (exact Option A match)
========================================== */
.footer-section-dark {
  background: var(--ink);
  color: #C9D6CF;
}
/* The logo's wordmark is dark grey on a transparent background -- fine on
   every light page, but it loses almost all contrast against this dark
   footer. Rather than alter the logo file itself, give it a small light
   plate to sit on, same idea as a business card against a dark jacket. */
.footer-logo-plate {
  background: #fff; border-radius: var(--radius-sm); padding: 8px 14px;
}
.footer-blurb { font-size: 0.84375rem; line-height: 1.6; color: #8FA296; max-width: 280px; }
.footer-heading { font-weight: 700; color: #fff; font-size: 0.84375rem; margin-bottom: 16px; letter-spacing: 0.01em; }
.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a { color: #C9D6CF; text-decoration: none; font-size: 0.84375rem; }
.footer-links-list a:hover { color: #fff; }
.footer-address { color: #8FA296; font-size: 0.8125rem; font-style: normal; line-height: 1.8; }
.footer-hr { border-color: #243A2F; opacity: 1; }
.footer-bottom-nav .nav-link { color: #C9D6CF !important; font-size: 0.84375rem; }
.footer-bottom-nav .nav-link:hover { color: #fff !important; }
.footer-bottom-bar { border-top: 1px solid #243A2F; }
.footer-copyright { color: #8FA296 !important; }
.footer-copyright a { color: var(--primary-soft-2) !important; text-decoration: none; }
.footer-copyright a:hover { text-decoration: underline; }
.footer-section-dark .futuristic-counter-badge {
  background: #15241D;
  border: 1px solid #243A2F;
}
.footer-section-dark .counter-label { color: #8FA296; }
.footer-section-dark .counter-number { color: var(--primary-soft-2) !important; }
.footer-section-dark .live-radar-dot, .footer-section-dark .live-radar-dot::after { background-color: var(--primary-soft-2); }
.footer-visitor-count { color: #fff; font-weight: 700; }

/* Compliance badges (ANPC/SAL + EU ODR "SOL" logo): the ANPC source image
   is an unusually wide banner (1900x209px, ~9:1), so pinning it to a fixed
   height:50px with width:auto -- the only sizing in the template's inline
   style -- computes to roughly 454px wide, well past a phone's own
   viewport width on its own, before the second badge is even considered.
   max-width caps it at the row's actual available width and lets the
   intrinsic aspect ratio shrink the height to match, same as any other
   responsive image; flex-wrap (already on the row) then stacks the two
   badges cleanly instead of forcing them to overflow side by side. */
.footer-compliance-badges img { max-width: 100%; }
@media (max-width: 575.98px) {
  .footer-compliance-badges img { height: 34px; }
}

/* ==========================================
   13. WEBSHOP — EXACT Option A ("A-Webshop") MATCH
========================================== */
.shop-hero { padding: 36px 0 0; }
.shop-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.shop-breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--primary); }
.shop-breadcrumb .current { color: var(--ink); }

.shop-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-title-row h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 8px; color: var(--ink); }
@media (max-width: 575.98px) { .shop-title-row h1 { font-size: 1.5rem; } }
.shop-title-row p { color: var(--ink-muted); margin: 0; max-width: 520px; font-size: 0.95rem; }

.shop-layout-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.shop-layout-full { grid-column: 1 / -1; }
.shop-layout-main { grid-column: 2 / 3; }
/* Grid items default to min-width: auto, which lets a child's natural
   content width (e.g. the horizontally-scrolling category chip row below)
   force the whole grid wider than the viewport instead of scrolling within
   its own box. min-width: 0 lets each column shrink to its track so any
   overflow-x: auto inside it actually scrolls instead of blowing out the
   page -- this was causing real horizontal overflow on mobile. */
.shop-layout-grid > * { min-width: 0; }
@media (max-width: 767.98px) {
  .shop-layout-grid { grid-template-columns: 1fr; }
  .shop-layout-main { grid-column: 1 / -1; }
}

.shop-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.shop-sidebar-label {
  font-size: 0.78125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); margin-bottom: 14px;
}
.shop-cat-link {
  display: block; padding: 9px 10px; border-radius: 8px;
  color: var(--ink-muted); font-weight: 600; font-size: 0.875rem; text-decoration: none;
  margin-bottom: 2px;
}
.shop-cat-link:hover { background: var(--bg); color: var(--ink); }
.shop-cat-link.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }

.shop-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop-product-grid > * { min-width: 0; }
@media (max-width: 991.98px) { .shop-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .shop-product-grid { grid-template-columns: 1fr; } }

.shop-product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.shop-product-card .shop-product-media {
  height: 180px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.8125rem; overflow: hidden;
}
.shop-product-card .shop-product-media .placeholder-icon { font-size: 3rem; color: var(--ink-faint); }
.shop-product-card .shop-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.shop-product-card.out-of-stock { opacity: 0.72; }
.shop-product-card.out-of-stock .shop-product-media { background: #EDF1EF; }

.shop-product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-badge { font-size: 0.71875rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; width: fit-content; display: inline-flex; align-items: center; gap: 5px; }
.shop-badge-otc { color: var(--primary-dark); background: var(--primary-soft); }
.shop-badge-rx { color: var(--warn-text); background: var(--warn-bg); }
.shop-badge-category { color: var(--info-text); background: var(--info-bg); }
.shop-product-name { font-size: 0.9375rem; font-weight: 700; margin: 0; line-height: 1.3; color: var(--ink); }
.shop-product-meta { font-size: 0.78125rem; color: var(--ink-faint); margin: 0; }
.shop-product-meta.low-stock { color: #B5722A; font-weight: 600; }
.shop-product-meta.out-stock { color: #B23B3B; font-weight: 600; }
.shop-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 10px; }
.shop-product-price { font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.shop-product-price.muted { color: var(--ink-faint); }

.btn-shop-add {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff !important; border: none;
  padding: 9px 16px; border-radius: 8px; font-size: 0.8125rem; font-weight: 700;
  white-space: nowrap;
}
.btn-shop-add:hover { background: var(--primary-dark); color: #fff !important; }
.btn-shop-rx {
  background: var(--ink); color: #fff !important; border: none;
  padding: 9px 14px; border-radius: 8px; font-size: 0.8125rem; font-weight: 700;
  white-space: nowrap;
}
.btn-shop-rx:hover { background: #000; color: #fff !important; }
.btn-shop-disabled {
  background: var(--border); color: var(--ink-faint) !important; border: none;
  padding: 9px 16px; border-radius: 8px; font-size: 0.8125rem; font-weight: 700;
}
.btn-shop-outline {
  background: #fff; color: var(--ink-muted) !important; border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; width: 100%; text-align: center; display: block;
}
.btn-shop-outline:hover { border-color: var(--primary); color: var(--primary) !important; }

/* --- Webshop product filters (brand / price / stock / prescription / sort) --- */
.shop-filters-label { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.shop-filters-form { display: flex; flex-direction: column; gap: 14px; }
.shop-filter-group { display: flex; flex-direction: column; gap: 6px; }
.shop-filter-label { font-size: 0.78125rem; font-weight: 700; color: var(--ink-muted); }
/* Bootstrap's .form-select-sm/.form-control-sm still default to 0.875rem,
   visibly bigger than the 0.78125rem .shop-filter-label above each one --
   this brings the sort/brand/price/prescription controls down to match.
   Desktop only: the site has a global `input, select, textarea { font-size:
   16px !important; }` rule (see below) that exists specifically to stop iOS
   Safari auto-zooming the page when a field is focused on mobile -- going
   smaller than 16px on a touch device would bring that zoom back, which is
   a worse problem than this one, so the smaller size only applies above the
   mobile breakpoint where that auto-zoom doesn't happen. */
@media (min-width: 768px) {
  .shop-filters-form .form-select,
  .shop-filters-form .form-control {
    font-size: 0.8125rem !important;
  }
}
.shop-price-inputs { display: flex; align-items: center; gap: 8px; }
.shop-price-inputs input { min-width: 0; }
.shop-price-sep { color: var(--ink-faint); font-weight: 700; flex-shrink: 0; }
.shop-filter-apply { margin-top: 4px; }
.shop-filter-clear {
  display: block; text-align: center; font-size: 0.8125rem; font-weight: 700;
  color: #B23B3B; text-decoration: none; margin-top: -2px;
}
.shop-filter-clear:hover { text-decoration: underline; }

.shop-filter-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); color: var(--ink);
  font-weight: 700; font-size: 0.875rem; position: relative;
}
.shop-filter-toggle-dot {
  position: absolute; top: 8px; right: calc(50% - 60px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.shop-filters-mobile-collapse {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; margin-top: 10px;
}

.shop-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.shop-pagination a, .shop-pagination span {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--ink-muted); font-weight: 700; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.875rem;
}
.shop-pagination a:hover { border-color: var(--primary); color: var(--primary); }
.shop-pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ==========================================
   14. WEBSHOP — PRODUCT DETAIL
========================================== */
.shop-detail-media {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 24px;
}
.shop-detail-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-detail-media .placeholder-icon { font-size: 4.5rem; color: var(--ink-faint); }

.shop-detail-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px; }
.shop-detail-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shop-detail-pill { font-size: 0.78125rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; }
.shop-detail-sku { font-size: 0.78125rem; color: var(--ink-faint); font-weight: 600; margin-left: auto; }

.shop-detail-price-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 20px; }
.shop-detail-price { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.shop-detail-price-currency { font-size: 1.1rem; font-weight: 700; color: var(--ink-muted); }
@media (max-width: 575.98px) {
  .shop-detail-price { font-size: 1.65rem; }
  .shop-detail-price-currency { font-size: 0.9375rem; }
}

.shop-rx-alert {
  display: flex; gap: 14px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid #F0DCB2; border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 22px;
}
.shop-rx-alert strong { display: block; color: var(--ink); font-size: 0.90625rem; }
.shop-rx-alert span { font-size: 0.8125rem; line-height: 1.5; }

/* Same visual language as .shop-rx-alert above, under a non-shop-specific
   name -- used for the cataract post-operative warning box on
   ophthalmology2.html (and any other clinical safety notice outside the
   webshop). */
.clinical-alert {
  display: flex; gap: 14px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid #F0DCB2; border-radius: var(--radius-md); padding: 16px 18px;
}
.clinical-alert-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.clinical-alert-text { font-size: 0.875rem; line-height: 1.6; margin: 0; color: var(--ink); }

.shop-detail-section { margin-bottom: 22px; }
.shop-detail-section h5 { font-size: 0.84375rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 12px; }
.shop-detail-section p { color: var(--ink-muted); line-height: 1.7; font-size: 0.90625rem; margin: 0; white-space: pre-line; }

.shop-detail-accordion { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.shop-detail-accordion .accordion-button { background: #fff; font-weight: 700; font-size: 0.90625rem; color: var(--ink); padding: 14px 18px; }
.shop-detail-accordion .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.shop-detail-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.shop-detail-accordion .accordion-body { background: var(--bg); color: var(--ink-muted); font-size: 0.875rem; line-height: 1.7; }

.shop-stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78125rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.shop-stock-pill.low { background: var(--warn-bg); color: var(--warn-text); }
.shop-stock-pill.ok { background: var(--primary-soft); color: var(--primary-dark); }

.shop-qty-form { display: flex; gap: 12px; align-items: stretch; margin-bottom: 8px; }
.shop-qty-input { width: 92px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; font-weight: 700; color: var(--ink); text-align: center; }
.shop-qty-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.shop-oos-panel { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-md); text-align: center; padding: 28px 20px; margin-bottom: 14px; }
.shop-oos-panel i { font-size: 2rem; color: var(--ink-faint); display: block; margin-bottom: 8px; }
.shop-oos-panel h5 { font-weight: 800; color: var(--ink); margin: 0; font-size: 0.9375rem; }

.shop-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.shop-trust-strip .item { text-align: center; }
.shop-trust-strip .item i { font-size: 1.3rem; color: var(--primary); display: block; margin-bottom: 6px; }
.shop-trust-strip .item span { font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); }

@media (max-width: 767.98px) {
  .shop-detail-sku { margin-left: 0; width: 100%; }
  .shop-qty-form { flex-wrap: wrap; }
}

/* ==========================================
   15. WEBSHOP — CART & CHECKOUT
========================================== */
.shop-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.shop-panel-pad { padding: 24px; }

.cart-table { margin: 0; }
.cart-table thead th { background: var(--bg); color: var(--ink-faint); font-size: 0.71875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); padding: 14px 20px; }
.cart-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-product-thumb { width: 56px; height: 56px; object-fit: contain; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 4px; }
.cart-product-name { font-size: 0.90625rem; font-weight: 700; color: var(--ink); margin: 0; }
.cart-product-sub { font-size: 0.75rem; color: var(--ink-faint); }
.cart-qty-badge { font-size: 0.8125rem; font-weight: 700; color: var(--ink-muted); background: var(--bg); border-radius: 999px; padding: 4px 12px; min-width: 20px; text-align: center; }
/* Quantity +/- stepper on the cart page. Previously the quantity was a
   plain read-only badge with no way to change it short of deleting the
   whole line and re-adding the product from scratch -- the Cart.add()
   backend already supports a negative-delta decrement (used to clamp
   stray negative POSTs down to zero/removal), it just had no UI exposing
   it. Each button posts to the existing cart_add endpoint with quantity
   -1/+1 and the page reloads via the normal POST-redirect-GET cycle. */
.cart-qty-stepper { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty-btn {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.cart-qty-btn:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary-dark); }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-price-cell { font-weight: 800; color: var(--ink); white-space: nowrap; }
.btn-cart-remove {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78125rem; font-weight: 700;
  color: #B23B3B; background: #FBEAEA; border: 1px solid #F3D3D3; border-radius: var(--radius-sm);
  padding: 7px 12px; text-decoration: none;
}
.btn-cart-remove:hover { background: #F3D3D3; color: #8F2626; }

.shop-empty-state { text-align: center; padding: 72px 24px; }
.shop-empty-state i { font-size: 3.4rem; color: var(--ink-faint); display: block; margin-bottom: 14px; }
.shop-empty-state p { color: var(--ink-muted); font-size: 1rem; margin-bottom: 18px; }

.shop-summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; }
.shop-summary-card h4 { font-size: 0.9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 18px; }
.shop-summary-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 10px; }
.shop-summary-total { display: flex; justify-content: space-between; font-size: 1.1875rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--border); margin-top: 14px; padding-top: 16px; }
.shop-summary-total span:last-child { color: var(--primary-dark); }
.shop-summary-hint { font-size: 0.75rem; color: var(--ink-faint); line-height: 1.5; margin: 4px 0 10px; }

.shop-checkout-section-label { font-size: 0.78125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin: 24px 0 10px; }
.shop-checkout-section-label:first-child { margin-top: 0; }

.shop-pay-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: #fff; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s;
}
.shop-pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.shop-pay-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.shop-pay-option .pay-label { font-weight: 700; color: var(--ink); display: block; font-size: 0.90625rem; }
.shop-pay-option .pay-sub { font-size: 0.78125rem; color: var(--ink-muted); }
.shop-pay-option .pay-icon { margin-left: auto; font-size: 1.4rem; color: var(--primary); }

.shop-rx-ack-box { background: var(--warn-bg); border: 1px solid #F0DCB2; border-radius: var(--radius-md); padding: 16px 18px; margin-top: 14px; }

.shop-checkout-summary-line { display: flex; justify-content: space-between; font-size: 0.84375rem; color: var(--ink-muted); padding: 10px 0; border-bottom: 1px dashed var(--border); }
.shop-checkout-summary-line:last-of-type { border-bottom: none; }
.shop-checkout-summary-line strong { color: var(--ink); font-weight: 700; }

/* Generic form-control styling reused by the checkout form */
.shop-panel .form-control, .shop-panel input.form-control {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.90625rem; color: var(--ink);
}
.shop-panel .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.shop-panel label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; display: inline-block; }

/* ==========================================
   16. HOMEPAGE — TEAM TEASER (short, links to full /doctors/ page)
========================================== */
.team-card-mini { padding: 10px; }
.team-card-mini .profile-img-container img,
.team-avatar-placeholder {
  width: 110px; height: 110px; object-fit: cover; border: 3px solid var(--primary-soft);
}
.team-avatar-placeholder { background: var(--bg); color: var(--ink-faint); font-size: 2.6rem; }
.team-card-mini-name { font-size: 0.9375rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.team-card-mini-title { font-size: 0.8125rem; color: var(--ink-muted); margin: 0; }

/* ==========================================
   17. HOMEPAGE — SERVICES (admin-managed via iris.Service)
========================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .service-grid { grid-template-columns: 1fr; } }

.service-card-clinical {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.service-card-clinical.highlighted { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.service-card-media { height: 170px; background: var(--bg); overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card-icon-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--primary); background: var(--primary-soft);
}
.service-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card-title { font-size: 1.0625rem; font-weight: 800; color: var(--ink); text-align: center; margin: 0 0 10px; }
.service-card-desc { font-size: 0.84375rem; color: var(--ink-muted); text-align: center; margin: 0 0 14px; line-height: 1.6; }
.service-card-list { list-style: none; margin: 0; padding: 0; }
.service-card-list li {
  display: flex; align-items: center; gap: 8px; font-size: 0.84375rem; color: var(--ink-muted);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.service-card-list li:last-child { border-bottom: none; }
.service-card-list li i { color: var(--primary); font-size: 0.9375rem; flex-shrink: 0; }

/* ==========================================
   18. DOCTORS PAGE — FULL ROSTER
========================================== */
.doctors-dept-block { margin-bottom: 48px; }
.doctors-dept-block:last-child { margin-bottom: 0; }
.doctors-dept-heading {
  font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 22px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary-soft-2);
}
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 991.98px) { .doctor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .doctor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .doctor-grid { grid-template-columns: 1fr; } }

.doctor-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px 18px; text-align: center;
}
.doctor-card.is-support { border-left: 4px solid var(--primary); }
/* Doctors-page roster photos only -- NOT the small overlapping
   .avatar-stack circles used as a staff preview on the homepage, which are
   a separate class and deliberately stay small there. These are the
   full-size per-doctor portraits visitors actually look at to recognize a
   face, so they get real presence: up from 100px to 132px (220px-wide
   cards still leave 52px of clear margin either side), and bigger again at
   148px on phones once cards go full-width at the 480px breakpoint below,
   where there's plenty of room and it's also the screen size most likely
   to be "hard to see" on. */
.doctor-card-photo-wrap { margin-bottom: 16px; }
.doctor-card-photo-wrap img, .doctor-card-photo-placeholder {
  width: 132px; height: 132px; border-radius: var(--radius-md); object-fit: cover;
  border: 3px solid var(--primary-soft); margin: 0 auto;
}
.doctor-card-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink-faint); font-size: 3.1rem; }
@media (max-width: 480px) {
  .doctor-card-photo-wrap img, .doctor-card-photo-placeholder { width: 148px; height: 148px; }
  .doctor-card-photo-placeholder { font-size: 3.4rem; }
}
.doctor-card-name { font-size: 0.96875rem; font-weight: 800; color: var(--ink); margin: 0 0 3px; }
.doctor-card-title { font-size: 0.8125rem; color: var(--ink-muted); margin: 0; }
.doctor-card-badge {
  display: inline-block; margin-top: 10px; font-size: 0.6875rem; font-weight: 700;
  color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; padding: 4px 11px;
}

/* Card bio + "Read more" toggle (short_bio / detail_bio on Doctor) -- left-
   aligned against the otherwise center-aligned card so paragraphs stay
   readable, with a compact mono-style toggle instead of a second full
   button so 11 cards with text don't turn the grid into a wall of buttons. */
.doctor-card-bio {
  text-align: left; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-muted);
  margin: 12px 0 0;
}
.doctor-more-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  background: none; border: none; padding: 0; font-size: 0.75rem; font-weight: 700;
  color: var(--primary); cursor: pointer; font-family: var(--font-mono), inherit;
}
.doctor-more-btn:hover { color: var(--primary-dark); }
.doctor-more-btn i { font-size: 0.7rem; transition: transform 0.2s ease; }
.doctor-more-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.doctor-more-btn-label-less { display: none; }
.doctor-more-btn[aria-expanded="true"] .doctor-more-btn-label-more { display: none; }
.doctor-more-btn[aria-expanded="true"] .doctor-more-btn-label-less { display: inline; }
.doctor-card-detail { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 2px; }

/* ==========================================
   19. INTERIOR PAGES — DEPARTMENT & UTILITY PAGES
   (ophthalmology, cataract, orthodontics, gyneacology,
   optical shop, contact, about, articles)
========================================== */

/* -- Generic page hero, replaces per-page inline gradients -- */
.page-hero {
  padding: 64px 0 52px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-soft-2) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .page-hero-kicker {
  display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.page-hero h1 { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); margin-bottom: 14px; }
.page-hero .page-hero-staff { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.page-hero .lead { color: var(--ink-muted); max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .page-hero-meta { font-weight: 700; color: var(--ink-faint); margin-top: 16px; font-size: 0.88rem; }
.page-hero .page-hero-actions { margin-top: 24px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 1.65rem; }
}

/* -- Clinical content card: replaces ad hoc .service-card + inline colors -- */
.clinical-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
/* height:100% only makes sense when a card is the sole content of a Bootstrap
   .col (equal-height cards side by side in a row) -- scoped here rather than
   on the bare class, because a card stacked directly in a wider wrapper
   (no .col of its own) would otherwise stretch to 100% of the SUM height of
   its stacked siblings, ballooning every card and leaving huge blank gaps. */
.col > .clinical-card { height: 100%; }
.clinical-card-media { height: 220px; overflow: hidden; background: var(--primary-soft); }
.clinical-card-media img { width: 100%; height: 100%; object-fit: cover; }
.clinical-card-body { padding: 32px; }
.clinical-card-body.is-compact { padding: 26px 28px; }
.clinical-card-title { font-weight: 800; color: var(--primary-dark); margin-bottom: 18px; }
.clinical-card-subtitle { font-weight: 800; color: var(--primary-dark); margin: 22px 0 10px; font-size: 1rem; }
.clinical-card-body p { color: var(--ink-muted); }
.clinical-card-body p.fw-medium { color: var(--ink); }

/* -- Horizontal variant for shop/catalog rows -- */
.clinical-card-row { display: flex; flex-wrap: wrap; }
.clinical-card-row .clinical-card-media { flex: 0 0 42%; max-width: 42%; min-height: 260px; height: auto; }
.clinical-card-row .clinical-card-body { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767.98px) {
  .clinical-card-row .clinical-card-media { flex: 0 0 100%; max-width: 100%; min-height: 220px; }
}

/* -- Icon tick list, replaces list-group-item + inline icon colors -- */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.tick-list li i { color: var(--primary); font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.tick-list.is-compact li { padding: 6px 0; font-size: 0.9rem; }
.tick-list.is-warn li i { color: var(--warn-text); }
/* Used on the ophthalmology investigations list, which grew from 8 to 10
   items -- ~22% less vertical padding and a slightly smaller icon than the
   default so the full list fits with noticeably less scrolling on a phone,
   without shrinking the list text itself (still 0.95rem, same as default). */
.tick-list.is-dense li { padding: 7px 0; }
.tick-list.is-dense li i { font-size: 0.92rem; }

/* -- Price highlight box (cataract hero price) -- */
.price-highlight {
  max-width: 420px; margin: 0 auto; background: #fff; border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 20px 32px; box-shadow: var(--shadow-md); text-align: center;
}
/* .price-row replaces the old Bootstrap "d-flex align-items-baseline
   justify-content-center gap-2" markup. Bootstrap's row had no flex-wrap,
   so on narrow phones the un-shrinkable price-value (was a fixed 2.5rem)
   left too little room for the prefix span, and the prefix's own text
   ("De la") wrapped mid-phrase inside its own box instead of the row
   wrapping as a whole -- producing the overlapping "De" / "la" seen on
   small screens. flex-wrap here lets prefix/value/currency drop onto
   their own line as whole units when needed, and nowrap on the prefix/
   currency keeps each one from breaking mid-word if that happens. */
.price-highlight .price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.3em 0.5em;
}
.price-highlight .price-value { font-size: clamp(1.9rem, 5vw + 1rem, 2.5rem); font-weight: 800; color: var(--primary-dark); line-height: 1; }
.price-highlight .price-prefix, .price-highlight .price-currency {
  color: var(--primary-dark); font-weight: 600; white-space: nowrap;
}
.price-highlight .price-prefix { font-size: clamp(0.95rem, 2vw + 0.6rem, 1.25rem); }
.price-highlight .price-currency { font-size: clamp(1.05rem, 2.2vw + 0.65rem, 1.5rem); }
.price-highlight .price-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px; margin-bottom: 0; }

@media (max-width: 420px) {
  .price-highlight { padding: 1.125rem 1rem; }
}

/* -- Dark feature banner (OCT-style highlight section) -- */
.feature-banner-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  border-radius: var(--radius-lg); padding: 56px; color: #fff;
}
.feature-banner-dark h2 { color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.feature-banner-dark .accent { color: var(--primary-soft-2); }
.feature-banner-dark p { color: rgba(255,255,255,0.78); }
.feature-banner-dark .check-row { display: flex; align-items: flex-start; gap: 10px; }
.feature-banner-dark .check-row i { color: #6FE3B8; font-size: 1.3rem; margin-top: 2px; }
.feature-banner-dark .check-row span { color: #fff; font-weight: 600; }
.feature-banner-dark .media-frame {
  background: #fff; border: 8px solid var(--primary-soft-2); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; box-shadow: var(--shadow-md);
}
.feature-banner-dark .media-badge {
  position: absolute; bottom: 0; right: 0; background: #fff; color: var(--primary-dark);
  font-size: 0.9rem; font-weight: 700; padding: 8px 16px; border-top-left-radius: var(--radius-md);
}
@media (max-width: 767.98px) { .feature-banner-dark { padding: 32px 22px; } }

/* -- Special offer banner -- */
.special-offer-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); color: #fff; position: relative; box-shadow: var(--shadow-md);
}
.special-offer-banner .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  /* Bootstrap's default .btn-close hit target is small on touch screens; enlarge it
     without changing its visual size, so it stays easy to tap but doesn't need to
     grow into the heading's clear zone below. */
  padding: 0.5em;
}
/* The close button is position-absolute top-0 end-0 m-3 (~16px margin + ~24px
   icon box = ~40-48px footprint). Reserve matching clearance on both sides of the
   centered content so the heading/body text never lays out underneath it -
   equal left/right padding keeps the centered text block centered inside the
   safe zone instead of drifting right. */
.special-offer-banner .p-4 {
  padding-left: 56px !important;
  padding-right: 56px !important;
}
@media (max-width: 420px) {
  .special-offer-banner .p-4 {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
  .special-offer-banner h4 {
    font-size: 1.1rem;
  }
}

/* -- Pricing table card -- */
.pricing-table-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-md); }
.pricing-table-card .pricing-table-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 28px; text-align: center;
}
.pricing-table-card .pricing-table-header h2 { color: #fff; font-weight: 800; margin: 0; }
.pricing-table-card table thead { background: var(--bg); }
.pricing-table-card table thead th { text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.03em; }
.pricing-table-card .price-cat-row td { background: var(--bg); font-weight: 700; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pricing-table-card .price-amount { color: var(--ink); font-weight: 700; }
.pricing-table-card .price-amount.is-surgery { color: var(--primary); }
/* Keeps the right-aligned price figures from sitting directly under the
   fixed back-to-top button's corner while scrolling on a phone -- same
   reasoning as the OCT stat cards' padding-right fix above. */
@media (max-width: 575.98px) {
  .pricing-table-card table td.pe-4 { padding-right: 52px !important; }
}

/* -- Mini feature cards (services-overview grids) -- */
.mini-feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px 20px; text-align: center; height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.mini-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mini-feature-card .mini-feature-icon { font-size: 1.9rem; color: var(--primary); margin-bottom: 14px; }
.mini-feature-card h5 { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.mini-feature-card p { color: var(--ink-muted); margin: 0; font-size: 0.88rem; }

/* -- About page: feature tiles & mission/vision cards -- */
.feature-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 40px 28px; text-align: center; height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-tile .feature-tile-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 1.9rem;
}
.feature-tile h4 { font-weight: 800; color: var(--ink); margin-bottom: 10px; font-size: 1.15rem; }
.feature-tile p { color: var(--ink-muted); margin: 0; }

.mission-vision-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 44px; height: 100%;
}
.mission-vision-card h3 { color: var(--primary-dark); font-weight: 800; margin-bottom: 16px; }
.mission-vision-card p { color: var(--ink-muted); font-size: 1.02rem; margin: 0; }

.about-photo-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
/* No max-height here: the frame's own aspect-ratio (set inline per use, e.g.
   21/9) already controls the displayed height. A fixed max-height used to
   fight that -- at container widths above ~933px the frame grew taller than
   400px while the image stayed capped, leaving a visible blank gap of frame
   background below the image. */
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* -- Contact page -- */
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-channel {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color 0.15s ease;
}
.contact-channel:hover { border-color: var(--primary); }
.contact-channel-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-channel-text { min-width: 0; }
.contact-channel-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 2px; }
.contact-channel-value { font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-channel-value:hover { color: var(--primary); }
.hours-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hours-grid .hours-item { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.hours-grid .hours-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); display: block; margin-bottom: 3px; }
.hours-grid .hours-value { font-weight: 700; color: var(--ink); }
@media (max-width: 480px) { .hours-grid { grid-template-columns: 1fr; } }

/* -- Articles page -- */
.article-content-text p { margin-bottom: 1.25rem; line-height: 1.6; font-size: 0.95rem; color: var(--ink); }
.article-sidebar {
  border: 1px solid var(--border); background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
}
.article-sidebar .list-group-item.active { background-color: var(--primary-soft) !important; color: var(--primary-dark) !important; border-color: var(--primary-soft-2) !important; font-weight: 700; }
.article-img-custom { height: 300px !important; object-fit: cover !important; width: 100%; }

/* -- Accordion (cataract lens catalog) tuned to token palette -- */
.accordion-button:not(.collapsed) { background-color: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(21, 92, 66, 0.15); }

/* ==========================================
   20. "INSTRUMENT" — ENTERPRISE PREMIUM REDESIGN
   Typography + palette layer over the Clinical Precision
   system above. Cascades through every page via the
   existing var(--primary)/var(--ink)/var(--bg) usage,
   plus targeted component refinements (doctor cards,
   featured service, headings). Safe to revert by
   deleting this section — nothing above it was removed.
========================================== */
:root {
  --primary: #155C42;          /* deep instrument green, replaces Clinical Precision green */
  --primary-dark: #0F4B35;
  --primary-darker: #0B3A29;
  --primary-soft: #E7F2EB;     /* light mint surface (unchanged tone family) */
  --primary-soft-2: #CFE6D8;
  --ink: #121826;
  --ink-muted: #5B6472;
  --ink-faint: #7A8A82;
  --border: #DEDACB;
  --bg: #F6F4EE;               /* warm paper background replaces cool mint-grey */
  --bg-white: #FFFFFF;
  --paper: var(--bg);          /* alias: concept source files call this token --paper */
  --brass: #B98B4E;
  --brass-dark: #93692F;
  --bs-primary: var(--primary);
  --bs-primary-rgb: 21, 92, 66;
  --bs-primary-text-emphasis: var(--primary-dark);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);

  --font-serif: 'Fraunces', serif;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body { font-family: var(--font-sans); }

h1, h2, h3, h4, h5, h6, .fw-bold, .fw-semibold,
.hero-headline, .section-title, .dept-title, .service-card-title,
.doctors-dept-heading, .doctor-card-name, .cta-band h2,
.footer-heading, .shop-title-row h1, .mission-vision-card h3,
.value-prop-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Small-caps "kicker" labels read best in mono, matching data-sheet feel */
.hero-eyebrow, .section-eyebrow, .text-muted-label, .dept-hours,
.hours-grid .hours-label, .hours-grid .hours-value,
.contact-channel-label, .counter-label, .counter-number,
.futuristic-counter-badge, .price-highlight, .doctor-card-badge {
  font-family: var(--font-mono);
}

/* ---- Nav: sticky translucent blur, closer to the reviewed concept ---- */
.navbar {
  background: rgba(246, 244, 238, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top-bar { background-color: rgba(255, 255, 255, 0.92) !important; }

/* ---- Doctors page: fixed-size, centered cards regardless of department size ---- */
.doctors-dept-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px; margin-bottom: 22px; border-bottom: none;
}
.doctors-dept-heading { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.btn-view-dept {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; font-size: 0.8125rem; font-weight: 600; font-family: var(--font-sans);
  border: 1px solid var(--primary); border-radius: var(--radius-sm); color: var(--primary);
  text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background 0.15s ease, color 0.15s ease;
}
.btn-view-dept:hover { background: var(--primary); color: #fff; }

.doctor-grid {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: 22px;
  grid-template-columns: none !important;
}
.doctor-card { width: 220px; flex: 0 0 220px; }
@media (max-width: 480px) { .doctor-card { width: 100%; flex-basis: 100%; } }

/* ---- Featured / highlighted service: reads as a genuine standout, not a thin border ---- */
.service-card-clinical.highlighted {
  background: var(--primary); border-color: var(--primary); box-shadow: none; color: #fff;
}
.service-card-clinical.highlighted .service-card-title,
.service-card-clinical.highlighted .service-card-desc,
.service-card-clinical.highlighted .service-card-list li { color: #fff; }
.service-card-clinical.highlighted .service-card-desc { color: rgba(255,255,255,0.82); }
.service-card-clinical.highlighted .service-card-list li { border-bottom-color: rgba(255,255,255,0.18); }
.service-card-clinical.highlighted .service-card-list li i { color: #BFE3D4; }
.service-card-clinical.highlighted .service-card-media,
.service-card-clinical.highlighted .service-card-icon-fallback { background: #0F4B35; color: #BFE3D4; }

/* ---- Buttons: ensure no black/near-black fills anywhere (brand green only) ---- */
.btn-hero-primary, .glow-btn, .btn-success, .btn-primary {
  background: var(--primary) !important; border-color: var(--primary) !important;
}
.btn-hero-primary:hover, .glow-btn:hover, .btn-success:hover, .btn-primary:hover {
  background: var(--primary-dark) !important; border-color: var(--primary-dark) !important;
}
/* Exception: inside the spec-sheet-band (dark green procedure band on home/
   ophthalmology/ophthalmology2/orthodontics/gyneacology), the rule above was
   forcing the CTA to the exact same brand-green as the band itself -- the
   button had no visible fill against its own background, so it read as a
   plain underlined link rather than a clickable button. Give it a light,
   high-contrast pill here specifically, higher specificity so it still wins
   over the !important rule above. */
.spec-sheet-band .btn-hero-primary {
  background: var(--paper, #F6F4EE) !important;
  border-color: var(--paper, #F6F4EE) !important;
  color: var(--primary-darker) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.spec-sheet-band .btn-hero-primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--primary-darker) !important;
}

/* ---- Department directory: numbered row list, replaces the icon-card grid ---- */
.dept-directory { display: flex; flex-direction: column; }
.dept-row {
  display: flex; align-items: center; gap: 28px; padding: 28px 0;
  border-top: 1px solid var(--border); text-decoration: none; color: inherit;
  flex-wrap: wrap;
}
.dept-directory a.dept-row:last-child { border-bottom: 1px solid var(--border); }
.dept-row-index { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--brass-dark); width: 28px; flex-shrink: 0; }
.dept-row-main { flex: 1 1 220px; min-width: 180px; }
.dept-row-name { display: block; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; color: var(--ink); }
/* Short service description, between the title and the doctor-name line --
   added so each row carries title + description + doctors + hours + a
   named CTA, same structure for every department, without changing the
   row's overall list layout. */
.dept-row-desc { display: block; font-size: 0.9375rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.5; max-width: 520px; }
.dept-row-meta { display: block; font-size: 0.875rem; color: var(--ink-muted); margin-top: 8px; }
/* Widened from 170px: this now carries "<days> · <hours>" instead of just
   the hours, which no longer fit a 170px box without an awkward mid-word
   wrap on most rows. */
.dept-row-hours { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); flex: 0 0 230px; }
.dept-row-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); flex-shrink: 0; white-space: nowrap; }
.dept-row:hover .dept-row-name { color: var(--primary); }
/* A specific procedure nested under a department (e.g. Cataract Surgery
   under Ophthalmology) -- same row layout, but indented and toned down so
   it reads as "part of the row above" rather than another full department:
   no border of its own (shares the parent's bottom border), smaller name,
   and the index column is left empty instead of a number. */
.dept-row-sub {
  padding-top: 14px; padding-bottom: 14px; padding-left: 56px;
  border-top: none !important;
}
.dept-row-sub .dept-row-name { font-size: 1.0625rem; font-weight: 500; }
.dept-row-sub .dept-row-hours { flex-basis: 230px; }
@media (max-width: 767.98px) {
  .dept-row { gap: 10px; padding: 22px 0; }
  .dept-row-hours { flex: 1 1 100%; order: 3; }
  /* .dept-row-link ("Ophthalmology consultations and investigations" etc.)
     inherits white-space: nowrap + flex-shrink: 0 from the desktop rule
     above, which is fine in a wide row but on a narrow phone screen forced
     the longer EN/HU link labels past the edge of the viewport instead of
     wrapping -- a real horizontal-overflow bug, not the usual harmless
     gutter bleed. Taking the full row width and allowing normal wrapping
     fixes it without touching desktop. */
  .dept-row-link { order: 4; flex: 1 1 100%; white-space: normal; }
  .dept-row-sub { padding-left: 24px; }
}

/* ---- Language switcher: plain mono text + chevron, no flag icons (matches concept) ---- */
.nav-utility-group .dropdown-toggle.btn-outline-success {
  background: transparent !important; border: none !important; color: var(--ink-muted) !important;
  font-family: var(--font-mono); padding: 8px 2px !important;
}
.nav-utility-group .dropdown-toggle.btn-outline-success strong { color: var(--ink); font-weight: 600; }
.nav-utility-group .flag, .dropdown-menu .flag { display: none !important; }

/* ---- Nav cart icon: persistent access to the cart from every page ---- */
.nav-cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--ink-muted); font-size: 1.0625rem; }
.nav-cart-icon:hover { color: var(--primary); }
.nav-cart-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--primary); color: #fff; font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600;
  line-height: 16px; text-align: center; border-radius: 999px;
}

/* ---- Doctors & staff teaser band (mint-soft, matches concept) ---- */
.dept-staff-band { background: var(--primary-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.dept-staff-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.dept-staff-copy { flex: 1 1 420px; min-width: 260px; }
.dept-staff-kicker { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); margin-bottom: 12px; }
.dept-staff-title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 500; margin: 0 0 10px; color: var(--primary); }
@media (max-width: 575.98px) { .dept-staff-title { font-size: 1.4rem; } }
.dept-staff-desc { font-size: 0.9375rem; color: var(--ink-muted); margin: 0; max-width: 460px; }
/* flex-wrap + min-width:0 let the avatar stack and "View full team" button
   drop onto their own line on narrow phones instead of overflowing past
   the right edge: flex: 0 0 auto never shrank this item, and with no wrap
   it forced its full content width (avatars + nowrap button) past the
   viewport whenever that exceeded the space left by .dept-staff-copy. */
.dept-staff-avatars { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem 1.375rem; flex: 0 0 auto; max-width: 100%; min-width: 0; }
.avatar-stack { display: flex; }
.avatar-stack-item {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-soft);
  display: flex; align-items: center; justify-content: center; margin-right: -14px; overflow: hidden;
  color: var(--primary); font-size: 1.2rem;
}
.avatar-stack-item img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack-names { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; font-size: 0.8125rem; color: var(--ink-muted); }

/* ---- Featured procedure spec sheet (solid primary band, matches concept) ---- */
.spec-sheet-band { background: var(--primary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
/* align-items: flex-start (not the flex default "stretch") -- found via visual
   QA on the ophthalmology.html OCT band: when .spec-sheet-copy's text runs
   taller than .spec-sheet-stats' cards, "stretch" forced the stats grid to
   match that height, and align-content:start then left a dead strip of the
   grid's own translucent background showing below the last real card. Seen
   on desktop widths; doesn't affect the single-column mobile layout. */
.spec-sheet-row { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.spec-sheet-copy { flex: 1 1 320px; min-width: 260px; }
.spec-sheet-kicker { font-family: var(--font-mono); font-size: 0.8125rem; color: #BFE3D4; margin-bottom: 1rem; }
.spec-sheet-title { font-family: var(--font-serif); font-size: clamp(1.4rem, 4vw + 0.6rem, 1.75rem); font-weight: 500; color: var(--paper, #F6F4EE); margin: 0 0 1rem; max-width: 380px; }
.spec-sheet-desc { font-size: 0.9375rem; line-height: 1.7; color: rgba(246,244,238,0.85); max-width: 420px; margin: 0 0 1.5rem; }
/* min-width was 280px, which (plus .spec-sheet-copy's own 260px floor and
   the 44px row gap) left this column too wide to fit a sub-360px phone
   even after it wraps onto its own row -- a lower floor plus overflow-wrap
   on the label/value text below keeps every card readable at any width. */
.spec-sheet-stats { flex: 1.1 1 380px; min-width: 240px; max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: rgba(246,244,238,0.22); border: 1px solid rgba(246,244,238,0.22); align-content: start; }
.spec-sheet-stat { background: var(--primary-darker); color: var(--paper, #F6F4EE); padding: 1.375rem; min-width: 0; }
.spec-sheet-stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: #BFE3D4; margin-bottom: 0.5rem; overflow-wrap: break-word; }
.spec-sheet-stat-value { font-size: 1rem; font-weight: 500; overflow-wrap: break-word; word-break: break-word; }
/* Was a flex row with the label pinned to the far right (space-between) --
   fine when that label was a short "incl. VAT"-style tag, but it now holds
   a full confirm-pending sentence ("Includes the artificial lens -- ask
   about any additional costs..."). Squeezing that sentence into half the
   row's width at mobile/tablet sizes left no room for the price itself,
   which wrapped mid-phrase ("De la" / "1.550" / "lei /" / "ochi" on
   separate lines). Stacked instead: the price gets the row's full width on
   its own line, the note wraps naturally underneath. */
.spec-sheet-stat-price {
  grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border-top: 1px solid rgba(246,244,238,0.22);
}
.spec-sheet-stat-price .spec-sheet-stat-label { margin-bottom: 0; color: rgba(246,244,238,0.75); }
.spec-sheet-price-value { font-family: var(--font-serif), var(--font-mono); font-size: 1.625rem; font-weight: 500; color: var(--brass); white-space: nowrap; }
@media (max-width: 575.98px) { .spec-sheet-price-value { font-size: 1.3rem; } }
@media (max-width: 575.98px) { .spec-sheet-stat-price { grid-column: span 1; } }
/* Widened from 575.98px: .spec-sheet-stats sits in a flex row next to
   .spec-sheet-copy, and on phones between ~576-650px wide the two columns
   of this grid could still be squeezed to an uncomfortably narrow width
   before the row itself wraps, cramping the label/value text. */
@media (max-width: 650px) {
  .spec-sheet-stats { grid-template-columns: 1fr; }
  /* The site-wide fixed back-to-top button (.back-to-top-futuristic) sits at
     bottom:25px/right:25px with a 46px footprint -- i.e. it occupies the
     viewport's rightmost ~71px band, at whatever scroll position the visitor
     stops at. In the single-column layout here, stat/price text runs close
     enough to the card's right edge that it was rendering underneath the
     button (cut-off label text, obscured price). Reserve clearance so text
     never extends into that corner, regardless of scroll position. */
  .spec-sheet-stat { padding-right: 76px; }
}
@media (max-width: 360px) { .spec-sheet-stat { padding: 1rem; padding-right: 64px; } }

/* ---- From the webshop teaser grid ---- */
.webshop-teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 8px; }
.webshop-teaser-card { background: #fff; padding: 24px; text-decoration: none; color: inherit; display: block; }
.webshop-teaser-media { aspect-ratio: 1; background: var(--bg); border: 1px solid var(--border); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.webshop-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.webshop-teaser-media i { font-size: 1.8rem; color: var(--ink-faint); }
.webshop-teaser-cat { font-size: 0.6875rem; color: var(--ink-muted); letter-spacing: 0.03em; margin-bottom: 4px; }
.webshop-teaser-name { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.webshop-teaser-price { font-family: var(--font-mono); font-size: 0.90625rem; color: var(--ink); }
@media (max-width: 767.98px) { .webshop-teaser-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---- Homepage contact section ---- */
.home-contact-grid { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 16px; }
.home-contact-col { flex: 1 1 320px; min-width: 280px; }
.contact-mono-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.home-contact-address { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.home-contact-hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.90625rem; }
.home-contact-hours-row span:first-child { color: var(--ink-muted); }
.home-contact-phones { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.home-contact-phones a { font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.home-contact-phones a .mono { font-weight: 400; color: var(--ink-muted); }
.home-contact-map { flex: 1.3 1 380px; min-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.home-contact-map-frame { aspect-ratio: 4/3; border: 1px solid var(--border); overflow: hidden; }
.home-contact-map iframe { display: block; width: 100%; height: 100%; }
.home-contact-map-link { align-self: flex-start; }
/* On a narrow phone (e.g. 320-374px wide) the container's available content
   width, after side padding, is under 300px -- so .home-contact-map's
   min-width: 300px above (and .home-contact-col's min-width: 280px, to a
   lesser extent) forced the flex item itself wider than the viewport,
   overflowing the page horizontally, even though flex-wrap already puts
   each item on its own row. min-width doesn't shrink for its container the
   way flex-basis does, so it has to be capped separately for small screens.
   Placed after the unconditional rules above (same specificity -- the one
   that comes later in the file wins), not before them. */
@media (max-width: 374.98px) {
  .home-contact-map, .home-contact-col { min-width: 0; }
}

/* ---- Optical Shop page: walk-in photo grid + brand showcase (matches concept) ---- */
.shop-walkin-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.shop-walkin-photo { background: var(--primary-soft); border: 1px solid var(--border); overflow: hidden; }
.shop-walkin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-walkin-photo-main { grid-row: span 2; aspect-ratio: 4/3; }
.shop-walkin-grid .shop-walkin-photo:not(.shop-walkin-photo-main) { aspect-ratio: 4/3; }
@media (max-width: 767.98px) { .shop-walkin-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .shop-walkin-photo-main { grid-row: auto; grid-column: span 2; } }
.hr-divider { height: 1px; background: var(--border); border: none; margin: 0; }

.brand-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.brand-showcase-col {
  background: #fff; padding: 32px 36px 36px; position: relative; overflow: hidden;
  transition: background-color 0.2s ease;
}
/* Thin top rule that fills in with the brand color on hover -- a quiet
   "this column is active" cue that matches the editorial/ledger feel of
   the rest of the section instead of a generic card shadow. */
.brand-showcase-col::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.brand-showcase-col:hover::before { transform: scaleX(1); }
.brand-showcase-col:hover { background: var(--bg); }

.brand-showcase-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.brand-showcase-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.brand-showcase-col:hover .brand-showcase-icon { background: var(--primary); color: #fff; }
.brand-showcase-index { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--primary); letter-spacing: 0.02em; margin-bottom: 2px; }
.brand-showcase-title { font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 600; }

.brand-showcase-list { display: flex; flex-direction: column; }
.brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; font-size: 0.90625rem; color: var(--ink); border-top: 1px solid var(--border);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.brand-showcase-list .brand-row:last-child { border-bottom: 1px solid var(--border); }
.brand-row-arrow { font-size: 0.75rem; color: var(--ink-faint); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s ease, transform 0.15s ease; }
.brand-row:hover { color: var(--primary-dark); padding-left: 6px; }
.brand-row:hover .brand-row-arrow { opacity: 1; transform: translateX(0); color: var(--primary); }
.brand-row-empty { color: var(--ink-faint); font-style: italic; }
.brand-row-empty:hover { color: var(--ink-faint); padding-left: 2px; }

@media (max-width: 767.98px) { .brand-showcase-grid { grid-template-columns: 1fr; } }

.shop-online-cta-band {
  margin-top: 44px; padding: 36px; background: var(--primary-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.shop-online-cta-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.shop-online-cta-desc { font-size: 0.875rem; color: var(--ink-muted); }

/* ---- Articles: concept card grid (Articles.dc.html) ---- */
.article-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 991px) { .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .article-card-grid { grid-template-columns: 1fr; } }
.article-card { background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.article-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(18, 24, 38, 0.08); color: inherit; }
.article-img { aspect-ratio: 16 / 10; background: var(--primary-soft); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.article-card-desc { font-size: 0.84375rem; line-height: 1.6; color: var(--ink-muted); margin: 0 0 16px; flex: 1; }
.article-card-meta { font-family: var(--font-mono); font-size: 0.71875rem; color: var(--ink-muted); }
.article-full-text { font-size: 0.96875rem; line-height: 1.7; color: var(--ink-muted); }

/* ---- About: concept mission/vision + "why Iris" band (About.dc.html) ---- */
.about-mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 767px) { .about-mv-grid { grid-template-columns: 1fr; } }
.about-mv-col { background: #fff; padding: 44px; }
.about-mv-kicker { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); margin-bottom: 14px; }
.about-mv-text { font-size: 1rem; line-height: 1.7; color: var(--ink-muted); margin: 0; }
/* Deep instrument-green band, never black -- this is a health service, not
   a funeral home. Stays within the site's own green/mint palette
   (--primary-dark background, --primary-soft-2 mint accents). */
.about-why-band { background: var(--primary-dark); color: #fff; }
.about-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 767px) { .about-why-grid { grid-template-columns: 1fr; } }
.about-why-index { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--primary-soft-2); margin-bottom: 12px; }
.about-why-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.about-why-desc { font-size: 0.90625rem; line-height: 1.6; color: var(--primary-soft); }

/* ---- Homepage hero: concept's plain mono kicker (Main.dc.html), replacing
   the old pill-badge eyebrow -- the hero copy itself is concept-exact text,
   not a retone, so it gets its own class rather than reusing .hero-eyebrow. ---- */
.hero-eyebrow-mono { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--brass-dark); letter-spacing: 0.04em; margin-bottom: 22px; }

/* ---- Department Directory heading ---- */
.dept-directory-heading-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; text-align: left; max-width: none; }
.dept-directory-title { font-size: 2rem; font-weight: 500; margin: 0; }
@media (max-width: 575.98px) { .dept-directory-title { font-size: 1.5rem; } }

/* ---- Footer: brass/mint-light accent instead of plain white on hover ---- */
.footer-links-list a:hover, .footer-bottom-nav .nav-link:hover { color: #BFE3D4 !important; }
.footer-copyright a { color: var(--brass) !important; }

/* ==========================================
   20. NEW SECTIONS -- Oct 2026 update
   (Patient Portal page, quick-booking buttons, laser treatment cards,
   process steps, content photo placeholders, Optica Iris page)
========================================== */

/* ---- Patient Portal landing page: 5 benefit cards ---- */
.portal-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 767.98px) { .portal-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .portal-benefit-grid { grid-template-columns: 1fr; } }
.portal-benefit-card { background: #fff; padding: 30px 26px; position: relative; }
.portal-benefit-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px;
}
.portal-benefit-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.portal-benefit-desc { font-size: 0.875rem; line-height: 1.55; color: var(--ink-muted); margin: 0; }
/* The vision-simulator/game card is the one genuinely novel, fun benefit --
   given its own accent treatment (mint surface + brand-colored icon chip +
   a small flag label) so it reads as the highlight of the grid rather than
   a fifth identical tile, per the owner's note to foreground it. */
.portal-benefit-card.is-featured { background: var(--primary-soft); }
.portal-benefit-card.is-featured .portal-benefit-icon { background: var(--primary); color: #fff; }
.portal-benefit-flag {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 0.6875rem;
  font-weight: 700; color: var(--primary-dark); background: #fff; border: 1px solid var(--primary-soft-2);
  border-radius: 999px; padding: 3px 10px;
}

/* ---- Laser treatment cards (Ophthalmology page) -- replaces the old
   2-bullet tick list with a scannable card per treatment: what it's for,
   what it is, and a link through to the matching article. ---- */
.laser-tx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); max-width: 920px; margin: 0 auto; }
@media (max-width: 767.98px) { .laser-tx-grid { grid-template-columns: 1fr; } }
.laser-tx-card { background: #fff; padding: 28px 26px; }
.laser-tx-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
}
.laser-tx-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.laser-tx-indication { font-size: 0.8125rem; font-weight: 600; color: var(--primary); margin: 0 0 10px; }
.laser-tx-desc { font-size: 0.875rem; line-height: 1.6; color: var(--ink-muted); margin: 0 0 14px; }
.laser-tx-more {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
}
.laser-tx-more:hover { color: var(--primary-dark); }
.laser-tx-more i { font-size: 0.75rem; }

/* ---- Numbered process steps (e.g. Ortho-K "how it works") ---- */
.process-steps { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); max-width: 680px; margin: 0 auto; }
.process-step { background: #fff; display: flex; align-items: flex-start; gap: 18px; padding: 18px 22px; }
.process-step-index {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-dark); font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
}
.process-step-text { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); padding-top: 5px; }

/* ---- Generic "photo coming soon" placeholder -- used anywhere the owner
   plans to upload a real photo from the admin later. Deliberately plain
   (icon + one short neutral caption) so swapping in a real <img> later is a
   one-line change, not a redesign. ---- */
.content-photo-placeholder {
  border: 1px dashed var(--primary-soft-2); border-radius: var(--radius-md); background: var(--primary-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 32px 20px; color: var(--ink-faint); min-height: 160px;
}
.content-photo-placeholder i { font-size: 1.75rem; color: var(--primary); opacity: 0.6; }
.content-photo-placeholder span { font-size: 0.8125rem; max-width: 320px; line-height: 1.5; }

/* ---- Optica Iris page: stacked feature rows (HOYA lens types, etc.) ---- */
.feature-row-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feature-row { background: #fff; padding: 28px 30px; display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
@media (max-width: 650px) { .feature-row { grid-template-columns: 1fr; gap: 8px; } }
.feature-row-title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.feature-row-body .feature-row-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--primary); margin: 0 0 8px; }
.feature-row-body p { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* ---- Quick-booking inline CTA strip (homepage / shop / ophthalmology) ---- */
.quick-booking-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: var(--radius-md);
  padding: 16px 22px; margin-top: 22px;
}
.quick-booking-strip-text { font-size: 0.9375rem; color: var(--primary-dark); font-weight: 600; margin: 0; }
.quick-booking-strip-text small { display: block; font-weight: 400; color: var(--ink-muted); margin-top: 2px; }

/* ---- Free optometry consultation callout (Optica Iris page) ---- */
.optometry-cta-band { background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 575.98px) { .optometry-cta-band { padding: 28px 22px; } }
.optometry-cta-eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--primary); margin-bottom: 10px; }
.optometry-cta-disclaimer { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 16px; }

/* ---- Generic scroll-triggered fade-in (see base.html's IntersectionObserver
   helper) -- starts slightly lower and transparent, settles into place. ---- */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---- Homepage "our building" photo band ---- */
/* A real photo of the clinic, right under the hero. Faded in via
   .fade-in-on-scroll (JS adds .is-visible). Uses the exact same frame
   technique as .about-photo-frame (About/Ophthalmology/Orthodontics/
   Gynaecology pages: fixed aspect-ratio + object-fit: cover, no mask,
   same ratio at every breakpoint) -- the previous version masked the
   photo's edges into the background AND switched to a much narrower
   aspect-ratio on small screens, which together cropped off a visibly
   large chunk of the building on the left and right on mobile. A single
   aspect-ratio with no mask crops evenly and predictably at any width. */
.building-photo-band {
  position: relative;
  margin: 8px 0 0;
  padding: 0;
}
.building-photo-band .building-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.building-photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.97);
}
.building-photo-band .building-photo-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin: 14px 0 0;
}

/* ---- Articles page: keyword search bar ---- */
.article-search-wrap {
  position: relative;
  max-width: 480px;
  margin-top: 28px;
}
.article-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.article-search-input {
  width: 100%;
  padding: 13px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
}
.article-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.article-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 8px;
}
.article-search-clear:hover { color: var(--ink); }
.article-search-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 10px 0 0;
  min-height: 1.2em;
}
.article-search-empty {
  text-align: center;
  padding: 48px 20px;
}

/* ---- Contact page: side-by-side "which booking option" cards ---- */
.booking-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  max-width: 640px;
}
.booking-option-card {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.booking-option-card .btn-hero-primary,
.booking-option-card .btn-hero-secondary {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.booking-option-desc {
  font-size: 0.84375rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- Real photo version of .content-photo-placeholder, once an admin has
   uploaded one via the Site Photos admin (see iris/templatetags/site_images.py's
   `site_image` tag). Same footprint/radius as the placeholder it replaces,
   so the layout doesn't shift when a photo is added. ---- */
.content-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.content-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
