/* ============================================================
   CarePulse - custom CSS that doesn't translate cleanly to utilities
   Loaded AFTER tailwind.css so these rules win when needed.
   ============================================================ */

/* ---------- Directory filter panel (doctors / nurses) ----------
   Mobile: a bottom-sheet popup toggled by the "Filters" button.
   Desktop (lg+): a sticky left sidebar that's always visible. */
.filter-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.65rem 1rem;
  border: 1px solid var(--line, #E2EEF1); border-radius: 12px;
  background: #fff; color: #0F4C5C; font-weight: 600;
}
.filter-toggle .filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #00B0C0; color: #fff; font-size: 0.72rem; font-weight: 700;
}
.filter-backdrop { display: none; }
.filter-panel-head { display: none; }

@media (max-width: 1023.98px) {
  .filter-panel { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
  .filter-panel.is-open { visibility: visible; }
  .filter-panel .filter-backdrop {
    display: block; position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.5); opacity: 0; transition: opacity 0.25s;
  }
  .filter-panel.is-open .filter-backdrop { opacity: 1; }
  .filter-panel .filter-card {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 86vh; overflow-y: auto; margin: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%); transition: transform 0.28s ease;
  }
  .filter-panel.is-open .filter-card { transform: translateY(0); }
  .filter-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; padding-bottom: 0.75rem;
    margin-bottom: 0.25rem; border-bottom: 1px solid var(--line, #E2EEF1);
  }
}
@media (min-width: 1024px) {
  .filter-panel { position: sticky; top: 96px; }
  /* custom.css loads after Tailwind, so `.filter-toggle` would otherwise beat
     the `lg:hidden` utility at equal specificity - hide it on desktop here. */
  .filter-toggle { display: none; }
}

/* ============================================================
   App-style bottom tab bar (.bnav) — phones only.
   Fixed to the viewport bottom with a raised centre FAB. Hidden from 768px up,
   where the header nav takes over. z-40 matches .contact-fab and the sticky
   header: above page content, below the drawer/bottom-sheet (z-50+).
   ============================================================ */
.bnav { display: none; }

@media (max-width: 767.98px) {
  .bnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    background: #fff;
    border-top: 1px solid var(--line, #E2EEF1);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px -18px rgba(15, 23, 42, .35);
    padding-bottom: env(safe-area-inset-bottom, 0px);   /* iOS home indicator */
  }
  .bnav-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
    padding: .55rem .25rem .5rem; min-height: 3.5rem;
    background: none; border: 0; cursor: pointer;
    color: #64748B; font-size: .68rem; font-weight: 500; line-height: 1.2;
    text-align: center; -webkit-tap-highlight-color: transparent;
    transition: color .14s;
  }
  .bnav-item:hover { color: #00919B; }
  .bnav-item.is-active { color: #00919B; font-weight: 600; }
  /* Active indicator: a short rule on the tab's top edge, as in the mock. */
  .bnav-item.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2.25rem; height: 3px; border-radius: 0 0 3px 3px; background: #00B0C0;
  }
  .bnav-ico { position: relative; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; }
  .bnav-ico svg { width: 1.5rem; height: 1.5rem; }
  .bnav-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav-badge {
    position: absolute; top: -.35rem; right: -.5rem;
    min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem;
    display: grid; place-items: center;
    border-radius: 999px; background: #00B0C0; color: #fff;
    font-size: .62rem; font-weight: 700; line-height: 1;
    border: 2px solid #fff;
  }

  /* Centre FAB. The slot keeps the 5-column rhythm; the button itself overflows
     upward out of the bar. */
  .bnav-fabslot { position: relative; display: grid; place-items: center; min-height: 3.5rem; }
  .bnav-fab {
    position: absolute; bottom: .55rem;
    width: 3.5rem; height: 3.5rem; border-radius: 999px;
    display: grid; place-items: center;
    background: #00B0C0; color: #fff; border: 4px solid #fff; cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(0, 145, 155, .65);
    -webkit-tap-highlight-color: transparent;
    transition: background .14s, transform .14s;
  }
  .bnav-fab svg { width: 1.45rem; height: 1.45rem; }
  .bnav-fab:hover { background: #00919B; }
  .bnav-fab:active { transform: scale(.94); }

  /* Clear the bar so the footer / emergency strip stay reachable. */
  body { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px)); }

  /* Lift the product-page Call/WhatsApp stack above the bar instead of letting
     it sit underneath. */
  .contact-fab { bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .bnav-fab:active { transform: none; }
}

/* ---------- Quantity stepper ---------- */
/* The stepper caps at the tracked stock, so the ends are reachable in normal
   use — show them rather than letting a live-looking button do nothing. */
[data-qty-minus][disabled], [data-qty-plus][disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}

/* ---------- Product image lightbox ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.88);
  align-items: center; justify-content: center;
  padding: 4vh 5vw; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: 12px; background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
  position: absolute; top: 16px; right: 22px;
  font-size: 2.2rem; line-height: 1; color: #fff;
  background: transparent; border: 0; cursor: pointer; padding: 0.25rem 0.5rem;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 999px; border: 0;
  font-size: 2rem; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center;
}
.lightbox-nav:hover, .lightbox-close:hover { opacity: 0.8; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- Hero atmosphere ---------- */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background:
    radial-gradient(closest-side, rgba(186, 235, 242, 0.85), rgba(186, 235, 242, 0) 70%);
  filter: blur(8px);
  z-index: -2;
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background:
    radial-gradient(closest-side, rgba(0, 176, 192, 0.18), rgba(0, 176, 192, 0) 70%);
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
}

/* Faint grain - adds tactile depth without busy texture */
.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Scroll-reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-in { transition-delay: 0.08s; }
[data-reveal-delay="2"].is-in { transition-delay: 0.16s; }
[data-reveal-delay="3"].is-in { transition-delay: 0.24s; }
[data-reveal-delay="4"].is-in { transition-delay: 0.32s; }
[data-reveal-delay="5"].is-in { transition-delay: 0.4s; }

/* ---------- Floating mockup card on home hero ---------- */
.float-card {
  animation: cp-float 6s ease-in-out infinite;
}
@keyframes cp-float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-10px) rotate(0.5deg); }
}

/* ---------- Mega menu reveal ---------- */
.mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  pointer-events: none;
  /* A closed panel is invisible but still LAID OUT (visibility:hidden keeps its
     box), so a wide panel anchored near the right of the nav pushed the document
     scrollWidth past the viewport and put a horizontal scrollbar on every page
     between ~1280px and ~1900px. The JS below clamps each panel on load/resize;
     this is the belt-and-braces cap so it can never exceed the viewport. */
  max-width: calc(100vw - 24px);
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.has-mega.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

