/*
 * Consumer-facing Atomy visual system.
 *
 * This file is the final visual layer above Bootstrap and site.css. It keeps
 * the existing component contracts, but replaces the warm/technical mix with
 * one calm, readable system for a 35–65 audience. Blue is the action colour;
 * coral is deliberately limited to small promotional accents.
 */
:root {
  --ink: #1d2a31;
  --graphite: #24414f;
  --graphite-deep: #153849;
  --muted: #5d6c73;
  --coral: #d9785f;
  --coral-dark: #a64f3f;
  --coral-soft: #fff0eb;
  --sand: #e9f5f8;
  --cream: #f7f9f8;
  --white: #fff;
  --border: #d8e4e8;
  --border-strong: #7895a0;
  --success: #2e7d64;
  --danger: #a43d3d;
  --blue: #087a9c;
  --blue-dark: #05637f;
  --blue-soft: #e9f5f8;
  --navy: #153849;
  --mint: #e4f3ed;
  --shadow-sm: 0 8px 24px rgba(29, 61, 75, .07);
  --shadow-lg: 0 22px 56px rgba(29, 61, 75, .12);
  --radius-sm: .65rem;
  --radius: .9rem;
  --radius-lg: 1.25rem;
  --bs-primary: #087a9c;
  --bs-primary-rgb: 8, 122, 156;
  --bs-body-color: #1d2a31;
  --bs-body-bg: #f7f9f8;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bs-border-color: #d8e4e8;
}

html {
  overflow-x: clip;
  scroll-padding-top: 7rem;
}

body {
  min-width: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; }

a { color: var(--blue-dark); }
a:hover { color: #034c63; }

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.15;
}

h1 { max-width: 20ch; font-size: clamp(2.35rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); }
h3 { font-size: 1.22rem; }
.container { width: 100%; max-width: 1200px; }

