/* =========================================================
   Sports and Spine Physio Store
   Global stylesheet — calm, clinical, minimal physiotherapy look
   Strong soft-blue page · grey-blue header/footer · dark text
   ========================================================= */

:root {
  /* Surfaces */
  --page-bg: #D2E9F6;        /* light soft blue main background */
  --header-bg: #DCE7EE;      /* light grey-blue header */
  --footer-bg: #DCE7EE;      /* light grey-blue footer — matches header */

  /* Text */
  --text-main: #121212;      /* headings — near black */
  --text-muted: #2D3B44;     /* body paragraphs */
  --text-secondary: #3A4E5C; /* smaller descriptive text */

  /* Links / borders */
  --link-color: #C6CFDB;     /* light grey-blue links */
  --border-color: #6A96B5;   /* muted blue borders / dividers */
  --border-soft: rgba(106, 150, 181, 0.45); /* low-opacity border / divider */

  /* Accents */
  --accent-blue: #1E82B7;
  --accent-blue-dark: #0E5F8A;

  /* Cards */
  --card-bg: #FFFFFF;        /* product / content cards */
  --card-soft-bg: #D7EAF3;   /* soft blue image placeholder */

  /* Icons */
  --icon-color: #121212;

  /* Effects */
  --shadow-soft: 0 6px 18px rgba(18, 18, 18, 0.06);
  --shadow-hover: 0 12px 28px rgba(18, 18, 18, 0.10);
  --shadow-premium: 0 18px 45px rgba(16, 35, 47, 0.12);
  --soft-card-bg: rgba(255, 255, 255, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.58);
  --radius-card: 16px;
  --radius-button: 999px;
  --radius-sm: 10px;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Gradient background + decorative waves — all pages except Home */
body:not(.home-page) {
  background: linear-gradient(135deg, #ffffff 0%, #eaf3ff 22%, #aecff5 70%, #8bbbf0 100%);
  background-attachment: fixed;
}
body:not(.home-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 360' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C300,55 600,140 880,98 C1120,62 1300,128 1440,96' fill='none' stroke='%23fff' stroke-width='2' opacity='0.40'/%3E%3Cpath d='M0,135 C300,100 620,200 900,150 C1140,108 1320,168 1440,140' fill='none' stroke='%23fff' stroke-width='2' opacity='0.34'/%3E%3Cpath d='M0,180 C320,146 640,242 920,194 C1160,152 1340,212 1440,186' fill='none' stroke='%23fff' stroke-width='2' opacity='0.30'/%3E%3Cpath d='M0,225 C300,190 620,288 900,238 C1140,196 1320,256 1440,230' fill='none' stroke='%23fff' stroke-width='2' opacity='0.26'/%3E%3Cpath d='M0,270 C340,236 660,330 960,284 C1180,246 1360,300 1440,278' fill='none' stroke='%23fff' stroke-width='2' opacity='0.22'/%3E%3Cpath d='M0,312 C320,280 640,366 940,322 C1180,288 1360,338 1440,318' fill='none' stroke='%23fff' stroke-width='2' opacity='0.18'/%3E%3Cpath d='M0,350 C360,318 680,398 980,358 C1200,330 1360,368 1440,356' fill='none' stroke='%23fff' stroke-width='2' opacity='0.14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 400px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--accent-blue-dark); }

h1, h2, h3, h4 {
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-button);
  border: 1px solid var(--accent-blue);
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--accent-blue-dark);
  border-color: var(--accent-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 95, 138, 0.22);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}
.btn--outline:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: none;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn--ghost:hover {
  background: var(--card-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--accent-blue);
}
.link-arrow:hover { gap: 10px; color: var(--accent-blue-dark); }
.link-arrow .arrow { transition: transform 0.18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Personalised greeting bar (shown to signed-in users) */
.user-greeting {
  background: var(--accent-blue);
  color: #fff;
}
.user-greeting-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  font-size: 0.9rem;
}
.user-greeting-text strong { font-weight: 700; }
.user-greeting-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.user-greeting-close:hover { opacity: 1; }
@media (max-width: 640px) {
  .user-greeting-inner { padding: 7px 36px 7px 14px; font-size: 0.82rem; }
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 3px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-left { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: var(--icon-color);
  font-size: 15px;
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent-blue-dark); }
.nav-link.active {
  border-bottom-color: var(--accent-blue);
  color: var(--text-main);
  font-weight: 500;
}

.brand { justify-self: center; display: inline-flex; }
.brand img { height: 99px; width: auto; max-width: 100%; }
.brand .brand-fallback {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand .brand-fallback small { display: block; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.18em; }

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--icon-color);
  cursor: pointer;
  padding: 4px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.icon-btn:hover { color: var(--accent-blue-dark); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }

.hamburger { display: none; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 24px 16px;
}
.mobile-nav a {
  padding: 12px 4px;
  color: var(--icon-color);
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
}
.mobile-nav a.active { color: var(--accent-blue); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* =========================================================
   Generic sections / media placeholders
   ========================================================= */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.media-block {
  border-radius: var(--radius-card);
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-dark);
  overflow: hidden;
  min-height: 280px;
  position: relative;
}
.media-block svg { width: 64px; height: 64px; opacity: 0.55; }
.media-block .media-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: var(--radius-button);
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 70px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--text-main);
}
.hero p { font-size: 1.1rem; max-width: 440px; color: var(--text-muted); }
.hero-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-images .media-block { min-height: 360px; }

/* Secondary promo */
.promo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.promo-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo-images .media-block { min-height: 320px; }
.promo-text h2 { font-size: 2.1rem; }
.promo-text p { font-size: 1.05rem; max-width: 420px; }

/* =========================================================
   Product grid / cards
   ========================================================= */
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 2rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-grid--catalog {
  /* auto-fit + capped track: empty tracks collapse, so one or two cards sit
     truly centered instead of hugging the left edge; the 320px cap keeps a
     single card from stretching across the whole row. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 32px;
  justify-content: center;
  align-items: stretch;
}
.product-grid--catalog .product-card { width: 100%; max-width: 320px; }
/* Fixed-height image area so the photo can't grow with the card width. */
.product-grid--catalog .product-card .media-block {
  height: 280px;
  min-height: 0;
  aspect-ratio: auto;
}

/* Mobile only: show two products per row on the catalogue (desktop unchanged). */
@media (max-width: 768px) {
  .product-grid--catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-content: stretch;
  }
  .product-grid--catalog .product-card { max-width: none; }
  .product-grid--catalog .product-card .media-block { height: 170px; }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
}
.product-card .media-block {
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  min-height: 220px;
  background: var(--card-soft-bg);
}
/* Real product photos: square, clean white container; full image always visible */
.product-card .media-block--photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: #ffffff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .media-block--noimg { background: var(--card-soft-bg); }
.product-card .media-block--photo .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* contain, NOT cover — never crop or stretch */
  object-position: center;
  display: block;
}
.product-card .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 170px;
}
.product-card .cat-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.product-card h3 { font-size: 1.05rem; font-weight: 500; margin: 0; line-height: 1.3; color: var(--text-main); }
.product-card .desc { font-size: 0.92rem; color: var(--text-secondary); margin: 0; line-height: 1.5; min-height: 66px; }
.product-card .view-product-btn { width: fit-content; }
.product-card .card-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f9d55;
  background: #ffffff;
  border: 1px solid #1f9d55;
  border-radius: var(--radius-button);
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.product-card .card-wa svg { width: 16px; height: 16px; }
.product-card .card-wa:hover,
.product-card .card-wa:focus-visible { background: #1f9d55; color: #ffffff; outline: none; }
.product-card .price { font-weight: 600; color: var(--text-main); margin-top: auto; font-size: 1rem; line-height: 1.3; }
.product-card .card-foot { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Catalog controls
   ========================================================= */
.catalog-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.catalog-head h1 { font-size: 2.6rem; }
.catalog-head p { font-size: 1.05rem; }

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  border-radius: var(--radius-button);
  padding: 8px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.chip.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

/* "Filter by category" toggle — hidden on desktop, shown only on mobile. */
.catalog-filter-toggle { display: none; }
@media (max-width: 768px) {
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    cursor: pointer;
  }
  .catalog-filter-toggle::after {
    content: "\25BE"; /* ▾ */
    color: var(--text-muted);
    transition: transform 0.18s ease;
  }
  .catalog-controls.filters-open .catalog-filter-toggle::after { transform: rotate(180deg); }
  .catalog-controls .chips { display: none; }
  .catalog-controls.filters-open .chips { display: flex; }
}

.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.sort-wrap select {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--radius-button);
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
}

.help-band {
  margin-top: 56px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.help-band h2 { font-size: 1.6rem; }
.help-band p { max-width: 620px; margin: 0 auto 20px; }

/* =========================================================
   Contact
   ========================================================= */
.page-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.page-head h1 { font-size: 2.6rem; }
.page-head p { font-size: 1.05rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { width: 20px; height: 20px; color: var(--accent-blue); }
.contact-card p { margin: 4px 0; }
.contact-card .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text-main); }
.field input, .field textarea {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 130, 183, 0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  margin-top: 16px;
  background: var(--card-soft-bg);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-success.show { display: block; }

.bulk-band {
  margin-top: 48px;
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}
.bulk-band h2 { font-size: 1.5rem; }
.bulk-band p { max-width: 640px; margin: 0 auto; }

/* =========================================================
   Appointment page (centered article)
   ========================================================= */
.appointment {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.appointment h1 { font-size: 2.4rem; margin-bottom: 10px; color: var(--text-main); }
.appointment .lead-heading { font-size: 1.55rem; margin-top: 8px; }
.appointment h2 { font-size: 1.35rem; margin-top: 6px; color: var(--text-main); }
.appointment h3 { font-size: 1.08rem; color: var(--text-main); }
.appointment p { font-size: 1.02rem; color: var(--text-muted); }
.appointment ul, .appointment ol { color: var(--text-muted); padding-left: 1.2em; margin: 0 0 1em; }
.appointment li { margin-bottom: 0.5em; }
.appointment a { text-decoration: underline; color: var(--accent-blue); }
.appointment a:hover { color: var(--accent-blue-dark); }
.appt-section { padding: 30px 0; }
.appt-divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }
.appt-block {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-soft);
}
.appt-block h3 { margin-top: 0; }
.appt-block p { margin: 2px 0; }

/* =========================================================
   Footer / signup
   ========================================================= */
.footer-signup {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-soft);
  padding: 54px 0;
}
.signup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.signup-text { max-width: 520px; }
.signup-text h2 { font-size: 1.6rem; margin-bottom: 16px; }
.signup-text p { color: var(--text-muted); }
.signup-form { display: flex; align-items: center; }
.email-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  padding: 4px 4px 4px 18px;
  width: min(420px, 100%);
}
.email-pill input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  flex: 1;
  padding: 10px 8px;
  color: var(--text-main);
}
.email-pill button {
  border: none;
  background: var(--accent-blue);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-button);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}
