/* ==========================================================================
   DentBridge — main stylesheet
   Built independently for DentBridge LLC. No third-party site-builder
   runtime, framework markers, or generated attributes are used anywhere
   in this project.
   ========================================================================== */

:root {
  --navy-900: #0a2540;
  --navy-800: #0f3657;
  --navy-700: #14456f;
  --teal-600: #0b7f8c;
  --teal-500: #0ea5b7;
  --teal-400: #3fc4d1;
  --teal-050: #eaf8f9;
  --gray-900: #16232b;
  --gray-700: #4b5a61;
  --gray-500: #718086;
  --gray-300: #b7c0c3;
  --gray-150: #e7ecee;
  --gray-050: #f5f8f9;
  --white: #ffffff;
  --danger: #c0392b;

  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 1px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.16);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--teal-500);
  display: inline-block;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head p.lede {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gray-700);
}

.section--tint { background: var(--gray-050); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--teal-600));
  color: var(--white);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--teal-400); }
.section--navy .eyebrow::before { background: var(--teal-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-600); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--gray-300);
}
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }

.btn--on-dark {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--on-dark:hover { background: rgba(255,255,255,0.18); border-color: var(--white); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.is-scrolled {
  border-bottom-color: var(--gray-150);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.navbar__brand img { height: 38px; width: auto; }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.navbar__links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.15s ease;
}
.navbar__links a:hover, .navbar__links a.is-active { color: var(--teal-600); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-150);
}
.navbar__mobile a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-150);
}
.navbar__mobile.is-open { display: flex; }
.navbar__mobile .btn { margin-top: 12px; }

body { padding-top: 76px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-workspace.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,37,64,0.97) 30%, rgba(10,37,64,0.7) 65%, rgba(11,127,140,0.55));
}
.hero__inner {
  position: relative;
  padding: 128px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 24px;
}
.hero .eyebrow { color: var(--teal-400); }
.hero .eyebrow::before { background: var(--teal-400); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  margin-top: 18px;
}
.hero p.lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero__stat {
  background: rgba(255,255,255,0.06);
  padding: 22px 20px;
}
.hero__stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}

/* ==========================================================================
   Product overview cards (home)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-400);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--gray-050);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__media img { height: 82%; width: auto; object-fit: contain; }
.product-card__body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-600);
}
.product-card__body h3 { margin-top: 8px; font-size: 1.12rem; }
.product-card__body p { margin-top: 8px; color: var(--gray-700); font-size: 0.92rem; flex: 1; }
.product-card__body .btn { margin-top: 16px; align-self: flex-start; }

/* ==========================================================================
   Feature grid (Why DentBridge)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  padding: 28px;
}
.feature-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-050);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { margin-top: 8px; color: var(--gray-700); font-size: 0.92rem; }

.principle-banner {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.principle-banner .eyebrow { color: var(--teal-400); }
.principle-banner .eyebrow::before { background: var(--teal-400); }
.principle-banner p.quote {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 640px;
  color: var(--white);
}

/* Process steps */
.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-150);
}
.step__num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: 0.06em;
}
.step h4 { margin-top: 10px; font-size: 1.02rem; }
.step p { margin-top: 6px; color: var(--gray-700); font-size: 0.88rem; }

/* ==========================================================================
   About
   ========================================================================== */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.office-card {
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-150);
  padding: 24px;
}
.office-card h4 { font-size: 1.02rem; }
.office-card span {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.office-card p { margin-top: 10px; color: var(--gray-700); font-size: 0.9rem; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  margin-top: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 2px;
  background: var(--gray-150);
}
.timeline__item { position: relative; padding-top: 44px; }
.timeline__dot {
  position: absolute;
  top: 14px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal-500);
}
.timeline__year { font-weight: 800; color: var(--navy-900); }
.timeline__item p { margin-top: 6px; color: var(--gray-700); font-size: 0.88rem; }

