/* MedsNMore — e-commerce storefront (no build) */

:root {
  --navy: #12363d;
  --navy-deep: #0c262c;
  --navy-fill: #12363d;
  --navy-fill-deep: #0c262c;
  --brand-solid: #0f7a62;
  --brand-solid-deep: #0b5e4b;
  --brand-on-navy: #7dcfb8;
  --footer-bg: #0a2126;
  --footer-ink: #eef4f5;
  --footer-muted: #9bb0b5;
  --ink: #1a2e32;
  --muted: #5d7176;
  --line: #e3ecee;
  --bg: #f5f8f8;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafcfc;
  --hover-bg: #f3f7f8;
  --header-bg: rgba(255, 255, 255, 0.96);
  --input-bg: #ffffff;
  --btn-bg: #12363d;
  --btn-bg-hover: #0c262c;
  --chip-bg: #ffffff;
  --chip-hover: #f3f8f9;
  --fill: #12363d;
  --on-fill: #ffffff;
  --well: #f3f9f7;
  --placeholder-bg: #e8efee;
  --alert-ok-bg: #e8f6f1;
  --alert-err-bg: #fef3f2;
  --tint-mint: #e7f6ef;
  --tint-peach: #f8ebe1;
  --tint-sky: #e7f1f8;
  --tint-rose: #f7e8ee;
  --tint-cream: #f4efe6;
  --tint-lavender: #efeaf7;
  --brand: #0f7a62;
  --brand-deep: #0b5e4b;
  --rx: #2f6f8f;
  --sale: #c2410c;
  --gold: #c9a227;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(18, 54, 61, 0.07);
  --font: "Figtree", "Segoe UI", sans-serif;
  --font-display: "Figtree", "Segoe UI", sans-serif;
  --header-h: 64px;
  --catbar-h: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 8px;
  --scrollbar-size: 7px;
  --scrollbar-size-page: 8px;
  --scrollbar-size-nested: 5px;
  --scrollbar-thumb: color-mix(in srgb, var(--muted) 58%, var(--line));
  --scrollbar-thumb-hover: var(--navy);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8f0f1;
  --muted: #9bb0b5;
  --line: #2a4046;
  --bg: #0a1c21;
  --white: #122a30;
  --surface: #122a30;
  --surface-2: #0f2429;
  --hover-bg: #1a3a41;
  --header-bg: rgba(10, 28, 33, 0.94);
  --input-bg: #0f2429;
  --btn-bg: #0f7a62;
  --btn-bg-hover: #0b5e4b;
  --chip-bg: #153238;
  --chip-hover: #1a3a41;
  --fill: #0f7a62;
  --on-fill: #ffffff;
  --well: #16342f;
  --placeholder-bg: #16302c;
  --alert-ok-bg: #14352e;
  --alert-err-bg: #3a2220;
  --tint-mint: #16352c;
  --tint-peach: #3a2c24;
  --tint-sky: #1a3340;
  --tint-rose: #3a2430;
  --tint-cream: #322c24;
  --tint-lavender: #2c2640;
  --navy: #d4e6e9;
  --navy-deep: #081618;
  --brand: #2bb890;
  --brand-deep: #7dcfb8;
  --rx: #5aa0c0;
  --footer-bg: #07161a;
  --footer-ink: #eef4f5;
  --footer-muted: #9bb0b5;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* Minimal thin scrollbars — page + overflow panes (light/dark via tokens).
   Does not override overflow:hidden overlay locks. Chip rails that set
   scrollbar-width: none keep a hidden bar so catbar height stays stable. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

html::-webkit-scrollbar {
  width: var(--scrollbar-size-page);
  height: var(--scrollbar-size-page);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.plp-filters,
.plp-filter-scroll,
.plp-brand-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.plp-filters::-webkit-scrollbar,
.plp-filter-scroll::-webkit-scrollbar,
.plp-brand-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.cat-scroll,
.catbar,
.popcat-rail,
.product-rail,
.cat-list,
.cat-mega-featured-grid,
.cat-mega,
.cat-mega-main,
.cat-mega-side,
.mobile-cats-inner,
.fab-panel-body,
.auth-drawer__body,
.call-order__card,
.blog-sidebar,
.account-nav,
.account-nav ul,
.account-table,
.pdp-thumbs,
.pdp-offers {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
button, input { font: inherit; }

.wrap {
  width: min(1920px, calc(100% - 2rem));
  margin: 0 auto;
}

@media (min-width: 900px) {
  .wrap { width: min(1920px, calc(100% - 3rem)); }
}

@media (min-width: 1440px) {
  .wrap { width: min(1920px, calc(100% - 4rem)); }
}

/* Shared auth / dashboard */
.brand {
  font-family: var(--font);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: var(--navy);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark .ico {
  width: 14px;
  height: 14px;
}

.ico { display: block; flex-shrink: 0; }

.brand-text {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.055em;
}

.brand em,
.brand span em {
  font-style: italic;
  font-weight: 800;
  color: var(--brand);
  margin: 0 -0.04em;
  padding: 0;
  letter-spacing: -0.08em;
  font-size: 1.08em;
  line-height: 0.9;
}

/* Site logo image (header / footer) */
.brand.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.store-header .brand.brand-logo {
  justify-self: start;
}

.brand-logo__img,
.brand-logo__svg {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 32px;
  max-width: min(168px, 42vw);
}

.brand-logo--compact .brand-logo__img,
.brand-logo--compact .brand-logo__svg {
  height: 32px;
}

.brand-logo--full .brand-logo__img,
.brand-logo--full .brand-logo__svg {
  height: 48px;
  max-width: min(200px, 56vw);
}

.store-header .brand-logo__img,
.store-header .brand-logo__svg {
  height: 32px;
  max-width: min(156px, 40vw);
}

.site-footer .brand.brand-logo {
  margin-bottom: 0.75rem;
}

.site-footer .brand-logo__img,
.site-footer .brand-logo__svg {
  height: 48px;
  max-width: 200px;
}

@media (max-width: 520px) {
  .store-header .brand-logo__img,
  .store-header .brand-logo__svg {
    height: 28px;
    max-width: min(140px, 38vw);
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-logo__img {
    image-rendering: -webkit-optimize-contrast;
  }
}

[data-theme="dark"] .brand-logo--compact .brand-logo__img,
[data-theme="dark"] .brand-logo--compact .brand-logo__svg {
  filter: brightness(1.12) saturate(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--btn-bg);
  color: #fff;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { background: var(--btn-bg-hover); color: #fff; }

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.secondary:hover { background: var(--hover-bg); color: var(--ink); }

.btn.rx { background: var(--rx); }
.btn.rx:hover { background: #245a75; color: #fff; }

.btn.ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn.ghost-navy:hover { background: var(--hover-bg); color: var(--navy); }

.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.danger:hover { background: #8f1c14; color: #fff; }
.btn.danger:disabled,
.btn.danger[disabled],
.btn.danger:disabled:hover,
.btn.danger[disabled]:hover {
  background: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

.site-flash-wrap { padding: 0.75rem 0 0; }
.site-flash {
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.site-flash--ok {
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 122, 98, 0.2);
}

[data-theme="dark"] .site-flash--ok {
  background: rgba(43, 184, 144, 0.16);
  color: #9ee0cf;
  border-color: rgba(43, 184, 144, 0.28);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.auth-card { width: min(420px, calc(100% - 2rem)); margin: 3rem auto; }

label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; font-weight: 600; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
}

.error { color: var(--danger); font-size: 0.9rem; margin: -0.5rem 0 1rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body:not(.is-home) {
  background: var(--bg);
}

/* ========== STORE HEADER ========== */
.topbar-brand {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar-brand .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
}

.topbar-brand span { display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar-brand .ico { width: 13px; height: 13px; }

.store-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(18, 54, 61, 0.04);
  transition: transform 0.28s var(--ease), box-shadow 0.2s var(--ease);
  will-change: transform;
}

.store-header.is-scrolled {
  box-shadow: 0 8px 22px rgba(18, 54, 61, 0.08);
}

.store-header.is-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .store-header {
    transition: none;
  }
  .store-header.is-hidden {
    transform: none;
  }
}

.store-header .brand:not(.brand-logo) {
  font-size: 1.12rem;
}

.store-header .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  min-height: var(--header-h);
  padding: 0.45rem 0;
  position: relative;
  z-index: 2;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 0.28rem 0 0.85rem;
  background: var(--surface-2);
}

.header-search:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(14, 138, 106, 0.12);
}

.header-search .ico { flex-shrink: 0; color: var(--muted); width: 16px; height: 16px; }

.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.header-search input::placeholder { color: #8a9aa0; }

.header-search button {
  height: 30px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(18, 54, 61, 0.14);
  font-family: var(--font);
}

.header-search-group + .header-search-group {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
}

.header-search-group-label {
  padding: 0.28rem 0.55rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
}

.header-search-item:hover,
.header-search-item.is-active {
  background: var(--hover-bg);
  color: var(--navy);
}

.header-search-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--placeholder-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.header-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-search-thumb svg {
  width: 18px;
  height: 18px;
}

.header-search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.header-search-item-label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search-item-prices {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  min-width: 4.2rem;
}

.header-search-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.header-search-mrp {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.header-search-empty {
  padding: 0.8rem 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.header-search-more {
  display: block;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.header-search-more:hover,
.header-search-more.is-active {
  background: var(--hover-bg);
}

.header-search-shell {
  position: relative;
  min-width: 0;
  justify-self: stretch;
}

.header-search-toggle,
.header-search-close,
.header-search-backdrop {
  display: none;
}

.header-tools .header-search-toggle {
  display: none;
}

.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.header-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 11.5rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  appearance: none;
}

.header-location:hover {
  background: var(--hover-bg);
  border-color: var(--brand);
}

.header-location__ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand);
}

.header-location__ico .ico {
  width: 16px;
  height: 16px;
}

.header-location__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.header-location__kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.header-location__value {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-location__caret {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
}

.header-location__caret .ico {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-tools .btn {
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  gap: 0.3rem;
  border-radius: 999px;
}

.header-tools .btn .ico { width: 15px; height: 15px; }

.tool-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 58px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.22rem 0.35rem;
  border-radius: 8px;
}

.tool-link:hover { background: var(--hover-bg); color: var(--brand-deep); }

.tool-link .ico { width: 17px; height: 17px; color: var(--navy); }

button.tool-link {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.header-tools .icon-btn + .header-account,
.header-tools .icon-btn + .btn {
  margin-left: 0.2rem;
}

.header-account {
  position: relative;
  z-index: 6;
}

.header-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 11.5rem;
  padding: 0.18rem 0.5rem 0.18rem 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.header-account-btn:hover,
.header-account.is-open .header-account-btn {
  background: var(--hover-bg);
  border-color: var(--line);
  color: var(--brand-deep);
}

.header-account-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.header-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
}

.header-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-account-initials {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.header-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-caret {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}

.header-account-caret .ico {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform 0.18s var(--ease);
}

.header-account.is-open .header-account-caret .ico,
.header-account:hover .header-account-caret .ico {
  transform: rotate(-90deg);
}

.header-account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 220px;
  padding: 0.9rem 0.45rem 0.45rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 90;
}

.header-account-menu::after {
  content: "";
  position: absolute;
  inset: 0.45rem 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow), 0 12px 32px rgba(18, 54, 61, 0.1);
  z-index: -1;
  pointer-events: none;
}

.header-account.is-open .header-account-menu {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .header-account:hover .header-account-menu,
  .header-account:focus-within .header-account-menu {
    display: block;
  }
}

.header-account-meta {
  padding: 0.55rem 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
}

.header-account-meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.header-account-meta span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.header-account-menu a,
.header-account-logout button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.header-account-menu a:hover,
.header-account-logout button:hover {
  background: var(--hover-bg);
  color: var(--brand-deep);
}

.header-account-menu .ico {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.header-account-logout {
  margin: 0.3rem 0 0;
  padding: 0.3rem 0 0;
  border-top: 1px solid var(--line);
}

.header-account-logout button {
  color: var(--danger);
}

.header-account-logout button .ico {
  color: var(--danger);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--navy);
  position: relative;
}

.icon-btn:hover { background: var(--hover-bg); color: var(--brand-deep); }

.icon-btn .ico { width: 17px; height: 17px; }

.theme-toggle [data-icon="sun"] { display: none; }
.theme-toggle [data-icon="moon"] { display: grid; }

[data-theme="dark"] .theme-toggle [data-icon="sun"] { display: grid; }
[data-theme="dark"] .theme-toggle [data-icon="moon"] { display: none; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Category chip bar */
.catbar {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.catbar-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: var(--catbar-h);
}

.cat-scroll {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  padding: 0.35rem 0;
}

.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem 0.22rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  line-height: 1.2;
}

.cat-chip:hover {
  border-color: var(--line);
  color: var(--navy);
  background: var(--chip-hover);
}

.cat-chip.is-active {
  border-color: var(--brand);
  color: var(--navy);
  background: var(--chip-hover);
}

.cat-ico {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8f3ef;
  color: var(--brand-deep);
}

.cat-ico .ico { width: 13px; height: 13px; }

.cat-chip.is-active .cat-ico,
.cat-chip:hover .cat-ico {
  background: var(--brand);
  color: #fff;
}

.rail-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--navy);
  display: grid;
  place-items: center;
  padding: 0;
}

.rail-btn .ico { width: 13px; height: 13px; }
.rail-btn.prev .ico { transform: rotate(180deg); }

.rail-btn:hover { background: var(--hover-bg); }

/* ========== STORE LAYOUT ========== */
.store-main { padding: 0.95rem 0 2.75rem; }

.store-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 980px) {
  .store-grid {
    grid-template-columns: 230px 1fr;
    align-items: start;
  }

  .store-grid > .cat-shell {
    min-height: 0;
    align-self: start;
  }
}

@media (min-width: 1440px) {
  .store-grid { grid-template-columns: 260px 1fr; }
}

.store-hero-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 980px) {
  .store-hero-col {
    align-self: stretch;
    min-height: 100%;
    gap: 0.5rem;
  }
}

.store-hero-col .promo-widgets {
  flex: 0 0 auto;
}

.cat-shell {
  position: relative;
  z-index: 40;
}

@media (min-width: 980px) {
  .cat-shell {
    display: flex;
    flex-direction: column;
    align-self: start;
    min-height: 0;
    height: fit-content;
  }
}

.cat-panel {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

@media (min-width: 980px) {
  #desktop-cats.cat-panel {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    height: fit-content;
  }

  #desktop-cats.cat-panel h2 {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
  }

  #desktop-cats .cat-list {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100vh - 9rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #desktop-cats .cat-list a {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}

.cat-panel h2 {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 800;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background-clip: padding-box;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  background: var(--surface);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.cat-list a,
.cat-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.cat-list li:last-child > a,
.cat-list li:last-child > .cat-acc-trigger { border-bottom: 0; }

.cat-list a:hover,
.cat-acc-trigger:hover,
.cat-list a.is-mega-active {
  background: var(--hover-bg);
  color: var(--navy);
}

.cat-list a.is-mega-active {
  background: var(--well);
  box-shadow: none;
}

.cat-list .left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-list .cat-ico {
  width: 24px;
  height: 24px;
}

.cat-list .cat-ico .ico { width: 13px; height: 13px; }

.chev { color: #9aadb3; }
.chev .ico { width: 13px; height: 13px; }

.cat-acc.is-open .chev { transform: rotate(90deg); color: var(--brand-deep); }
.cat-acc-panel {
  display: grid;
  gap: 0.1rem;
  padding: 0.15rem 0.65rem 0.55rem 1.9rem;
  background: var(--surface-2);
}

.cat-acc-panel[hidden] { display: none; }

.cat-acc-panel a {
  border-bottom: 0;
  padding: 0.38rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-acc-panel a:hover { color: var(--brand-deep); background: transparent; }
.cat-acc-all { color: var(--brand-deep) !important; font-weight: 700 !important; }

/* Category mega menu (desktop) */
.cat-mega {
  display: none;
}

@media (min-width: 980px) {
  .cat-mega {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: calc(100% + 0.55rem);
    top: 0;
    bottom: 0;
    width: min(820px, calc(100vw - 290px));
    min-height: 520px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 32px rgba(18, 54, 61, 0.12);
    z-index: 45;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
    overflow: hidden;
  }

  .cat-shell.is-mega-open .cat-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .cat-mega[hidden] { display: none; }

  /* Column layout: expandable top + full-width banner bottom */
  .cat-mega-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }

  .cat-mega-panel[hidden] { display: none; }

  .cat-mega-top {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .cat-mega-main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.95rem 1rem 0.85rem;
    border-right: 1px solid var(--line);
    min-height: 0;
  }

  .cat-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .cat-mega-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
  }

  .cat-mega-head a {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-deep);
  }

  .cat-mega-subs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    flex: 0 0 auto;
  }

  .cat-mega-sub {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 600;
    min-height: 2.55rem;
  }

  .cat-mega-sub:hover {
    border-color: var(--brand);
    background: var(--chip-hover);
    color: var(--brand-deep);
  }

  .cat-mega-sub-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--placeholder-bg);
    color: var(--brand-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .cat-mega-sub-ico .ico { width: 14px; height: 14px; }

  .cat-mega-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--navy-fill, var(--navy)), var(--brand-solid-deep, var(--brand-deep)));
    color: #fff;
    flex-shrink: 0;
  }

  .cat-mega-promo span {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .cat-mega-promo em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--surface);
    color: var(--navy);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
  }

  /* Featured product placeholders fill remaining top space */
  .cat-mega-featured {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-height: 0;
  }

  .cat-mega-featured-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
  }

  .cat-mega-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-content: start;
  }

  .cat-mega-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    min-height: 0;
  }

  .cat-mega-feature-card:hover {
    border-color: var(--brand);
    background: var(--hover-bg);
    color: var(--navy);
  }

  .cat-mega-feature-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: var(--well);
  }

  .cat-mega-feature-card strong {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cat-mega-feature-card em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-deep);
    margin-top: auto;
  }

  /* Full-width banner pinned to panel bottom (under both columns) */
  .cat-mega-banner {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 148px;
    height: 148px;
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 0;
    overflow: hidden;
    color: #fff;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    isolation: isolate;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s var(--ease);
  }

  .cat-mega-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(115deg, rgba(14, 46, 52, 0.95) 0%, rgba(18, 54, 61, 0.88) 42%, rgba(11, 94, 75, 0.74) 100%),
      linear-gradient(180deg, rgba(12, 38, 44, 0.48) 0%, rgba(10, 32, 38, 0.90) 100%);
    z-index: -1;
  }

  .cat-mega-banner:hover {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .cat-mega-banner-copy {
    display: grid;
    gap: 0.22rem;
    max-width: 70%;
  }

  .cat-mega-banner-kicker {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
  }

  .cat-mega-banner strong {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .cat-mega-banner em {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.4rem;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--navy);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
  }

  .cat-mega-side {
    display: flex;
    flex-direction: column;
    padding: 0.95rem 0.9rem 0.85rem;
    background: var(--surface-2);
    min-height: 0;
  }

  .cat-mega-side-label {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
  }

  .cat-mega-prod {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    flex: 1 1 0;
    min-height: 0;
  }

  .cat-mega-prod:last-child { margin-bottom: 0; }

  .cat-mega-prod:hover {
    border-color: var(--brand);
    color: var(--navy);
  }

  .cat-mega-prod img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: var(--well);
    flex-shrink: 0;
  }

  .cat-mega-prod span { display: grid; gap: 0.1rem; min-width: 0; }
  .cat-mega-prod strong {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
  }
  .cat-mega-prod em {
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--brand-deep);
  }
}