.email-pill button:hover { background: var(--accent-blue-dark); }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border-color);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  transition: all 0.18s ease;
}
.socials a:hover { background: var(--accent-blue); color: #ffffff; border-color: var(--accent-blue); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

.footer-bottom {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-soft);
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-bottom a { color: var(--text-muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent-blue-dark); }

/* ---- Footer page links (About / Contact / Policies) ---- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 12px;
}
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--accent-blue-dark); text-decoration: underline; }
.footer-mini {
  max-width: 640px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.footer-copy a { color: var(--text-muted); text-decoration: underline; }
.footer-copy a:hover { color: var(--accent-blue-dark); }

/* ---- Shared policy/about helpers ---- */
.policy-contact { line-height: 1.9; }
.about-promise { font-weight: 600; font-size: 1.15rem; line-height: 1.7; color: var(--accent-blue-dark); }

/* ---- Contact Us page ---- */
.contact-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; margin: 26px 0 8px; }
.contact-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}
.contact-card h2 { margin: 0 0 18px; font-size: 1.2rem; color: var(--text-main); }
.contact-row { margin-bottom: 14px; }
.contact-row .lbl { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 3px; }
.contact-row .val { color: var(--text-main); font-weight: 500; line-height: 1.5; }
.contact-row .val a { color: var(--accent-blue); text-decoration: none; }
.contact-row .val a:hover { text-decoration: underline; }
.contact-note { color: var(--text-muted); font-size: 0.9rem; margin: 16px 0 18px; }
.contact-field { margin-bottom: 14px; }
.contact-field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
  box-sizing: border-box;
}
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: var(--accent-blue); }
.contact-field input.invalid,
.contact-field textarea.invalid { border-color: #d62828; }
.contact-form-msg { margin: 12px 0 0; font-size: 0.9rem; }
.contact-form-msg.is-error { color: #d62828; }
.contact-form-msg.is-success { color: #1d8a4e; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; border: none; }
.whatsapp-btn:hover { background: #1eb858; color: #fff; }

@media (max-width: 760px) {
  .contact-cols { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .promo-grid { grid-template-columns: 1fr; gap: 32px; }
  .promo-images { order: 2; }
  .hero h1 { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-left { display: none; }
  .hamburger { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 5px 18px; }
  .brand { justify-self: center; }
  .brand img { height: 92px; }
  .section { padding: 48px 0; }
  .hero { padding: 44px 0; }
  .hero h1 { font-size: 2.1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .sort-wrap { justify-content: flex-end; }
  .signup-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-images, .promo-images { grid-template-columns: 1fr 1fr; }
  .nav-right { gap: 12px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 1.9rem; }
}

/* =========================================================
   Product detail page (Shopify-style)
   ========================================================= */
.product-detail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.detail-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--accent-blue);
  text-decoration: none;
}
.detail-back:hover { color: var(--accent-blue-dark); }

.product-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 48px;
  align-items: start;
}

/* The gallery main image is itself the white card, so this is a plain wrapper. */
.product-detail-image { width: 100%; }

/* ----- Shopify-style image gallery ----- */
.product-gallery { width: 100%; }

.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* never crop or stretch the product */
  object-position: center;
  display: block;
}
.product-gallery-main .detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}
.product-gallery-main .detail-icon svg { width: 120px; height: 120px; opacity: 0.55; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(106, 150, 181, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 2;
}
.gallery-arrow:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.product-gallery-thumbnails {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 18px 4px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 150, 181, 0.45) transparent;
}
.product-gallery-thumbnails::-webkit-scrollbar { height: 6px; }
.product-gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(106, 150, 181, 0.45);
  border-radius: 999px;
}

.gallery-thumbnail {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(106, 150, 181, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s ease;
}
.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.gallery-thumbnail:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}
.gallery-thumbnail.active {
  border: 2px solid var(--text-main);
  box-shadow: 0 0 0 3px rgba(30, 130, 183, 0.12);
}

.product-detail-info {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.detail-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0 0 8px;
}
.detail-title { font-size: 1.8rem; line-height: 1.25; color: var(--text-main); margin: 0 0 10px; }
.detail-price { font-size: 1.35rem; font-weight: 700; color: var(--text-main); margin: 0 0 14px; }
.detail-short { font-size: 0.98rem; color: var(--text-muted); margin: 0 0 24px; line-height: 1.6; }

.purchase-block { border-top: 1px solid var(--border-soft); padding-top: 22px; }
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin: 0 0 10px;
}

.size-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.size-option {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-button);
  padding: 10px 20px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.16s ease;
}
.size-option:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.size-option.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.qty-control {
  display: flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  overflow: hidden;
  margin-bottom: 24px;
  background: #ffffff;
}
.qty-btn {
  border: none;
  background: #ffffff;
  color: var(--text-main);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.qty-btn:hover { background: var(--accent-blue); color: #ffffff; }
.qty-value {
  width: 54px;
  height: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font: inherit;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

/* Per-variant quantity rows (tape colours / sizes): option pill + its own stepper */
.variant-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.variant-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-button);
  padding: 8px 18px 8px 10px;
  min-width: 150px;
}
.variant-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  flex: 0 0 auto;
}
.variant-option:has(.variant-swatch) { padding-left: 10px; }
.variant-option:not(:has(.variant-swatch)) { padding-left: 18px; }
.variant-price { font-weight: 600; color: var(--text-main); font-size: 0.95rem; white-space: nowrap; }
.variant-qty { margin-bottom: 0; margin-left: auto; }

/* Mobile: keep each colour/size on the SAME line as its quantity stepper
   (desktop is unchanged). The option shrinks to fit; the stepper stays put. */
@media (max-width: 768px) {
  .variant-row { flex-wrap: nowrap; gap: 10px; }
  .variant-option { min-width: 0; flex: 1 1 auto; padding: 7px 10px 7px 8px; font-size: 0.88rem; }
  .variant-price { flex: 0 0 auto; }
  .variant-qty { flex: 0 0 auto; }
}

/* Catalog intro: full text on desktop, a shorter line on mobile only. */
.cat-intro-short { display: none; }
@media (max-width: 768px) {
  .catalog-head .cat-intro-full { display: none; }
  .catalog-head .cat-intro-short { display: block; }
}

.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.add-to-cart-btn { border: none; }
.whatsapp-btn { white-space: nowrap; }

.cart-message { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.2em; }
.cart-message--error { color: #b3261e; }
.cart-message--success { color: var(--accent-blue-dark); font-weight: 600; }
.purchase-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.purchase-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.purchase-trust svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-blue); }

/* ----- Info sections ----- */
.product-info-section {
  max-width: 980px;
  margin: 28px auto 0;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.product-info-section h2 { font-size: 1.3rem; color: var(--text-main); margin: 0 0 14px; }
.product-info-section p { color: var(--text-muted); margin: 0; line-height: 1.65; }
.info-list { margin: 0; padding-left: 1.2em; color: var(--text-muted); }
.info-list li { margin-bottom: 8px; line-height: 1.55; }

.reviews-note { font-size: 0.88rem; color: var(--text-secondary); font-style: italic; margin-bottom: 18px !important; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-name { font-weight: 600; color: var(--text-main); }
.stars { white-space: nowrap; font-size: 0.95rem; }
.star--on { color: #e0a800; }
.star--off { color: var(--border-color); }
.review-text { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

.not-found-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 56px 32px;
  box-shadow: var(--shadow-soft);
}
.not-found-card h1 { font-size: 1.8rem; margin-bottom: 12px; }
.not-found-card p { margin-bottom: 24px; }

@media (max-width: 768px) {
  .product-detail-main { grid-template-columns: 1fr; gap: 24px; }
  .product-detail { padding: 40px 16px; }
  .product-detail-info,
  .product-info-section { padding: 24px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { justify-content: center; }
  .product-gallery-main { border-radius: 18px; padding: 20px; }
  .gallery-thumbnail { width: 62px; height: 62px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* =========================================================
   Home hero — product collage (replaces the generic hero)
   ========================================================= */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
  min-height: 80vh;
  padding: 80px 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}
/* Soft radial/abstract background behind hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 82% 18%, rgba(43, 120, 147, 0.16) 0%, rgba(43, 120, 147, 0) 70%),
    radial-gradient(40% 45% at 12% 85%, rgba(127, 183, 221, 0.20) 0%, rgba(127, 183, 221, 0) 70%);
}
.home-hero > .hero-content,
.home-hero > .hero-products { position: relative; z-index: 1; }

.hero-content { max-width: 560px; }
.hero-badges {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 1px var(--accent-blue);
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  margin: 0 0 18px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0 0 24px;
}
.hero-content > p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.primary-btn,
.secondary-btn {
  padding: 13px 26px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}
.primary-btn { background: var(--accent-blue); color: #ffffff; }
.primary-btn:hover { background: var(--accent-blue-dark); color: #ffffff; }
.secondary-btn {
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}
.secondary-btn:hover { background: rgba(255, 255, 255, 0.5); color: var(--accent-blue-dark); }
.hero-whatsapp {
  display: inline-block;
  color: var(--accent-blue);
  text-decoration: underline;
  font-size: 0.95rem;
}
.hero-whatsapp:hover { color: var(--accent-blue-dark); }

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 22px;
  align-items: center;
}
.hero-product-card {
  position: relative;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 24px 24px 34px;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-premium);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-product-card:nth-child(2) { animation-delay: -1.5s; }
.hero-product-card:nth-child(3) { animation-delay: -3s; }
.hero-product-card:nth-child(4) { animation-delay: -4.5s; }
.hero-product-card--wide { animation-delay: -2.2s; }
.hero-product-card img {
  width: 100%;
  height: 195px;
  object-fit: contain;       /* never crop or stretch */
  object-position: center;
  display: block;
}
.hp-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--card-soft-bg);
  border-radius: var(--radius-button);
  padding: 4px 12px;
  white-space: nowrap;
}
.hero-product-card.featured { margin-top: -20px; }
.hero-product-card--wide {
  grid-column: 1 / -1;
  min-height: 170px;
  padding: 18px 24px 34px;
}
.hero-product-card--wide img { height: 135px; }

@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product-card { animation: none; }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-products { grid-template-columns: repeat(2, 1fr); }
  .hero-product-card { min-height: 190px; padding: 18px 18px 32px; }
  .hero-product-card img { height: 160px; }
  .hero-product-card.featured { margin-top: 0; }
}

@media (max-width: 520px) {
  .home-hero { padding: 36px 18px; min-height: 0; }
  .hero-products { grid-template-columns: 1fr; }
  .hero-product-card--wide { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .primary-btn, .secondary-btn { width: 100%; text-align: center; }
}

/* =========================================================
   Home — shared section layout + scroll reveal
   ========================================================= */
.home-section { padding: 64px 0; }
.home-section--alt { background: rgba(255, 255, 255, 0.35); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.section-head.center .section-sub { margin: 0 auto; }

/* Scroll fade-up */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ---- Trust bar (section 2) ---- */
.trust-bar {
  list-style: none;
  margin: -28px 0 0;        /* lift slightly into the hero gap */
  padding: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.trust-bar svg { width: 20px; height: 20px; color: var(--accent-blue); flex: 0 0 auto; }

/* ---- Generic card grids ---- */
.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.need-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.need-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-soft, var(--accent-blue));
}
.need-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-soft-bg);
  color: var(--accent-blue);
  margin-bottom: 6px;
}
.need-icon svg { width: 26px; height: 26px; }
.need-card h3 { font-size: 1.12rem; margin: 0; color: var(--text-main); }
.need-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; flex: 1; }
.need-cta { font-weight: 600; color: var(--accent-blue); font-size: 0.9rem; margin-top: 4px; }
.need-card:hover .need-cta { color: var(--accent-blue-dark); }