/* Mega-menu glyph: normalise bi-icon / inline SVG / emoji inside the badge box. */
.mega-icon i { font-size: 1.15rem; line-height: 1; }
.mega-icon svg { width: 1.25rem; height: 1.25rem; }
.mega-icon { font-size: 1.15rem; line-height: 1; }

/* ---------- Mobile drawer ---------- */
.drawer {
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-scrim {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.drawer-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ---------- Accordion ---------- */
.acc-item > .acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-item > .acc-body > div { overflow: hidden; }
.acc-item.is-open > .acc-body { grid-template-rows: 1fr; }
.acc-item .acc-chevron { transition: transform 0.25s ease; }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }

/* ---------- Tabs ---------- */
.tab-btn { position: relative; }
.tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: #00B0C0;
}

/* ---------- Product / lab image placeholder ---------- */
.ph-img {
  background:
    linear-gradient(135deg, rgba(186, 235, 242, 0.55), rgba(0, 176, 192, 0.10)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 50%);
  display: grid;
  place-items: center;
  color: #00919B;
}
.ph-img svg { width: 48%; height: 48%; max-width: 120px; opacity: 0.7; }

/* ---------- Underline mark - accent for headings ---------- */
.mark-line::after {
  background: linear-gradient(90deg, #00B0C0, #00ABA7);
}

/* ---------- Pretty scrollbars for filter sidebars ---------- */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #BAEBF2; border-radius: 8px; }
.scroll-thin::-webkit-scrollbar-thumb:hover { background: #00B0C0; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* ---------- Sticky table-of-contents on blog post ---------- */
.toc-link { position: relative; padding-left: 14px; }
.toc-link::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #BAEBF2;
  transform: translateY(-50%);
}
.toc-link.is-active { color: #00919B; font-weight: 600; }
.toc-link.is-active::before { background: #00B0C0; }

/* ---------- Print: keep things calm ---------- */
@media print {
  .no-print, header, footer, .nav-main, .nav-top { display: none !important; }
}

/* ---------- Phase 4: ad banners ---------- */
.ad-banner { position: relative; display: block; }
.ad-banner .ad-label {
  position: absolute; top: 8px; right: 8px;
  background: rgba(17, 24, 39, .78); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: .05em; text-transform: uppercase;
  z-index: 2;
}
.ad-banner.ad-text { padding-right: 80px; }   /* room for the label */
.ad-image img { width: 100%; height: auto; border-radius: 12px; }

/* ============================================================
   Category listing experience (.catx) — shop / rent / lab / pharmacy
   Rebuilt to the "Shop Medical Equipment" design. Responsive: desktop
   uses a sticky filter rail + product grid; mobile uses a horizontal-card
   list + bottom-sheet filter. Hand-written here so it ships without a
   Tailwind rebuild. Brand tokens: brand #00B0C0 / deep #00919B / navy
   #0F4C5C / mist #BAEBF2 / line #E2EEF1 / ink-soft #64748B.
   ============================================================ */

/* ---- Hero ---- */
.catx-hero {
  display: grid; gap: 1.25rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.72fr);
}
.catx-hero-copy { min-width: 0; }
.catx-hero-title {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C;
  font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.01em;
}
.catx-hero-sub { margin-top: 0.6rem; color: #334155; font-size: clamp(0.9rem, 2.6vw, 1.075rem); line-height: 1.55; max-width: 34rem; }
.catx-hero-cta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.catx-hero-visual { display: flex; justify-content: flex-end; }
.catx-collage {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
  width: 100%; max-width: 340px;
}
.catx-collage-cell {
  aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #E2EEF1; box-shadow: 0 10px 26px -14px rgba(0, 145, 155, 0.35);
  display: grid; place-items: center;
}
.catx-collage-cell:nth-child(1) { transform: translateY(-8px); }
.catx-collage-cell:nth-child(4) { transform: translateY(8px); }
.catx-collage-cell img { width: 100%; height: 100%; object-fit: cover; }
.catx-hero-glyph {
  width: 100%; max-width: 300px; aspect-ratio: 4 / 3; border-radius: 22px;
  background: linear-gradient(135deg, rgba(186, 235, 242, 0.7), rgba(0, 176, 192, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 16px 40px -18px rgba(0, 145, 155, 0.45);
  display: grid; place-items: center; color: #00919B;
}
.catx-hero-glyph i { font-size: clamp(2.5rem, 9vw, 4.5rem); }

/* ---- Category tabs ---- */
.catx-tabsbar { background: #fff; border-top: 1px solid #E2EEF1; border-bottom: 1px solid #E2EEF1; }
.catx-tabs {
  display: flex; gap: 0.6rem; overflow-x: auto; scroll-behavior: smooth;
  padding: 0.85rem 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.catx-tabs::-webkit-scrollbar { height: 0; }
.catx-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.85rem; border: 1px solid #E2EEF1; border-radius: 14px;
  background: #fff; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s, background .15s;
  min-width: 148px;
}
.catx-tab:hover { border-color: #BAEBF2; box-shadow: 0 8px 20px -14px rgba(0, 145, 155, 0.4); }
.catx-tab.is-active { border-color: #00B0C0; background: #F2FCFD; box-shadow: 0 0 0 1px #00B0C0 inset; }
.catx-tab-ico {
  width: 2.35rem; height: 2.35rem; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: rgba(186, 235, 242, 0.5); color: #00919B; font-size: 1.15rem;
}
.catx-tab-ico i { font-size: 1.15rem; line-height: 1; }
.catx-tab-ico svg { width: 1.25rem; height: 1.25rem; }
.catx-tab.is-active .catx-tab-ico { background: #00B0C0; color: #fff; }
.catx-tab-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.catx-tab-name { font-weight: 600; color: #0F4C5C; font-size: 0.9rem; white-space: nowrap; }
.catx-tab-meta { font-size: 0.72rem; color: #64748B; white-space: nowrap; }

/* ---- Tab-bar scroll arrows (injected by catx.js) ----
   The wrapper is positioned so the arrows and their edge-fades sit over the
   scroller. JS toggles .can-prev / .can-next on the wrapper from the scroll
   position, which drives BOTH the fade and the matching arrow: an arrow is
   shown only when there is something to scroll to on that side. */
.catx-tabs-wrap { position: relative; }
.catx-tabs-wrap::before,
.catx-tabs-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3.75rem; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
}
.catx-tabs-wrap::before { left: 0;  background: linear-gradient(90deg,  #fff 28%, rgba(255,255,255,0)); }
.catx-tabs-wrap::after  { right: 0; background: linear-gradient(270deg, #fff 28%, rgba(255,255,255,0)); }
.catx-tabs-wrap.can-prev::before { opacity: 1; }
.catx-tabs-wrap.can-next::after  { opacity: 1; }

.catx-tabnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.55rem; height: 2.55rem; border-radius: 999px; padding: 0;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #E2EEF1; color: #00919B; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0, 145, 155, 0.55);
  opacity: 0; visibility: hidden;   /* hidden AND out of tab order until needed */
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.14s ease,
              box-shadow 0.14s ease, border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.catx-tabnav svg { width: 1.2rem; height: 1.2rem; display: block; }
.catx-tabnav:hover { border-color: #00B0C0; color: #00B0C0; background: #F2FCFD;
  box-shadow: 0 12px 26px -8px rgba(0, 145, 155, 0.6); }
.catx-tabnav:active { transform: translateY(-50%) scale(0.93); }
.catx-tabnav:focus-visible { outline: 2px solid #00B0C0; outline-offset: 2px; }
.catx-tabnav-prev { left: -0.35rem; }
.catx-tabnav-next { right: -0.35rem; }
.catx-tabs-wrap.can-prev .catx-tabnav-prev,
.catx-tabs-wrap.can-next .catx-tabnav-next { opacity: 1; visibility: visible; }

/* Touch devices keep the clean swipe + fade; the clickable arrows are a
   pointer affordance, so only surface them where a fine pointer exists. */
@media (hover: none), (pointer: coarse) {
  .catx-tabnav { display: none; }
}

/* ---- Shell / toolbar ---- */
.catx-shell { padding: 1.25rem 0 2rem; }
.catx-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 0.7rem 0.8rem;
  box-shadow: 0 8px 24px -20px rgba(0, 145, 155, 0.4); margin-bottom: 1.25rem;
}
.catx-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 0; }
.catx-search svg { position: absolute; left: 0.85rem; width: 1.05rem; height: 1.05rem; color: #64748B; pointer-events: none; }
.catx-search input {
  width: 100%; border: 1px solid #E2EEF1; border-radius: 11px; background: #F8FCFD;
  padding: 0.62rem 0.9rem 0.62rem 2.5rem; font-size: 0.9rem; color: #334155; outline: none; transition: border-color .15s, box-shadow .15s;
}
.catx-search input:focus { border-color: #00B0C0; box-shadow: 0 0 0 3px rgba(0, 176, 192, 0.16); background: #fff; }
.catx-toolbar-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.catx-tool-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.9rem;
  border: 1px solid #E2EEF1; border-radius: 11px; background: #fff; color: #0F4C5C; font-weight: 600; font-size: 0.875rem;
}
.catx-tool-btn svg { width: 1.05rem; height: 1.05rem; }
.catx-filter-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #00B0C0; color: #fff; font-size: 0.68rem; font-weight: 700;
}
.catx-filter-count[hidden] { display: none; }
.catx-sort { display: inline-flex; align-items: center; gap: 0.45rem; }
.catx-sort-label { font-size: 0.82rem; color: #64748B; font-weight: 500; }
.catx-sort .select { padding: 0.5rem 2.1rem 0.5rem 0.8rem; font-size: 0.875rem; width: auto; min-width: 9.5rem; }

/* ---- Layout: rail + results ---- */
.catx-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.catx-results { min-width: 0; }
.catx-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.catx-count { font-size: 0.85rem; color: #64748B; }
.catx-count strong { color: #0F4C5C; font-weight: 700; }

/* Rail reuses .filter-panel (mobile bottom-sheet / desktop sticky). */
.catx-rail .filter-card { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.1rem; }
.catx-facet { border-top: 1px solid #EEF4F6; padding-top: 1rem; }
.catx-facet:first-child { border-top: 0; padding-top: 0; }
.catx-facet-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: #0F4C5C; margin-bottom: 0.6rem; }
.catx-facet-row { display: flex; align-items: baseline; justify-content: space-between; }
/* flex-basis:100% keeps the "In <leaf>" label on its own row instead of sharing
   a line with the first chip. */
.catx-facet-sub { display: block; flex: 0 0 100%; margin: 0.75rem 0 0.4rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 600; }
.catx-catlist { display: flex; flex-direction: column; gap: 0.1rem; }
.catx-catlink {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0.55rem; border-radius: 9px; color: #334155; font-size: 0.9rem; transition: background .12s, color .12s;
}
.catx-catlink:hover { background: rgba(186, 235, 242, 0.28); color: #00919B; }
.catx-catlink.is-active { background: rgba(0, 176, 192, 0.1); color: #00919B; font-weight: 600; }
.catx-catcount { font-style: normal; font-size: 0.75rem; color: #94a3b8; }
.catx-catlink.is-active .catx-catcount { color: #00919B; }
.catx-subcats { display: flex; flex-wrap: wrap; gap: 0.35rem; }
/* The chip for the category you are already on: shown for context (it is one of
   the siblings) but not a link, so it reads as the current position rather than
   a dead one. */
.catx-subcats .chip.is-active { background: #00B0C0; color: #fff; font-weight: 600; cursor: default; }
.catx-check { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.1rem; font-size: 0.9rem; color: #334155; cursor: pointer; }
.catx-check input { width: 1rem; height: 1rem; accent-color: #00B0C0; flex-shrink: 0; }
.catx-check span { flex: 1; }
.catx-price-lbl { font-size: 0.82rem; color: #0F4C5C; font-weight: 600; }
.catx-facet-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: #94a3b8; margin-top: 0.4rem; }
.catx-brandlist { display: flex; flex-direction: column; gap: 0.15rem; max-height: 14rem; overflow-y: auto; }
.catx-facet-actions { border-top: 1px solid #EEF4F6; padding-top: 0.9rem; }

/* ---- Product grid + cards (mobile: horizontal • sm+: vertical) ---- */
.catx-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.catx-card {
  display: flex; flex-direction: row; gap: 0.85rem; background: #fff;
  border: 1px solid #E2EEF1; border-radius: 16px; padding: 0.65rem;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.catx-card:hover { box-shadow: 0 16px 34px -22px rgba(0, 145, 155, 0.5); border-color: #BAEBF2; transform: translateY(-2px); }
.catx-card-media {
  position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px;
  overflow: hidden; display: grid; place-items: center;
}
.catx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.catx-card-media svg { width: 42%; height: 42%; opacity: 0.7; }
.catx-badge {
  position: absolute; top: 0.4rem; left: 0.4rem; font-size: 0.66rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 999px; letter-spacing: 0.01em;
}
.catx-badge.is-stock { background: #ecfdf5; color: #047857; }
.catx-badge.is-hot   { background: rgba(0, 176, 192, 0.12); color: #00919B; }
.catx-badge.is-new   { background: #fff7ed; color: #c2410c; }
/* Out-of-stock: a red pill on the media (top-right, opposite the promo badge)
   and a dimmed image so the card reads as unavailable at a glance. */
.catx-oos {
  position: absolute; top: 0.4rem; right: 0.4rem; z-index: 1;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; white-space: nowrap;
}
.catx-card-media.is-oos img { opacity: 0.5; filter: grayscale(0.25); }
.catx-actionbtn.is-muted { background: #eef2f6; color: #64748B; }
.catx-actionbtn.is-muted:hover { background: #e2e8f0; color: #0F4C5C; }
.catx-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.catx-card-info { min-width: 0; }
.catx-card-title {
  display: block; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C;
  font-size: 0.95rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.catx-card-title:hover { color: #00919B; }
.catx-card-brand { font-size: 0.78rem; color: #64748B; margin-top: 0.15rem; }
.catx-card-rating { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.3rem; font-size: 0.78rem; color: #64748B; }
.catx-card-rating .bi-star-fill { color: #f59e0b; font-size: 0.8rem; }
.catx-rate-num { font-weight: 600; color: #334155; }
.catx-rate-none { color: #94a3b8; }
.catx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; }
.catx-price { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #00919B; font-size: 1.02rem; line-height: 1; }
.catx-price small { font-size: 0.72rem; font-weight: 500; color: #94a3b8; }
.catx-price-ask { font-size: 0.85rem; font-weight: 600; color: #64748B; }
.catx-iconbtn {
  display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; flex-shrink: 0;
  border: 1px solid #00B0C0; border-radius: 11px; background: #F2FCFD; color: #00919B;
  cursor: pointer; transition: background .14s, color .14s;
}
.catx-iconbtn:hover { background: #00B0C0; color: #fff; }
.catx-iconbtn svg { width: 1.15rem; height: 1.15rem; }
.catx-actionbtn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.95rem;
  border-radius: 11px; background: #00B0C0; color: #fff; font-weight: 600; font-size: 0.85rem; transition: background .14s;
}
.catx-actionbtn:hover { background: #00919B; color: #fff; }

/* ---- Lab test list ---- */
.catx-testgrid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.catx-test {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 1rem 1.1rem; transition: box-shadow .16s, border-color .16s;
}
.catx-test:hover { box-shadow: 0 16px 34px -24px rgba(0, 145, 155, 0.5); border-color: #BAEBF2; }
.catx-test-main { min-width: 0; }
.catx-test-title { display: block; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; font-size: 1rem; margin-top: 0.35rem; }
.catx-test-title:hover { color: #00919B; }
.catx-test-desc { font-size: 0.82rem; color: #64748B; margin-top: 0.25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.catx-test-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

/* ---- Empty / no-results ---- */
.catx-empty, .catx-noresults { text-align: center; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
/* A class-level display: value would otherwise beat the UA [hidden] rule, so
   the JS-toggled no-results card must be explicitly collapsed when hidden. */
.catx-empty[hidden], .catx-noresults[hidden] { display: none; }
.catx-empty-ico { width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid; place-items: center; background: rgba(186, 235, 242, 0.4); color: #00919B; font-size: 1.5rem; margin-bottom: 0.3rem; }

/* ---- Load more ---- */
.catx-more { display: flex; flex-direction: column; align-items: center; margin-top: 1.75rem; }
.catx-more-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.6rem; border-radius: 999px;
  border: 1px solid #BAEBF2; background: #fff; color: #00919B; cursor: pointer;
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 10px 26px -18px rgba(0, 145, 155, 0.55);
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s;
}
.catx-more-btn:hover { background: #00B0C0; color: #fff; border-color: #00B0C0;
  box-shadow: 0 14px 30px -14px rgba(0, 145, 155, 0.6); transform: translateY(-1px); }
.catx-more-btn:active { transform: translateY(0); }
.catx-more-count {
  font-weight: 500; font-size: 0.78rem; padding: 0.1rem 0.5rem; border-radius: 999px;
  background: rgba(0, 176, 192, 0.12); color: inherit;
}
.catx-more-btn:hover .catx-more-count { background: rgba(255, 255, 255, 0.22); }
.catx-more-ico { width: 1.05rem; height: 1.05rem; transition: transform .2s ease; }
.catx-more-btn:hover .catx-more-ico { transform: translateY(2px); }

/* Loading: swap the down-arrow for a spinner and dim the label. */
.catx-more-btn.is-loading { pointer-events: none; }
.catx-more-btn.is-loading .catx-more-count { display: none; }
.catx-more-btn.is-loading .catx-more-label { opacity: 0.7; }
.catx-more-btn.is-loading .catx-more-ico {
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px;
  animation: catx-spin 0.6s linear infinite;
}
.catx-more-btn.is-loading .catx-more-ico path { display: none; }
@keyframes catx-spin { to { transform: rotate(360deg); } }
.catx-more-sentinel { display: block; width: 1px; height: 1px; }

/* ---- Trust / features strip ---- */
.catx-trust { background: #fff; border-top: 1px solid #E2EEF1; padding: 1.4rem 0; }
.catx-why { display: none; text-align: center; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; margin-bottom: 0.9rem; }
.catx-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.catx-feature { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
.catx-feature-ico { width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: rgba(186, 235, 242, 0.45); color: #00919B; font-size: 1.2rem; }
.catx-feature-txt { display: flex; flex-direction: column; line-height: 1.2; }
.catx-feature-txt strong { color: #0F4C5C; font-weight: 600; font-size: 0.9rem; }
.catx-feature-txt em { font-style: normal; color: #64748B; font-size: 0.78rem; }

/* ---- Provider directory (doctors / nurses) rail form + cards ---- */
.catx-railform { display: flex; flex-direction: column; gap: 0.9rem; }
.catx-rfield label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: #64748B; margin-bottom: 0.3rem; }
.catx-rcheck { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #334155; cursor: pointer; }
.catx-rcheck input { width: 1rem; height: 1rem; accent-color: #00B0C0; }
.catx-railbtns { display: flex; flex-direction: column; gap: 0.5rem; }

.catx-pgrid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.catx-pcard {
  display: flex; flex-direction: column; gap: 0.7rem; background: #fff;
  border: 1px solid #E2EEF1; border-radius: 16px; padding: 1rem; transition: box-shadow .16s, transform .16s, border-color .16s;
}
.catx-pcard:hover { box-shadow: 0 16px 34px -22px rgba(0, 145, 155, 0.5); border-color: #BAEBF2; transform: translateY(-2px); }
.catx-pcard-head { display: flex; align-items: center; gap: 0.8rem; }
.catx-pcard-photo { width: 3.4rem; height: 3.4rem; flex-shrink: 0; border-radius: 14px; object-fit: cover; }
.catx-pcard-photo.is-initials { display: grid; place-items: center; background: rgba(186, 235, 242, 0.5); color: #0F4C5C; font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; }
.catx-pcard-id { min-width: 0; }
.catx-pcard-name { display: flex; align-items: center; gap: 0.3rem; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; font-size: 0.98rem; line-height: 1.2; }
.catx-pcard-name a { color: inherit; }
.catx-pcard-name a:hover { color: #00919B; }
.catx-pcard-verified { color: #00919B; font-size: 0.8rem; }
.catx-pcard-flag { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #b45309; background: #fef3c7; padding: 0.05rem 0.4rem; border-radius: 999px; }
.catx-pcard-spec { font-size: 0.82rem; color: #00919B; font-weight: 500; margin-top: 0.1rem; }
.catx-pcard-kind { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 600; }
.catx-pcard-meta { font-size: 0.82rem; color: #64748B; line-height: 1.4; }
.catx-pcard-meta i { color: #00B0C0; margin-right: 0.15rem; }
.catx-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid #EEF4F6; }
.catx-pcard-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.82rem; color: #64748B; }
.catx-pcard-rating .bi-star-fill { color: #f59e0b; font-size: 0.8rem; }
.catx-pcard-rating strong { color: #334155; font-weight: 600; }
.catx-pcard-priceblock { display: flex; align-items: center; gap: 0.5rem; }
.catx-pcard-fee { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #0F4C5C; font-size: 0.95rem; }
.catx-pcard-fee small { font-size: 0.68rem; font-weight: 500; color: #94a3b8; }
.catx-pcard-book {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.45rem 0.9rem;
  border-radius: 11px; background: #00B0C0; color: #fff; font-weight: 600; font-size: 0.82rem; transition: background .14s;
}
.catx-pcard-book:hover { background: #00919B; color: #fff; }

@media (min-width: 640px) { .catx-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1280px) { .catx-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Responsive: sm (640px+) → vertical cards + wider hero visual ---- */
@media (min-width: 640px) {
  .catx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .catx-card { flex-direction: column; padding: 0.85rem; }
  .catx-card-media { flex: none; width: 100%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 0.75rem; }
  .catx-card-media svg { width: 34%; height: 34%; }
  .catx-testgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Responsive: lg (1024px+) → sticky rail + 3-up grid ---- */
@media (min-width: 1024px) {
  .catx-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 2rem; }
  .catx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catx-tool-btn { display: none; }              /* beats lg:hidden ordering issue */
  .catx-rail .filter-card { max-height: calc(100vh - 120px); overflow-y: auto; }
  /* Mobile-only blocks: the bottom-sheet needs them, the desktop rail doesn't
     (the tabs bar above the grid covers top-level categories). Applied to the
     top-level list, and to its whole facet when there are no sub-category
     chips to keep it company. */
  .catx-facet-mobile { display: none; }
  /* :first-child still matches a display:none element, so a hidden Categories
     facet would keep eating the "no divider on top" rule and leave the next
     facet with a stray border. Re-target it at whatever is visibly first. */
  .catx-facet-mobile + .catx-facet { border-top: 0; padding-top: 0; }
  /* With the list above it hidden, the chips label is first in the rail - drop
     the margin that only existed to separate it from that list. */
  .catx-facet-mobile + .catx-subcats .catx-facet-sub { margin-top: 0; }
}

/* ---- Responsive: xl (1280px+) → 4-up grid ---- */
@media (min-width: 1280px) {
  .catx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   Homepage bands (.hx) — everything below the hero.
   Mobile-first: section bodies are horizontal snap rails that widen into
   grids at sm/lg. Hand-written alongside .catx so it ships without a
   Tailwind rebuild. Same tokens: brand #00B0C0 / deep #00919B /
   navy #0F4C5C / mist #BAEBF2 / line #E2EEF1 / ink-soft #64748B.
   ============================================================ */

/* ---- Section header (eyebrow + title on the left, "see all" on the right) ---- */
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.hx-seeall {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
  color: #00919B; font-weight: 600; font-size: 0.875rem; white-space: nowrap;
}
.hx-seeall:hover { color: #0F4C5C; }
.hx-seeall svg { width: 1rem; height: 1rem; transition: transform .15s; }
.hx-seeall:hover svg { transform: translateX(2px); }
.hx-seeall .hx-seeall-long { display: none; }

/* ---- Rail: horizontal snap-scroller on mobile, wrapping row from sm up ---- */
.hx-rail {
  display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* Bleed through .container-x's 1rem mobile gutter so the rail scrolls to
     the viewport edge instead of clipping mid-card. Undone at sm+, where the
     gutter widens and the rail becomes a wrapping row anyway. */
  margin-inline: -1rem;
  padding-inline: 1rem;
  padding-bottom: 0.35rem;
}
.hx-rail::-webkit-scrollbar { height: 0; }
.hx-rail > * { flex: 0 0 auto; scroll-snap-align: start; }

/* ---- Trust / feature strip ---- */
.hx-trust { background: #fff; border-top: 1px solid #E2EEF1; border-bottom: 1px solid #E2EEF1; }
.hx-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; padding: 1.15rem 0; }
.hx-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
.hx-feature-ico {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: rgba(186, 235, 242, 0.45); color: #00919B;
}
.hx-feature-ico svg { width: 1.25rem; height: 1.25rem; }
.hx-feature-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hx-feature-txt strong { color: #0F4C5C; font-weight: 600; font-size: 0.74rem; }
.hx-feature-txt em { font-style: normal; color: #64748B; font-size: 0.72rem; display: none; }

/* ---- Category cards ---- */
.hx-cat {
  display: flex; align-items: center; gap: 0.65rem; width: 10.75rem;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 0.7rem;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.hx-cat:hover { border-color: #BAEBF2; box-shadow: 0 16px 34px -22px rgba(0, 145, 155, 0.5); transform: translateY(-2px); }
.hx-cat-ico {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: rgba(186, 235, 242, 0.5); color: #00919B;
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 0.8rem;
}
.hx-cat-ico i { font-size: 1.2rem; line-height: 1; }
.hx-cat-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
/* Wrap to two lines rather than ellipsising: real category names ("Respiratory
   Care") are longer than the card is wide, and a mid-word "Respirator…" reads
   worse than a second line. */
.hx-cat-txt strong {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; font-size: 0.82rem;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hx-cat-txt em { font-style: normal; font-size: 0.7rem; color: #64748B; }

/* ---- Brand logo cards ---- */
.hx-brand {
  display: grid; place-items: center; width: 7.5rem; height: 4rem;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 14px; padding: 0.75rem;
  transition: box-shadow .16s, border-color .16s;
}
.hx-brand:hover { border-color: #BAEBF2; box-shadow: 0 14px 30px -22px rgba(0, 145, 155, 0.55); }
/* Cap the logo in absolute units, not %: the grid area is content-sized, so a
   percentage max-height is circular, gets dropped, and the logo spills out. */
.hx-brand img { max-width: 100%; max-height: 2.25rem; object-fit: contain; }
.hx-brand span {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C;
  font-size: 0.82rem; text-align: center; line-height: 1.2;
}

/* ---- Rent band ---- */
.hx-rent {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, rgba(186, 235, 242, 0.5), #fff 65%);
  border: 1px solid #E2EEF1; border-radius: 20px; padding: 1.1rem;
}
.hx-rent-copy { min-width: 0; }
.hx-rent-lead, .hx-rent-bullets { display: none; }
.hx-rent-cta { margin-top: 0.85rem; }
.hx-rent-bullets { list-style: none; margin: 1.1rem 0 0; padding: 0; gap: 0.5rem 1.6rem; flex-wrap: wrap; }
.hx-rent-bullets li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #334155; }
.hx-rent-bullets svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; color: #00919B; }
.hx-rent-panel { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
/* Mobile shows a single thumbnail — extra rent picks would push the copy out. */
.hx-rent-panel > :nth-child(n + 2) { display: none; }
.hx-rentcard { display: flex; align-items: center; gap: 0.85rem; }
.hx-rentcard-media {
  flex: 0 0 5.25rem; width: 5.25rem; height: 5.25rem; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
}
.hx-rentcard-media img { width: 100%; height: 100%; object-fit: contain; }
.hx-rentcard-media svg { width: 42%; height: 42%; opacity: 0.7; }
.hx-rentcard-body { display: none; flex-direction: column; gap: 0.3rem; min-width: 0; }
.hx-rentcard-title {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; font-size: 0.95rem; line-height: 1.25;
}
.hx-rentcard-title:hover { color: #00919B; }
.hx-rentcard-price { font-size: 0.82rem; color: #64748B; }
.hx-rentcard-price strong { color: #0F4C5C; font-weight: 700; }
.hx-rentcard-btn {
  align-self: flex-start; margin-top: 0.2rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.4rem 0.9rem; border: 1px solid #00B0C0; border-radius: 10px;
  background: #fff; color: #00919B; font-weight: 600; font-size: 0.82rem; transition: background .14s, color .14s;
}
.hx-rentcard-btn:hover { background: #00B0C0; color: #fff; }

/* ---- Testimonials ---- */
.hx-story {
  display: flex; flex-direction: column; width: 17rem;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 1.1rem;
}
.hx-story-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 0.05em; }
.hx-story-quote { margin: 0.6rem 0 0; color: #334155; font-size: 0.88rem; line-height: 1.6; }
.hx-story-by { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.hx-story-avatar {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center;
  background: rgba(186, 235, 242, 0.6); color: #0F4C5C; font-weight: 700; font-size: 0.72rem;
}
.hx-story-who { display: flex; flex-direction: column; min-width: 0; }
.hx-story-name { font-weight: 600; color: #0F4C5C; font-size: 0.85rem; line-height: 1.3; }
.hx-story-city { font-size: 0.72rem; color: #94a3b8; }

/* ---- Services teaser ---- */
.hx-services { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.hx-svc {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 1rem;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.hx-svc:hover { border-color: #BAEBF2; box-shadow: 0 16px 34px -22px rgba(0, 145, 155, 0.5); transform: translateY(-2px); }
.hx-svc-ico {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: rgba(186, 235, 242, 0.5); color: #00919B;
}
.hx-svc-ico svg { width: 1.3rem; height: 1.3rem; }
.hx-svc-body { display: block; min-width: 0; }
.hx-svc-title { display: block; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #0F4C5C; font-size: 0.95rem; line-height: 1.3; }
.hx-svc-desc { display: block; font-size: 0.82rem; color: #64748B; margin-top: 0.25rem; line-height: 1.5; }
.hx-svc-more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.55rem; color: #00919B; font-weight: 600; font-size: 0.8rem; }
.hx-svc-more svg { width: 0.9rem; height: 0.9rem; transition: transform .15s; }
.hx-svc:hover .hx-svc-more svg { transform: translateX(2px); }

/* ---- Newsletter ---- */
.hx-news {
  position: relative; overflow: hidden; border-radius: 20px; padding: 1.5rem;
  background: linear-gradient(120deg, #00B0C0, #00919B);
  display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: center;
}
.hx-news-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #fff; font-size: clamp(1.15rem, 4vw, 1.6rem); line-height: 1.25; }
.hx-news-sub { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; margin-top: 0.4rem; line-height: 1.5; max-width: 30rem; }
.hx-news-form { display: flex; gap: 0.5rem; min-width: 0; }
.hx-news-form input {
  flex: 1; min-width: 0; border: 0; border-radius: 11px; padding: 0.7rem 0.9rem;
  background: #fff; color: #0f172a; font-size: 0.9rem; outline: none;
}
.hx-news-form input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.hx-news-form button {
  flex-shrink: 0; border: 0; border-radius: 11px; padding: 0 1.2rem;
  background: #0F4C5C; color: #fff; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background .14s;
}
.hx-news-form button:hover { background: #0b3a46; }
.hx-news-art { display: none; }

/* ---- sm (640px+): rails relax into grids ---- */
@media (min-width: 640px) {
  .hx-rail { margin-inline: 0; padding-inline: 0; overflow-x: visible; flex-wrap: wrap; }
  .hx-rail > * { flex: 1 1 auto; }
  .hx-cat { width: auto; flex: 1 1 10rem; max-width: 20rem; }
  .hx-brand { width: auto; flex: 1 1 8rem; max-width: 16rem; height: 4.5rem; }
  .hx-brand img { max-height: 2.75rem; }
  .hx-story { width: auto; flex: 1 1 16rem; }
  .hx-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .hx-feature { flex-direction: row; text-align: left; gap: 0.7rem; justify-content: center; }
  .hx-feature-txt strong { font-size: 0.9rem; }
  .hx-feature-txt em { display: block; }
  .hx-features { padding: 1.5rem 0; gap: 0.75rem; }
  .hx-news { padding: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
  .hx-rentcard-body { display: flex; }
  .hx-rent-panel > :nth-child(n + 2) { display: flex; }
}

/* ---- lg (1024px+): full desktop composition ---- */
@media (min-width: 1024px) {
  .hx-head { margin-bottom: 2.25rem; }
  .hx-seeall .hx-seeall-long { display: inline; }
  .hx-seeall .hx-seeall-short { display: none; }
  .hx-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-story { flex-basis: 0; }
  .hx-rent {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    gap: 2rem; padding: 2rem 2.25rem; align-items: center;
  }
  .hx-rent-lead { display: block; margin-top: 0.9rem; color: #334155; font-size: 0.95rem; line-height: 1.6; max-width: 34rem; }
  .hx-rent-bullets { display: flex; }
  .hx-rent-cta { margin-top: 1.5rem; }
  .hx-rent-panel { background: #fff; border: 1px solid #E2EEF1; border-radius: 16px; padding: 1rem; gap: 1rem; }
  .hx-rent-panel > * + * { border-top: 1px solid #EEF4F6; padding-top: 1rem; }
  .hx-rentcard-media { flex: 0 0 7.5rem; width: 7.5rem; height: 7.5rem; }
  .hx-news { padding: 2.5rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem) auto; gap: 2rem; }
  .hx-news-art { display: block; flex-shrink: 0; color: #fff; opacity: 0.9; }
  .hx-news-art svg { width: 7.5rem; height: 7.5rem; }
}

/* ---- Mobile tweaks (< 640px) ---- */
@media (max-width: 639.98px) {
  .catx-hero {
    background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px; padding: 1rem; box-shadow: 0 10px 30px -20px rgba(0, 145, 155, 0.5);
  }
  .catx-hero-visual { align-self: stretch; }
  .catx-collage { max-width: 130px; gap: 0.35rem; }
  .catx-collage-cell:nth-child(3), .catx-collage-cell:nth-child(4) { display: none; }
  .catx-hero-glyph { aspect-ratio: 1 / 1; max-width: 120px; }
  .catx-why { display: block; }
  .catx-features { gap: 0.4rem; }
  .catx-feature { flex-direction: column; text-align: center; gap: 0.35rem; }
  .catx-feature-txt em { display: none; }
  .catx-feature-txt strong { font-size: 0.74rem; }
  .catx-sort-label { display: none; }
  .catx-sort .select { min-width: 8rem; }
}


/* ============================================================================
   Product compare (shop/sale listings) - compare.js + front/compare.php
   ========================================================================== */
/* Floating pill over the card image (bottom-right; badge sits top-left and the
   OOS pill top-right). compare.js hides it on non-eligible cards once a first
   product is picked, and flips it to .is-active ("Added") when selected. */
.catx-cmpbtn {
  position: absolute; bottom: 0.4rem; right: 0.4rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.28rem;
  background: rgba(255, 255, 255, 0.94); color: #475569;
  border: 1px solid #E2EEF1; border-radius: 999px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.24rem 0.55rem; cursor: pointer;
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.5);
}
.catx-cmpbtn svg { width: 0.8rem; height: 0.8rem; }
.catx-cmpbtn:hover { color: #00919B; border-color: #BAEBF2; }
.catx-cmpbtn.is-active { background: #00919B; color: #fff; border-color: #00919B; }
.catx-cmpbtn.is-active:hover { background: #007e87; color: #fff; }

.cmp-bar {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 1rem;
  max-width: min(92vw, 46rem); padding: 0.65rem 0.9rem;
  background: #0f172a; color: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.6);
}
.cmp-bar-info { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.cmp-bar-count { font-size: 0.82rem; }
.cmp-bar-names {
  font-size: 0.74rem; color: #cbd5e1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 28rem;
}
.cmp-bar-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cmp-bar-clear {
  background: none; border: 0; color: #94a3b8; font-size: 0.8rem;
  cursor: pointer; padding: 0.35rem 0.4rem;
}
.cmp-bar-clear:hover { color: #fff; }
.cmp-bar-go {
  background: #00919B; border: 0; color: #fff; font-weight: 600;
  font-size: 0.85rem; padding: 0.5rem 1.1rem; border-radius: 10px; cursor: pointer;
}
.cmp-bar-go:hover { background: #007e87; }
.cmp-bar-go.is-dim { opacity: 0.55; }

.cmp-toast {
  position: fixed; left: 50%; bottom: 4.6rem; transform: translateX(-50%) translateY(6px);
  z-index: 61; background: #b91c1c; color: #fff; font-size: 0.82rem;
  padding: 0.5rem 0.9rem; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 30px -12px rgba(185, 28, 28, 0.6);
  max-width: 92vw; text-align: center;
}
.cmp-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Compare page table */
.cmp-wrap { overflow-x: auto; border: 1px solid #E2EEF1; border-radius: 16px; background: #fff; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.cmp-table th, .cmp-table td {
  border-bottom: 1px solid #EEF4F6; border-right: 1px solid #EEF4F6;
  padding: 0.7rem 0.9rem; vertical-align: top; text-align: left; font-size: 0.88rem;
}
.cmp-table th:last-child, .cmp-table td:last-child { border-right: 0; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th { background: #F8FBFC; vertical-align: bottom; }
.cmp-rowlabel {
  width: 11rem; min-width: 9rem; background: #F8FBFC; color: #475569;
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.cmp-prod { min-width: 12rem; }
.cmp-prod-media {
  display: flex; align-items: center; justify-content: center;
  height: 8rem; background: #F8FBFC; border-radius: 12px; margin-bottom: 0.6rem; overflow: hidden;
}
.cmp-prod-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cmp-prod-name { font-weight: 600; color: #0f172a; text-decoration: none; display: block; }
.cmp-prod-name:hover { color: #00919B; }
.cmp-remove { font-size: 0.76rem; color: #94a3b8; text-decoration: none; display: inline-block; margin-top: 0.3rem; }
.cmp-remove:hover { color: #b91c1c; }
.cmp-price-now { font-weight: 700; color: #0f172a; }
.cmp-price-was { color: #94a3b8; text-decoration: line-through; font-size: 0.8rem; margin-left: 0.35rem; }
.cmp-save { color: #047857; font-size: 0.78rem; font-weight: 600; margin-left: 0.35rem; }
.cmp-muted { color: #94a3b8; }
.cmp-instock { color: #047857; font-weight: 600; }
.cmp-oos { color: #b91c1c; font-weight: 600; }

/* ============================================================================
   Search autocomplete (search-suggest.js) - dropdown under any [data-suggest]
   ========================================================================== */
.sgg-anchor { position: relative; }
.sgg-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: #fff; border: 1px solid #E2EEF1; border-radius: 14px;
  box-shadow: 0 24px 50px -22px rgba(15, 23, 42, 0.35);
  max-height: 24rem; overflow-y: auto; padding: 0.35rem; text-align: left;
}
.sgg-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.45rem 0.55rem; border-radius: 10px; text-decoration: none;
}
.sgg-item:hover, .sgg-item.is-hot { background: #F0F7F8; }
.sgg-thumb {
  flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; border-radius: 8px;
  background: #F8FBFC; border: 1px solid #EEF4F6; overflow: hidden;
  display: grid; place-items: center;
}
.sgg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sgg-txt { min-width: 0; display: flex; flex-direction: column; }
.sgg-name {
  color: #0f172a; font-size: 0.88rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sgg-sub { color: #64748b; font-size: 0.74rem; }
.sgg-all {
  display: block; text-align: center; font-size: 0.8rem; font-weight: 600;
  color: #00919B; text-decoration: none; padding: 0.55rem 0.5rem;
  border-top: 1px solid #EEF4F6; margin-top: 0.25rem;
}
.sgg-all:hover { text-decoration: underline; }

/* ============================================================================
   Verified seller badges (F4 vendor verification)
   ========================================================================== */
/* Seller page hero, beside the name */
.vseller-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; vertical-align: middle;
  background: rgba(0, 176, 192, 0.1); color: #00919B;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}
.vseller-badge .bi { font-size: 0.95em; }

/* Listing card: pill floating top-left over the product image (same corner
   spec as .catx-badge; a promo badge that follows it in the DOM drops one
   row down so the two never overlap). */
.catx-vseller {
  position: absolute; top:0; left:0; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.26rem;
  background: rgba(255, 255, 255, 0.94); color: #00919B;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.16rem 0.5rem; border-radius: 999px;
  border: 1px solid #BAEBF2;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.45);
  white-space: nowrap;
}
.catx-vseller .bi { font-size: 0.8rem; }
.catx-vseller ~ .catx-badge { top: 1.95rem; }

/* Phones: the card media is a small 96px tile, so the text pill would clip
   mid-word. Collapse to an icon-only check bubble in the tile's corner (the
   full label still reads out via aria-label / title). */
@media (max-width: 639.98px) {
  .catx-vseller { top: 0.25rem; left: 0.25rem; padding: 0.18rem; gap: 0; }
  .catx-vseller .catx-vseller-txt { display: none; }
  .catx-vseller .bi { font-size: 0.85rem; line-height: 1; }
  .catx-vseller ~ .catx-badge { top: 1.6rem; }
}

/* ============================================================================
   Prescription upload dropzone (checkout "Prescription required" card)
   ========================================================================== */
.rxup {
  position: relative; display: block; cursor: pointer;
  border: 2px dashed #f0c877; border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s, background 0.15s;
}
.rxup:hover, .rxup.is-drag { border-color: #00B0C0; background: #F0FBFC; }
.rxup.is-filled { border-style: solid; border-color: #6ee7b7; background: #f0fdf6; }
.rxup.is-invalid { border-color: #ef4444; }
.rxup-idle, .rxup-done { display: flex; align-items: center; gap: 0.85rem; }
/* display:flex would beat the [hidden] UA rule - restate it explicitly. */
.rxup-idle[hidden], .rxup-done[hidden] { display: none; }
.rxup-ico {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 176, 192, 0.1); color: #00919B; font-size: 1.25rem;
}
.rxup-ico.is-ok { background: #d1fae5; color: #047857; }
.rxup-txt { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.rxup-txt b {
  color: #0f172a; font-size: 0.92rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rxup-txt small { color: #64748b; font-size: 0.74rem; line-height: 1.35; }

/* ============================================================================
   Blog article (front/blog/single.php)
   ========================================================================== */
/* The admin "Excerpt (1-2 lines)" as the article's summary deck, directly
   under the featured image. */
.post-summary {
  background: #F0FBFC; border: 1px solid #BAEBF2; border-left: 4px solid #00B0C0;
  border-radius: 0 14px 14px 0; padding: 1rem 1.25rem;
}
.post-summary-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #00919B;
}
.post-summary-label .bi { font-size: 0.9rem; }
.post-summary-text {
  margin: 0.35rem 0 0; color: #0f4c5c;
  font-size: 1.08rem; line-height: 1.65; font-weight: 500;
}

/* Article body: layered on top of .prose */
.post-body h2 {
  scroll-margin-top: 90px;             /* sticky header offset for TOC jumps */
  position: relative; padding-bottom: 0.4rem;
}
.post-body h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 2.5rem; height: 3px; border-radius: 2px; background: #00B0C0;
}
.post-body h3 { scroll-margin-top: 90px; }
.post-body ul > li::marker, .post-body ol > li::marker { color: #00919B; font-weight: 600; }
.post-body a { color: #00919B; text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: #007e87; }
.post-body strong { color: #0f4c5c; }
.post-body img { border-radius: 14px; box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.45); }
.post-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  background: #F0FBFC; border-left: 4px solid #00B0C0;
  border-radius: 0 12px 12px 0; color: #0f4c5c; font-style: normal;
}
.post-body blockquote p { margin: 0.25rem 0; }
.post-body table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.25rem 0;
}
.post-body table th {
  background: #F8FBFC; color: #0f172a; text-align: left; font-weight: 600;
  padding: 0.55rem 0.8rem; border: 1px solid #E2EEF1;
}
.post-body table td { padding: 0.55rem 0.8rem; border: 1px solid #EEF4F6; }
.post-body table tr:nth-child(even) td { background: #FAFDFD; }
.post-body hr { border: 0; border-top: 1px solid #E2EEF1; margin: 2rem 0; }