/* Promo carousel */
.promo {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  flex: 1 1 auto;
  display: grid;
  background: var(--navy);
  box-shadow: var(--shadow);
}

/* Full-bleed hero: match slide aspect so cover does not crop baked-in copy */
.promo--full-image {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 7;
}

@media (min-width: 980px) {
  .promo--full-image {
    aspect-ratio: 16 / 6.5;
    max-height: min(560px, 34vw);
  }
}

.promo-track {
  display: grid;
  height: 100%;
  min-height: 280px;
}

.promo--full-image .promo-track {
  min-height: 0;
}

.promo-slide {
  position: relative;
  grid-area: 1 / 1;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.promo--full-image .promo-slide {
  min-height: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.promo-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 30, 38, 0.88) 0%, rgba(7, 30, 38, 0.45) 48%, rgba(7, 30, 38, 0.15) 100%);
}

/* Full-image hero slides — text baked into art, no overlay blocking copy */
.promo--full-image .promo-slide::before {
  display: none;
}

.promo--full-image .promo-copy {
  display: none;
}

.promo-copy {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.65rem 2.4rem;
  color: #fff;
  max-width: 32rem;
}

.promo-kicker {
  display: inline-block;
  background: rgba(15, 122, 98, 0.95);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.65rem;
}

.promo-copy h1,
.promo-copy h2 {
  font-family: var(--font);
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.45rem;
  color: #fff;
  font-weight: 700;
}

.promo-copy p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.promo-dots {
  position: absolute;
  left: 1.65rem;
  bottom: 0.95rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.promo-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.promo-dots button.is-active { background: #fff; width: 18px; border-radius: 999px; }

.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.promo-nav .ico { width: 14px; height: 14px; }
.promo-nav.prev .ico { transform: rotate(180deg); }

.promo-nav.prev { left: 10px; }
.promo-nav.next { right: 10px; }

/* Full-image slides: vertically centered nav on left/right edges */
.promo--full-image .promo-nav {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 4px rgba(7, 30, 38, 0.16);
  opacity: 0.88;
}

.promo--full-image .promo-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.62);
}

.promo--full-image .promo-nav .ico { width: 11px; height: 11px; }

.promo--full-image .promo-nav.prev { left: 0.5rem; }
.promo--full-image .promo-nav.next { right: 0.5rem; }

.promo--full-image .promo-dots {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 0.65rem;
}

.promo-widgets {
  display: flex;
  flex-direction: column;
  gap: 0;
  column-gap: 0;
  row-gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0e2428;
}

@media (min-width: 700px) {
  .promo-widgets {
    flex-direction: row;
  }
}

.promo-tile {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  height: 72px;
  max-height: 72px;
  margin: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background-color: #0e2428;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

@media (min-width: 700px) {
  .promo-tile {
    min-height: 78px;
    height: 78px;
    max-height: 78px;
  }

  .promo-tile + .promo-tile {
    margin-left: -1px;
  }
}

.promo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 36, 40, 0.15) 0%, rgba(14, 36, 40, 0.78) 100%);
  z-index: -1;
}

.promo-tile--image-only::before {
  background: linear-gradient(180deg, rgba(14, 36, 40, 0.05) 0%, rgba(14, 36, 40, 0.72) 100%);
}

.promo-tile:hover { color: #fff; }

.promo-tile-kicker,
.promo-tile strong,
.promo-tile em {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.promo-tile-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.1rem;
}

.promo-tile strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.promo-tile em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.05rem;
  line-height: 1.2;
}

/* Quick action tiles */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.45rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
}

.section-title a {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--brand-deep);
}

.action-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .action-grid { grid-template-columns: repeat(4, 1fr); }
}

.action-card {
  min-height: 0;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: none;
}

.action-card:hover {
  color: var(--navy);
  transform: none;
  box-shadow: none;
}

.action-card small {
  display: block;
  font-weight: 500;
  opacity: 1;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.a-wa {
  background: #eef8f2;
  border-color: #c9e8d6;
}
.a-wa:hover { border-color: #a9d9be; background: #e7f5ec; }

.a-rx {
  background: #f0f4fb;
  border-color: #d0daf0;
}
.a-rx:hover { border-color: #b8c6e6; background: #e8eef9; }

.a-hc {
  background: #faf0f3;
  border-color: #edd4dc;
}
.a-hc:hover { border-color: #e0bcc8; background: #f7e8ec; }

.a-call {
  background: #faf1eb;
  border-color: #edd9cb;
}
.a-call:hover { border-color: #e0c4b0; background: #f7ebe3; }

.action-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #e8f3ef;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.a-wa .action-ico { background: #d8f0e2; color: #1b7a4a; }
.a-rx .action-ico { background: #dde6f6; color: var(--rx); }
.a-hc .action-ico { background: #f0d8e0; color: #9a4060; }
.a-call .action-ico { background: #f0ddd0; color: #a04d38; }

.action-ico .ico { width: 16px; height: 16px; }

/* Upload prescription band */
.rx-band {
  --rx-on: var(--on-fill);
  --rx-muted: color-mix(in srgb, var(--on-fill) 78%, transparent);
  --rx-chip: color-mix(in srgb, var(--on-fill) 90%, transparent);
  --rx-glass: color-mix(in srgb, var(--on-fill) 10%, transparent);
  --rx-glass-border: color-mix(in srgb, var(--on-fill) 16%, transparent);
  --rx-mint: #9ee0cb;
  margin: 1.25rem 0 0.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 1.2rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 90% 20%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 45%),
    linear-gradient(125deg, var(--navy-fill-deep, #0c262c) 0%, var(--navy-fill, #12363d) 45%, var(--brand-solid-deep, #0b5e4b) 100%);
  color: var(--rx-on);
  overflow: hidden;
}

@media (min-width: 820px) {
  .rx-band {
    /* Copy ~45% / upload card ~55% — card uses leftover center space */
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr);
    gap: 1.15rem 1.5rem;
    padding: 1.4rem 1.6rem;
  }
}

.rx-band-copy,
.rx-band-visual {
  min-width: 0;
}

.rx-band-offer {
  margin: 0 0 0.35rem;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--rx-mint);
  background: color-mix(in srgb, var(--brand) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--rx-mint) 28%, transparent);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.rx-band-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rx-on);
}

.rx-band-text {
  margin: 0 0 0.75rem;
  max-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--rx-muted);
}

.rx-band-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rx-band-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rx-chip);
  background: color-mix(in srgb, var(--on-fill) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-fill) 12%, transparent);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.rx-chip-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--rx-mint);
}