/* ---- WhatsApp guidance CTA (section 5) ---- */
.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
}
.guide-cta-text { flex: 1 1 460px; }
.guide-cta-text h2 { font-size: 1.7rem; margin: 0 0 10px; }
.guide-cta-text p { margin: 0 0 16px; }
.guide-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.guide-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.guide-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* ---- Clinical trust / doctor (section 6) ---- */
.clinic-trust {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}
.clinic-trust-text h2 { font-size: 1.9rem; margin: 0 0 14px; }
.clinic-trust-text p { font-size: 1.02rem; margin: 0; }
.doctor-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-premium);
  text-align: center;
}
.doctor-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-soft-bg);
  color: var(--accent-blue);
}
.doctor-avatar svg { width: 40px; height: 40px; }
.doctor-card h3 { font-size: 1.25rem; margin: 0 0 2px; }
.doctor-role { color: var(--accent-blue); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px; }
.doctor-card p { font-size: 0.95rem; margin: 0 0 18px; }

/* ---- How to choose (section 7) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.step-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---- For clinics (section 8) ---- */
.clinic-band {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
}
.clinic-band-text h2 { font-size: 1.8rem; margin: 0 0 10px; max-width: 720px; }
.clinic-band-text > p { max-width: 720px; margin: 0 0 16px; }
.clinic-band .hero-actions { margin-top: 22px; margin-bottom: 0; }

/* ---- Confidence (section 9) ---- */
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.confidence-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.confidence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); }
.confidence-card h3 { font-size: 1.08rem; margin: 10px 0 6px; }
.confidence-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---- Recovery guides (section 10) ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-soft, var(--accent-blue));
}
.guide-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--card-soft-bg);
  border-radius: var(--radius-button);
  padding: 4px 12px;
}
.guide-card h3 { font-size: 1.08rem; margin: 0; color: var(--text-main); line-height: 1.35; flex: 1; }

/* ---- Final CTA (section 11) ---- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--card-soft-bg) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: var(--shadow-premium);
}
.final-cta h2 { font-size: 2rem; margin: 0 0 12px; }
.final-cta p { max-width: 620px; margin: 0 auto 24px; }

@media (max-width: 820px) {
  .clinic-trust { grid-template-columns: 1fr; }
  .home-section { padding: 52px 0; }
  .guide-cta, .clinic-band, .final-cta { padding: 30px; }
}
@media (max-width: 520px) {
  .trust-bar { margin-top: 0; }
  .home-section .hero-actions { flex-direction: column; align-items: stretch; }
  .clinic-band .btn, .final-cta .primary-btn, .final-cta .secondary-btn { text-align: center; }
}

/* =========================================================
   HOME PAGE — reference redesign (scoped to .home-page)
   ========================================================= */
.home-page {
  background: #F7FBFD;
  --hero-bg: #7FB7DD;
  --hero-bg-light: #A9D2EC;
  --h-section-bg: #F7FBFD;
  --h-soft-section-bg: #EFF7FB;
  --h-card-bg: #FFFFFF;
  --h-text-main: #071D36;
  --h-text-muted: #31475A;
  --h-text-soft: #64798A;
  --h-primary: #0B73BD;
  --h-primary-dark: #075C99;
  --h-primary-soft: #DDEFF8;
  --h-border: #C9DDE8;
  --h-shadow-soft: 0 14px 40px rgba(7, 29, 54, 0.10);
  --h-shadow-card: 0 10px 30px rgba(7, 29, 54, 0.08);
  --h-radius-lg: 28px;
  --h-radius-md: 22px;
  --h-pill: 999px;
}

/* ---- Header tuned to the reference (home page only — other pages keep their sizes) ---- */
.home-page .nav-link { font-size: 15px; }
.home-page .icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 761px) { .home-page .header-inner { padding: 3px 48px; } }

/* ---- 1. Hero ---- */
.home-page .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 24px;
  min-height: 78vh;
  max-width: none;
  margin: 0;
  padding: 52px 56px 44px;
  overflow: hidden;
  /* Tuned so the image's masked left edge dissolves into the gradient */
  background: linear-gradient(135deg, #dce9fb 0%, #c7dffb 48%, #a9cdf5 100%);
}
/* Soft dotted texture along the left (text) edge */
.home-page .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1.3px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.55) 12%, transparent 28%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.55) 12%, transparent 28%);
  opacity: 0.6;
}
/* Flowing white wave lines across the bottom */
.home-page .hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'><g fill='none' stroke='%23ffffff' stroke-width='2'><path d='M0 300 C 320 230 600 350 900 285 S 1380 235 1600 295' stroke-opacity='0.55'/><path d='M0 345 C 360 290 720 392 1060 322 S 1460 296 1600 346' stroke-opacity='0.4'/><path d='M0 255 C 260 205 520 286 820 240 S 1340 200 1600 250' stroke-opacity='0.3'/><path d='M0 380 C 300 340 640 412 1000 360 S 1480 346 1600 386' stroke-opacity='0.26'/></g></svg>");
}
/* (Right-side curved lines removed — the full-bleed product image now fills that area.) */
.home-page .hero-copy { position: relative; z-index: 3; max-width: 620px; }
.home-page .hero-eyebrow {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.9);
  color: var(--h-primary);
  border-radius: var(--h-pill);
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 26px;
}
.home-page .hero-copy h1 {
  margin: 0;
  color: var(--h-text-main);
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.home-page .hero-copy h1 span { color: var(--h-primary); }
.home-page .hero-copy p {
  max-width: 520px;
  margin: 26px 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--h-text-muted);
  font-weight: 500;
}
.home-page .home-hero .hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.btn-primary, .btn-secondary {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--h-pill, 999px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #0B73BD, #075C99);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 115, 189, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(11, 115, 189, 0.34); color: #fff; }
.btn-secondary {
  border: 2px solid var(--h-primary, #0B73BD);
  color: var(--h-primary-dark, #075C99);
  background: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.7); transform: translateY(-2px); color: var(--h-primary-dark, #075C99); }
.home-page .hero-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--h-text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-page .whatsapp-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2ecc63;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-page .whatsapp-dot svg { width: 24px; height: 24px; }

/* Full-bleed product showcase: absolutely positioned, wider than its column so
   it bleeds off the right edge. No box, border, or background. */
.home-page .hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  z-index: 2;
  pointer-events: none;
}
/* The <picture> wrapper must not change image sizing (desktop stays identical). */
.home-page .hero-visual picture { display: block; width: 100%; height: 100%; }
.home-page .hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center; /* keeps all products in frame; right/bottom bleed off */
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  /* Fade the LEFT edge into the hero background so there is no box/seam */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 100%);
}
.home-page .hero-bg-circle {
  /* Hidden: the Display image already includes its own glowing arc. */
  display: none;
}
/* Right-side glowing dots, echoing the reference (light dots, not dark) */
.home-page .hero-dot-pattern {
  position: absolute;
  right: 18px;
  top: 120px;
  width: 220px;
  height: 300px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.4px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 70%);
  mask-image: linear-gradient(to left, #000 0%, transparent 70%);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) { .home-page .hero-visual img { animation: none; } }

/* ---- 2. Trust strip ---- */
.home-page .trust-strip {
  background: #F8FCFE;
  border-bottom: 1px solid var(--h-border);
}
.home-page .trust-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-page .trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 26px;
}
.home-page .trust-item + .trust-item { border-left: 1px solid var(--h-border); }
.home-page .trust-ico {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--h-primary-soft);
  color: var(--h-primary);
}
.home-page .trust-ico svg { width: 20px; height: 20px; }
.home-page .trust-item div { display: flex; flex-direction: column; line-height: 1.3; }
.home-page .trust-item strong { color: var(--h-text-main); font-size: 14px; font-weight: 700; }
.home-page .trust-item span { color: var(--h-text-soft); font-size: 12.5px; }

/* ---- Shared home block + headings ---- */
.home-page .home-block { padding: 60px 0; }
.home-page .block-head { text-align: center; margin-bottom: 8px; }
.home-page .block-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--h-text-main); margin: 0 0 8px; letter-spacing: -0.02em; }
.home-page .block-head p { color: var(--h-primary-dark); font-size: 15px; margin: 0; }

/* ---- 3. Shop by Recovery Area ---- */
.home-page .recovery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.home-page .recovery-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #F4FAFE 100%);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-md);
  padding: 16px 16px 20px;
  box-shadow: var(--h-shadow-card);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.home-page .recovery-card:hover { transform: translateY(-6px); box-shadow: var(--h-shadow-soft); }
.home-page .recovery-img {
  height: 120px;
  border-radius: 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
}
.home-page .recovery-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.home-page .recovery-img--icon { color: var(--h-primary); background: var(--h-primary-soft); }
.home-page .recovery-img--icon svg { width: 52px; height: 52px; }
.home-page .recovery-card h3 { font-size: 15px; font-weight: 700; color: var(--h-text-main); margin: 0; line-height: 1.25; }
.home-page .recovery-card p { font-size: 12.5px; color: var(--h-text-soft); margin: 0; line-height: 1.45; flex: 1; }
.home-page .recovery-arrow {
  width: 34px; height: 34px; margin-top: 8px;
  border-radius: 50%;
  border: 1px solid var(--h-border);
  background: #fff;
  color: var(--h-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}
.home-page .recovery-card:hover .recovery-arrow { background: var(--h-primary); color: #fff; border-color: var(--h-primary); }

/* ---- 4. WhatsApp banner ---- */
.home-page .wa-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 40px;
  border-radius: var(--h-radius-lg);
  background: linear-gradient(135deg, #0B73BD 0%, #2389C9 45%, #3CA0DC 100%);
  box-shadow: var(--h-shadow-soft);
  color: #fff;
}
.home-page .wa-dots {
  position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
}
.home-page .wa-icon {
  position: relative; z-index: 1;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
}
.home-page .wa-icon svg { width: 50px; height: 50px; color: #2ecc63; background:#fff; border-radius:50%; padding:8px; }
.home-page .wa-text { position: relative; z-index: 1; }
.home-page .wa-text h2 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; color: #fff; }
.home-page .wa-text p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.92); font-size: 15px; max-width: 360px; }
.home-page .wa-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--h-primary-dark);
  font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: var(--h-pill);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.home-page .wa-cta:hover { transform: translateY(-2px); }