/* ==========================================================================
   Contact / Quote form
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}
.contact-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.contact-info-list { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.contact-info-list h4 { font-size: 0.95rem; }
.contact-info-list p { margin-top: 4px; color: var(--gray-700); font-size: 0.9rem; }
.contact-info-list a.value { font-weight: 700; color: var(--navy-900); font-size: 1.02rem; }
.contact-info-list a.value:hover { color: var(--teal-600); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(14,165,183,0.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 12px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.checkbox-grid input { width: auto; }
.field small.help {
  display: block;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 0.78rem;
}
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: var(--teal-050); color: var(--teal-600); }
.form-status.is-error { display: block; background: #fbeceb; color: var(--danger); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { height: 34px; }
.footer__brand span { font-weight: 800; font-size: 1.1rem; color: var(--white); }
.footer p.blurb { max-width: 320px; font-size: 0.9rem; }
.footer__badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer__badges span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}
.footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.9rem; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.footer__bottom a { color: rgba(255,255,255,0.55); }
.footer__bottom a:hover { color: var(--white); }

/* ==========================================================================
   Products page
   ========================================================================== */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 148px 0 64px;
}
.page-hero .eyebrow { color: var(--teal-400); }
.page-hero .eyebrow::before { background: var(--teal-400); }
.page-hero h1 { color: var(--white); margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-hero p.lede { margin-top: 14px; color: rgba(255,255,255,0.78); max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }

.product-detail {
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-150);
}
.product-detail:nth-child(even) { background: var(--gray-050); }
.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.product-detail__media {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-150);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.product-detail__media img { max-height: 300px; width: auto; }
.product-detail__index {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: 0.08em;
}
.product-detail h2 { margin-top: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.product-detail p.tagline { margin-top: 10px; font-size: 1.02rem; color: var(--gray-700); font-weight: 600;}
.product-detail p.desc { margin-top: 14px; color: var(--gray-700); }
.spec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}
.spec-row div {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
}
.product-detail:nth-child(even) .spec-row div { background: var(--white); }
.spec-row strong { display: block; font-size: 1.1rem; color: var(--navy-900); }
.spec-row span { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--gray-500); }
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--gray-700);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--teal-600);
  font-weight: 800;
}
.product-detail .btn { margin-top: 26px; }
.variant-row { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.variant-row figure { margin: 0; text-align: center; }
.variant-row img { height: 140px; width: auto; margin: 0 auto; }
.variant-row figcaption { margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--gray-700); }

.disclaimer-box {
  margin: 0 auto;
  max-width: 900px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--gray-050);
  border: 1px solid var(--gray-150);
  color: var(--gray-500);
  font-size: 0.82rem;
  text-align: center;
}

.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--teal-600));
  color: var(--white);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); font-size: 1.4rem; }
.cta-banner p { margin-top: 8px; color: rgba(255,255,255,0.82); max-width: 480px; }

/* Simple content pages */
.legal-page { padding: 148px 0 96px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 2rem; }
.legal-page .updated { margin-top: 10px; color: var(--gray-500); font-size: 0.85rem; }
.legal-page h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--gray-700); margin-top: 12px; }
.legal-page ul { padding-left: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .product-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .product-detail__media { order: -1; }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .step-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .navbar__links { display: none; }
  .navbar__actions .btn--ghost { display: none; }
  .navbar__toggle { display: block; }
  .section { padding: 64px 0; }
  .footer__top { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .principle-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__inner { padding: 108px 0 64px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0; top: 0;
}

/* ==========================================================================
   Storefront, cart, and insights
   ========================================================================== */

/* Draft-pricing warning bar.
   Pinned to the bottom of the viewport rather than inserted at the top of the
   document: it is injected by JavaScript, so putting it in the flow would push
   the page down after first paint and cause a visible layout shift. */
.draft-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #fff4d6;
  border-top: 1px solid #f0d69a;
  box-shadow: 0 -2px 12px rgba(10, 37, 64, 0.12);
  color: #6b4e12;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 12px 24px;
  text-align: center;
}
.draft-banner code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}
/* Keep the footer clear of the pinned banner. */
body.has-draft-banner .footer { padding-bottom: 96px; }