.rx-chip-ico .ico { width: 11px; height: 11px; }

.rx-band-visual {
  display: flex;
  justify-content: stretch;
  width: 100%;
}

.rx-band-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 196px;
  box-sizing: border-box;
  border-radius: 24px;
  background: var(--rx-glass);
  border: 1px solid var(--rx-glass-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  text-align: center;
  padding: 1.55rem 1.6rem 1.45rem;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.rx-band-panel:hover,
.rx-band-panel:focus-within {
  background: color-mix(in srgb, var(--on-fill) 14%, transparent);
  border-color: color-mix(in srgb, var(--rx-mint) 45%, transparent);
  transform: translateY(-1px);
}

.rx-band-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-weight: inherit;
}

.rx-band-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.rx-band-ring {
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--rx-mint) 45%, transparent);
  pointer-events: none;
}

.rx-band-panel:hover .rx-band-ring,
.rx-band-panel:focus-within .rx-band-ring {
  border-color: color-mix(in srgb, var(--rx-mint) 80%, transparent);
}

.rx-band-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--rx-mint);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.rx-band-icon .ico { width: 32px; height: 32px; }

.rx-band-hint {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rx-on);
}

.rx-band-file {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rx-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rx-band-panel.has-file .rx-band-file {
  color: var(--rx-mint);
}

.rx-band-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0.15rem 0 0;
  padding: 0 0.15rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rx-chip);
  box-sizing: border-box;
}

.rx-band-consent input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--rx-mint);
}

.rx-band-consent span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.rx-band-panel .btn.rx-band-submit {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  background: var(--on-fill);
  color: #0c262c;
}

.rx-band-panel .btn.rx-band-submit:hover {
  background: #eef7f4;
  color: #0c262c;
}

@media (max-width: 819px) {
  .rx-band-panel {
    padding: 1.35rem 1.25rem 1.25rem;
  }
}

/* Product rails */
.product-rail {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .product-rail { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .product-rail { grid-template-columns: repeat(5, 1fr); }
}

.sku {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sku:hover {
  box-shadow: var(--shadow);
  border-color: #c9d8d6;
  transform: none;
}

.sku-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--well);
  margin-bottom: 0.55rem;
  position: relative;
}

.sku-media .sku-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  transition: opacity 0.2s var(--ease);
}

.sku-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.sku-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 54, 61, 0.28);
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.sku-dot.is-active {
  background: var(--brand);
  transform: scale(1.15);
}

.sku-dot:hover { background: rgba(15, 122, 98, 0.65); }

.badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  background: #fff;
  color: var(--sale);
  border: 1px solid #f0d4c4;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.badge.off {
  background: #fff;
  color: var(--brand-deep);
  border-color: #cfe4dc;
}

.sku-name {
  margin: 0 0 0.12rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.sku-pack {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.sku-rating {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.sku-rating .ico { width: 11px; height: 11px; }
.sku-rating em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.sku-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
}

.sku-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  min-width: 0;
  flex: 1;
}

.sku-price b { font-size: 0.92rem; font-weight: 800; color: var(--navy); }
.sku-price s { color: #8ea0a5; font-size: 0.74rem; font-weight: 500; }
.sku-price .off { color: var(--brand-deep); font-size: 0.72rem; font-weight: 700; }

.sku-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #b7d4cb;
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.sku-add:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Shop by category carousel */
.dept-rail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dept-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  flex: 1;
  min-height: 168px;
  padding: 0.35rem 0 0.5rem;
}

.dept-scroll::-webkit-scrollbar { display: none; }

.dept-card {
  flex: 0 0 141px;
  width: 141px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-align: center;
}

.dept-card:hover { color: var(--brand-deep); }

.dept-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8f3ef;
  border: 2px solid #d7e8e2;
  box-shadow: 0 3px 10px rgba(18, 54, 61, 0.08);
}

.dept-card:hover .dept-photo {
  border-color: var(--brand);
}

.dept-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 141px;
}

@media (max-width: 640px) {
  .dept-scroll {
    gap: 0.65rem;
    min-height: 126px;
    padding: 0.3rem 0 0.45rem;
  }

  .dept-card {
    flex: 0 0 102px;
    width: 102px;
    gap: 0.4rem;
  }

  .dept-photo {
    width: 90px;
    height: 90px;
  }

  .dept-name {
    font-size: 0.74rem;
    max-width: 102px;
  }
}

/* Popular brands rail — Clearbit logo tiles */
.brand-rail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.brand-scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 0.25rem 0 0.4rem;
}

.brand-scroll::-webkit-scrollbar { display: none; }

.brand-tile {
  flex: 0 0 148px;
  width: 148px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  background: #fff;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  color: var(--navy);
  text-align: center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.brand-tile:hover {
  border-color: #c5d9d4;
  box-shadow: 0 4px 12px rgba(18, 54, 61, 0.06);
  color: var(--brand-deep);
}

.brand-tile img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 58px;
  min-height: 52px;
  max-height: 62px;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.brand-tile.is-fallback img {
  display: none;
}

/* Hidden unless logo fails — do not set display here or it overrides [hidden] */
.brand-word {
  display: none;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-tile.is-fallback .brand-word {
  display: -webkit-box;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.45rem 0 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-head a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  .section-head--rail {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-head--rail .section-head-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.15rem;
  }
}

/* Offers mosaic — full-bleed imagery with left text scrim */
.offer-mosaic {
  margin: 1.2rem 0 0.4rem;
  display: grid;
  gap: 0.55rem;
  align-items: stretch;
}

.offer-row {
  display: grid;
  gap: 0.55rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .offer-row-a { grid-template-columns: 1.22fr 0.48fr 0.48fr; }
  .offer-row-b { grid-template-columns: 1fr 1fr; }

  .offer-row .offer-card {
    height: 100%;
    min-height: 0;
  }
}

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: block;
  min-height: 176px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 54, 61, 0.08);
  isolation: isolate;
  transition: transform 0.18s var(--ease, ease), box-shadow 0.18s var(--ease, ease);
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 54, 61, 0.12);
}

.offer-lg { min-height: 196px; }
.offer-sm { min-height: 176px; }
.offer-half { min-height: 152px; }

@media (min-width: 900px) {
  /* Large card sets row height; small cards stretch to match */
  .offer-lg {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .offer-sm {
    min-height: 0;
    aspect-ratio: auto;
  }

  /* Equal-width halves share aspect-ratio — heights stay matched */
  .offer-half {
    min-height: 0;
    aspect-ratio: 12 / 5;
    height: 100%;
  }
}

.offer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  transition: transform 0.35s var(--ease, ease);
}

.offer-card:hover .offer-media img {
  transform: scale(1.03);
}

.offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(8, 26, 30, 0.93) 0%,
    rgba(8, 26, 30, 0.78) 30%,
    rgba(8, 26, 30, 0.34) 54%,
    rgba(8, 26, 30, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.offer-sm::after,
.offer-half::after {
  background: linear-gradient(
    90deg,
    rgba(8, 26, 30, 0.94) 0%,
    rgba(8, 26, 30, 0.82) 42%,
    rgba(8, 26, 30, 0.38) 66%,
    transparent 100%
  );
}

.offer-copy {
  position: relative;
  z-index: 2;
  padding: 0.95rem 1.05rem;
  max-width: min(62%, 20rem);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.offer-sm .offer-copy {
  max-width: min(74%, 13.5rem);
  padding: 0.85rem 0.95rem;
}

.offer-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.offer-copy strong {
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  font-weight: 800;
  line-height: 1.22;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.offer-sm .offer-copy strong {
  font-size: clamp(0.86rem, 1.3vw, 0.98rem);
}

.offer-copy em {
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.offer-cta {
  margin-top: 0.45rem;
  align-self: flex-start;
  display: inline-flex;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .offer-media img {
    transition: none;
  }

  .offer-card:hover {
    transform: none;
  }

  .offer-card:hover .offer-media img {
    transform: none;
  }
}

[data-theme="dark"] .offer-card {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .offer-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .offer-cta {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.offer-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  padding: 0.55rem 0.2rem 0.1rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.offer-value span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.offer-value .ico { width: 13px; height: 13px; color: var(--brand-deep); }

/* Popular categories */
.popcat-rail {
  display: grid;
  gap: 0.75rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  padding-bottom: 0.35rem;
}

@media (min-width: 1100px) {
  .popcat-rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

.popcat-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(18, 54, 61, 0.05);
  min-height: 168px;
}

.popcat-media {
  position: relative;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
}

.popcat-mint .popcat-media { background: #dff3ea; }
.popcat-peach .popcat-media { background: #f6e4d8; }
.popcat-sky .popcat-media { background: #ddeff8; }
.popcat-lavender .popcat-media { background: #ebe4f6; }

.popcat-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 140%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: translateX(0);
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.popcat-card:hover .popcat-media img,
.popcat-media:hover img {
  transform: translateX(-28.5%);
}

@media (prefers-reduced-motion: reduce) {
  .popcat-media img { transition: none; }
  .popcat-card:hover .popcat-media img,
  .popcat-media:hover img { transform: none; }
}

.popcat-body {
  padding: 0.85rem 0.85rem 0.85rem 0.7rem;
}

.popcat-body h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.popcat-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.18rem;
}

.popcat-body a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.popcat-link-ico {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #eef4f3;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.popcat-link-ico .ico {
  width: 11px;
  height: 11px;
}

.popcat-body a:hover { color: var(--brand-deep); }
.popcat-body a:hover .popcat-link-ico {
  background: #e0f0ea;
  color: var(--brand);
}

/* Featured tall brand / health concern cards — nav lives in section header */
.feat-brand-rail {
  display: block;
}

.feat-brand-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0 0.45rem;
  cursor: grab;
}

.feat-brand-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.feat-brand-scroll.is-dragging a {
  pointer-events: none;
}

.feat-brand-scroll::-webkit-scrollbar { display: none; }

.feat-brand-card {
  flex: 0 0 min(210px, 72vw);
  width: min(210px, 72vw);
  height: 320px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18, 54, 61, 0.1);
}

.feat-brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 30, 0.72) 0%, rgba(8, 26, 30, 0.18) 42%, transparent 70%);
}

.feat-brand-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.95rem;
}

.feat-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feat-brand-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.feat-brand-copy strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.feat-brand-copy em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
}

.feat-concern-card::before {
  content: none;
}

/* Collections collage */
.collage-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .collage-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(132px, auto);
    grid-auto-flow: dense;
  }
  .collage-span-2 { grid-column: span 2; }
  .collage-row-2 { grid-row: span 2; }
}

.collage-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(18, 54, 61, 0.05);
  min-height: 140px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  color: var(--navy);
  background: #fff;
  position: relative;
}

.collage-image {
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
}

.collage-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 26, 30, 0.55));
}

.collage-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.collage-text {
  justify-content: flex-start;
  gap: 0.35rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.collage-text:hover {
  border-color: #c5d9d4;
  box-shadow: 0 8px 18px rgba(18, 54, 61, 0.08);
}

.collage-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0;
  padding-right: 2.2rem;
}

.collage-text > span:not(.collage-go) {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.collage-go {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), background 0.15s var(--ease);
}

.collage-go .ico { width: 14px; height: 14px; }

.collage-text:hover .collage-go,
.collage-text:focus-visible .collage-go {
  opacity: 1;
  transform: translateY(0);
}

.collage-text:hover .collage-go { background: var(--brand); }