.home-page .wa-chat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.home-page .wa-bubble {
  font-size: 13.5px; padding: 10px 14px; border-radius: 16px;
  max-width: 280px; line-height: 1.4;
}
.home-page .wa-bubble--in { background: #fff; color: var(--h-text-main); border-bottom-left-radius: 5px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.home-page .wa-bubble-ava { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#8fc3e3,#0B73BD); flex:0 0 auto; }
.home-page .wa-bubble--out { background: #DCF8C6; color: #0c2a12; border-bottom-right-radius: 5px; }
.home-page .wa-time { display: block; font-size: 10.5px; color: #5a7a52; text-align: right; margin-top: 3px; }
.home-page .wa-bubble--typing { background: #fff; display: inline-flex; gap: 4px; align-self: flex-start; }
.home-page .wa-bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: #9bb3c2; animation: waDot 1.2s infinite ease-in-out; }
.home-page .wa-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.home-page .wa-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes waDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---- 5. Featured products ---- */
.home-page .featured-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.home-page .hp-card {
  display: flex;
  flex-direction: column;
  background: var(--h-card-bg);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-md);
  box-shadow: var(--h-shadow-card);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.home-page .hp-card:hover { transform: translateY(-6px); box-shadow: var(--h-shadow-soft); }
.home-page .hp-card-img {
  height: 170px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--h-border);
}
.home-page .hp-card-img img { width: 100%; height: 100%; object-fit: contain; }
.home-page .hp-card-img svg { width: 54px; height: 54px; color: var(--h-primary); }
.home-page .hp-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.home-page .hp-card-body h3 { font-size: 14.5px; font-weight: 700; color: var(--h-text-main); margin: 0; line-height: 1.3; }
.home-page .hp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-page .hp-card-price { font-size: 14px; font-weight: 700; color: var(--h-text-main); }
.home-page .hp-card-cart {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--h-primary-soft);
  color: var(--h-primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.home-page .hp-card-cart svg { width: 18px; height: 18px; }
.home-page .hp-card:hover .hp-card-cart { background: var(--h-primary); color: #fff; }

/* ---- 6. Benefits bar ---- */
.home-page .benefits-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--h-primary-soft);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  padding: 26px 30px;
}
.home-page .benefit-item { display: flex; align-items: center; gap: 14px; }
.home-page .benefit-ico {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--h-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.home-page .benefit-ico svg { width: 22px; height: 22px; }
.home-page .benefit-item div { display: flex; flex-direction: column; line-height: 1.35; }
.home-page .benefit-item strong { font-size: 14px; font-weight: 700; color: var(--h-text-main); }
.home-page .benefit-item span { font-size: 12.5px; color: var(--h-text-soft); }

/* ---- 7. About Us ---- */
.home-page .about-block { background: var(--h-soft-section-bg); }
.home-page .about-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 40px; align-items: center; }
.home-page .about-eyebrow {
  display: inline-block;
  color: var(--h-primary);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.home-page .about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--h-text-main); margin: 0 0 16px; letter-spacing: -0.02em; }
.home-page .about-text p { color: var(--h-text-muted); font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.home-page .about-text .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.home-page .about-card {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  padding: 30px;
  box-shadow: var(--h-shadow-soft);
}
.home-page .about-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--h-text-main); margin: 0 0 18px; }
.home-page .about-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.home-page .about-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--h-text-muted); line-height: 1.45; }
.home-page .about-ico {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--h-primary-soft);
  color: var(--h-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.home-page .about-ico svg { width: 15px; height: 15px; }
.home-page .about-card-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--h-border); padding-top: 18px; }
.home-page .about-ico-lg {
  width: 58px; height: 58px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--h-primary-soft);
  color: var(--h-primary);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.home-page .about-ico-lg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.home-page .about-card-foot strong { display: block; font-size: 14.5px; color: var(--h-text-main); }
.home-page .about-card-foot span { font-size: 12.5px; color: var(--h-text-soft); }

/* ---- Home responsive ---- */
@media (max-width: 1080px) {
  .home-page .recovery-grid { grid-template-columns: repeat(3, 1fr); }
  .home-page .featured-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .home-page .home-hero { grid-template-columns: 1fr; padding: 44px 24px 0; min-height: 0; text-align: left; }
  .home-page .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 330px;
  }
  .home-page .hero-visual img {
    object-position: center;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
            mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
  }
  .home-page .hero-bg-circle, .home-page .hero-dot-pattern { display: none; }
  .home-page .hero-waves { height: 30%; opacity: 0.8; }
  .home-page .home-hero::before { display: none; }
  .home-page .wa-banner { grid-template-columns: 1fr; text-align: center; }
  .home-page .wa-icon { margin: 0 auto; }
  .home-page .wa-text p { margin-left: auto; margin-right: auto; }
  .home-page .wa-chat { align-items: center; }
  .home-page .about-grid { grid-template-columns: 1fr; }
  .home-page .benefits-bar { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .home-page .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px 24px; }
  .home-page .trust-item { border-left: none !important; padding: 4px 8px; }
}
@media (max-width: 640px) {
  .home-page .recovery-grid { grid-template-columns: repeat(2, 1fr); }
  .home-page .featured-row { grid-template-columns: repeat(2, 1fr); }
  .home-page .benefits-bar { grid-template-columns: 1fr; }
  .home-page .home-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .home-page .btn-primary, .home-page .btn-secondary { justify-content: center; }
}
@media (max-width: 420px) {
  .home-page .recovery-grid, .home-page .featured-row { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE-ONLY: glassmorphism hero (desktop layout untouched)
   ========================================================= */
@media (max-width: 768px) {
  .home-page .home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0 0 34px;
    overflow: visible;
    /* soft radial blue glow matching the product image lighting */
    background: radial-gradient(125% 80% at 50% 0%, #eef5fe 0%, #d2e6fc 46%, #a9cdf5 100%);
  }
  .home-page .hero-waves { display: none; }

  /* Product image = rich background layer filling the upper portion */
  .home-page .hero-visual {
    order: -1;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 380px;
    z-index: 1;
  }
  .home-page .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    /* dissolve the bottom into the gradient so the glass card blends in */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 28%, #000 100%);
            mask-image: linear-gradient(to top, transparent 0%, #000 28%, #000 100%);
  }

  /* Floating glass card overlapping the lower half of the image */
  .home-page .hero-copy {
    position: relative;
    z-index: 3;
    max-width: none;
    margin: -120px 16px 0;
    padding: 26px 22px 28px;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    text-align: left;
  }

  /* Pill badge tagline — premium wide tracking */
  .home-page .hero-eyebrow {
    margin: 0 0 16px;
    padding: 7px 14px;
    font-size: 10.5px;
    letter-spacing: 0.09em;
    line-height: 1.45;
    /* Darker blue + solid white pill for a WCAG AA contrast ratio (was
       #0B73BD ~4.4:1 on the translucent pill; #075C99 on white is ~6.4:1). */
    color: var(--h-primary-dark);
    background: #ffffff;
  }

  /* Headline — deep slate, with the blue accent slightly bolder */
  .home-page .hero-copy h1 {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #1e293b;
  }
  .home-page .hero-copy h1 span { color: var(--h-primary); font-weight: 900; }

  /* Paragraph — softened for hierarchy */
  .home-page .hero-copy p {
    max-width: none;
    margin: 14px 0 22px;
    font-size: 15px;
    line-height: 1.62;
    color: #475569;
  }

  /* Buttons — stacked, full width */
  .home-page .home-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 18px;
  }
  .home-page .home-hero .btn-primary,
  .home-page .home-hero .btn-secondary { width: 100%; justify-content: center; }
  .home-page .home-hero .btn-primary { box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35); }
  .home-page .home-hero .btn-secondary { border-color: var(--h-primary); color: var(--h-primary-dark); }

  /* WhatsApp row + gentle periodic wiggle for micro-attention */
  .home-page .hero-whatsapp { display: flex; align-items: center; gap: 10px; }
  .home-page .hero-whatsapp .whatsapp-dot {
    animation: wa-wiggle 5s ease-in-out infinite;
    transform-origin: center;
  }
}

@keyframes wa-wiggle {
  0%, 86%, 100% { transform: rotate(0deg); }
  89% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  95% { transform: rotate(-6deg); }
  98% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-whatsapp .whatsapp-dot { animation: none; }
}

/* Floating WhatsApp button — fixed at the bottom-right, never moves on scroll.
   Only rendered on the homepage (the element lives in index.html only). */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 40px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}
.wa-fab svg { width: 32px; height: 32px; }
/* About description: desktop shows the long version, mobile the shorter one */
.about-desc-mobile { display: none; }

@media (max-width: 768px) {
  .wa-fab { right: 16px; bottom: 30px; width: 54px; height: 54px; }
  .wa-fab svg { width: 30px; height: 30px; }
  .about-desc-desktop { display: none; }
  .about-desc-mobile { display: block; }
}

/* =========================================================
   CART / ORDER DETAILS PAGE
   ========================================================= */
body.cart-bg { background: #F4F7F9; }

.cart-page { padding: 40px 0 72px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 18px; }
.breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-secondary); }

.cart-head { margin-bottom: 26px; }
.cart-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--text-main); margin: 0 0 8px; letter-spacing: -0.01em; }
.cart-head p { color: var(--text-muted); margin: 0; font-size: 1.02rem; }

.cart-layout { display: flex; flex-direction: column; gap: 28px; }