/* Preview-only notice stays compact and does not dominate the product UI. */
.draft-notice { border-bottom-color: #ead59a; font-size: .8rem; }
.draft-notice .container { min-height: 1.8rem; padding-top: .22rem !important; padding-bottom: .22rem !important; }

/* Header */
.utility-bar { background: var(--navy); color: #d8e5ea; font-size: .78rem; }
.utility-bar__inner { min-height: 1.75rem; }
.utility-bar__location strong { color: #fff; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(29, 61, 75, .02);
}
.site-header__main {
  display: flex;
  min-width: 0;
  min-height: 3.7rem;
  align-items: center;
  gap: 1.15rem;
}
.site-brand { flex: 0 1 auto; min-width: 0; }
.site-brand__name {
  overflow: hidden;
  color: var(--navy);
  font-family: var(--bs-body-font-family);
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-brand__name em { color: var(--blue); }
.site-brand__tagline {
  overflow: hidden;
  margin-top: .26rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.header-search {
  position: relative;
  display: flex;
  flex: 1 1 28rem;
  max-width: 33rem;
  min-width: 12rem;
  align-items: stretch;
  margin-left: auto;
}
.header-search > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: .9rem;
  color: var(--muted);
  font-size: 1.05rem;
  transform: translateY(-52%);
}
.header-search > span svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.header-search input {
  width: 100%;
  min-width: 0;
  height: 2.55rem;
  padding: 0 5rem 0 2.65rem;
  border: 1px solid var(--border-strong);
  border-radius: .65rem;
  background: #fbfcfc;
  color: var(--ink);
  font-size: .9rem;
}
.header-search input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(8, 122, 156, .16);
  background: #fff;
}
.header-search button {
  position: absolute;
  top: .24rem;
  right: .24rem;
  bottom: .24rem;
  min-width: 4.2rem;
  padding: 0 .8rem;
  border: 0;
  border-radius: .48rem;
  background: var(--blue);
  color: #fff;
  font-size: .79rem;
  font-weight: 750;
}
.header-search button:hover { background: var(--blue-dark); }

.site-header__actions { flex: 0 0 auto; }
.site-navigation,
.site-header .site-navigation {
  min-height: 2.35rem;
  padding: 0 !important;
  border-top: 1px solid #edf2f3;
  background: #fff;
}
.site-navigation .navbar-collapse { min-height: 2.35rem; }
.site-header .nav-link {
  border-radius: .45rem;
  color: #435761;
  font-size: .86rem;
  font-weight: 650;
  padding: .38rem .68rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-link.show {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 650;
}
.site-header .dropdown-menu { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .dropdown-item:active,
.site-header .dropdown-item:hover { background: var(--blue-soft); color: var(--blue-dark); }
.mobile-nav-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  padding: .75rem 0 .55rem;
}
.mobile-nav-search .form-control,
.mobile-nav-search .btn { min-height: 2.75rem; }

.navbar-toggler {
  width: 2.65rem;
  height: 2.65rem;
  padding: .55rem;
  border-color: var(--border-strong);
  border-radius: .65rem;
}
.site-header .navbar-toggler { display: none; }
.site-header .navbar-toggler-icon {
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy));
  background-position: center 25%, center 50%, center 75%;
  background-repeat: no-repeat;
  background-size: 1.15rem 2px;
}

/* Buttons */
.btn {
  min-height: 2.75rem;
  border-radius: .65rem;
  font-weight: 720;
  line-height: 1.25;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: none; }
.btn-lg { min-height: 3rem; border-radius: .7rem; font-size: 1rem; }

/* Existing btn-coral markup is deliberately mapped to the primary blue. */
.btn-coral,
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue-dark);
  --bs-btn-hover-border-color: var(--blue-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--blue-dark);
  --bs-btn-active-border-color: var(--blue-dark);
  --bs-btn-focus-shadow-rgb: 8, 122, 156;
}
.btn-graphite {
  --bs-btn-color: var(--blue-dark);
  --bs-btn-bg: var(--blue-soft);
  --bs-btn-border-color: #c6e0e7;
  --bs-btn-hover-color: var(--blue-dark);
  --bs-btn-hover-bg: #dceff3;
  --bs-btn-hover-border-color: #a9ccd7;
  --bs-btn-active-color: var(--blue-dark);
  --bs-btn-active-bg: #dceff3;
  --bs-btn-active-border-color: #a9ccd7;
}
.btn-outline-graphite,
.btn-outline-primary {
  --bs-btn-color: var(--blue-dark);
  --bs-btn-border-color: #9cbcc7;
  --bs-btn-hover-color: var(--blue-dark);
  --bs-btn-hover-bg: var(--blue-soft);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-color: var(--blue-dark);
  --bs-btn-active-bg: var(--blue-soft);
  --bs-btn-active-border-color: var(--blue);
}
.btn-link { color: var(--blue-dark); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 122, 156, .3);
  outline-offset: 2px;
}
.cart-nav-button { min-height: 2.55rem; box-shadow: 0 7px 18px rgba(8, 122, 156, .16); }
.cart-nav-button .cart-count { background: #fff; color: var(--blue-dark); }

/* Type rhythm and generic sections */
.eyebrow,
.msite-eyebrow {
  margin-bottom: .65rem;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .075em;
}
.eyebrow--light { color: #caeaf2; }
.section-space { padding: clamp(2.9rem, 4.8vw, 4.25rem) 0; }
.section-white { background: #fff; }
.section-tinted { background: var(--blue-soft); }
.section-heading { margin-bottom: 1.65rem; }
.section-heading h2 { max-width: 30ch; }
.section-heading p,
.lead-copy { color: var(--muted); }
.fine-print { color: var(--muted); font-size: .8rem; line-height: 1.5; }

.page-hero,
.local-hero {
  border-bottom-color: var(--border);
  background: linear-gradient(135deg, #fff 0%, #f4fafb 58%, var(--blue-soft) 100%);
}
.page-hero::after,
.local-hero::after { display: none; }
.page-hero .container,
.local-hero .container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.page-hero--compact .container { padding-top: 1.3rem !important; padding-bottom: 1.3rem !important; }
.page-hero h1,
.local-hero h1 { font-size: clamp(2.15rem, 3.7vw, 2.9rem); }
.page-hero__lead { max-width: 52rem; color: var(--muted); font-size: 1.08rem; }
.breadcrumb { color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--muted); }

/* Home hero: calm photography and normal-flow trust, without overlays. */
.home-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #f8fbfb 58%, var(--blue-soft) 100%);
}
.home-hero__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr);
  align-items: start;
  min-height: 0;
  gap: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: clamp(2.35rem, 3.5vw, 3rem);
  padding-bottom: clamp(2.35rem, 3.5vw, 3rem);
}
.home-hero h1 { max-width: 17ch; }
.home-hero h1 em { color: var(--blue-dark); }
.home-hero__lead { max-width: 40rem; color: #4e626b; font-size: clamp(1.05rem, 1.5vw, 1.16rem); }
.hero-benefits { gap: .65rem 1.15rem; margin: 1.25rem 0; }
.hero-benefits li { color: #42565f; font-size: .94rem; line-height: 1.45; }
.hero-benefits span {
  display: grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  margin-top: .05rem;
  border-radius: .35rem;
  background: var(--mint);
  color: var(--success);
  font-size: .72rem;
}
.hero-actions { gap: .6rem; margin-top: 1.25rem; }

.consultant-hero,
.home-hero__visual { min-width: 0; }
.consultant-hero { width: 100%; max-width: 34rem; margin: 0 auto; }
.consultant-hero__photo {
  display: block;
  width: 100%;
  height: clamp(24rem, 32vw, 28.5rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: #eef5f6;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center 35%;
}
.consultant-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.consultant-hero__caption {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: .18rem 1rem;
  margin-top: .7rem;
  padding: .78rem .9rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(29, 61, 75, .06);
}
.consultant-hero__caption strong { display: block; grid-column: 1; color: var(--ink); font-size: 1rem; }
.consultant-hero__caption p,
.consultant-hero__caption small { grid-column: 1 / -1; margin: .35rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.consultant-hero__caption > a { grid-column: 2; grid-row: 1 / 3; font-size: .83rem; font-weight: 750; white-space: nowrap; }
.consultant-hero__meta { grid-column: 1; color: var(--blue-dark); font-size: .78rem; font-weight: 750; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  max-width: 39rem;
  min-width: 0;
  gap: .55rem 1.15rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .4rem;
}
.hero-trust strong { color: #38515b; font-size: .84rem; font-weight: 650; }
.hero-trust li > span {
  display: grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--success);
  font-size: .72rem;
  font-weight: 850;
}

.local-contact-card__photo {
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

/* The template also uses Bootstrap's .row; keep its gutter/grid contract. */
.home-category-shortcuts { margin-top: calc(-1 * var(--bs-gutter-y)); }

/* Legacy product collage: keep it quiet until every template is migrated. */
.hero-display {
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: #f2f7f8;
  box-shadow: var(--shadow-lg);
}
.hero-display::after,
.hero-contact-card,
.hero-tags { display: none !important; }
.hero-product-collage { padding: .8rem; }
.hero-product-collage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  min-height: 25.4rem;
}
.hero-product-collage__item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 10rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.hero-product-collage__item:hover { border-color: #a8c9d3; color: var(--ink); }
.hero-product-collage__item img { width: 100%; height: 100%; max-height: 12rem; padding: .6rem; object-fit: contain; }
.hero-product-collage__item > span { display: none; }

/* Categories */
.category-card {
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  min-height: 7.4rem;
  overflow: hidden;
  gap: .9rem;
  padding: .75rem .9rem .75rem .7rem;
  border-color: var(--border);
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 61, 75, .02);
}
.category-card:hover { border-color: #a5c6d1; box-shadow: var(--shadow-sm); }
.category-card__visual {
  display: grid;
  width: 5.5rem;
  height: 5.7rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #edf2f3;
  border-radius: .7rem;
  background: #fff;
}
.category-card__visual img { width: 100%; height: 100%; padding: .28rem; object-fit: contain; filter: saturate(.94); }
.category-card__visual b { color: var(--blue-dark); font-size: 1.45rem; }
.category-card__body strong { margin-bottom: .18rem; font-family: var(--bs-body-font-family); font-size: 1rem; line-height: 1.3; }
.category-card__body small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-card__body > span { margin-top: .32rem; font-size: .78rem; }
.category-card__body > span,
.category-card__arrow { color: var(--blue-dark); }

/* Editorial shortcuts */
.quick-grid { gap: .85rem; }
.quick-card,
.quick-card--featured {
  display: flex;
  flex-direction: column;
  border-color: var(--border);
  border-radius: .85rem;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.quick-card--featured { border-color: #bdd8e0; background: var(--blue-soft); }
.quick-card > span,
.quick-card--featured > span {
  width: max-content;
  min-width: 2.45rem;
  height: 2.25rem;
  margin-bottom: .9rem;
  padding: 0 .6rem;
  border-radius: .5rem;
  background: #fff;
  color: var(--blue-dark);
  font-size: .76rem;
}
.quick-card h3,
.quick-card--featured h3 { color: var(--ink); font-family: var(--bs-body-font-family); }
.quick-card p,
.quick-card--featured p { color: var(--muted); font-size: .9rem; }
.quick-card a,
.quick-card--featured a { align-self: flex-start; margin-top: auto; color: var(--blue-dark); }

/* Products */
.product-card {
  border-color: var(--border);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 61, 75, .035);
}
.product-card:hover { border-color: #b4cfd7; box-shadow: 0 12px 28px rgba(29, 61, 75, .09); }
.product-card__visual {
  min-height: 13rem;
  padding: .9rem;
  border-bottom: 1px solid #edf2f3;
  background: #fff;
}
.product-card__visual img { width: 100%; height: 11.25rem; object-fit: contain; filter: saturate(.96); }
.product-card__visual--placeholder { background: #f2f8f9; }
.product-card__visual img.product-image--placeholder {
  width: min(100%, 12rem);
  filter: none;
}
.product-card__badge { border: 1px solid #efc1b5; background: var(--coral-soft); color: var(--coral-dark); }
.product-card__body { padding: 1rem; }
.product-card__category { margin-bottom: .38rem; color: var(--blue-dark); font-size: .76rem; letter-spacing: .065em; }
.product-card__title { margin-bottom: .55rem; font-size: 1.08rem; letter-spacing: -.012em; line-height: 1.3; }
.product-card__title a:hover { color: var(--blue-dark); }
.product-card__description { margin-bottom: .85rem; color: var(--muted); font-size: .89rem; line-height: 1.48; -webkit-line-clamp: 2; }
.product-card__price { padding-top: .75rem; }
.product-card__price strong { font-size: 1.06rem; }
.product-card__price small { color: var(--blue-dark); }
.product-card__price > span { font-size: .77rem; }
.product-card__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .28rem; margin-top: .85rem; }
.product-card__actions .btn { width: 100%; min-height: 2.7rem; font-size: .88rem; }
.product-card__actions .btn-outline-graphite,
.product-card__actions .btn-outline-primary,
.product-card__actions .product-card__more {
  justify-self: center;
  width: auto;
  min-height: 2rem;
  padding: .3rem .55rem;
  border-color: transparent;
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
  text-decoration: none;
}
.product-card__actions .btn-outline-graphite:hover,
.product-card__actions .btn-outline-primary:hover,
.product-card__actions .product-card__more:hover {
  border-color: transparent;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

/* Trust, process and CTA blocks */
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid > article,
.feature-grid > div {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 2px solid #9fc7d3;
  border-radius: .8rem;
  background: #fff;
}
.feature-grid > article > span,
.feature-grid > div > span {
  display: inline-block;
  margin-bottom: .7rem;
  padding: .28rem .5rem;
  border-radius: .4rem;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: none;
}
.order-steps { gap: .8rem; }
.order-steps--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-steps li,
.process-card { border-color: var(--border); border-radius: .8rem; box-shadow: none; }
.order-steps li > span,
.process-card > span,
.number-list--large li > span { background: var(--blue); }
.number-list li > span { background: var(--blue-soft); color: var(--blue-dark); }
.feature-list span,
.soft-card,
.notice-box,
.content-card,
.sticky-info-card { border-color: var(--border); }
.feature-list span { font-size: .85rem; }
.soft-card { background: #f9fbfb; box-shadow: 0 6px 20px rgba(29, 61, 75, .055); }
.notice-box { border-left-color: var(--blue); background: #f2f8fa; }

.personal-help {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.personal-help__aside {
  padding: 1.35rem;
  border: 1px solid #c7dfe6;
  border-radius: .9rem;
  background: rgba(255, 255, 255, .82);
}
.personal-help__aside > strong { display: block; margin-bottom: .7rem; font-size: 1.02rem; }
.personal-help__aside .check-list { font-size: .92rem; }

.about-strip { border-color: var(--border); border-radius: 1.05rem; background: #fff; box-shadow: 0 8px 28px rgba(29, 61, 75, .05); }
.about-strip__photo,
.about-profile-placeholder { overflow: hidden; background: #edf5f6; }
.about-strip__photo img,
.about-profile-placeholder img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center 30%; }
.about-profile-placeholder > span { background: var(--blue); font-family: var(--bs-body-font-family); }
.about-hero__row { align-items: start !important; }
.about-hero__content { padding-top: .3rem; }
.about-profile-placeholder--photo {
  min-height: 0;
  margin-bottom: 0;
  border-radius: 1.05rem;
}
.about-profile-placeholder--photo img {
  height: 27rem;
  min-height: 0;
  object-fit: cover;
  object-position: center 31%;
}
.commercial-cta {
  padding: clamp(1.8rem, 5vw, 3.2rem);
  border: 1px solid #c4dfe6;
  border-radius: 1rem;
  background: var(--blue-soft);
  color: #405660;
}
.commercial-cta::after { display: none; }
.commercial-cta h2 { color: var(--ink); }
.commercial-cta > small { color: var(--muted); }
.commercial-cta .eyebrow--light { color: var(--blue-dark); }

/* The comparison heading is a non-interactive programmatic focus target for
   screen-reader/keyboard navigation. It must not look like an input field. */
#catalog-comparisons[tabindex="-1"] { width: fit-content; }
#catalog-comparisons[tabindex="-1"]:focus { outline: 0; }
#catalog-comparisons[tabindex="-1"]:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

/* On a wide screen the CTA is a concise decision strip, not a large card with
   an empty right half. Mobile and tablet layouts keep the natural stack. */
@media (min-width: 992px) {
  .commercial-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .25rem clamp(2rem, 5vw, 4rem);
    padding: 2rem 2.35rem;
  }
  .commercial-cta > .eyebrow,
  .commercial-cta > h2,
  .commercial-cta > p,
  .commercial-cta > small { grid-column: 1; }
  .commercial-cta > h2 { margin-bottom: .25rem; }
  .commercial-cta > p:not(.eyebrow) { margin-bottom: 0; }
  .commercial-cta > div {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0 !important;
  }
  .commercial-cta > small { margin-top: .4rem; }
}

/* Catalog and forms */
.catalog-toolbar,
.catalog-filters,
.seo-copy,
.request-card,
.lead-form { border-color: var(--border); }
.catalog-toolbar { gap: .85rem; margin-bottom: 1.25rem; padding: .9rem; border-radius: .8rem; background: var(--blue-soft); }
.catalog-main-section,
.category-products-section { padding-top: 2.25rem; }
.catalog-layout,
.catalog-layout > *,
.catalog-filters { min-width: 0; max-width: 100%; }
.catalog-layout { gap: 1.5rem; }
.catalog-filters { border-radius: .8rem; background: #fff; }
.catalog-filter-list { min-width: 0; max-width: 100%; }
.catalog-filter-list button,
.catalog-filter-list a,
.catalog-filter-list button:hover,
.catalog-filter-list button.active,
.catalog-filter-list a:hover,
.catalog-filter-list a.active { font-weight: 650; }
.catalog-filter-list a.active,
.catalog-filter-list button.active { background: var(--blue-soft); color: var(--blue-dark); }

@media (min-width: 992px) {
  .catalog-filters {
    display: flex;
    max-height: calc(100dvh - 8.5rem);
    flex-direction: column;
    overflow: hidden;
  }
  .catalog-filter-list {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-right: .25rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
}
.catalog-result-line { color: var(--muted); font-size: .85rem; }
.catalog-search input:focus,
.catalog-sort-group select:focus,
.form-control:focus,
.form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .22rem rgba(8, 122, 156, .14); }
.catalog-pagination a.active { background: var(--blue); }
.seo-copy,
.prose { color: #40535c; font-size: 1.02rem; }

.product-detail { padding-top: 1.2rem; }
.product-detail__grid {
  grid-template-areas: "media info";
  grid-template-columns: minmax(20rem, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}
.product-detail__media { grid-area: media; min-width: 0; }
.product-detail__info { grid-area: info; min-width: 0; }
.product-detail__visual,
.request-item__visual { border: 1px solid #e5edef; background: #fff; }
.product-detail__visual { min-height: 30rem; padding: 2.25rem; }
.product-detail__visual img { height: 26rem; max-height: 26rem; object-fit: contain; }
.product-detail__visual img.product-image--placeholder {
  width: min(100%, 30rem);
  filter: none;
}
.product-detail__visual img.product-image--placeholder + small {
  max-width: 34rem;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .78rem;
}
.product-detail__info h1 { font-size: clamp(2.2rem, 3.6vw, 3.15rem); }
.product-detail__lead { color: #465a63; font-size: 1.04rem; }
.product-detail__price { border-color: var(--border); background: #fff; }
.product-detail__price strong { font-size: 1.35rem; }
.product-buy > .btn { background-color: var(--blue); border-color: var(--blue); }
.quantity-stepper button,
.request-quantity__button { background: var(--blue-soft); }
.quantity-stepper { min-height: 3rem; }
.quantity-stepper button { min-width: 2.75rem; min-height: 3rem; }
.request-quantity { grid-template-columns: 2.75rem 2.8rem 2.75rem; }
.request-quantity__button,
.request-quantity__value { min-height: 2.75rem; }
.source-card,
.two-column-list > div,
.request-summary,
.request-checks,
.lead-comment { background: var(--blue-soft); }
.radio-grid input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.radio-grid input:focus-visible + span { outline-color: rgba(8, 122, 156, .25); }
.form-consents input,
.admin-switches input { accent-color: var(--blue); }

.request-card,
.lead-form { border-radius: .9rem; background: #fff; box-shadow: 0 6px 22px rgba(29, 61, 75, .055); }
.request-layout--empty .request-cart-column { width: 100%; max-width: 48rem; margin-inline: auto; }
.request-item__name { font-family: var(--bs-body-font-family); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.request-item__info small,
.request-item__unit-price { font-size: .8rem; line-height: 1.4; }
.request-item__remove { min-height: 2.25rem; padding: .35rem .2rem; font-size: .82rem; }
.request-summary span,
.request-summary p { font-size: .79rem; line-height: 1.45; }
.request-checks div { font-size: .9rem; }
.form-label,
.form-fieldset legend { color: #354b55; font-size: .86rem; }
.radio-grid span { font-size: .86rem; }
.form-fieldset legend { margin-bottom: .5rem; }
.form-consents label { font-size: .86rem; line-height: 1.5; }
.lead-form__fine { font-size: .82rem; line-height: 1.5; }
.request-assurance {
  display: grid;
  gap: .45rem;
  padding: .9rem 1rem;
  border: 1px solid #c7e0d7;
  border-radius: .8rem;
  background: var(--mint);
  color: #315d50;
  font-size: .84rem;
}
.success-page { background: linear-gradient(145deg, var(--blue-soft), #fff); }
.success-card__icon { background: var(--mint); }
.product-sticky-buy { display: none; }

/* Footer, mobile navigation, editorial pages and admin */
.site-footer { background: var(--navy); color: #cfdee4; }
.site-footer__brand { font-family: var(--bs-body-font-family); }
.site-footer hr { border-color: #416373; }
.site-footer__legal { color: #b9cbd2; font-size: .875rem; line-height: 1.55; }
.cart-toast { background: var(--navy); }

.admin-body { background: #f2f7f7; }
.admin-header { background: var(--navy); }
.admin-brand > span { background: var(--blue); font-family: var(--bs-body-font-family); }
.admin-panel,
.admin-login__card { border-color: var(--border); }
.admin-login__icon { background: var(--blue); font-family: var(--bs-body-font-family); }
.copy-button { color: var(--blue-dark); }
.admin-header__inner { flex-wrap: wrap; }
.admin-header nav { min-width: 0; }
.admin-header nav a,
.admin-header nav button { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .45rem .15rem; font-size: .86rem; }
.admin-header nav a.is-active { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .38rem; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.admin-overview-card { display: flex; min-height: 9rem; flex-direction: column; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.admin-overview-card:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.admin-overview-card span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.admin-overview-card strong { margin: auto 0 .2rem; color: var(--navy); font-size: 2.2rem; line-height: 1; }
.admin-overview-card small { color: var(--muted); }
.admin-overview-card--primary { border-color: #8bc4d8; background: var(--blue-soft); }
.admin-overview-card--warning { border-color: #e3b85d; background: #fff8e7; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(12rem, .42fr) auto auto; gap: .8rem; align-items: end; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.admin-filter-bar--products { grid-template-columns: minmax(15rem, 1fr) repeat(3, minmax(9.5rem, .45fr)) auto auto; }
.admin-filter-bar label > span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .78rem; font-weight: 800; }
.admin-filter-bar .btn { min-height: 2.75rem; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.admin-pagination > span { color: var(--muted); font-size: .86rem; font-weight: 750; text-align: center; }
.admin-history summary { cursor: pointer; font-weight: 800; }
.admin-history ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .78rem; }
.admin-history li + li { margin-top: .4rem; }
.admin-main button[aria-busy="true"] { opacity: .7; cursor: progress; }
.msite-page-header { background: var(--blue-soft); }
.msite-page-header .container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.msite-page-header h1 { max-width: 22ch; font-size: clamp(2.15rem, 3.7vw, 2.9rem); }
.msite-article { max-width: 48rem; margin-inline: auto; font-size: 1.04rem; line-height: 1.72; }
.msite-article h2,
.product-copy h2,
.legal-copy h2,
.content-card h2 { font-size: clamp(1.45rem, 2.25vw, 1.8rem); }
.sticky-info-card h2,
.source-card h2,
.notice-box h2 { font-size: 1.4rem; }
.msite-guide-card h2 a:hover,
.msite-guide-card h3 a:hover { color: var(--blue-dark); }
.msite-guide-card { display: flex; flex-direction: column; }
.msite-guide-card .msite-text-link { align-self: flex-start; margin-top: auto; }
.msite-trust-note { border-left-color: var(--blue); background: var(--blue-soft); }
.msite-faq .accordion-button:not(.collapsed) { background: var(--blue-soft); color: var(--blue-dark); }
.msite-empty-state h1 { margin-inline: auto; }

/* On desktop, balance the shorter copy column against the portrait + caption.
   The capped viewport height removes accidental blank strips without turning
   tall monitors into a full-screen landing page. */
@media (min-width: 1200px) {
  .home-hero__grid {
    min-height: min(42rem, calc(100dvh - 7.1rem));
    align-items: center;
  }
  .home-page--draft .home-hero__grid {
    min-height: min(42rem, calc(100dvh - 9rem));
  }
}

@media (max-width: 1199.98px) {
  .header-search { display: none; }
  .site-header .navbar-toggler { display: block; }
  .site-header__main { justify-content: space-between; }
  .site-navigation,
  .site-header .site-navigation { min-height: 0; border-top: 0; }
  .site-navigation .navbar-collapse {
    min-height: 0;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .45rem 0 .8rem;
    border-top: 1px solid var(--border);
  }
  .home-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); gap: 2.25rem; }
  .home-hero h1 { font-size: clamp(2.35rem, 4vw, 2.75rem); }
  .consultant-hero__photo { height: 25rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  /* The mobile header is one compact row. Reusing the desktop anchor offset
     leaves a clipped chip from the preceding section above the destination. */
  html { scroll-padding-top: 4.5rem; }

  body:not(.admin-body) { padding-bottom: 4.2rem; }
  body.product-page { padding-bottom: 5.1rem; }
  body.request-page { padding-bottom: 0; }
  /* Wide Bootstrap gutters assume matching parent padding. Our fluid tablet
     container is narrower, so keep nested g-5 rows inside the viewport. */
  .container .row.g-5 { --bs-gutter-x: 1.5rem; }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 2.35rem; }
  .home-hero__visual,
  .consultant-hero { width: 100%; max-width: 36rem; }
  .catalog-filters { overflow: hidden; }
  .catalog-layout > aside { order: 1; margin-bottom: 1rem; }
  .catalog-layout > div { order: 2; }
  .site-navigation .navbar-collapse { max-height: calc(100dvh - 9.7rem); }
  .product-page .site-navigation .navbar-collapse,
  .request-page .site-navigation .navbar-collapse { max-height: calc(100dvh - 5.5rem); }
  .catalog-filter-list { width: 100%; max-width: 100%; overscroll-behavior-inline: contain; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-help { grid-template-columns: minmax(0, 1fr); }
  .product-detail__grid {
    display: flex;
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    gap: 0;
  }
  .product-detail__info { display: contents; }
  .product-detail__info > * { order: 9; }
  .product-detail__info > .alert { order: 0; }
  .product-detail__info > .product-card__category { order: 1; }
  .product-detail__info > h1 { order: 2; }
  .product-detail__info > .product-detail__sku { order: 3; }
  .product-detail__info > .supplement-warning { order: 4; }
  .product-detail__media { order: 5; width: 100%; margin: 1rem 0; }
  .product-detail__info > .product-detail__price { order: 6; }
  .product-detail__info > .product-buy { order: 7; }
  .product-detail__info > .fine-print { order: 8; }
  .product-detail__info > .product-detail__lead { order: 9; }
  .product-detail__info > .product-service-list { order: 10; }
  .product-detail__info > p:last-child { order: 11; }
  .product-detail__visual { min-height: 16rem; padding: 1rem; }
  .product-detail__visual img { height: 14rem; max-height: 14rem; }
  .product-page .mobile-action-bar,
  .request-page .mobile-action-bar { display: none; }
  .product-sticky-buy:not([hidden]) {
    position: fixed;
    z-index: 1035;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 4.65rem;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .62rem max(.75rem, env(safe-area-inset-right)) calc(.62rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(29, 61, 75, .12);
  }
  .product-sticky-buy > div { min-width: 0; }
  .product-sticky-buy small {
    display: block;
    overflow: hidden;
    max-width: 52vw;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-sticky-buy strong { display: block; margin-top: .1rem; font-size: 1rem; line-height: 1.2; }
  .product-sticky-buy .btn { flex: 0 0 auto; min-width: 8.5rem; }
  .about-profile-placeholder--photo img { height: 24rem; }
  .lead-form .form-control,
  .lead-form .form-select { min-height: 2.75rem; }
  .catalog-pagination__pages a,
  .catalog-pagination__pages > span {
    min-width: 2.75rem;
    height: 2.75rem;
  }
  .catalog-pagination__arrow {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding-block: .45rem;
  }
  .catalog-pagination__arrow:first-child { justify-content: flex-start; }
  .catalog-pagination__arrow:last-child { justify-content: flex-end; }
  .mobile-action-bar {
    min-height: 4.2rem;
    border-top-color: var(--border);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -7px 22px rgba(29, 61, 75, .1);
  }
  .mobile-action-bar a { color: #304954; font-size: .73rem; }
  .mobile-action-bar a > span { color: var(--blue); font-size: 1.05rem; }
  .mobile-action-bar a > span svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }
  .mobile-action-bar b { background: var(--blue); font-size: .68rem; }
}

@media (max-width: 767.98px) {
  .container { --bs-gutter-x: 1.5rem; }
  body { font-size: 1rem; }
  h1 { font-size: clamp(2rem, 9vw, 2.3rem); }
  h2 { font-size: clamp(1.65rem, 7vw, 1.95rem); }
  h3 { font-size: 1.15rem; }

  .utility-bar__inner { min-height: 1.8rem; }
  .utility-bar__links { gap: .55rem; }
  .site-header__main { min-height: 3.75rem; gap: .55rem; }
  .site-brand__name { font-size: 1.05rem; }
  .site-brand__tagline { max-width: 12.5rem; font-size: .58rem; }
  .site-header__actions { gap: .35rem !important; }
  .cart-nav-button { min-height: 2.75rem; padding: .55rem .72rem; }
  .navbar-toggler { width: 2.75rem; height: 2.75rem; }

  .section-space { padding: 2.55rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .page-hero .container,
  .local-hero .container { padding-top: 1.45rem !important; padding-bottom: 1.45rem !important; }
  .msite-page-header .container { padding-top: 1.45rem !important; padding-bottom: 1.45rem !important; }
  .page-hero h1,
  .local-hero h1 { font-size: clamp(2rem, 9vw, 2.3rem); }
  .page-hero__lead { font-size: 1rem; line-height: 1.55; }

  .home-hero__grid { gap: 1.55rem; padding-top: 1.85rem; padding-bottom: 2.2rem; }
  .home-hero h1 { max-width: 16ch; }
  .home-hero__lead { font-size: 1.02rem; line-height: 1.55; }
  .hero-benefits { grid-template-columns: 1fr; gap: .55rem; margin: 1rem 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .consultant-hero__photo { height: 22rem; }
  .consultant-hero__caption { padding: .8rem; }
  .hero-trust { align-items: flex-start; flex-wrap: wrap; }
  .hero-trust a { margin-left: 4rem; }

  .hero-display { min-height: 20rem; border-radius: .9rem; }
  .hero-product-collage__grid { min-height: 18.4rem; gap: .45rem; }
  .hero-product-collage__item { min-height: 8rem; }
  .hero-product-collage__item img { max-height: 8.5rem; padding: .35rem; }

  .category-card { grid-template-columns: 4.7rem minmax(0, 1fr) auto; min-height: 6.6rem; padding: .6rem; }
  .category-card__visual { width: 4.7rem; height: 5.3rem; }
  .category-card__body small { -webkit-line-clamp: 1; }
  .quick-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .order-steps--compact { grid-template-columns: 1fr; }
  .product-card__visual { min-height: 12.5rem; }
  .about-strip { border-radius: .9rem; }

  .catalog-toolbar { padding: .85rem; }
  .catalog-result-line { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .product-breadcrumb { padding-top: .85rem !important; padding-bottom: .85rem !important; }
  .product-detail { padding-top: .65rem; }
  .product-detail__price { margin: 1rem 0; }
  .product-detail__visual { min-height: 14.5rem; padding: .85rem; }
  .product-detail__visual img { height: 12.75rem; max-height: 12.75rem; }
  .product-detail__info h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .request-checks { grid-template-columns: 1fr; }
  .about-hero__content { padding-top: 0; }
  .about-profile-placeholder--photo img { height: 22rem; }
}

@media (max-width: 575.98px) {
  .draft-notice .container { flex-direction: row !important; }
  .draft-notice a { display: none; }
  .site-brand { max-width: min(10.5rem, 45vw); }
  .site-brand__tagline { display: none; }
  .home-hero__visual { display: block; }
  .home-hero__grid { padding-top: 1.6rem; padding-bottom: 2rem; }
  .consultant-hero__photo { height: 19rem; }
  .hero-trust a { width: 100%; margin-left: 0; }
  .consultant-hero__caption { align-items: flex-start; }
  .consultant-hero__caption { grid-template-columns: minmax(0, 1fr); }
  .consultant-hero__caption > a { grid-column: 1; grid-row: auto; margin-top: .25rem; white-space: normal; }

  .product-card__actions { grid-template-columns: minmax(0, 1fr); }
  .product-card__visual { min-height: 12rem; }
  .product-card__visual img { height: 10.5rem; }
  .product-buy { align-items: stretch; flex-direction: column; }
  .product-detail__visual { min-height: 18rem; padding: 1.1rem; }
  .product-detail__visual img { height: 16rem; max-height: 16rem; }
  .product-detail__price { grid-template-columns: 1fr; }
  .product-detail__price small { grid-column: 1; }

  .request-card,
  .lead-form { padding: 1rem; }
  .request-item__name { font-size: .98rem; }
  .request-quantity { grid-template-columns: 2.75rem 2.8rem 2.75rem; }
  .request-quantity__value { min-height: 2.75rem; }
  .request-item__remove { min-height: 2.75rem; padding: .55rem .2rem; font-size: .82rem; }
  .request-summary { padding: 1rem; }
  .commercial-cta { padding: 1.4rem; }
  .about-profile-placeholder--photo img { height: 19rem; }
}

/* Personal contact is a real messenger handoff, not a simulated live chat. */
.contact-dock {
  position: fixed;
  z-index: 1035;
  right: 1.25rem;
  bottom: 1.25rem;
}
.contact-dock summary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: .72rem 1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: var(--blue-dark);
  box-shadow: 0 12px 32px rgba(21, 56, 73, .24);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.contact-dock summary::-webkit-details-marker { display: none; }
.contact-dock summary::before { content: "?"; margin-right: .55rem; font-size: 1.08rem; }
.contact-dock summary:focus-visible { outline: 3px solid rgba(8, 122, 156, .3); outline-offset: 3px; }
.contact-dock[open] summary { background: var(--navy); }
.contact-dock__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .65rem);
  width: min(20rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(21, 56, 73, .2);
}
.contact-dock__panel p { margin: .35rem 0 .8rem; color: var(--muted); font-size: .88rem; }
.contact-dock__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-dock__links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: .7rem;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}
.contact-dock__links a:hover { border-color: var(--blue); background: var(--blue-soft); }
.toast-container--with-contact { bottom: 4.6rem !important; }

@media (max-width: 991.98px) {
  .contact-dock { display: none; }
  .toast-container--with-contact { bottom: 4.25rem !important; }
}

/* Short laptop windows are common: keep the decision block above the fold. */
@media (min-width: 1200px) and (max-height: 820px) {
  .draft-notice .container { min-height: 1.55rem; font-size: .74rem; }
  .utility-bar__inner { min-height: 1.6rem; }
  .site-header__main { min-height: 3.45rem; }
  .site-navigation,
  .site-header .site-navigation,
  .site-navigation .navbar-collapse { min-height: 2.15rem; }
  .site-header .nav-link { padding-top: .3rem !important; padding-bottom: .3rem !important; }
  .home-hero__grid { gap: 2.5rem; padding-top: 2rem; padding-bottom: 2rem; }
  .home-hero h1 { font-size: clamp(2.45rem, 3.6vw, 2.9rem); }
  .home-hero__lead { font-size: 1.02rem; line-height: 1.48; }
  .hero-actions { margin-top: 1rem; }
  .hero-trust { margin-top: .8rem; }
  .consultant-hero__photo { height: min(25rem, 54vh); }
  .consultant-hero__caption { margin-top: .55rem; padding: .68rem .8rem; }
  .page-hero .container,
  .local-hero .container { padding-top: 1.55rem !important; padding-bottom: 1.55rem !important; }
  .about-profile-placeholder--photo img { height: min(23rem, 50vh); }
}

@media (max-width: 390px) {
  .container { --bs-gutter-x: 1.25rem; }
  /* Keep nested Bootstrap rows aligned with the narrower 10px container. */
  .container .row { --bs-gutter-x: 1.25rem; }
  .site-header__main { gap: .35rem; }
  .site-brand { max-width: 8.9rem; }
  .site-brand__name { font-size: .98rem; }
  .site-header__actions { gap: .25rem !important; }
  .cart-nav-button { padding-inline: .58rem; font-size: .84rem; }
  .navbar-toggler { width: 2.75rem; height: 2.75rem; }
  .home-hero h1 { font-size: 2.05rem; }
  .home-hero__lead { font-size: 1rem; }
  .consultant-hero__caption { gap: .6rem; }
  .category-card { grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: .6rem; }
  .category-card__visual { width: 4.25rem; height: 4.8rem; }
  .category-card__body strong { font-size: .95rem; }
  .category-card__body small { font-size: .79rem; }
  .request-item { column-gap: .55rem; }
  .mobile-action-bar a { font-size: .7rem; }
}

@media (max-width: 340px) {
  .site-brand { max-width: 7.7rem; }
  .site-brand__name { font-size: .92rem; }
  .cart-nav-button { padding-inline: .48rem; font-size: .79rem; }
  .cart-nav-button .cart-count { min-width: 1.35rem; height: 1.35rem; }
  .category-card { grid-template-columns: 3.8rem minmax(0, 1fr) auto; }
  .category-card__visual { width: 3.8rem; height: 4.4rem; }
  .product-detail__visual { min-height: 11.5rem; }
  .product-detail__visual img { height: 9.75rem; max-height: 9.75rem; }
}

/* Keep the main catalogue action clear on very short, narrow phones. */
@media (max-width: 340px) and (max-height: 620px) {
  body:not(.admin-body) { padding-bottom: 0; }
  body.product-page { padding-bottom: 5.1rem; }
  .mobile-action-bar { display: none; }
  .home-hero__grid { padding-top: 1rem; }
  .home-hero h1 { font-size: 1.8rem; line-height: 1.08; }
  .home-hero__lead { font-size: .94rem; line-height: 1.42; }
  .hero-actions { margin-top: .85rem; }
}

@media (max-width: 1199.98px) {
  .admin-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar,
  .admin-filter-bar--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar__search { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .admin-header__inner { align-items: flex-start; flex-direction: column; gap: .2rem; padding-top: .55rem; padding-bottom: .4rem; }
  .admin-header nav { display: flex; width: 100%; gap: .8rem; overflow-x: auto; padding-bottom: .2rem; white-space: nowrap; scrollbar-width: thin; }
  .admin-header nav a,
  .admin-header nav button { display: inline-flex; }
  .admin-header nav .admin-site-link { display: none; }
  .admin-overview-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .admin-overview-card { min-height: 7.5rem; padding: .9rem; }
  .admin-overview-card strong { font-size: 1.8rem; }
  .admin-filter-bar,
  .admin-filter-bar--products { grid-template-columns: minmax(0, 1fr); }
  .admin-filter-bar__search { grid-column: 1; }
  .admin-filter-bar .btn { width: 100%; }
  .admin-pagination .btn { min-width: 6.4rem; }
}

@media (max-width: 390px) {
  .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-overview-card { min-height: 6.8rem; }
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .admin-pagination .btn { width: 100%; }
  .admin-pagination > span { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* Search autocomplete. The panel is created progressively by search-autocomplete.js. */
[data-search-autocomplete] { position: relative; }
.search-autocomplete__panel {
  position: absolute;
  z-index: 1100;
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(70dvh, 36rem);
  border: 1px solid var(--border-strong);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 22px 58px rgba(21, 56, 73, .2);
  color: var(--ink);
  text-align: left;
}
.search-autocomplete__panel[hidden] { display: none !important; }
.search-autocomplete__panel[aria-busy="true"] { cursor: progress; }
.search-autocomplete__loading {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  color: var(--muted);
  font-size: .84rem;
}
.search-autocomplete__spinner {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: 2px solid #cfe2e8;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: search-autocomplete-spin .7s linear infinite;
}
@keyframes search-autocomplete-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .search-autocomplete__spinner { animation: none; border-top-color: #cfe2e8; }
}
.search-autocomplete__correction {
  margin: 0;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--border);
  background: var(--blue-soft);
  color: var(--graphite);
  font-size: .78rem;
}
.search-autocomplete__group + .search-autocomplete__group { border-top: 1px solid var(--border); }
.search-autocomplete__group-title {
  margin: 0;
  padding: .55rem .8rem .35rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
}
.search-autocomplete__option {
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .42rem .75rem;
  color: var(--ink);
  text-decoration: none;
}
.search-autocomplete__option:hover,
.search-autocomplete__option.is-active,
.search-autocomplete__option[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--ink);
}
.search-autocomplete__option:focus-visible {
  outline: 3px solid rgba(8, 122, 156, .26);
  outline-offset: -3px;
}
.search-autocomplete__visual {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: #fff;
}
.search-autocomplete__visual:empty::before {
  color: var(--blue-dark);
  content: "→";
  font-weight: 800;
}
.search-autocomplete__visual img {
  width: 100%;
  height: 100%;
  padding: .16rem;
  object-fit: contain;
}
.search-autocomplete__body { display: block; min-width: 0; }
.search-autocomplete__title {
  display: block;
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-autocomplete__meta {
  display: block;
  overflow: hidden;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-autocomplete__price {
  color: var(--graphite-deep);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.search-autocomplete__arrow { color: var(--blue-dark); font-weight: 800; }
.search-autocomplete__empty {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem;
  color: var(--muted);
  font-size: .84rem;
}
.search-autocomplete__empty strong { color: var(--ink); font-size: .95rem; }
.search-autocomplete__more {
  position: sticky;
  bottom: 0;
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .85rem;
  border-top: 1px solid var(--border-strong);
  background: #fff;
  color: var(--blue-dark);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -8px 18px rgba(21, 56, 73, .06);
}
.search-autocomplete__more:hover,
.search-autocomplete__more.is-active,
.search-autocomplete__more[aria-selected="true"] { background: var(--blue-soft); color: var(--blue-dark); }

@media (max-width: 1199.98px) {
  .mobile-nav-search[data-search-autocomplete] { align-items: start; }
  .mobile-nav-search .search-autocomplete__panel {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-height: min(58dvh, 31rem);
    margin-top: .35rem;
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 575.98px) {
  .search-autocomplete__panel { max-height: min(66dvh, 31rem); border-radius: .75rem; }
  .search-autocomplete__option {
    min-height: 3.5rem;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: .6rem;
    padding: .42rem .6rem;
  }
  .search-autocomplete__visual { width: 2.75rem; height: 2.75rem; }
  .search-autocomplete__title { font-size: .86rem; }
  .search-autocomplete__meta { font-size: .7rem; }
  .search-autocomplete__price { font-size: .75rem; }
}