.collage-mint { background: #e8f5ef; }
.collage-peach { background: #f7ebe3; }
.collage-sky { background: #e8f1f8; }
.collage-lavender { background: #efeaf7; }

.collage-quote {
  background: var(--navy-fill, var(--navy));
  color: #fff;
  border-color: transparent;
  justify-content: center;
}

.collage-quote p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.collage-quote cite {
  font-style: normal;
  font-size: 0.74rem;
  color: #9ee0cb;
  font-weight: 700;
}

.collage-stat {
  justify-content: flex-start;
}

.collage-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.collage-stat > span {
  display: block;
  margin: 0.2rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.collage-stat-note {
  margin: 0 0 0.65rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a6b2f;
  background: #f7efdf;
  border: 1px solid #ead7b4;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.collage-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.collage-bars li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.4rem;
}

.collage-bars em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.collage-bars b {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.collage-bars i {
  height: 8px;
  border-radius: 999px;
  background: #e3ecee;
  position: relative;
  display: block;
  overflow: hidden;
}

.collage-bars i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  border-radius: inherit;
}

.collage-bars .is-ready b { color: var(--brand-deep); }
.collage-bars .is-ready i::after { background: var(--brand); }

.collage-bars .is-pending b { color: #9a6b2f; }
.collage-bars .is-pending i {
  background: #f0e6d4;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(154, 107, 47, 0.08),
    rgba(154, 107, 47, 0.08) 4px,
    transparent 4px,
    transparent 8px
  );
}
.collage-bars .is-pending i::after {
  background: #d4a85a;
  opacity: 0.85;
}

/* Shop by health concerns — flat icon chips, dense rail */
.concern-rail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.concern-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 0.2rem 0.1rem 0.35rem;
}

.concern-scroll::-webkit-scrollbar { display: none; }

.concern-card {
  flex: 0 0 76px;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  text-align: center;
}

.concern-well {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e0ebe8;
  color: var(--brand-deep);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.concern-well .ico {
  width: 22px;
  height: 22px;
}

.concern-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  max-width: 100%;
}

.concern-diabetes .concern-well { background: #fdf2f4; border-color: #f0d5db; color: #b84d62; }
.concern-heart .concern-well { background: #fdf1f3; border-color: #efd0d6; color: #b84558; }
.concern-stomach .concern-well { background: #fff7ec; border-color: #f0dfc0; color: #b07a2e; }
.concern-liver .concern-well { background: #f7f1e8; border-color: #e4d5c0; color: #8f6840; }
.concern-bone .concern-well { background: #f8f4ea; border-color: #e6dbc4; color: #9a7d45; }
.concern-kidney .concern-well { background: #faf0f4; border-color: #ebd0db; color: #a85072; }
.concern-derma .concern-well { background: #f0f7fc; border-color: #d0e2ef; color: #3f7eae; }
.concern-resp .concern-well { background: #eef8f5; border-color: #cce5dd; color: #2f8a74; }

.concern-card:hover .concern-name { color: var(--brand-deep); }
.concern-card:hover .concern-well {
  border-color: #b7d4cb;
  background: #f3f9f7;
  color: var(--brand-deep);
}

/* Trust strip — flat, no elevation (sits under hero store-grid) */
.trust-strip {
  margin-top: 1.1rem;
  margin-bottom: 0.15rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #eef4f3;
  border: 1px solid #d9e6e3;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  padding: 0.9rem 1rem;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.trust-item + .trust-item {
  border-top: 1px solid #d9e6e3;
}

@media (min-width: 700px) {
  .trust-item:nth-child(2n) { border-left: 1px solid #d9e6e3; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid #d9e6e3; }
}

@media (min-width: 980px) {
  .trust-item + .trust-item,
  .trust-item:nth-child(n + 3) { border-top: 0; }
  .trust-item:nth-child(2n) { border-left: 0; }
  .trust-item + .trust-item { border-left: 1px solid #d9e6e3; }
}

.trust-item::before { display: none; }

.trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  flex-shrink: 0;
}

.trust-ico .ico { width: 18px; height: 18px; }

.trust-copy { display: grid; gap: 0.12rem; min-width: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 0.86rem; font-weight: 700; }
.trust-item span { color: var(--muted); font-size: 0.74rem; line-height: 1.4; }

/* Health tips — flat compact cards */
.tip-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-bottom: 0.6rem;
}

@media (min-width: 700px) {
  .tip-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .tip-grid { grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s var(--ease);
}

.tip-card:hover { border-color: #c9ddd6; }

.tip-media {
  display: block;
  height: 130px;
  background: #e8efee;
  overflow: hidden;
}

.tip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tip-body {
  padding: 0.65rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.tip-badge {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1.2;
}

.tip-title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.tip-title a { color: inherit; }
.tip-title a:hover { color: var(--brand-deep); }

.tip-excerpt {
  margin: 0;
  font-family: var(--font);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-more {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.tip-more:hover { color: var(--brand); }

.tip-more span {
  transition: transform 0.15s var(--ease);
}

.tip-more:hover span { transform: translateX(2px); }

/* Footer — always the dark end of the active brand palette (even in light mode).
   Hue follows --footer-bg / --navy-fill / --brand-solid; Apple-like mesh on a dark field.
   Do not use inverted --navy / --surface here (those become pale in dark mode). */
.site-footer {
  --footer-base: var(--footer-bg, var(--navy-fill-deep, #0c262c));
  --footer-blob-brand: var(--brand-solid, var(--brand));
  --footer-blob-navy: var(--navy-fill, #12363d);
  --footer-blob-deep: var(--brand-solid-deep, var(--brand-deep));
  --footer-blob-rx: var(--rx);
  --footer-blob-fill: var(--footer-bg, var(--navy-fill-deep, #0c262c));
  --footer-mesh-brand: 34%;
  --footer-mesh-navy: 58%;
  --footer-mesh-deep: 42%;
  --footer-mesh-rx: 36%;
  --footer-mesh-center: 12%;
  --footer-glow-brand: 48%;
  --footer-glow-navy: 62%;
  --footer-glow-deep: 50%;
  --footer-glow-rx: 44%;
  --footer-glow-fill: 40%;
  --footer-heading: var(--footer-ink, #eef4f5);
  --footer-accent: var(--brand-on-navy, var(--brand-solid, var(--brand)));
  --footer-line: color-mix(in srgb, var(--footer-ink, #eef4f5) 14%, transparent);
  --footer-panel: color-mix(in srgb, var(--footer-ink, #eef4f5) 6%, transparent);
  --footer-chip: color-mix(in srgb, #000 28%, transparent);
  --footer-chip-hover: color-mix(in srgb, var(--footer-ink, #eef4f5) 10%, transparent);
  --footer-input-bg: color-mix(in srgb, #000 32%, var(--navy-fill, #12363d));
  --footer-input-fg: var(--footer-ink, #eef4f5);
  --footer-placeholder: color-mix(in srgb, var(--footer-muted, #9bb0b5) 88%, transparent);
  --footer-ico-bg: color-mix(in srgb, var(--brand-solid, var(--brand)) 24%, transparent);
  --footer-ico-fg: var(--brand-on-navy, var(--brand-solid, var(--brand)));
  color: var(--footer-muted, #9bb0b5);
  color-scheme: dark;
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--footer-base);
  background-image:
    radial-gradient(ellipse 85% 70% at 12% 8%, color-mix(in srgb, var(--footer-blob-brand) var(--footer-mesh-brand), transparent), transparent 62%),
    radial-gradient(ellipse 75% 65% at 92% 12%, color-mix(in srgb, var(--footer-blob-navy) var(--footer-mesh-navy), transparent), transparent 60%),
    radial-gradient(ellipse 80% 72% at 88% 92%, color-mix(in srgb, var(--footer-blob-deep) var(--footer-mesh-deep), transparent), transparent 64%),
    radial-gradient(ellipse 70% 60% at 6% 88%, color-mix(in srgb, var(--footer-blob-rx) var(--footer-mesh-rx), transparent), transparent 58%),
    radial-gradient(ellipse 55% 48% at 48% 52%, color-mix(in srgb, var(--footer-blob-brand) var(--footer-mesh-center), transparent), transparent 68%);
  background-repeat: no-repeat;
}

html[data-theme="dark"] .site-footer {
  --footer-mesh-brand: 38%;
  --footer-mesh-navy: 64%;
  --footer-mesh-deep: 46%;
  --footer-glow-brand: 52%;
  --footer-glow-navy: 66%;
  --footer-line: color-mix(in srgb, var(--footer-ink, #eef4f5) 11%, transparent);
  --footer-panel: color-mix(in srgb, var(--footer-ink, #eef4f5) 4.5%, transparent);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 18% 24%, color-mix(in srgb, var(--footer-blob-brand) var(--footer-glow-brand), transparent), transparent 72%),
    radial-gradient(ellipse 38% 40% at 84% 18%, color-mix(in srgb, var(--footer-blob-navy) var(--footer-glow-navy), transparent), transparent 70%),
    radial-gradient(ellipse 46% 38% at 78% 82%, color-mix(in srgb, var(--footer-blob-deep) var(--footer-glow-deep), transparent), transparent 74%),
    radial-gradient(ellipse 34% 32% at 14% 78%, color-mix(in srgb, var(--footer-blob-rx) var(--footer-glow-rx), transparent), transparent 68%),
    radial-gradient(ellipse 28% 24% at 52% 48%, color-mix(in srgb, var(--footer-blob-fill) var(--footer-glow-fill), transparent), transparent 70%);
  filter: blur(72px);
  transform: translateZ(0);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 92% 78% at 50% 42%,
    transparent 38%,
    color-mix(in srgb, var(--footer-base) 42%, transparent) 100%
  );
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer .wrap {
  width: min(1920px, calc(100% - 2.75rem));
}

.site-footer > .wrap {
  padding: 0.7rem 0 2.1rem;
}

@media (min-width: 900px) {
  .site-footer .wrap {
    width: min(1920px, calc(100% - 3.5rem));
  }

  .site-footer > .wrap {
    padding: 0.8rem 0 2.25rem;
  }
}

@media (min-width: 1440px) {
  .site-footer .wrap {
    width: min(1920px, calc(100% - 4rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer::before {
    animation: none;
  }
}

.footer-help {
  margin-top: 2.75rem;
  margin-bottom: 0;
  background: var(--footer-panel);
  border-bottom: 1px solid var(--footer-line);
}

.footer-help-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 0;
}

.footer-help strong {
  display: block;
  color: var(--footer-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-help span {
  font-size: 0.82rem;
  color: var(--footer-muted);
}

.footer-help-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.footer-help-actions .btn {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.84rem;
}

.footer-help-actions .btn .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-news {
  border-bottom: 1px solid var(--footer-line);
  background: var(--footer-panel);
}

.footer-news-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 0;
}

.footer-news-copy strong {
  display: block;
  color: var(--footer-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-news-copy span {
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer-news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  max-width: 420px;
}

.footer-news-form input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--footer-line);
  background: var(--footer-input-bg);
  color: var(--footer-input-fg);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

.footer-news-form input::placeholder { color: var(--footer-placeholder); }

.footer-news-form button {
  border: 0;
  border-radius: 999px;
  background: var(--brand-solid, var(--btn-bg));
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.25;
  padding: 0.4rem 0.85rem;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-news-form button:hover { background: var(--brand-solid-deep, var(--btn-bg-hover)); }

.footer-apps { margin-top: 0.9rem; }

.footer-apps-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 138px;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--footer-line);
  background: var(--footer-chip);
  color: var(--footer-heading);
}

.store-badge:hover { background: var(--footer-chip-hover); color: var(--footer-heading); }
.store-badge .ico { width: 18px; height: 18px; flex-shrink: 0; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge em { font-style: normal; font-size: 0.58rem; color: var(--footer-muted); }
.store-badge strong { font-size: 0.78rem; font-weight: 700; }

.site-footer .btn {
  background: var(--brand-solid, var(--brand));
  color: #fff;
}

.site-footer .btn:hover {
  background: var(--brand-solid-deep, var(--brand-deep));
  color: #fff;
}

.site-footer .btn.ghost-light {
  background: transparent;
  color: var(--footer-ink, #eef4f5);
  border: 1px solid color-mix(in srgb, var(--footer-ink, #eef4f5) 22%, transparent);
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
}

.site-footer .btn.ghost-light:hover {
  background: color-mix(in srgb, var(--footer-ink, #eef4f5) 10%, transparent);
  color: var(--footer-ink, #eef4f5);
}

.footer-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 1.25rem 0 0.2rem;
}

@media (min-width: 800px) {
  .footer-trust { grid-template-columns: repeat(4, 1fr); }
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--footer-line);
  border-radius: 10px;
  background: var(--footer-panel);
}

.footer-trust-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--footer-ico-bg);
  color: var(--footer-ico-fg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-trust-ico .ico { width: 16px; height: 16px; }
.footer-trust-item strong { display: block; color: var(--footer-heading); font-size: 0.82rem; font-weight: 700; }
.footer-trust-item span { font-size: 0.72rem; color: var(--footer-muted); }

.footer-engage {
  display: grid;
  gap: 1.1rem;
  margin: 1.15rem 0 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--footer-line);
  border-radius: 14px;
  background: var(--footer-panel);
}

@media (min-width: 900px) {
  .footer-engage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0;
  }

  .footer-engage-col {
    padding: 0 1.15rem;
  }

  .footer-engage-col + .footer-engage-col {
    border-left: 1px solid var(--footer-line);
  }

  .footer-engage-col:first-child {
    padding-left: 0;
  }

  .footer-engage-col:last-child {
    padding-right: 0;
  }
}

.footer-engage-label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.footer-engage-copy {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer-engage .footer-news-form {
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.footer-engage .footer-news-form input,
.footer-engage .footer-news-form button {
  height: 2.15rem;
  margin: 0;
  box-sizing: border-box;
  line-height: 1;
}

.footer-engage .footer-news-form input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 0.75rem;
  font-size: 0.78rem;
}

.footer-engage .footer-news-form button {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  font-size: 0.74rem;
}

.footer-engage .footer-social {
  margin-top: 0;
}

.footer-engage .store-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.footer-engage .store-badge {
  justify-content: flex-start;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  gap: 0.45rem;
  border-radius: 8px;
}

.footer-engage .store-badge .ico {
  width: 22px;
  height: 22px;
}

.footer-engage .store-badge em {
  font-size: 0.55rem;
}

.footer-engage .store-badge strong {
  font-size: 0.76rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem 1.5rem;
  margin: 1.25rem 0 1.25rem;
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.1rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr; }
}

.site-footer .brand:not(.brand-logo) { color: var(--footer-heading); margin-bottom: 0.6rem; font-size: 1.1rem; }
.site-footer .brand:not(.brand-logo) em { color: var(--brand-on-navy, var(--brand)); }
.site-footer .brand-mark { background: var(--brand-solid, var(--brand)); width: 26px; height: 26px; border-radius: 7px; }

.footer-about { margin: 0 0 0.8rem; max-width: 22rem; line-height: 1.55; font-size: 0.82rem; }

.footer-contact {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
}

.footer-contact a {
  color: var(--footer-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-contact a:hover { color: var(--brand-on-navy, var(--brand)); }

.footer-contact .ico { width: 13px; height: 13px; }

.footer-social-block {
  margin-top: 0.85rem;
}

.footer-social-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--footer-line);
  background: var(--footer-chip);
  color: var(--footer-heading);
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-social a:hover {
  background: var(--footer-chip-hover);
  border-color: color-mix(in srgb, var(--brand-solid, var(--brand)) 40%, var(--footer-line));
  color: var(--brand-on-navy, var(--brand));
}

.footer-social .ico { width: 15px; height: 15px; }

.footer-col h4 {
  margin: 0 0 0.7rem;
  color: var(--footer-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--footer-muted);
  margin-bottom: 0.36rem;
  font-weight: 500;
  font-size: 0.82rem;
}

.footer-col a::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.32em;
  vertical-align: -0.02em;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 0.15s ease;
}

.footer-col a:hover { color: var(--footer-heading); }
.footer-col a:hover::after { opacity: 0.92; }

.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--footer-line);
  font-size: 0.78rem;
}

.pay-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pay-pills em {
  font-style: normal;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  padding: 0.24rem 0.5rem;
  color: var(--footer-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--footer-chip);
}

.footer-disclaimer {
  margin: 0;
  padding: 0.3rem 0 0.85rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--footer-muted);
  max-width: 72rem;
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding: 0.8rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.footer-bottom a { color: var(--footer-muted); }
.footer-bottom a:hover { color: var(--brand-on-navy, var(--brand)); }

.footer-legal {
  display: flex;
  gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Storefront float: below header (80) / account menu, above content; below auth (220) + dialogs */
.call-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  pointer-events: none;
}

.call-strip-panel {
  pointer-events: auto;
  background: #fff;
  border-top: 1px solid #dce7e5;
  box-shadow: 0 -4px 18px rgba(18, 54, 61, 0.08);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.28s var(--ease), opacity 0.22s var(--ease);
}

.call-strip.is-collapsed .call-strip-panel {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.call-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.7rem 2.5rem 0.7rem 0;
  position: relative;
}

.call-strip-lead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 0;
}

.call-strip-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f3ef;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: visible;
  animation: callPhoneShake 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(15, 122, 98, 0.08);
}

.call-strip-ico .ico {
  width: 30px;
  height: 30px;
}

@keyframes callPhoneShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  8% { transform: rotate(-14deg) scale(1.04); }
  16% { transform: rotate(12deg) scale(1.04); }
  24% { transform: rotate(-10deg) scale(1.02); }
  32% { transform: rotate(8deg) scale(1.02); }
  40% { transform: rotate(0deg) scale(1); }
  70% { transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .call-strip-ico,
  .call-strip-mini .ico { animation: none; }
}

.call-strip-lead strong {
  display: block;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.call-strip-lead span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.call-strip-lead a { color: var(--brand-deep); font-weight: 700; }

.call-strip-form,
.call-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.call-strip-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafa;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.call-strip-prefix {
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  border-right: 1px solid var(--line);
  background: #eef4f3;
}

.call-strip-field input {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.75rem;
  min-width: 0;
  flex: 1;
  font-size: 0.84rem;
  color: var(--ink);
}

.call-strip-cta,
.call-strip-rx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-sizing: border-box;
  min-height: 42px;
  height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.call-strip-cta .ico,
.call-strip-rx .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.call-strip-cta {
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 32%, transparent);
}

.call-strip-cta:hover {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 40%, transparent);
}

.call-strip-cta:focus-visible,
.call-strip-rx:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.call-strip-rx {
  border: 1.5px solid var(--brand);
  background: var(--surface);
  color: var(--brand-deep);
}

.call-strip-rx:hover {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.call-strip-msg {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.call-strip-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef3f3;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.call-strip-close:hover { background: #e3ecee; color: var(--navy); }

.call-strip-mini {
  pointer-events: auto;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  z-index: 71;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  border: 1px solid #c9d8d6;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 54, 61, 0.14);
  cursor: pointer;
}

.call-strip-mini .ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform-origin: center;
  animation: callPhoneShake 1.8s ease-in-out infinite;
}

.call-strip.is-expanded .call-strip-mini,
.call-strip-mini[hidden] {
  display: none !important;
}

body.has-call-bar {
  padding-bottom: 84px;
}

body.has-call-bar .fab-stack {
  bottom: 96px;
}

body.call-strip-collapsed {
  padding-bottom: 0;
}

/* Mini call chip is bottom-center; FABs stay bottom-right at default offset */
body.call-strip-collapsed .fab-stack {
  bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
}

@media (min-width: 721px) {
  .call-strip-inner {
    flex-wrap: nowrap;
    gap: 1rem 1.75rem;
  }

  .call-strip-lead {
    flex: 1 1 0;
    min-width: 16rem;
  }

  .call-strip-form,
  .call-strip-actions {
    flex: 1 1 0;
    max-width: none;
  }

  .call-strip-field {
    flex: 1 1 auto;
    min-width: 10rem;
  }
}

@media (max-width: 720px) {
  .call-strip-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-color: rgba(220, 231, 229, 0.85);
    box-shadow: 0 -2px 12px rgba(18, 54, 61, 0.06);
  }

  [data-theme="dark"] .call-strip-panel {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }

  .call-strip-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    padding: 0.45rem 2rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) 0;
  }

  .call-strip-lead {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.35rem;
  }

  .call-strip-ico {
    width: 32px;
    height: 32px;
    box-shadow: none;
    animation: none;
  }

  .call-strip-ico .ico {
    width: 16px;
    height: 16px;
  }

  .call-strip-lead span {
    display: none;
  }

  .call-strip-lead strong {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .call-strip-form,
  .call-strip-actions {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    max-width: none;
    min-width: 0;
  }

  .call-strip-cta,
  .call-strip-rx {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    gap: 0.3rem;
    justify-content: center;
  }

  .call-strip-cta .ico,
  .call-strip-rx .ico {
    width: 14px;
    height: 14px;
  }

  .call-strip-close {
    top: 0.35rem;
    right: 0.35rem;
    transform: none;
    width: 24px;
    height: 24px;
  }

  .call-strip-close .ico {
    width: 12px;
    height: 12px;
  }

  body.has-call-bar {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  body.has-call-bar .fab-stack {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  body.call-strip-collapsed .fab-stack {
    bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }
}

@media (max-width: 420px) {
  .call-strip-lead {
    display: none;
  }

  .call-strip-inner {
    padding-left: 0.65rem;
  }
}

@media (max-width: 360px) {
  .call-strip-cta span,
  .call-strip-rx span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .call-strip-cta,
  .call-strip-rx {
    flex: 0 0 34px;
    width: 34px;
    padding: 0;
  }
}

.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 75;
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.fab {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

.fab:hover { color: #fff; }
.fab .ico { width: 22px; height: 22px; }
.fab-ai { background: var(--navy); }
.fab-chat { background: #1b7a4a; }
.fab.is-open { box-shadow: 0 0 0 3px rgba(15, 122, 98, 0.28), 0 10px 24px rgba(0, 0, 0, 0.16); }

.fab-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dce7e5;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(18, 54, 61, 0.18);
  overflow: hidden;
  z-index: 76;
  font-family: var(--font);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.fab-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-panel[hidden] {
  display: none !important;
}

.fab-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0f4a52 100%);
  color: #fff;
}

.fab-chat-panel .fab-panel-head {
  background: linear-gradient(135deg, #146b48 0%, #0f4a52 100%);
}

.fab-panel-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fab-panel-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  opacity: 0.78;
}

.fab-panel-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.fab-panel-close:hover { background: rgba(255, 255, 255, 0.24); }

.fab-panel-body {
  padding: 0.85rem 0.95rem 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #f7fafa;
}

.fab-chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fab-bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink);
}

.fab-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2ecea;
  border-bottom-left-radius: 4px;
}

.fab-bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.fab-upload {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border: 1px dashed #b7d4cb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.fab-upload:hover {
  border-color: var(--brand);
  background: #f0f8f5;
}

.fab-upload-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f3ef;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fab-upload strong {
  display: block;
  font-size: 0.8rem;
  color: var(--navy);
}

.fab-upload em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.fab-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fab-ai-prompts button {
  border: 1px solid #d5e4e1;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.fab-ai-prompts button:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.fab-panel-cta {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.fab-panel-cta:hover { background: var(--brand-deep); }

.fab-panel-success {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: #e8f3ef;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.fab-lead-form {
  display: grid;
  gap: 0.45rem;
}

.fab-lead-form input,
.fab-lead-form textarea {
  width: 100%;
  border: 1px solid #d5e4e1;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.7rem;
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--ink);
  resize: vertical;
}

.fab-lead-form input:focus,
.fab-lead-form textarea:focus {
  outline: 2px solid rgba(15, 122, 98, 0.25);
  border-color: var(--brand);
}

.fab-wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1b7a4a;
  text-decoration: none;
  padding: 0.45rem;
  border-radius: 8px;
}

.fab-wa-link:hover {
  background: #e8f5ef;
  color: #146b48;
}

.mobile-cats {
  display: none;
}

@media (max-width: 979px) {
  .header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .header-search { max-width: none; }

  .tool-link { min-width: 40px; padding: 0.3rem; }
  .tool-link span { display: none; }

  .header-location { max-width: 8.6rem; padding: 0.22rem 0.4rem 0.22rem 0.3rem; }
  .header-location__kicker { font-size: 0.58rem; }
  .header-location__value { font-size: 0.68rem; }

  .header-account-name,
  .header-account-caret { display: none; }

  .header-account-btn {
    max-width: none;
    padding: 0.12rem;
    border-radius: 50%;
  }

  .header-account:hover .header-account-caret .ico {
    transform: rotate(90deg);
  }

  .header-account.is-open .header-account-caret .ico {
    transform: rotate(-90deg);
  }

  .cat-panel { display: none; }

  .nav-toggle { display: inline-flex; }

  .mobile-cats {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(7, 30, 38, 0.45);
  }

  body.nav-open .mobile-cats { display: block; }

  .mobile-cats-inner {
    width: min(320px, 86vw);
    height: 100%;
    background: var(--surface);
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
  }

  .header-search-shell {
    position: fixed;
    inset: 0;
    z-index: 96;
    width: auto;
    height: auto;
    pointer-events: none;
    visibility: hidden;
  }

  body.search-open .header-search-shell {
    visibility: visible;
    pointer-events: auto;
  }

  body.search-open {
    overflow: hidden;
  }

  .header-search-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(7, 30, 38, 0.44);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s var(--ease);
  }

  body.search-open .header-search-backdrop {
    opacity: 1;
  }

  .header-search-shell > .header-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: auto;
    min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding:
      max(0.45rem, env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px))
      0.55rem
      max(0.65rem, env(safe-area-inset-left, 0px));
    margin: 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(18, 54, 61, 0.08);
    transform: translateY(-108%);
    transition: transform 0.26s var(--ease);
  }

  body.search-open .header-search-shell > .header-search {
    transform: translateY(0);
  }

  .header-search-shell > .header-search:focus-within {
    border-color: var(--line);
    background: var(--header-bg);
    box-shadow: 0 6px 20px rgba(18, 54, 61, 0.08);
  }

  .header-search-close {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }

  .header-search-close:hover {
    background: var(--hover-bg);
    color: var(--navy);
  }

  .header-search-close .ico {
    width: 18px;
    height: 18px;
  }

  .header-search-shell > .header-search > .ico {
    flex-shrink: 0;
    color: var(--brand);
  }

  .header-search-shell > .header-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.875rem;
    color: var(--ink);
  }

  .header-search-shell > .header-search input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 138, 106, 0.12);
  }

  .header-search-shell > .header-search .header-search-results {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    max-height: min(420px, calc(100vh - var(--header-h) - 1.5rem));
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(18, 54, 61, 0.16);
  }

  .header-tools .header-search-toggle {
    display: inline-flex;
  }

  .header-search button[type="submit"] { display: none; }
  .header-tools .btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .promo:not(.promo--full-image) { min-height: 235px; }
  .promo:not(.promo--full-image) .promo-slide { min-height: 235px; }
  .promo-copy { padding: 1.2rem; }
  .promo--full-image {
    aspect-ratio: 16 / 7;
    min-height: 0;
  }
  .promo--full-image .promo-track,
  .promo--full-image .promo-slide {
    min-height: 0;
  }
  .promo--full-image .promo-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
  }
  .promo--full-image .promo-nav .ico { width: 10px; height: 10px; }
  .promo--full-image .promo-nav.prev { left: 0.45rem; }
  .promo--full-image .promo-nav.next { right: 0.45rem; }
  .promo--full-image .promo-dots { bottom: 0.55rem; }
  .promo-tile {
    min-height: 68px;
    height: 68px;
    max-height: 68px;
    padding: 0.45rem 0.7rem 0.55rem;
  }
  .topbar-brand .wrap span:last-child { display: none; }
}

/* Policy / legal pages */
.policy-page {
  min-height: 100vh;
  background: var(--bg);
}

.policy-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.policy-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  gap: 1rem;
}

.policy-home {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.policy-home:hover { color: var(--brand); }

.policy-main {
  padding: 2.5rem 0 4rem;
}

.policy-prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.02rem;
}

.policy-prose h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
}

.policy-updated {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.policy-prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}

.policy-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.policy-prose p,
.policy-prose ul,
.policy-prose ol {
  margin: 0 0 1rem;
}

.policy-prose ul,
.policy-prose ol {
  padding-left: 1.35rem;
}

.policy-prose li { margin-bottom: 0.4rem; }

.policy-prose a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-prose a:hover { color: var(--brand); }


/* —— Rx gating + prescription-first (Phases 11–12) —— */
.rx-gate {
  margin: 1.25rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(47, 111, 143, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 111, 143, 0.06), rgba(15, 122, 98, 0.04)),
    var(--white, #fff);
}
.rx-gate__badge,
.pdp-rx-cta__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rx, #2f6f8f);
  background: rgba(47, 111, 143, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.rx-gate__title { margin: 0.25rem 0 0.4rem; font-size: 1.15rem; color: var(--navy); }
.rx-gate__lead,
.pdp-rx-cta__text,
.rx-continue__lead { color: var(--muted); line-height: 1.5; margin: 0 0 0.85rem; }
.rx-gate__skus {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.rx-gate__skus a { font-weight: 600; color: var(--navy); }
.rx-gate__actions,
.rx-gate__linked-actions,
.pdp-rx-cta__actions,
.rx-continue__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.rx-gate__link-form { width: 100%; margin-bottom: 0.75rem; }
.rx-gate__link-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.rx-gate__link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rx-gate__link-row select {
  flex: 1 1 220px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
}
.rx-gate__linked {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 122, 98, 0.06);
  border: 1px solid rgba(15, 122, 98, 0.18);
}
.rx-gate__block {
  margin: 0.85rem 0 0;
  color: var(--danger, #b42318);
  font-weight: 600;
  font-size: 0.92rem;
}
.rx-gate__note,
.rx-continue__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.rx-continue__note--ok { color: var(--brand-deep, #0a6b52); font-weight: 600; }

.pdp-rx-cta {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(47, 111, 143, 0.35);
  background: rgba(47, 111, 143, 0.05);
}

.rx-continue,
.rx-helper {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}
.rx-continue__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx, #2f6f8f);
  margin: 0 0 0.35rem;
}
.rx-continue h1,
.rx-helper h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
}
.rx-continue__flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep);
  font-weight: 600;
}
.rx-continue__panel {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white, #fff);
}
.rx-continue__panel h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.rx-continue__alert {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
  color: var(--danger);
}
.rx-continue__demo {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.rx-timeline {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.rx-timeline li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.rx-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}
.rx-timeline li.is-done .rx-timeline__dot {
  background: var(--brand, #0e8a6a);
  border-color: var(--brand, #0e8a6a);
}
.rx-timeline li.is-current {
  color: var(--navy);
}
.rx-timeline li.is-current .rx-timeline__dot {
  border-color: var(--rx, #2f6f8f);
  box-shadow: 0 0 0 3px rgba(47, 111, 143, 0.2);
}

.rx-helper__section { margin-top: 2rem; }
.rx-helper__section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--navy);
}
.rx-helper__hint { margin-bottom: 1rem; }
.rx-helper__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.rx-helper__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.rx-helper__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  background: var(--well);
  box-sizing: border-box;
}
.rx-helper__card-body {
  padding: 0.75rem 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.rx-helper__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.3;
}
.rx-helper__price { font-weight: 700; color: var(--brand-deep, #0a6b52); }
.rx-helper__add { margin-top: 0.25rem; }

@media (max-width: 640px) {
  .rx-gate__link-row { flex-direction: column; }
  .rx-gate__link-row select,
  .rx-gate__link-row .btn { width: 100%; }
}

/* —— Cart page —— */
.store-header--simple .header-main {
  min-height: var(--header-h);
}

.store-header--simple .header-search { display: none; }

.trust-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  padding: 0.4rem 0;
}

.cart-page {
  padding: 1.25rem 0 3.5rem;
}

.cart-wrap { max-width: 1120px; }

.cart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.cart-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.cart-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.cart-meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-continue {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.86rem;
}

.cart-continue:hover { text-decoration: underline; }

.cart-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-alert--ok {
  background: #e8f6f1;
  color: var(--brand-deep);
  border: 1px solid #c6e8dc;
}

.cart-alert--err {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #f5c6c2;
}

.cart-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 480px;
  margin: 1rem auto 0;
}

.cart-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: #eef5f4;
  color: var(--navy);
  display: grid;
  place-items: center;
}

.cart-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.cart-empty p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.cart-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.cart-bag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cart-bag__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.cart-bag__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cart-bag__head p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.95rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.05rem 1.1rem;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line.is-rx {
  background: color-mix(in srgb, var(--rx) 6%, transparent);
  box-shadow: none;
}

.cart-line--plan {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.cart-line--member {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.cart-member-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-line-media {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.cart-line-media--plan {
  background: var(--navy-fill);
  border-color: var(--navy-fill);
  color: var(--brand-on-navy);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-ph { color: var(--muted); }

.cart-line-body {
  min-width: 0;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.cart-line-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.cart-line-title a { color: var(--navy); }

.cart-line-title a:hover { color: var(--brand-deep); }

.cart-line-pack,
.cart-line-brand,
.cart-line-meta {
  margin: 0.22rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.cart-plan-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.cart-plan-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.cart-plan-perks li {
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.cart-line-prices {
  text-align: right;
  white-space: nowrap;
}

.cart-line-prices strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-line-prices s {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.cart-line-off {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--sale) 10%, var(--surface));
  color: var(--sale);
  font-size: 0.68rem;
  font-weight: 700;
}

.cart-line-member {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.rx-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e8f1f6;
  color: var(--rx);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.75rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.cart-qty form { margin: 0; }

.cart-qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty button:hover:not(:disabled) { background: var(--hover-bg); }

.cart-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-qty-val {
  min-width: 1.7rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
}

.cart-line-total {
  display: grid;
  justify-items: end;
  margin: 0 0 0 auto;
  color: var(--navy);
  line-height: 1.2;
}

.cart-line-total span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-line-total strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.cart-remove:hover { color: var(--danger); text-decoration: underline; }

.cart-rx-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--rx);
  background: #f3f8fb;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0 0.2rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.cart-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem;
  position: sticky;
  top: calc(var(--header-h, 64px) + var(--catbar-h, 44px) + 0.75rem);
}

.cart-summary h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cart-summary dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.cart-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.cart-summary dt { color: var(--muted); margin: 0; }

.cart-summary dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.cart-summary .muted { font-weight: 500; color: var(--muted); }

.cart-summary code {
  font-size: 0.85rem;
  background: var(--well);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  color: var(--brand-deep);
}

.cart-summary-save {
  margin: 0.7rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-member-note {
  margin: 0.7rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.9rem 0 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-summary-total strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.cart-summary-rx {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--rx);
  line-height: 1.4;
}

.cart-checkout-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.cart-summary-note {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.cart-summary-note--warn {
  color: var(--danger);
}

.cart-summary .coupon-box {
  margin: 0.85rem 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 58%, var(--surface) 0 8px, transparent 8.5px),
    radial-gradient(circle at 100% 58%, var(--surface) 0 8px, transparent 8.5px),
    color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.cart-summary .coupon-box__head {
  margin: 0;
  padding: 0.7rem 0.95rem 0.15rem;
}

.cart-summary .coupon-box__form,
.cart-summary .coupon-box__applied,
.cart-summary .coupon-box__ticket {
  margin: 0 0.85rem 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--line));
}

.cart-summary .coupon-box__form input[type="text"] {
  height: 38px;
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  line-height: 1.2;
}

.cart-summary .coupon-box__form .btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.cart-summary .coupon-box__hints {
  margin: 0 0.95rem 0.75rem;
}

.cart-summary .coupon-box__flash,
.cart-summary .coupon-box__error {
  margin: 0 0.95rem 0.5rem;
}

.cart-summary .delivery-eta,
.cart-summary .delivery-eta--cart {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.cart-summary .delivery-eta__title {
  display: none;
}

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 0.9rem;
  }
  .cart-line-media { width: 68px; height: 68px; }
  .cart-line-top { flex-direction: column; gap: 0.35rem; }
  .cart-line-prices { text-align: left; }
  .cart-line-total { margin-left: 0; justify-items: start; }
}

/* —— Coupons + delivery ETA (Phase 7 / 9) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coupon-box {
  margin: 1rem 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 50%, var(--surface) 0 7px, transparent 7.5px),
    radial-gradient(circle at 100% 50%, var(--surface) 0 7px, transparent 7.5px),
    color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.coupon-box__head {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.coupon-box__icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.coupon-box__head strong {
  display: block;
  color: var(--navy);
  font-size: 0.84rem;
}

.coupon-box__head .meta {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.68rem;
}

.coupon-box__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.coupon-box__hint {
  padding: 0.14rem 0.42rem;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.coupon-box__hint:hover {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}

.coupon-box__form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.coupon-box__form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.coupon-box__form .btn,
.coupon-box--compact .coupon-box__form .btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
  align-self: stretch;
  white-space: nowrap;
}

.coupon-box--compact .coupon-box__form .btn {
  padding: 0 0.85rem;
}

.coupon-box__applied,
.coupon-box__ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.coupon-box__ticket {
  margin: 0 0.15rem 0.15rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--line));
}

.coupon-box__ticket-copy {
  min-width: 0;
}

.coupon-box__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--brand-deep);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coupon-box__benefit {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.coupon-box__l1 {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

.coupon-box__l2 {
  display: block;
  margin-top: 0.08rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.coupon-box__code {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  margin-right: 0.35rem;
}

.coupon-box__remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.coupon-box__flash { margin: 0 0 0.5rem; color: var(--brand-deep); font-size: 0.9rem; }
.coupon-box__error { margin: 0.5rem 0 0; color: var(--danger); font-size: 0.9rem; }

.cart-summary-discount {
  margin: 0.5rem 0 0;
}
.cart-summary-discount dd { color: var(--brand-deep); font-weight: 700; }

.delivery-eta {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.delivery-eta__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(11, 61, 74, 0.06);
  color: var(--navy);
  flex-shrink: 0;
}

.delivery-eta__title {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.delivery-eta__message {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.delivery-eta__addr {
  margin: 0.2rem 0 0;
  min-width: 0;
}

.delivery-eta__addr-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}

.delivery-eta__addr-select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 36px;
  margin: 0 0 0.35rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
}

.delivery-eta__form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.delivery-eta__form input {
  width: 7.5rem;
  height: 38px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  line-height: 38px;
  box-sizing: border-box;
}

.delivery-eta__form .btn,
.delivery-eta__check {
  height: 38px;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  flex: 0 0 auto;
}

.delivery-eta--pdp { margin-top: 0; }

.delivery-timeline {
  margin: 0 0 1.25rem;
}

.delivery-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.delivery-timeline__steps li {
  position: relative;
  text-align: center;
  padding-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.delivery-timeline__steps li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.delivery-timeline__steps li:first-child::before { left: 50%; }
.delivery-timeline__steps li:last-child::before { right: 50%; }

.delivery-timeline__dot {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  z-index: 1;
}

.delivery-timeline__steps li.is-done { color: var(--brand-deep); }
.delivery-timeline__steps li.is-done .delivery-timeline__dot,
.delivery-timeline__steps li.is-current .delivery-timeline__dot {
  border-color: var(--brand);
  background: var(--brand);
}
.delivery-timeline__steps li.is-done::before,
.delivery-timeline__steps li.is-current::before {
  background: rgba(14, 138, 106, 0.45);
}
.delivery-timeline__steps li.is-current { color: var(--navy); }
.delivery-timeline__cancelled {
  margin: 0 0 0.75rem;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .delivery-timeline__label { font-size: 0.7rem; }
  .coupon-box__form { flex-direction: column; }
}


/* Phases 13–14 storefront polish */
.soft-404,
.order-track {
  padding: 2rem 0 3.5rem;
}
.soft-404__card,
.order-track__card {
  background: var(--white, #fff);
  border: 1px solid var(--line, #e4ecee);
  border-radius: 18px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow, 0 10px 28px rgba(11, 61, 74, 0.08));
  max-width: 720px;
}
.soft-404__kicker,
.order-track__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5b6f76);
}
.soft-404 h1,
.order-track__head h1 {
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.03em;
  color: var(--navy, #0b3d4a);
}
.soft-404__lead { color: var(--muted, #5b6f76); }
.soft-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.soft-404__sub,
.order-track__sub {
  margin: 1.5rem 0 0.65rem;
  font-size: 1rem;
  color: var(--navy, #0b3d4a);
}
.soft-404__list,
.order-track__items {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}
.order-track__items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line, #e4ecee);
}
.order-track__items { padding-left: 0; }

.stock-status {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
}
.stock-status strong { font-size: 0.95rem; }
.stock-status--ok {
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep, #0a6b52);
  border: 1px solid rgba(15, 122, 98, 0.18);
}
.stock-status--low {
  background: rgba(201, 162, 39, 0.16);
  color: #8a6a12;
  border: 1px solid rgba(201, 162, 39, 0.28);
}
.stock-status--oos {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger, #b42318);
  border: 1px solid rgba(180, 35, 24, 0.18);
}
.oos-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger, #b42318);
}
.cart-line.is-oos { opacity: 0.85; border-color: rgba(180, 35, 24, 0.25); }
.cart-oos-note {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger, #b42318);
}

.pdp-page { padding: 1.5rem 0 3rem; }
.pdp-page .pdp-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.pdp-media img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.pdp-media-ph {
  min-height: 220px;
  border-radius: 14px;
  border: 1px dashed var(--line, #e4ecee);
  display: grid;
  place-items: center;
  background: #f7fbfb;
}
.pdp-page .pdp-price { font-size: 1.25rem; }
.pdp-page .pdp-price s { color: var(--muted, #5b6f76); margin-left: 0.5rem; font-size: 0.95rem; }
.pdp-page .pdp-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem 0;
}
.pdp-page .pdp-add input[type="number"] {
  width: 4.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line, #e4ecee);
  font: inherit;
}
.pdp-oos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pdp-page .pdp-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
@media (min-width: 860px) {
  .pdp-page .pdp-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Mobile checkout / account fixes */
@media (max-width: 860px) {
  .checkout-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .checkout-wrap,
  .cart-wrap {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .checkout-head,
  .cart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .checkout-pay-options,
  .checkout-address-list {
    grid-template-columns: 1fr !important;
  }
  .checkout-form .form-row {
    grid-template-columns: 1fr !important;
  }
  .checkout-summary {
    position: static !important;
  }
  .checkout-card,
  .cart-summary {
    border-radius: 14px;
  }
}
@media (max-width: 560px) {
  .checkout-page,
  .cart-page {
    padding-bottom: 2.5rem;
  }
  .checkout-step {
    flex: 0 0 auto;
  }
  .cart-line-actions {
    flex-wrap: wrap;
  }
  .cart-checkout-btn,
  .checkout-place-btn,
  .checkout-form .btn[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}

/* Auth pages sitting inside full store chrome */
.auth-page {
  padding: 1.5rem 0 3rem;
  min-height: 50vh;
}
.auth-page-wrap {
  display: flex;
  justify-content: center;
}
.is-auth .auth-card {
  margin: 1.25rem auto 2rem;
}

.auth-continue {
  width: min(520px, 100%);
  margin: 2.5rem auto 3rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.auth-continue h1 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.auth-continue p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.auth-continue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

body.auth-open {
  overflow: hidden;
}

.auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  visibility: hidden;
}

.auth-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.auth-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 38, 0.48);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.auth-drawer.is-open .auth-drawer__backdrop {
  opacity: 1;
}

.auth-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  box-shadow: -16px 0 40px rgba(18, 54, 61, 0.14);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-drawer.is-open .auth-drawer__panel {
  transform: none;
}

.auth-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.auth-drawer__kicker {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--hover-bg);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-drawer__close:hover {
  background: var(--line);
}

.auth-drawer__body {
  padding: 1.15rem 1.25rem 1.75rem;
  overflow: auto;
  flex: 1;
}

.auth-drawer__section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.auth-drawer__lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-drawer__form label {
  margin-bottom: 0.3rem;
}

.auth-drawer__form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-drawer__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-drawer__label-row label {
  margin-bottom: 0.3rem;
}

.auth-drawer__text-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.auth-drawer__text-btn:hover {
  color: var(--brand);
}

.auth-drawer__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  margin: 0.15rem 0 1rem;
}

.auth-drawer__check input {
  margin-top: 0.2rem;
  width: auto;
}

.auth-drawer__switch {
  text-align: center;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-drawer__demo {
  margin-top: 1.25rem;
  padding: 0.9rem;
  border: 1px dashed var(--brand);
  border-radius: 12px;
  background: var(--well);
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.auth-drawer__demo-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.auth-drawer__demo .btn {
  width: 100%;
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--brand);
}

.auth-drawer__demo .btn:hover {
  background: var(--brand);
  color: #fff;
}

.auth-drawer__demo small {
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-drawer__alert {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-drawer__alert--ok {
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 122, 98, 0.2);
}

.auth-drawer__alert--err {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.18);
}

@media (max-width: 520px) {
  .auth-drawer__panel {
    width: 100%;
  }
}

/* Blog / health desk article pages */
.blog-page {
  padding: 1.25rem 0 3.2rem;
  background: transparent;
}

.blog-wrap { max-width: 1200px; }

.blog-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.blog-crumb a { color: var(--brand-deep); font-weight: 600; }
.blog-crumb span:last-child { color: var(--navy); font-weight: 600; }

.blog-index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.blog-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.blog-index-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.blog-index-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.blog-clear-filter {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.blog-clear-filter:hover { border-color: #c9ddd6; color: var(--brand); }

.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.blog-filter-chips a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
}
.blog-filter-chips a:hover { border-color: #c9ddd6; color: var(--brand-deep); }
.blog-filter-chips a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-layout {
  display: grid;
  gap: 1.2rem;
}

.blog-empty { color: var(--muted); }
.blog-index-grid .blog-empty { grid-column: 1 / -1; margin: 0; }
.blog-pager { margin-top: 1.5rem; }

.blog-flash {
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 122, 98, 0.2);
}
.blog-flash--err {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.18);
}

.blog-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-hero {
  height: min(340px, 46vw);
  background: #e8efee;
}
.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-body { padding: 1.25rem 1.35rem 1.75rem; }
.blog-cat-link { display: inline-block; }
.blog-article-body h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.22;
}
.blog-meta {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: center;
}
.blog-meta a { color: var(--brand-deep); font-weight: 600; }
.blog-standfirst {
  margin: 0.95rem 0 1.15rem;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}

.blog-prose { color: var(--ink); font-size: 0.98rem; line-height: 1.72; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 {
  color: var(--navy);
  margin: 1.4rem 0 0.45rem;
  letter-spacing: -0.02em;
}
.blog-prose h2 { font-size: 1.18rem; }
.blog-prose p, .blog-prose ul, .blog-prose ol { margin: 0 0 0.9rem; }
.blog-prose ul, .blog-prose ol { padding-left: 1.2rem; }
.blog-prose li { margin-bottom: 0.35rem; }
.blog-prose a { color: var(--brand-deep); font-weight: 600; }

.blog-sidebar {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.blog-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.blog-widget h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.blog-widget-empty { margin: 0; color: var(--muted); font-size: 0.84rem; }

.blog-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.28rem; }
.blog-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.blog-cat-list a:hover { background: #f4f8f8; color: var(--brand-deep); }
.blog-cat-list a.is-active {
  background: rgba(15, 122, 98, 0.1);
  color: var(--brand-deep);
}
.blog-cat-list em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
  padding: 0.08rem 0.4rem;
}

.blog-suggest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.blog-suggest-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.65rem;
  align-items: center;
  color: inherit;
}
.blog-suggest-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8efee;
}
.blog-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-suggest-copy { min-width: 0; display: grid; gap: 0.12rem; }
.blog-suggest-cat {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.blog-suggest-copy strong {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-suggest-list a:hover strong { color: var(--brand-deep); }

.blog-widget--trust {
  background: linear-gradient(180deg, #f3faf8 0%, #fff 70%);
  border-color: #d5e8e2;
}
.blog-trust-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(15, 122, 98, 0.12);
  color: var(--brand-deep);
  margin-bottom: 0.55rem;
}
.blog-widget--trust h2 { margin-bottom: 0.4rem; }
.blog-widget--trust p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.blog-index-grid {
  display: grid;
  gap: 0.95rem;
}
.blog-index-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-index-media {
  display: block;
  height: 150px;
  background: #e8efee;
}
.blog-index-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-index-copy {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.blog-index-copy h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.blog-index-copy h2 a { color: var(--navy); }
.blog-index-copy h2 a:hover { color: var(--brand-deep); }
.blog-index-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-index-foot {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.blog-comments {
  margin-top: 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}
.blog-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.blog-comments-head h2 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--navy);
}
.blog-comments-head p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.blog-comments-count {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 122, 98, 0.12);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.85rem;
}

.blog-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.blog-signin .blog-avatar { background: rgba(15, 122, 98, 0.12); color: var(--brand-deep); }

.blog-comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.blog-comment:last-of-type { border-bottom: 0; }
.blog-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
}
.blog-comment-meta strong { color: var(--navy); font-size: 0.9rem; }
.blog-comment-meta time { font-size: 0.75rem; color: var(--muted); }
.blog-comment-body p { margin: 0.3rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.blog-comments-empty {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-comment-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.95rem;
  background: #f7fbfb;
  border: 1px solid #e4eeeb;
  border-radius: 16px;
}
.blog-comment-form-lead {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.7rem;
  align-items: center;
}
.blog-comment-form-lead strong { display: block; color: var(--navy); font-size: 0.88rem; }
.blog-comment-form-lead span { color: var(--muted); font-size: 0.78rem; }
.blog-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  resize: vertical;
  background: #fff;
  color: var(--ink);
  margin: 0;
}
.blog-comment-form .btn { justify-self: start; }

.blog-signin {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  background: #f7fbfb;
  border: 1px solid #e4eeeb;
  border-radius: 16px;
}
.blog-signin strong { display: block; color: var(--navy); font-size: 0.92rem; }
.blog-signin p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.8rem; }
.blog-signin .btn { white-space: nowrap; }

@media (min-width: 760px) {
  .blog-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 20%);
    align-items: start;
    gap: 1.45rem;
  }
  .blog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--catbar-h) + 12px);
  }
  .blog-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .blog-signin {
    grid-template-columns: 40px 1fr;
  }
  .blog-signin .btn { grid-column: 1 / -1; justify-self: start; }
}

/* —— Storefront dark theme extras (hardcoded light surfaces) —— */
[data-theme="dark"] .cat-panel,
[data-theme="dark"] .cat-panel h2 {
  background: #0c262c;
}

[data-theme="dark"] .cat-panel h2 {
  color: #e8f0f1;
}

[data-theme="dark"] .cat-list a.is-mega-active {
  background: #163832;
}

[data-theme="dark"] .cat-ico {
  background: #1a3d38;
  color: var(--brand-deep);
}

[data-theme="dark"] .header-search input::placeholder {
  color: #7f9499;
}

[data-theme="dark"] .header-search-backdrop {
  background: rgba(4, 14, 18, 0.62);
}

[data-theme="dark"] .header-search-shell > .header-search {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .header-search-shell > .header-search input {
  background: var(--input-bg);
  border-color: var(--line);
}

[data-theme="dark"] .header-search-shell > .header-search input:focus {
  box-shadow: 0 0 0 3px rgba(43, 184, 144, 0.18);
}

[data-theme="dark"] .header-search-results {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .header-search-item-label {
  color: var(--ink);
}

[data-theme="dark"] .sku:hover {
  border-color: #3d5c62;
}

[data-theme="dark"] .popcat-mint .popcat-media { background: #16352c; }
[data-theme="dark"] .popcat-peach .popcat-media { background: #3a2c24; }
[data-theme="dark"] .popcat-sky .popcat-media { background: #1a3340; }
[data-theme="dark"] .popcat-lavender .popcat-media { background: #2c2640; }

[data-theme="dark"] .is-pdp .store-header,
[data-theme="dark"] .is-plp .store-header {
  background: var(--header-bg);
}

[data-theme="dark"] .plp-item-media {
  background: var(--well);
}

[data-theme="dark"] .plp-item:hover {
  border-color: #3d5c62;
}

[data-theme="dark"] .plp-chip.is-active {
  background: #163832;
}

[data-theme="dark"] .plp-badge {
  background: #122a30;
  border-color: #2a5a4c;
}

[data-theme="dark"] .plp-add {
  background: var(--surface);
}

[data-theme="dark"] .plp-view.is-active {
  color: #fff;
}

[data-theme="dark"] .plp-sort select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239bb0b5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .cart-qty button:hover:not(:disabled) {
  background: var(--hover-bg);
}

[data-theme="dark"] .cart-empty-icon {
  background: var(--surface-2);
}

[data-theme="dark"] .promo-nav {
  background: rgba(18, 42, 48, 0.92);
  color: var(--ink);
}

[data-theme="dark"] .concern-diabetes .concern-well,
[data-theme="dark"] .concern-heart .concern-well,
[data-theme="dark"] .concern-stomach .concern-well,
[data-theme="dark"] .concern-liver .concern-well,
[data-theme="dark"] .concern-bone .concern-well,
[data-theme="dark"] .concern-kidney .concern-well,
[data-theme="dark"] .concern-derma .concern-well {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .btn.ghost-navy {
  color: var(--navy);
  border-color: var(--line);
}

/* Call to order — trust-first lead capture */
.call-order {
  width: min(440px, calc(100vw - 1.5rem));
  max-height: min(92vh, 680px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  z-index: 240;
}
.call-order::backdrop {
  background: rgba(12, 38, 44, 0.55);
}
.call-order__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 24px 60px rgba(18, 54, 61, 0.18);
  overflow-x: hidden;
  overflow-y: auto;
}
.call-order__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--hover-bg);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.call-order__close:hover { background: var(--line); }
.call-order__head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0 2rem 1.05rem 0;
}
.call-order__trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 122, 98, 0.12);
  color: var(--brand-deep);
}
.call-order__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.call-order__title {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.call-order__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.call-order__form {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}
.call-order__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.45rem;
}
.call-order__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.85rem;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}
.call-order__input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.call-order__phone {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  overflow: hidden;
}
.call-order__phone:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.call-order__prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}
.call-order__phone .call-order__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 0.85rem;
  background: transparent;
}
.call-order__phone .call-order__input:focus {
  outline: none;
}
.call-order__error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--danger);
}
.call-order__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.95rem;
}
.call-order__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  color: #fff;
}
.call-order__primary .ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #fff;
}
.call-order__secondary {
  width: 100%;
  justify-content: center;
}
.call-order__success {
  text-align: center;
  padding: 0.4rem 0.2rem 0.2rem;
}
.call-order__success .call-order__trust-ico {
  margin: 0 auto 0.7rem;
}
.call-order__success p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.call-order__form-wrap[hidden],
.call-order__success[hidden] { display: none; }

body.call-order-open { overflow: hidden; }

/* Location capture — header deliver-to popup */
.loc-capture {
  width: min(420px, calc(100vw - 1.5rem));
  max-height: min(92vh, 640px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  z-index: 240;
}
.loc-capture::backdrop {
  background: rgba(12, 38, 44, 0.55);
}
.loc-capture__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 24px 60px rgba(18, 54, 61, 0.18);
}
.loc-capture__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--hover-bg);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.loc-capture__close:hover { background: var(--line); }
.loc-capture__head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0 2rem 0.7rem 0;
}
.loc-capture__trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 122, 98, 0.12);
  color: var(--brand-deep);
}
.loc-capture__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.loc-capture__title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.loc-capture__lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}
.loc-capture__geo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  color: #fff;
}
.loc-capture__geo .ico {
  width: 16px;
  height: 16px;
  color: #fff;
}
.loc-capture__geo[disabled] { opacity: 0.7; cursor: wait; }
.loc-capture__divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-capture__divider::before,
.loc-capture__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.loc-capture__form { display: grid; gap: 0.35rem; }
.loc-capture__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}
.loc-capture__row {
  display: flex;
  gap: 0.5rem;
}
.loc-capture__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.85rem;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.loc-capture__input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.loc-capture__apply {
  flex-shrink: 0;
  height: 44px;
  padding: 0 1rem;
}
.loc-capture__status {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--navy);
}
.loc-capture__status.is-error { color: var(--danger); }
.loc-capture__status[hidden] { display: none; }

body.loc-capture-open { overflow: hidden; }

[data-theme="dark"] .header-location {
  background: var(--surface);
}
[data-theme="dark"] .loc-capture::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
[data-theme="dark"] .loc-capture__trust-ico {
  background: rgba(43, 184, 144, 0.16);
}
[data-theme="dark"] .loc-capture__input {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .call-order::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
[data-theme="dark"] .call-order__trust-ico {
  background: rgba(43, 184, 144, 0.16);
}
[data-theme="dark"] .call-order__input,
[data-theme="dark"] .call-order__phone {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .call-order__prefix {
  background: var(--surface-2);
  color: var(--muted);
  border-right-color: var(--line);
}
[data-theme="dark"] .call-order__phone .call-order__input {
  background: transparent;
  color: var(--ink);
}

/* =============================================================================
   Dark theme completeness — storefront surfaces that still used light hexes.
   Keep this block LAST so it wins over page CSS other agents add above.
   ============================================================================= */

[data-theme="dark"] {
  accent-color: var(--brand);
}

[data-theme="dark"] ::placeholder {
  color: #7f9499;
}

[data-theme="dark"] :focus-visible {
  outline-color: var(--brand);
}

/* Mega menu / category chrome */
html[data-theme="dark"] .cat-mega,
html[data-theme="dark"] .cat-mega-panel,
html[data-theme="dark"] .cat-mega-top,
html[data-theme="dark"] .cat-mega-main {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .cat-mega-sub,
html[data-theme="dark"] .cat-mega-feature-card,
html[data-theme="dark"] .cat-mega-side,
html[data-theme="dark"] .cat-mega-prod,
html[data-theme="dark"] .cat-acc-panel {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .cat-mega-prod {
  background: var(--surface);
}

html[data-theme="dark"] .cat-mega-sub:hover,
html[data-theme="dark"] .cat-mega-feature-card:hover {
  background: var(--hover-bg);
}

html[data-theme="dark"] .cat-mega-head h3,
html[data-theme="dark"] .cat-mega-feature-card strong,
html[data-theme="dark"] .cat-mega-prod strong {
  color: var(--navy);
}

html[data-theme="dark"] .cat-mega-featured-label,
html[data-theme="dark"] .cat-mega-side-label {
  color: var(--muted);
}

html[data-theme="dark"] .cat-mega-feature-card em,
html[data-theme="dark"] .cat-mega-prod em {
  color: var(--brand-deep);
}

html[data-theme="dark"] .cat-mega-promo em,
html[data-theme="dark"] .cat-mega-banner em {
  background: var(--surface);
  color: var(--navy);
}

html[data-theme="dark"] .cat-mega-banner {
  background-color: #0c262c;
  color: #fff;
}

html[data-theme="dark"] .cat-mega-banner::before {
  background:
    linear-gradient(115deg, rgba(8, 28, 32, 0.96) 0%, rgba(14, 48, 54, 0.90) 44%, rgba(8, 78, 64, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 22, 26, 0.52) 0%, rgba(6, 20, 24, 0.92) 100%);
}

[data-theme="dark"] .cat-mega-sub-ico,
[data-theme="dark"] .cat-ico {
  background: var(--placeholder-bg);
  color: var(--brand-deep);
}

[data-theme="dark"] .cat-mega-feature-card img,
[data-theme="dark"] .cat-mega-prod img {
  background: var(--well);
}

[data-theme="dark"] .cat-list a.is-mega-active {
  background: var(--well);
  color: var(--ink);
}

/* Home cards, badges, rails */
[data-theme="dark"] .action-card,
[data-theme="dark"] .badge,
[data-theme="dark"] .badge.off,
[data-theme="dark"] .sku-add,
[data-theme="dark"] .brand-tile,
[data-theme="dark"] .feat-brand-badge,
[data-theme="dark"] .collage-card,
[data-theme="dark"] .concern-well {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .sku-add {
  color: var(--brand-deep);
  border-color: #3d6b62;
}

[data-theme="dark"] .sku-add:hover {
  background: var(--brand);
  color: var(--on-fill);
  border-color: var(--brand);
}

[data-theme="dark"] .a-wa { background: var(--tint-mint); }
[data-theme="dark"] .a-rx { background: var(--tint-sky); }
[data-theme="dark"] .a-hc { background: var(--tint-rose); }
[data-theme="dark"] .a-call { background: var(--tint-peach); }
[data-theme="dark"] .a-wa:hover,
[data-theme="dark"] .a-rx:hover,
[data-theme="dark"] .a-hc:hover,
[data-theme="dark"] .a-call:hover {
  background: var(--hover-bg);
}

[data-theme="dark"] .action-ico,
[data-theme="dark"] .dept-photo,
[data-theme="dark"] .popcat-link-ico,
[data-theme="dark"] .tip-media,
[data-theme="dark"] .pdp-media-ph {
  background: var(--placeholder-bg);
}

[data-theme="dark"] .collage-mint { background: var(--tint-mint); }
[data-theme="dark"] .collage-peach { background: var(--tint-peach); }
[data-theme="dark"] .collage-sky { background: var(--tint-sky); }
[data-theme="dark"] .collage-lavender { background: var(--tint-lavender); }

[data-theme="dark"] .collage-stat-note,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .concern-card:hover .concern-well {
  background: var(--well);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .concern-resp .concern-well {
  background: var(--well);
  border-color: var(--line);
  color: var(--ink);
}

/* Call-back strip + FABs */
[data-theme="dark"] .call-strip-panel,
[data-theme="dark"] .call-strip-mini,
[data-theme="dark"] .fab-panel,
[data-theme="dark"] .fab-bubble.bot,
[data-theme="dark"] .fab-upload,
[data-theme="dark"] .fab-ai-prompts button,
[data-theme="dark"] .fab-lead-form input,
[data-theme="dark"] .fab-lead-form textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .call-strip-field,
[data-theme="dark"] .call-strip-prefix,
[data-theme="dark"] .call-strip-close,
[data-theme="dark"] .fab-panel-body,
[data-theme="dark"] .fab-upload-ico,
[data-theme="dark"] .fab-panel-success,
[data-theme="dark"] .call-strip-ico {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .call-strip-cta {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

[data-theme="dark"] .call-strip-cta:hover {
  background: var(--brand-deep);
  color: var(--navy-deep);
}

[data-theme="dark"] .call-strip-rx {
  background: var(--surface);
  color: var(--brand-deep);
  border-color: var(--brand);
}

[data-theme="dark"] .call-strip-rx:hover {
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

[data-theme="dark"] .fab-upload:hover,
[data-theme="dark"] .fab-wa-link:hover,
[data-theme="dark"] .call-strip-close:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

/* Cart / Rx helper / track */
[data-theme="dark"] .cart-alert--ok { background: var(--alert-ok-bg); }
[data-theme="dark"] .cart-alert--err { background: var(--alert-err-bg); }

[data-theme="dark"] .cart-empty-icon,
[data-theme="dark"] .cart-line-media,
[data-theme="dark"] .cart-qty,
[data-theme="dark"] .cart-qty button,
[data-theme="dark"] .cart-summary code,
[data-theme="dark"] .rx-timeline__dot,
[data-theme="dark"] .rx-helper__card {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .rx-helper__card img {
  background: var(--well);
}

[data-theme="dark"] .cart-qty button:hover:not(:disabled) {
  background: var(--hover-bg);
}

[data-theme="dark"] .rx-badge,
[data-theme="dark"] .cart-rx-note {
  background: var(--tint-sky);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .rx-continue__panel,
[data-theme="dark"] .order-track__card,
[data-theme="dark"] .rx-gate {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* Blog */
[data-theme="dark"] .blog-clear-filter,
[data-theme="dark"] .blog-filter-chips a,
[data-theme="dark"] .blog-widget,
[data-theme="dark"] .blog-comments,
[data-theme="dark"] .blog-comment-form textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .blog-cat-list a:hover,
[data-theme="dark"] .blog-comment-form,
[data-theme="dark"] .blog-signin {
  background: var(--surface-2);
  color: var(--ink);
}

[data-theme="dark"] .blog-hero,
[data-theme="dark"] .blog-suggest-thumb,
[data-theme="dark"] .blog-index-media {
  background: var(--placeholder-bg);
}

[data-theme="dark"] .blog-widget--trust {
  background: var(--well);
  color: var(--ink);
}

/* Auth drawer leftovers */
[data-theme="dark"] .auth-drawer__close,
[data-theme="dark"] .auth-drawer__text-btn {
  background: var(--hover-bg);
  color: var(--navy);
}

/* Policy + empty / tables */
[data-theme="dark"] .policy-prose,
[data-theme="dark"] table,
[data-theme="dark"] .account-table {
  color: var(--ink);
}

[data-theme="dark"] .policy-prose code,
[data-theme="dark"] .policy-prose pre {
  background: var(--surface-2);
  color: var(--ink);
}

/* Filled controls that used inverted --navy as a background */
[data-theme="dark"] .plp-pages .is-current,
[data-theme="dark"] .cat-panel,
[data-theme="dark"] .cat-panel h2 {
  background: var(--navy-deep);
  color: var(--on-fill);
  border-color: var(--line);
}

[data-theme="dark"] .cat-panel h2 {
  color: #e8f0f1;
}

[data-theme="dark"] .stock-status--low {
  color: #e4c36a;
}

[data-theme="dark"] .pdp-page .pdp-add input[type="number"] {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--line);
}

/* Staff impersonation banner */
.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #12363d;
  color: #f4efe2;
  border-bottom: 2px solid #c9a227;
}

.impersonation-banner__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.impersonation-banner p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.impersonation-banner strong {
  display: inline;
  margin-right: 0.35rem;
}

.impersonation-banner span {
  color: rgba(244, 239, 226, 0.78);
}

.impersonation-banner button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  background: #c9a227;
  color: #12363d;
  cursor: pointer;
  white-space: nowrap;
}

.impersonation-banner button:hover {
  background: #e0bb45;
}

[data-theme="dark"] .impersonation-banner {
  background: #081618;
  color: #f4efe2;
}