/* ----- Order summary ----- */
.order-summary {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}
.summary-title { font-size: 1.15rem; color: var(--text-main); margin: 0 0 18px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item-img {
  width: 92px; height: 92px; flex: 0 0 auto;
  background: #F7FBFD; border: 1px solid #E5E7EB; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-icon { color: var(--accent-blue); display: inline-flex; }
.cart-item-icon svg { width: 40px; height: 40px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 1rem; color: var(--text-main); margin: 0 0 4px; }
.cart-item-meta { font-size: 0.86rem; color: var(--text-muted); margin: 0 0 10px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-item .qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-color); border-radius: var(--radius-button);
  overflow: hidden; background: #fff;
}
.cart-item .qty-btn {
  border: none; background: #fff; color: var(--text-main);
  width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.cart-item .qty-btn:hover { background: var(--accent-blue); color: #fff; }
.cart-item .qty-value {
  min-width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color);
  font-weight: 600; color: var(--text-main);
}
.cart-item-line { font-weight: 700; color: var(--text-main); }

.summary-line {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; margin-top: 16px; border-top: 1px solid #E5E7EB;
  color: var(--text-muted); font-size: 0.95rem;
}
.summary-line strong { color: var(--text-main); }
.summary-total { font-size: 1.15rem; }
.summary-total strong { color: var(--accent-blue); }
.summary-note { font-size: 0.82rem; color: var(--text-secondary); margin: 12px 0 0; }
.summary-discount span { color: #147a4a; }
.summary-discount strong { color: #147a4a; }

/* ----- Coupon box (cart summary) ----- */
.coupon-box {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #E5E7EB;
}
.coupon-label {
  display: block; font-size: 0.86rem; font-weight: 600;
  color: var(--text-main); margin-bottom: 8px;
}
.coupon-row { display: flex; gap: 8px; }
.coupon-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border: 1px solid #E5E7EB; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-main); background: #fff;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.coupon-input::placeholder { text-transform: none; letter-spacing: normal; color: var(--text-secondary); }
.coupon-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(30, 130, 183, 0.14); }
.coupon-apply { height: 42px; padding: 0 20px; flex: 0 0 auto; }
.coupon-msg { font-size: 0.82rem; margin: 8px 0 0; min-height: 1em; color: var(--text-secondary); }
.coupon-msg.is-error { color: #c0392b; }
.coupon-msg.is-success { color: #147a4a; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coupon-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #E6F4EC; color: #147a4a; font-weight: 700; font-size: 0.86rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.coupon-tag svg { width: 15px; height: 15px; }
.coupon-remove {
  border: none; background: none; color: var(--text-secondary);
  font-size: 0.82rem; cursor: pointer; text-decoration: underline; padding: 4px;
}
.coupon-remove:hover { color: #c0392b; }
.cart-each-was { color: var(--text-secondary); opacity: 0.75; margin-right: 3px; }

/* ----- Product comparison table (ROM knee braces) ----- */
.compare-table-wrap { overflow-x: auto; margin: 6px 0 12px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.compare-table th, .compare-table td { border: 1px solid #E5E7EB; padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table thead th { background: #F2F7FA; color: var(--text-main); font-weight: 600; }
.compare-table tbody th[scope="row"] { background: #FAFCFD; font-weight: 600; color: var(--text-main); white-space: nowrap; }
.compare-note { font-size: 0.9rem; color: var(--text-muted); margin: 4px 0 10px; }
.compare-link a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
.compare-link a:hover { text-decoration: underline; }

/* ----- In-store pickup panel (cart checkout) ----- */
.pickup-store { background: #F7FBFD; border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.pickup-store p { margin: 0; }
.pickup-store strong { color: var(--text-main); }

/* ----- Active-discount badge near the cart (QR/nudge offers) ----- */
.cart-discount-badge {
  display: inline-flex; align-items: center; align-self: center;
  background: #17855a; color: #fff;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1;
  box-shadow: 0 2px 6px rgba(23, 133, 90, 0.32); margin-right: 6px;
}
@media (max-width: 768px) { .cart-discount-badge { font-size: 0.58rem; padding: 2px 6px; } }

/* ============================================================
   Temporary "waiting to be restocked" treatment (front-end only)
   Grey tape over the primary image + apology nudge + voucher.
   ============================================================ */
.oos-media { position: relative; overflow: hidden; }
.oos-media::before {              /* soft grey wash — signals muted/unavailable */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(222, 226, 230, 0.42);
}
.oos-media::after {               /* light-grey tape strip with the status */
  content: "Sold out";
  position: absolute; z-index: 3; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  width: 150%; text-align: center; white-space: nowrap; pointer-events: none;
  background: rgba(239, 241, 243, 0.95); color: #3A4E5C;
  font-weight: 800; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0;
  border-top: 1px solid rgba(58, 78, 92, 0.16);
  border-bottom: 1px solid rgba(58, 78, 92, 0.16);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.14);
}
.oos-media--lg::after { font-size: 0.9rem; letter-spacing: 0.2em; padding: 10px 0; }
@media (max-width: 768px) {
  .oos-media::after { font-size: 0.54rem; letter-spacing: 0.12em; }
  .oos-media--lg::after { font-size: 0.74rem; }
}

/* ----- Apology nudge (clean bottom-centred card) ----- */
.oos-nudge {
  position: fixed; left: 50%; bottom: 20px; z-index: 9998;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(150%);
  background: var(--card-bg, #fff); color: var(--text-muted, #2D3B44);
  border: 1px solid var(--border-soft, rgba(106, 150, 181, 0.35));
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--shadow-premium, 0 18px 45px rgba(16, 35, 47, 0.18));
  padding: 20px 20px 18px; transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oos-nudge.show { transform: translateX(-50%) translateY(0); }
.oos-nudge-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 22px; line-height: 1; color: var(--text-secondary, #3A4E5C);
  cursor: pointer; opacity: 0.6; padding: 2px 6px;
}
.oos-nudge-x:hover { opacity: 1; }
.oos-nudge-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.oos-nudge-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: var(--card-soft-bg, #D7EAF3); color: var(--accent-blue, #1E82B7);
}
.oos-nudge-badge svg { width: 18px; height: 18px; }
.oos-nudge-head strong { font-size: 0.98rem; color: var(--text-main, #121212); }
.oos-nudge-body { margin: 0 0 14px; font-size: 0.86rem; line-height: 1.5; }
.oos-voucher {
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  border: 1.5px dashed var(--accent-blue, #1E82B7); border-radius: 12px;
  background: var(--card-soft-bg, #D7EAF3); padding: 12px 14px; margin-bottom: 16px;
}
.oos-voucher-top { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue-dark, #0E5F8A); font-weight: 700; }
.oos-voucher-code { display: flex; align-items: center; justify-content: center; gap: 10px; }
.oos-voucher-code-text { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.08em; color: var(--text-main, #121212); }
.oos-voucher-copy {
  border: 1px solid var(--accent-blue, #1E82B7); background: transparent;
  color: var(--accent-blue-dark, #0E5F8A); font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.oos-voucher-copy:hover { background: var(--accent-blue, #1E82B7); color: #fff; }
.oos-voucher-sub { font-size: 0.72rem; color: var(--text-secondary, #3A4E5C); }
.oos-nudge-actions { display: flex; gap: 10px; }
.oos-btn { flex: 1; border-radius: var(--radius-button, 999px); font-size: 0.86rem; font-weight: 700; padding: 10px 12px; cursor: pointer; border: 1px solid transparent; }
.oos-btn--primary { background: var(--accent-blue, #1E82B7); color: #fff; }
.oos-btn--primary:hover { background: var(--accent-blue-dark, #0E5F8A); }
.oos-btn--ghost { background: transparent; color: var(--text-secondary, #3A4E5C); border-color: var(--border-soft, rgba(106, 150, 181, 0.45)); }
.oos-btn--ghost:hover { background: rgba(106, 150, 181, 0.12); }

/* ----- Voucher toast ----- */
.oos-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9999;
  transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text-main, #121212); color: #fff;
  font-size: 0.85rem; font-weight: 600; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); max-width: calc(100vw - 32px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.oos-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .oos-nudge, .oos-toast { transition: opacity 0.2s ease; }
  .oos-nudge { transform: translateX(-50%) translateY(0); }
}

/* ===== Physiotherapist / doctor registration (Contact page) ===== */
.physio-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--card-soft-bg, #D7EAF3), #eaf4fb);
  border: 1px solid var(--border-soft, rgba(106, 150, 181, 0.4));
  border-radius: var(--radius-card, 16px); padding: 18px 22px; margin: 4px 0 22px;
}
.physio-cta-txt { display: flex; flex-direction: column; gap: 3px; }
.physio-cta-txt strong { font-size: 1.05rem; color: var(--text-main, #121212); }
.physio-cta-txt span { font-size: 0.9rem; color: var(--text-muted, #2D3B44); }
.physio-cta .btn { white-space: nowrap; }
.physio-reg-card { margin-bottom: 26px; }
.physio-reg-sub { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-secondary, #3A4E5C); }
.pr-opt { color: var(--text-secondary, #3A4E5C); font-weight: 400; font-size: 0.8em; }
.physio-reg-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-color, #6A96B5);
  border-radius: var(--radius-sm, 10px); background: #fff; font-size: 0.95rem;
  color: var(--text-main, #121212); font-family: inherit;
}
.pr-spacer { visibility: hidden; }
.pr-msg { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.pr-msg.is-error { color: #c0392b; }
.pr-msg.is-success { color: #17855a; font-weight: 600; }
@media (max-width: 600px) {
  .physio-cta { flex-direction: column; align-items: stretch; }
  .physio-cta .btn { width: 100%; }
}

/* ----- Delivery location prompt (modal) ----- */
.delivery-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.delivery-modal[hidden] { display: none; }
.delivery-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 29, 54, 0.55); backdrop-filter: blur(2px);
}
.delivery-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: var(--card-bg); border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--shadow-premium); text-align: center;
  animation: dmPop 0.18s ease;
}
@keyframes dmPop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.delivery-modal-close {
  position: absolute; top: 12px; right: 16px;
  border: 0; background: transparent; font-size: 28px; line-height: 1;
  color: var(--text-secondary); cursor: pointer;
}
.delivery-modal-close:hover { color: var(--text-main); }
.delivery-modal-card h2 { font-size: 1.35rem; color: var(--text-main); margin: 0 0 12px; }
.delivery-modal-intro {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 22px;
}
.delivery-modal-options { display: grid; gap: 12px; }
.dm-option {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 16px 18px; border: 1.5px solid var(--border-soft); border-radius: 14px;
  background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.dm-option:hover, .dm-option:focus-visible {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(30, 130, 183, 0.14); outline: none;
}
.dm-option:active { transform: scale(0.99); }
.dm-option-title { font-weight: 700; font-size: 1.05rem; color: var(--text-main); }
.dm-option-sub { font-size: 0.85rem; color: var(--text-secondary); }
body.modal-open { overflow: hidden; }

/* ----- Delivery section ----- */
.delivery-section-title { font-size: 1.3rem; color: var(--text-main); margin: 8px 0 18px; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.delivery-form {
  background: #ffffff;
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.delivery-form.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(30, 130, 183, 0.14), var(--shadow-soft);
}
.delivery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.delivery-head h3 { font-size: 1.15rem; color: var(--text-main); margin: 0 0 6px; }
.delivery-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.delivery-badge {
  flex: 0 0 auto;
  background: var(--card-soft-bg, #DDEFF8);
  color: var(--accent-blue-dark);
  font-size: 0.78rem; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-button); white-space: nowrap;
}

.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.form-field textarea { resize: vertical; min-height: 64px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 130, 183, 0.14);
}
.form-field input.invalid,
.form-field textarea.invalid,
.form-field select.invalid { border-color: #e23b3b; }
.field-help { font-size: 0.78rem; color: var(--text-secondary); }
.field-error { font-size: 0.8rem; color: #d62828; min-height: 1em; }

.phone-row { display: flex; gap: 10px; }
.phone-row .country-code { flex: 0 0 auto; width: 44%; max-width: 220px; cursor: pointer; }
.phone-row input[type="tel"] { flex: 1; }

.cart-submit { width: 100%; justify-content: center; margin-top: 6px; }
.cart-submit-err {
  margin: 10px 0 0; font-size: 0.85rem; color: #c0392b; text-align: center;
}
.cart-submit-err a { color: #1f9d6b; font-weight: 600; }
.success-ordernum {
  margin: 0 auto 18px; font-size: 0.95rem; color: var(--text-main);
}

/* ----- Trust strip ----- */
.cart-trust {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.cart-trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 12px 14px;
}
.cart-trust svg { width: 18px; height: 18px; color: var(--accent-blue); flex: 0 0 auto; }

/* ----- Empty + success ----- */
.cart-empty, .order-success {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 22px;
  padding: 56px 32px; box-shadow: var(--shadow-soft);
}
.cart-empty h1, .order-success h1 { font-size: 1.7rem; color: var(--text-main); margin: 0 0 12px; }
.cart-empty p, .order-success > p { color: var(--text-muted); margin: 0 auto 24px; max-width: 480px; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: #E6F4EC; color: #1d8a4e;
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 32px; height: 32px; }
.success-details {
  text-align: left; margin: 8px auto 26px; max-width: 520px;
  background: #F7FBFD; border: 1px solid #E5E7EB; border-radius: 16px; padding: 22px;
}
.success-details h2 { font-size: 1.05rem; color: var(--text-main); margin: 0 0 12px; }
.success-products { list-style: none; margin: 0 0 16px; padding: 0; }
.success-products li { font-size: 0.92rem; color: var(--text-muted); padding: 6px 0; border-bottom: 1px dashed #E5E7EB; }
.success-products li:last-child { border-bottom: none; }
.success-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 0.9rem; }
.success-meta dt { color: var(--text-secondary); font-weight: 600; }
.success-meta dd { margin: 0; color: var(--text-main); }

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .cart-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cart-trust { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .phone-row .country-code { width: 38%; }
  .cart-page { padding: 28px 0 56px; }
}

/* =========================================================
   Product detail — specifications table + safety / review notes
   ========================================================= */
.spec-list { margin: 0; display: flex; flex-direction: column; }
.spec-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { margin: 0; color: var(--text-secondary); font-weight: 600; font-size: 0.92rem; }
.spec-row dd { margin: 0; color: var(--text-main); font-size: 0.95rem; line-height: 1.5; }

.safety-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--card-soft-bg);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.delivery-sizing { margin: 10px 0 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.reviews-placeholder { margin: 0; color: var(--text-secondary); font-size: 0.92rem; font-style: italic; }

@media (max-width: 520px) {
  .spec-row { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .spec-row dt { font-size: 0.82rem; }
}

/* ----- Size guide table ----- */
.size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.size-table th,
.size-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.size-table thead th {
  background: var(--card-soft-bg);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.84rem;
}
.size-table td { color: var(--text-muted); }
.size-table tbody tr:last-child td { border-bottom: none; }
.sg-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; }

/* =========================================================
   BOOK APPOINTMENT PAGE — modern redesign (scoped)
   ========================================================= */
body.appointment-page { background: #F4F7F9; }

.appointment-page .appt-eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-blue); margin-bottom: 12px;
}

/* ----- Hero ----- */
.appointment-page .appt-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 60px 0 54px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf3ff 22%, #aecff5 70%, #8bbbf0 100%);
  border-bottom: 1px solid var(--border-soft);
}
.appointment-page .appt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 360' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C300,55 600,140 880,98 C1120,62 1300,128 1440,96' fill='none' stroke='%23fff' stroke-width='2' opacity='0.40'/%3E%3Cpath d='M0,135 C300,100 620,200 900,150 C1140,108 1320,168 1440,140' fill='none' stroke='%23fff' stroke-width='2' opacity='0.34'/%3E%3Cpath d='M0,180 C320,146 640,242 920,194 C1160,152 1340,212 1440,186' fill='none' stroke='%23fff' stroke-width='2' opacity='0.30'/%3E%3Cpath d='M0,225 C300,190 620,288 900,238 C1140,196 1320,256 1440,230' fill='none' stroke='%23fff' stroke-width='2' opacity='0.26'/%3E%3Cpath d='M0,270 C340,236 660,330 960,284 C1180,246 1360,300 1440,278' fill='none' stroke='%23fff' stroke-width='2' opacity='0.22'/%3E%3Cpath d='M0,312 C320,280 640,366 940,322 C1180,288 1360,338 1440,318' fill='none' stroke='%23fff' stroke-width='2' opacity='0.18'/%3E%3Cpath d='M0,350 C360,318 680,398 980,358 C1200,330 1360,368 1440,356' fill='none' stroke='%23fff' stroke-width='2' opacity='0.14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}
.appointment-page .appt-hero-inner { max-width: 820px; position: relative; z-index: 1; }
.appointment-page .appt-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text-main);
  margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.1;
}
.appointment-page .appt-lead { font-size: 1.08rem; color: var(--text-muted); line-height: 1.65; margin: 0 auto 12px; max-width: 700px; }
.appointment-page .appt-sub { color: var(--text-secondary); margin: 0 auto 26px; max-width: 620px; }
.appointment-page .appt-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.appointment-page .appt-quicklinks { font-size: 0.92rem; color: var(--text-secondary); margin: 0; }
.appointment-page .appt-quicklinks a { color: var(--accent-blue); text-decoration: underline; }
.appointment-page .appt-quicklinks a:hover { color: var(--accent-blue-dark); }
.appointment-page .appt-quicklinks span { margin: 0 10px; }

/* ----- Section scaffolding ----- */
.appointment-page .appt-block-section { padding: 56px 0; }
.appointment-page .appt-alt { background: #EAF2F8; }
.appointment-page .appt-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.appointment-page .appt-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-main); margin: 0 0 8px; }
.appointment-page .appt-head p { color: var(--text-muted); margin: 0; }

/* ----- Doctor profile ----- */
.appointment-page .doctor-profile {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.appointment-page .doctor-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}
.appointment-page .doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.appointment-page .doctor-info h2 { font-size: 2rem; color: var(--text-main); margin: 0 0 4px; }
.appointment-page .doctor-role { color: var(--accent-blue); font-weight: 600; margin: 0 0 16px; }
.appointment-page .doctor-info p { color: var(--text-muted); line-height: 1.65; margin: 0 0 14px; }
.appointment-page .doctor-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 22px 0 26px; }
.appointment-page .doctor-col h3 { font-size: 1.05rem; color: var(--text-main); margin: 0 0 12px; }

/* ----- Check list ----- */
.appointment-page .check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.appointment-page .check-list li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.appointment-page .check-list li strong { color: var(--text-main); font-weight: 600; }
.appointment-page .check-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; line-height: 19px; text-align: center;
  border-radius: 50%; background: var(--accent-blue); color: #fff;
  font-size: 11px; font-weight: 700;
}

/* ----- Why choose / what we treat cards ----- */
.appointment-page .appt-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.appointment-page .appt-card {
  background: #ffffff; border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow-soft);
}
.appointment-page .appt-card-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--card-soft-bg); color: var(--accent-blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.appointment-page .appt-card-ico svg { width: 26px; height: 26px; }
.appointment-page .appt-card h2 { font-size: 1.3rem; color: var(--text-main); margin: 0 0 16px; }

/* ----- Steps ----- */
.appointment-page .appt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.appointment-page .step-card {
  background: #ffffff; border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow-soft);
}
.appointment-page .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-blue); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.appointment-page .step-card h3 { font-size: 1.05rem; color: var(--text-main); margin: 0 0 6px; }
.appointment-page .step-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.appointment-page .appt-note { text-align: center; color: var(--text-secondary); font-size: 0.92rem; margin: 28px auto 0; max-width: 660px; }

/* ----- Clinic locations ----- */
.appointment-page .appt-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.appointment-page .location-card {
  background: #ffffff; border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-soft);
}
.appointment-page .location-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--accent-blue); border-radius: var(--radius-button); padding: 5px 12px; margin-bottom: 14px;
}
.appointment-page .location-badge--soft { background: var(--card-soft-bg); color: var(--accent-blue-dark); }
.appointment-page .location-card h3 { font-size: 1.15rem; color: var(--text-main); margin: 0 0 14px; }
.appointment-page .location-addr,
.appointment-page .location-phone {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin: 0 0 12px;
}
.appointment-page .location-addr svg,
.appointment-page .location-phone svg { width: 18px; height: 18px; color: var(--accent-blue); flex: 0 0 auto; margin-top: 1px; }
.appointment-page .location-phone a { color: var(--text-main); text-decoration: none; }
.appointment-page .location-phone a:hover { color: var(--accent-blue); }
.appointment-page .location-card .btn { margin-top: 6px; }

/* ----- Final CTA ----- */
.appointment-page .appt-cta {
  text-align: center; max-width: 760px; margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, var(--card-soft-bg) 100%);
  border: 1px solid var(--border-soft); border-radius: 24px;
  padding: 48px 32px; box-shadow: var(--shadow-soft);
}
.appointment-page .appt-cta h2 { font-size: 1.8rem; color: var(--text-main); margin: 0 0 12px; }
.appointment-page .appt-cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 22px; }
.appointment-page .appt-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.appointment-page .appt-cta-note { font-size: 0.9rem; color: var(--text-secondary); margin: 22px auto 0; }

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .appointment-page .doctor-profile { grid-template-columns: 1fr; gap: 28px; }
  .appointment-page .doctor-photo { max-width: 340px; margin: 0 auto; }
  .appointment-page .appt-two-col { grid-template-columns: 1fr; }
  .appointment-page .appt-steps { grid-template-columns: repeat(2, 1fr); }
  .appointment-page .appt-locations { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .appointment-page .appt-steps { grid-template-columns: 1fr; }
  .appointment-page .doctor-cols { grid-template-columns: 1fr; }
  .appointment-page .appt-hero-actions,
  .appointment-page .appt-cta-actions { flex-direction: column; align-items: stretch; }
  .appointment-page .appt-block-section { padding: 44px 0; }
}

/* =========================================================
   NAVBAR ICONS — cart badge
   ========================================================= */
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--header-bg);
  pointer-events: none;
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
body.search-open { overflow: hidden; }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 29, 54, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6vh 18px 18px;
}
/* The hidden attribute must win over display:flex above, otherwise the
   overlay stays on screen and the open/close toggle does nothing. */
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(7, 29, 54, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 84vh;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #E5E7EB;
}
.search-bar-ico { width: 22px; height: 22px; color: var(--accent-blue); flex: 0 0 auto; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1.02rem;
  color: var(--text-main);
  background: none;
}
.search-close {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.16s ease;
}
.search-close:hover { color: var(--accent-blue-dark); }
.search-results { overflow-y: auto; padding: 10px; }
.search-hint, .search-empty, .search-count {
  margin: 0;
  padding: 14px 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.search-count { font-weight: 600; color: var(--text-muted); padding-bottom: 6px; }
.search-result-list { display: flex; flex-direction: column; gap: 6px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease;
}
.search-result:hover { background: #F2F8FC; color: inherit; }
.search-result-img {
  width: 60px; height: 60px; flex: 0 0 auto;
  background: #F7FBFD; border: 1px solid #E5E7EB; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px;
}
.search-result-img img { width: 100%; height: 100%; object-fit: contain; }
.search-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-result-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-blue); font-weight: 600; }
.search-result-info h4 { margin: 0; font-size: 0.98rem; color: var(--text-main); }
.search-result-desc {
  font-size: 0.82rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result-price { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.search-result-view {
  flex: 0 0 auto;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

/* =========================================================
   CART — actions, per-item remove, add-to-cart message link
   ========================================================= */
.cart-summary { position: relative; }
.cart-item { position: relative; }
.cart-item-remove {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: color 0.14s ease, background 0.14s ease;
}
.cart-item-remove:hover { color: #d62828; background: #fdecec; }
.cart-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cart-actions .btn { flex: 1; justify-content: center; min-width: 180px; }
.cart-msg-link { font-weight: 600; text-decoration: underline; }

/* =========================================================
   AUTH PAGES — login / signup / profile
   ========================================================= */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 56px 18px 80px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.8rem; color: var(--text-main); margin: 0 0 8px; letter-spacing: -0.01em; }
.auth-head p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
.auth-form .form-field { margin-bottom: 18px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }

.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { width: 100%; padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: color 0.14s ease;
}
.password-toggle:hover { color: var(--accent-blue); }
.password-toggle svg { width: 20px; height: 20px; }

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--accent-blue); flex: 0 0 auto; cursor: pointer; }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}
.auth-divider span { padding: 0 14px; }

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #D5DBE1;
  color: #2D3B44;
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 18px;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn-google:hover { background: #F7FAFC; box-shadow: 0 2px 8px rgba(7, 29, 54, 0.08); border-color: #C4CCD4; }
.btn-google .g-ico { width: 20px; height: 20px; flex: 0 0 auto; }

.auth-alt { text-align: center; margin: 18px 0 0; font-size: 0.92rem; color: var(--text-muted); }
.auth-alt a { color: var(--accent-blue); font-weight: 600; }
.auth-note { text-align: center; margin: 12px 0 0; font-size: 0.78rem; color: var(--text-secondary); }

/* ----- Profile ----- */
.profile-page { align-items: flex-start; }
.profile-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 22px;
  padding: 36px 34px;
  box-shadow: var(--shadow-soft);
}
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.profile-avatar {
  width: 64px; height: 64px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--card-soft-bg);
  color: var(--accent-blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar svg { width: 34px; height: 34px; }
.profile-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.profile-uid { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.profile-top h1 { font-size: 1.7rem; color: var(--text-main); margin: 0 0 4px; }
.profile-sub { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.profile-details {
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}
.profile-row + .profile-row { border-top: 1px solid #E5E7EB; }
.profile-label { color: var(--text-secondary); font-size: 0.9rem; }
.profile-value { color: var(--text-main); font-weight: 600; font-size: 0.94rem; text-align: right; word-break: break-word; }

.profile-section { margin-bottom: 24px; }
.profile-section h2 { font-size: 1.15rem; color: var(--text-main); margin: 0 0 8px; }
.profile-placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: #F7FBFD;
  border: 1px dashed #CBD9E2;
  border-radius: 12px;
  padding: 16px 18px;
}

/* ---- Order history cards (profile page) ---- */
.order-card {
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-num { font-weight: 700; color: var(--text-main); }
.order-status {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; background: var(--card-soft-bg); color: var(--accent-blue-dark);
}
.order-status--delivered, .order-status--completed { background: #E6F7EF; color: #137a4f; }
.order-status--cancelled { background: #FDE3DF; color: #a32b1c; }
.order-card-date { color: var(--text-muted); font-size: 0.85rem; margin: 4px 0 10px; }
.order-card-items { list-style: none; margin: 0 0 10px; padding: 0; }
.order-card-items li { font-size: 0.92rem; color: var(--text-main); padding: 2px 0; }
.order-card-items .oi-meta { color: var(--text-muted); }
.order-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid #EEF2F5; padding-top: 10px; font-size: 0.88rem; color: var(--text-secondary);
}
.order-card-total { font-weight: 700; color: var(--text-main); }
.order-card-track { display: inline-block; margin-top: 10px; font-size: 0.88rem; color: var(--accent-blue); text-decoration: none; font-weight: 500; }
.order-card-track:hover { text-decoration: underline; }

/* ---- Post-order "create an account" panel (cart success screen) ---- */
.post-order-signup {
  border: 1px solid var(--border-soft, #E5E7EB);
  border-radius: 16px;
  background: var(--card-soft-bg, #F2F8FC);
  padding: 22px 24px;
  margin: 22px 0;
  text-align: left;
}
.post-order-signup h2 { font-size: 1.15rem; color: var(--text-main); margin: 0 0 6px; }
.post-order-signup p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }
.po-field { margin-bottom: 12px; }
.po-field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-main); margin-bottom: 5px; }
.po-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-soft, #E5E7EB);
  border-radius: 12px; font: inherit; color: var(--text-main); background: #fff; box-sizing: border-box;
}
.po-field input:focus { outline: none; border-color: var(--accent-blue); }
.post-order-signup .btn { margin-top: 4px; }
.po-msg { margin: 12px 0 0; font-size: 0.9rem; }
.po-msg.is-error { color: #d62828; }

@media (max-width: 560px) {
  .cart-actions .btn { flex: 1 1 100%; }
  .search-result-view { display: none; }
  .auth-card, .profile-card { padding: 30px 22px; }
}

/* =========================================================
   RETURN & EXCHANGE POLICY PAGE
   ========================================================= */
.policy-wrap { max-width: 860px; }
.policy-head { text-align: center; margin-bottom: 32px; }
.policy-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--text-main);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.policy-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.policy-content {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 38px 40px;
  box-shadow: var(--shadow-soft);
}
.policy-content > p,
.policy-content > ul { color: var(--text-muted); line-height: 1.7; }
.policy-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  padding-bottom: 6px;
}
.policy-content h2 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid #EAEFF3;
}
.policy-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 26px; }
.policy-content h3 {
  font-size: 1.05rem;
  color: var(--accent-blue-dark);
  margin: 20px 0 8px;
}
.policy-content p { margin: 0 0 14px; }
.policy-content ul { margin: 0 0 16px; padding-left: 22px; }
.policy-content li { margin-bottom: 7px; color: var(--text-muted); line-height: 1.6; }
.policy-content a { color: var(--accent-blue); text-decoration: underline; }
.policy-content a:hover { color: var(--accent-blue-dark); }
.policy-content strong { color: var(--text-main); }

.policy-back {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Link to the policy from the product "Delivery & Returns" section */
.delivery-policy-link { margin-top: 12px; font-weight: 500; }

@media (max-width: 560px) {
  .policy-content { padding: 26px 20px; }
  .policy-back .btn { flex: 1 1 100%; justify-content: center; }
}

/* =========================================================
   SEO landing pages (money / category / guide / local pages)
   Additive classes only — matches the premium grey/blue look.
   ========================================================= */
.seo-hero { text-align: center; max-width: 820px; margin: 0 auto 34px; }
.seo-hero h1 { font-size: 2.4rem; }
.seo-hero .seo-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

.seo-section { max-width: 860px; margin: 0 auto 34px; }
/* Breathing room when a text/fitting block sits right under a product grid
   (e.g. "Fitting Support Available" on knee pages) */
.product-grid + .seo-section { margin-top: 48px; }
.seo-section h2 { font-size: 1.5rem; margin-top: 8px; }
.seo-section h3 { font-size: 1.15rem; }
.seo-section ul { padding-left: 22px; color: var(--text-muted); }
.seo-section li { margin-bottom: 7px; line-height: 1.6; }

/* White content card used for long-form guide text */
.seo-card {
  background: var(--soft-card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}

/* Category blocks on the catalog + hub pages */
.category-block {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.category-block h3 { margin-bottom: 6px; }
.category-block p { margin-bottom: 12px; }
.category-block .category-links { display: flex; flex-wrap: wrap; gap: 10px; }
.category-block .category-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-blue-dark);
  background: #fff;
}
.category-block .category-links a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* FAQ accordion — native <details>, no JS needed */
.faq-list { max-width: 860px; margin: 48px auto 34px; }
.faq-list h2 { font-size: 1.5rem; margin-bottom: 22px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  color: var(--text-main);
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-blue);
  font-size: 1.2rem;
  font-weight: 500;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 18px 14px; color: var(--text-muted); }
.faq-item .faq-a p { margin-bottom: 8px; }

/* Standalone headings on SEO landing pages sit above centered content
   (FAQ accordions, quick-link pills, product grid) — center them so the
   page doesn't mix left-edge headings with centered blocks. */
.faq-list > h2 { text-align: center; }
.seo-section > h2:only-child { text-align: center; }
.seo-section:has(> .quick-links) > h2 { text-align: center; }

/* Medical disclaimer note used on SEO + product pages */
.medical-note {
  max-width: 860px;
  margin: 0 auto 34px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-blue);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* "Why The Physio Store is different" cards (home) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.why-card h3 { font-size: 1.06rem; margin-bottom: 8px; color: var(--text-main); letter-spacing: -0.01em; }
.why-card p { font-size: 0.9rem; margin: 0; color: var(--text-secondary); line-height: 1.6; }

/* Small premium eyebrow badge above a section heading */
.section-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  color: var(--accent-blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.why-card .why-ico {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--card-soft-bg);
  color: var(--accent-blue-dark);
  margin-bottom: 12px;
}
.why-card .why-ico svg { width: 20px; height: 20px; }

/* Popular searches / quick internal links strip */
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-links a {
  display: inline-flex;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--accent-blue-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.quick-links a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* Expanded footer columns (Shop / Guides / Support / Store info) */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 28px 0 8px;
  text-align: left;
}
.footer-col h4 { font-size: 0.95rem; margin-bottom: 10px; color: var(--text-main); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent-blue-dark); text-decoration: underline; }
.footer-col p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px; }

/* Search overlay extras: category/guide suggestions + no-result CTA */
.search-suggestions { margin-top: 14px; }
.search-suggestions h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.search-suggestion-links { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggestion-links a {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  color: var(--accent-blue-dark);
  background: #fff;
}
.search-wa-cta { text-align: center; padding: 18px 0 6px; }
.search-wa-cta .btn { margin-top: 10px; }

/* =========================================================
   Phase 2 — trust, reviews, sizing diagram, WhatsApp FAB label
   ========================================================= */

/* Clinical Guidance (E-E-A-T) block — honest default; js/clinical-guidance.js
   upgrades it to a "Reviewed by" version only for genuinely reviewed pages. */
.clinical-guidance {
  max-width: 860px;
  margin: 0 auto 34px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.clinical-guidance h2 { font-size: 1.05rem; margin-bottom: 8px; }
.clinical-guidance p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 8px; }
.clinical-guidance .clinical-links { margin-bottom: 0; }
.clinical-guidance .clinical-reviewed { color: var(--text-main); }
.clinical-guidance .clinical-reviewed-date { font-size: 0.82rem; }

/* Review collection CTA + review cards (real reviews only) */
.review-cta {
  max-width: 860px;
  margin: 0 auto 34px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.review-cta p { margin: 0; color: var(--text-secondary); }
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.review-card .review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.review-card .review-name { font-weight: 600; }
.review-card .review-stars { color: #E6A817; letter-spacing: 2px; }
.review-card .review-text { margin-bottom: 8px; }
.review-card .review-meta { font-size: 0.82rem; color: var(--text-secondary); margin: 0; text-transform: capitalize; }
.review-card .review-verified { color: var(--accent-blue-dark); font-weight: 500; }

/* Knee measurement steps — labelled text boxes (not a medical diagram) */
.measure-diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.measure-step {
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.measure-step .measure-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}
.measure-step strong { display: block; margin-bottom: 6px; }
.measure-step p { font-size: 0.88rem; margin: 0; color: var(--text-secondary); }

/* WhatsApp FAB with "Need sizing help?" label (injected by js/wa-fab.js).
   Base .wa-fab styles exist; this variant adds the pill label. */
.wa-fab--label { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 18px 0 14px; border-radius: 999px; }
.wa-fab--label .wa-fab-label { font-size: 0.9rem; font-weight: 600; color: #fff; white-space: nowrap; }

/* Wider footer (6 columns on desktop, wraps down gracefully) */
.footer-cols--wide { grid-template-columns: repeat(6, 1fr); }

/* Empty-cart suggestions */
.cart-empty .quick-links { margin-top: 18px; justify-content: center; }

@media (max-width: 1024px) {
  .footer-cols--wide { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols--wide { grid-template-columns: repeat(2, 1fr); }
  .measure-diagram { grid-template-columns: 1fr; }
}

/* =========================================================
   Streamlined 3-layer footer — premium, calm, spacious
   Layer 1: WhatsApp CTA strip · Layer 2: 4-column grid +
   "Explore More" details · Layer 3: slim legal bar
   ========================================================= */

/* ---- Layer 1: CTA strip ---- */
.footer-cta {
  background: var(--accent-blue-dark);
  color: #fff;
  padding: 30px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-text h2 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.footer-cta-text p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 0.95rem; max-width: 560px; }
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-button);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-cta-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.footer-cta-btn svg { width: 20px; height: 20px; }

/* ---- Layer 2: main grid ---- */
.site-footer .footer-bottom { padding: 38px 0 0; text-align: left; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
}
.footer-brand img { width: 140px; height: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-secondary); max-width: 300px; }
.footer-socials { display: flex; gap: 8px; margin: 12px 0; }
.footer-socials a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  background: #fff;
}
.footer-socials a:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.footer-socials svg { width: 15px; height: 15px; }
.footer-contact-line { font-size: 0.88rem; margin: 0; }
.footer-contact-line a { color: var(--accent-blue-dark); text-decoration: none; font-weight: 500; }

/* Columns: <details open> — expanded on desktop (toggle disabled), accordion
   on mobile (js/main.js removes [open] under 768px). */
.footer-acc summary {
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-acc summary::-webkit-details-marker { display: none; }
.footer-acc summary::after { content: ""; }
.footer-acc ul { list-style: none; margin: 0; padding: 0; }
.footer-acc li { margin-bottom: 8px; }
.footer-acc a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.footer-acc a:hover { color: var(--accent-blue-dark); text-decoration: underline; }
.footer-view-all { font-weight: 600; color: var(--accent-blue-dark) !important; }
.footer-nap { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; margin: 14px 0 0; }
.footer-nap a { color: var(--accent-blue-dark); text-decoration: none; }

/* Desktop: summaries are static headings, not toggles */
@media (min-width: 769px) {
  .footer-acc summary { pointer-events: none; cursor: default; }
}

/* ---- Explore More (compact long-tail links, user-accessible) ---- */
.footer-more {
  border-top: 1px solid var(--border-soft);
  padding: 14px 0;
}
.footer-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-more > summary::-webkit-details-marker { display: none; }
.footer-more > summary::after {
  content: "+";
  font-size: 1rem;
  color: var(--accent-blue);
}
.footer-more[open] > summary::after { content: "\2212"; }
.footer-more > summary:hover { color: var(--accent-blue-dark); }
.footer-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 18px 0 8px;
}
.footer-more-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.footer-more-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-more-grid li { margin-bottom: 6px; }
.footer-more-grid a { color: var(--text-secondary); font-size: 0.82rem; text-decoration: none; }
.footer-more-grid a:hover { color: var(--accent-blue-dark); text-decoration: underline; }

/* =========================================================
   Standard Fitting & Knee Analysis — knee brace product pages
   Premium service-benefit block (native <details>: open on
   desktop, collapsed on mobile). Compact "Fitting Support
   Available" variant (.fitting-support) on knee SEO pages.
   ========================================================= */
.product-fitting {
  background: var(--card-soft-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px 26px;
}
.product-fitting > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 34px;
}
.product-fitting > summary::-webkit-details-marker { display: none; }
.product-fitting > summary h2 { display: inline; font-size: 1.25rem; margin: 0; }
.product-fitting > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-blue);
  font-size: 1.35rem;
  font-weight: 500;
}
.product-fitting[open] > summary::after { content: "\2212"; }
.product-fitting[open] > summary { margin-bottom: 14px; }
.fitting-body p { color: var(--text-muted); }
.fitting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.fitting-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.fitting-item strong { display: block; color: var(--text-main); margin-bottom: 4px; font-size: 0.92rem; }
.fitting-cta {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0 12px;
}
.fitting-cta p { margin-bottom: 12px; }
.fitting-links { font-size: 0.88rem; }
.fitting-disclaimer { font-size: 0.8rem; color: var(--text-secondary); margin: 10px 0 0; }
.fitting-support .fitting-disclaimer { margin-top: 12px; }

@media (max-width: 640px) {
  .product-fitting { padding: 18px; }
  .fitting-grid { grid-template-columns: 1fr; }
}

/* ---- Quick Answer block (AI Overview / featured-snippet readiness) ---- */
.quick-answer {
  max-width: 860px;
  margin: 0 auto 34px;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.quick-answer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-blue-dark); margin-bottom: 6px; }
.quick-answer .qa-q { font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.quick-answer p { margin-bottom: 0; }
.quick-answer .qa-q + p { color: var(--text-muted); }

/* ---- Catalog: "Shop by Recovery Need" cards ----
   Shopping-aid card grid; category/guide links stay crawlable inside. */
.need-section { max-width: 1080px; margin: 48px auto 10px; }
.need-section > h2 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.need-section .need-sub { text-align: center; color: var(--text-muted); margin-bottom: 22px; }
.need-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.need-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.need-card h3 { font-size: 1.06rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.need-card h3 a { color: var(--text-main); }
.need-card h3 a:hover { color: var(--accent-blue); }
.need-card > p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.need-links { display: flex; flex-wrap: wrap; gap: 8px; }
.need-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-button);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-blue-dark);
  background: #fff;
}
.need-links a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
@media (max-width: 992px) {
  .need-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .need-grid { grid-template-columns: 1fr; }
  .need-section { margin-top: 36px; }
}

/* =========================================================
   "Create an account" header nudge
   Pill slides out beside the account icon (nav.js adds
   .nudge-active every 10s; hover/focus also reveal it).
   ========================================================= */
.account-nudge-wrapper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.account-nudge-pill {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-8px);
  padding: 6px 0;
  margin-left: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-blue-dark);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  box-shadow: none;
  transition: max-width 0.45s ease, opacity 0.3s ease, transform 0.45s ease,
    padding 0.45s ease, margin 0.45s ease;
}
.account-nudge-wrapper.nudge-active .account-nudge-pill,
.account-nudge-wrapper:hover .account-nudge-pill,
.account-nudge-pill:focus-visible {
  max-width: 170px;
  opacity: 1;
  transform: translateX(0);
  padding: 6px 14px;
  margin-left: 6px;
  border-color: rgba(30, 130, 183, 0.35);
  box-shadow: 0 3px 12px rgba(14, 95, 138, 0.1);
  pointer-events: auto;
}
.account-nudge-pill:hover { color: var(--accent-blue); }
.account-nudge-wrapper.nudge-active .icon-btn svg {
  animation: accountPulse 1.2s ease-in-out;
}
@keyframes accountPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(14, 95, 138, 0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(14, 95, 138, 0.25)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(14, 95, 138, 0)); }
}
@media (prefers-reduced-motion: reduce) {
  .account-nudge-pill { transition: none !important; }
  .account-nudge-wrapper.nudge-active .icon-btn svg { animation: none !important; }
}
/* Mobile: keep the header clean — icon only, no pill, no auto animation. */
@media (max-width: 768px) {
  .account-nudge-pill { display: none; }
}

/* =========================================================
   "Next Steps" ordered pathway (SEO pages + product pages)
   ========================================================= */
.next-steps h2 { margin-bottom: 10px; }
.steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 560px; }
.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.95rem;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-soft-bg);
  color: var(--accent-blue-dark);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps-list a { font-weight: 500; }
/* SEO landing pages centre their content column */
.seo-section.next-steps .steps-list { margin: 0 auto; }
.seo-section.next-steps h2 { text-align: center; }

/* Floating WhatsApp button: text label only on very wide screens where it
   sits in empty margin — icon-only circle below 1200px so it never covers
   the content column (FAQ boxes, notes). */
@media (max-width: 1199px) {
  .wa-fab--label { width: 58px; height: 58px; padding: 0; border-radius: 50%; justify-content: center; }
  .wa-fab--label .wa-fab-label { display: none; }
}

/* Cart hover pill — same premium style as the account pill, but it sits to
   the LEFT of the cart icon (last item) and reveals on hover only. */
.cart-nudge-wrapper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.cart-nudge-pill {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(8px);
  padding: 6px 0;
  margin-right: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-blue-dark);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  box-shadow: none;
  transition: max-width 0.45s ease, opacity 0.3s ease, transform 0.45s ease,
    padding 0.45s ease, margin 0.45s ease;
}
.cart-nudge-wrapper:hover .cart-nudge-pill,
.cart-nudge-pill:focus-visible {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
  padding: 6px 14px;
  margin-right: 6px;
  border-color: rgba(30, 130, 183, 0.35);
  box-shadow: 0 3px 12px rgba(14, 95, 138, 0.1);
  pointer-events: auto;
}
.cart-nudge-pill:hover { color: var(--accent-blue); }
@media (max-width: 768px) {
  .cart-nudge-pill { display: none; }
}
.catalog-more {
  margin: 40px 0 8px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 4px;
}
.catalog-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.catalog-more > summary::-webkit-details-marker { display: none; }
.catalog-more > summary::after { content: "+"; font-size: 1.05rem; color: var(--accent-blue); }
.catalog-more[open] > summary::after { content: "\2212"; }
.catalog-more > summary:hover { color: var(--accent-blue-dark); }
.catalog-more .seo-section { margin: 18px 0 0; max-width: none; }

/* ---- HTML sitemap page (/sitemap) ---- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
}
.sitemap-group {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.sitemap-group h2 { font-size: 1.02rem; margin-bottom: 10px; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; }
.sitemap-group li { margin-bottom: 7px; }
.sitemap-group a { font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; }
.sitemap-group a:hover { color: var(--accent-blue-dark); text-decoration: underline; }
@media (max-width: 900px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* ---- Layer 3: legal bar ---- */
.footer-legal {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal p { margin: 0; font-size: 0.8rem; color: var(--text-secondary); }
.footer-legal nav { font-size: 0.8rem; color: var(--text-secondary); }
.footer-legal nav a { color: var(--text-secondary); text-decoration: none; }
.footer-legal nav a:hover { color: var(--accent-blue-dark); text-decoration: underline; }

/* ---- Footer responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 4px; padding-bottom: 22px; }
  .footer-brand { margin-bottom: 18px; }
  /* Mobile accordion look */
  .footer-acc {
    border-top: 1px solid var(--border-soft);
    padding: 4px 0;
  }
  .footer-acc summary {
    cursor: pointer;
    margin: 0;
    padding: 12px 4px;
    position: relative;
  }
  .footer-acc summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    color: var(--accent-blue);
    font-size: 1.1rem;
  }
  .footer-acc[open] summary::after { content: "\2212"; }
  .footer-acc ul { padding: 0 4px 12px; }
  .footer-acc li { margin-bottom: 10px; }
  .footer-more-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* keep the floating WhatsApp button clear of footer links */
  .footer-legal { padding-bottom: 96px; }
  /* smaller labelled FAB on mobile */
  .wa-fab--label { padding: 0 14px 0 12px; height: 48px; }
  .wa-fab--label svg { width: 24px; height: 24px; }
  .wa-fab--label .wa-fab-label { font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .seo-hero h1 { font-size: 1.7rem; }
  .seo-section h2 { font-size: 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .seo-card { padding: 20px 18px; }
  .category-block { padding: 20px 18px; }
}