/* Cart badge in the navbar */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--gray-700);
}
.cart-link:hover { color: var(--teal-600); }
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal-500);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Shop grid */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-150);
}
.shop-toolbar p { color: var(--gray-700); font-size: 0.9rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  /* The grid is populated by JavaScript from catalog.js. Reserving height
     up front stops the footer jumping when the cards appear (layout shift). */
  min-height: 1500px;
}
@media (max-width: 980px) { .shop-grid { min-height: 2200px; } }
@media (max-width: 640px) { .shop-grid { min-height: 5800px; } }
.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.shop-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal-400); }
.shop-card__media {
  height: 200px;
  flex: 0 0 200px;
  background: var(--gray-050);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.shop-card__media img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.shop-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.shop-card__badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-050);
  color: var(--teal-600);
  margin-bottom: 10px;
}
.shop-card__badge--rx { background: #eef2f6; color: var(--navy-700); }
.shop-card__body h3 { font-size: 1rem; }
.shop-card__parent { margin-top: 6px; font-size: 0.82rem; color: var(--gray-700); }
.shop-card__sku { margin-top: 4px; font-size: 0.74rem; color: var(--gray-500); }
.shop-card__foot { margin-top: auto; padding-top: 16px; }
.shop-card__price { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-900); margin-bottom: 12px; }
.shop-card__quote { display: block; font-size: 0.88rem; font-weight: 700; color: var(--gray-500); margin-bottom: 12px; }

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-150);
}
.cart-row__media {
  width: 72px; height: 72px;
  background: var(--gray-050);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.cart-row__media img { max-height: 100%; width: auto; }
.cart-row__info h4 { font-size: 0.95rem; }
.cart-row__info p { margin-top: 4px; font-size: 0.78rem; color: var(--gray-500); }
.cart-row__qty {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 4px 10px;
}
.cart-row__qty button {
  border: none; background: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--navy-900); padding: 2px 4px;
}
.cart-row__qty button:hover { color: var(--teal-600); }
.cart-row__price { font-weight: 800; color: var(--navy-900); min-width: 90px; text-align: right; }
.cart-row__remove {
  border: none; background: none; cursor: pointer;
  font-size: 1.3rem; color: var(--gray-300); line-height: 1;
}
.cart-row__remove:hover { color: var(--danger); }
.cart-empty { padding: 56px 0; text-align: center; }
.cart-empty p { margin: 10px 0 22px; color: var(--gray-700); }
.cart-summary {
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.cart-summary__line {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-size: 0.9rem; color: var(--gray-700);
}
.cart-summary__total {
  display: flex; justify-content: space-between;
  padding: 16px 0 20px; margin-top: 8px;
  border-top: 1px solid var(--gray-150);
  font-weight: 800; font-size: 1.15rem; color: var(--navy-900);
}
.cart-note { margin-top: 16px; font-size: 0.78rem; color: var(--gray-500); line-height: 1.6; }

/* Insights / news */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.insight-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal-400); transform: translateY(-3px); }
.insight-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.insight-card__topic { color: var(--teal-600); }
.insight-card__date { color: var(--gray-500); }
.insight-card h3 { margin-top: 12px; font-size: 1.05rem; line-height: 1.35; }
.insight-card p { margin-top: 10px; font-size: 0.9rem; color: var(--gray-700); flex: 1; }
.insight-card__source {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--gray-150);
  font-size: 0.82rem; font-weight: 700; color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.insight-card__source:hover { color: var(--teal-600); }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--teal-500); color: var(--teal-600); }
.filter-chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* Status pages */
.status-page { padding: 160px 0 120px; text-align: center; }
.status-page .container { max-width: 620px; }
.status-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  background: var(--teal-050); color: var(--teal-600);
}
.status-page h1 { font-size: 1.9rem; }
.status-page p { margin-top: 14px; color: var(--gray-700); }
.status-page .btn { margin-top: 28px; }

@media (max-width: 980px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 56px 1fr auto; row-gap: 10px; }
  .cart-row__media { width: 56px; height: 56px; }
  .cart-row__price { grid-column: 2 / 3; text-align: left; }
  .cart-row__remove { grid-column: 3 / 4; }
}
