/* ==========================================================================
   SimEd Group — Homepage Stylesheet
   --------------------------------------------------------------------------
   NOTE: The page is FULL WIDTH — no max-width wrapper. Horizontal breathing
   room comes from the --pad-x variable, which scales with the viewport.

   Layout map (top to bottom):
     .utility-bar   dark navy strip: trust line, phone, sign-in
     .site-header   logo, category search bar, account / cart
     .main-nav      category navigation row
     .hero          gradient banner: headline, search, featured product card
     .categories    6 category cards (auto-fills wider screens)
     .howit         "How SimEd Group works" 3-step explainer
     .featured      product grid ("Top Products")
     .benefits      icon strip: shipping / prices / support / payments
     .site-footer   light footer: brand, contact & social + link columns
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --navy:        #0e2a52;   /* primary brand midnight navy */
  --navy-deep:   #081c3a;   /* hero gradient start / darkest panels */
  --teal:        #0891b2;   /* cyan accent */
  --green:       #22c55e;   /* action / success accent */
  --ink:         #16202e;   /* main text */
  --ink-soft:    #2b3744;   /* nav text */
  --ink-mute:    #48535f;   /* secondary text */
  --gray:        #6b7785;   /* descriptions */
  --gray-light:  #93a2b2;   /* placeholders, SKU labels */
  --line:        #e4e9ef;   /* hairline borders */
  --bg-soft:     #f5f8fb;   /* light panel background */

  --font-head: 'Archivo', sans-serif;          /* headlines & wordmark */
  --font-body: 'IBM Plex Sans', sans-serif;    /* body & UI */
  --font-mono: 'IBM Plex Mono', monospace;     /* SKUs & technical labels */

  /* Full-width page: gutters scale from 20px on phones up to 64px on wide
     desktops instead of capping the content at a fixed max-width. */
  --pad-x: clamp(20px, 4vw, 64px);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  width: 100%;               /* full-width layout — no centered max-width */
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; }
img { max-width: 100%; display: block; }

/* =========================================================================
   1. UTILITY BAR — thin navy strip above the header
   ========================================================================= */
.utility-bar {
  background: var(--navy);
  color: #cdd6e6;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  min-height: 38px;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-bar__trust {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-bar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;      /* push the links to the right side of the bar */
}

.utility-bar__link {
  color: #cdd6e6;
  font-weight: 500;
}
.utility-bar__link:hover { color: #fff; }

.utility-bar__sep { color: #7e8cab; }

.utility-bar__signin {
  color: #fff;
  font-weight: 500;
}

/* =========================================================================
   2. SITE HEADER — logo, search, account & cart
   ========================================================================= */
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

/* --- logo: gradient ring with a white core and teal/green cross --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* image logo (transparent PNG lockup: mark + wordmark) */
.logo__img {
  height: 46px;
  width: auto;
  display: block;
}

/* logo mark: interlocked male/female symbols (inline SVG, brand colors) */
.logo__mark {
  width: 40px;
  height: 38px;
  flex: none;
}

.logo__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.4px;
  line-height: 1;
}
.logo__word .sim   { color: var(--navy);  }
.logo__word .ed    { color: var(--teal);  }
.logo__word .group { color: var(--green); }

/* --- header search bar: category dropdown + input + submit --- */
.search-bar {
  flex: 1;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  height: 46px;
  max-width: 640px;   /* the bar itself stays a usable width; page is full width */
}

.search-bar__category {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-mute);
  white-space: nowrap;
}
.search-bar__category .caret { color: var(--gray-light); }

.search-bar__input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.search-bar__input::placeholder { color: var(--gray-light); }

.search-bar__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
}

/* --- help / quote / cart strip, pinned to the right --- */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

/* header CTAs: ghost "Contact Us" + solid teal "Request a Quote" */
.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ha-btn__icon { width: 18px; height: 18px; flex: none; }
.ha-btn--ghost {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
}
.ha-btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.ha-btn--primary {
  color: #fff;
  background: var(--teal);
  border: 1.5px solid var(--teal);
}
.ha-btn--primary:hover { background: var(--navy); border-color: var(--navy); }

.ha-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ha-icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex: none;
}

/* two-line label: small grey lead-in over a bold teal action */
.ha-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 12px;
  color: var(--ink-mute);
}
.ha-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}
.ha-item:hover .ha-text strong,
.ha-item:hover .ha-label { text-decoration: underline; }

.ha-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

/* cart icon wraps the live count badge (kept updated by js/cart.js) */
.ha-cart {
  position: relative;
  display: inline-flex;
}
.ha-cart .ha-icon {
  width: 26px;
  height: 26px;
  color: var(--teal);
}
.ha-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #e02b2b;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ha-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal);
}

/* =========================================================================
   3. MAIN NAV — category links row
   ========================================================================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 var(--pad-x);
  height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  position: relative;        /* dropdowns anchor below this row */
  z-index: 40;               /* menus float above hero/page content */
}

.main-nav a:hover { color: var(--teal); }
.main-nav .is-active { font-weight: 600; }

/* --- mobile hamburger toggle (injected by js/cart.js; hidden on desktop) --- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: block; }

/* --- category dropdowns --- */
.nav-drop {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-drop__top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.nav-caret {
  font-size: 22px;
  line-height: 1;
  color: var(--ink-mute);
  transition: transform .15s ease;
}
.nav-drop:hover .nav-caret { transform: rotate(180deg); color: var(--teal); }
.nav-drop:hover .nav-drop__top { color: var(--teal); }

.nav-drop__menu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 224px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 29, 68, .14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop__menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-drop__menu a:hover { background: var(--bg-soft); color: var(--teal); }

.nav-drop__viewall {
  margin-top: 6px;
  padding-top: 11px !important;
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
  color: var(--teal) !important;
  font-weight: 600 !important;
}
.nav-drop__viewall:hover { background: none !important; text-decoration: underline; }

/* narrow screens: collapse the category bar into a hamburger menu */
@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; }

  /* nav is hidden until the hamburger opens it, then stacks vertically */
  .main-nav {
    display: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
    padding: 4px var(--pad-x) 12px;
  }
  body.nav-open .main-nav { display: flex; }

  .main-nav > a,
  .main-nav .nav-drop {
    display: block;
    width: 100%;
    height: auto;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-drop { border-bottom: 1px solid var(--line); }
  .main-nav .nav-drop__top { height: auto; }
  .main-nav .nav-caret { display: none; }
  .nav-drop__menu { display: none !important; }   /* no hover sub-menus on mobile */
}

/* =========================================================================
   4. HERO — gradient banner with search + featured product card
   ========================================================================= */
.hero {
  margin: 28px var(--pad-x) 0;   /* full-bleed feel; gutters only */
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--teal) 100%);
  position: relative;
}

/* soft green glow in the upper-right of the banner */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 28%, rgba(34, 197, 94, .30), transparent 42%);
}

.hero__inner {
  position: relative;      /* sits above the ::before glow */
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 56px;
}

.hero__copy { flex: 1; }

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);   /* scales with the full-width layout */
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: #fff;
}

.hero__lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: #cdd9e6;
  margin-top: 20px;
  max-width: 500px;
}

/* hero search — large white pill with green submit */
.hero__search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 56px;
  max-width: 560px;
  margin-top: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.hero__search-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.hero__search-input::placeholder { color: var(--gray-light); }

.hero__search-submit {
  padding: 0 28px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* quick-link chips beneath the hero search */
.hero__chips {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, .10);
  color: #dce6f0;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.chip:hover { background: rgba(255, 255, 255, .18); }

/* featured product card on the right side of the hero */
.hero__card-col {
  flex: none;
  width: 380px;
}

/* hero mini-slider: arrows + dots flip between featured product cards */
.hero-slider { position: relative; }

.hero-slider .hero-card { display: none; }
.hero-slider .hero-card.is-active {
  display: block;
  animation: heroFade .3s ease;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.hero-slider__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;      /* optically centers the ‹ › glyphs */
}
.hero-slider__btn:hover { color: var(--teal); border-color: var(--teal); }
.hero-slider__btn--prev { left: -16px; }
.hero-slider__btn--next { right: -16px; }

.hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero-slider__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  padding: 0;
}
.hero-slider__dots button.is-active { background: #fff; }

.hero-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.hero-card__meta { padding: 14px 6px 6px; }

.hero-card__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-top: 5px;
}

.hero-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hero-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

/* generic image placeholder — swap for real product photography.
   The diagonal-stripe background marks it visually as a placeholder. */
.ph {
  background-color: #eef3f7;
  background-image: repeating-linear-gradient(45deg, #e6edf3 0, #e6edf3 12px, #eef3f7 12px, #eef3f7 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph--square { aspect-ratio: 1 / 1; border-radius: 8px; }
.ph--card   { aspect-ratio: 5 / 4; }

.ph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* mono "SKU" style label used on cards */
.sku {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* hero card + product card SKU lines use Montserrat */
.hero-card .sku,
.product-card .sku {
  font-family: 'Montserrat', var(--font-mono);
  font-weight: 600;
}

/* small pill badges (Best seller / New / etc.) */
.badge {
  background: #e7f5fa;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
}

/* =========================================================================
   5. TRUST ROW — "Trusted by" strip under the hero
   ========================================================================= */
/* =========================================================================
   6. SECTION HEADINGS (shared by Categories & Featured)
   ========================================================================= */
.section { padding: 24px var(--pad-x) 8px; }

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.section__sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 22px;
}

.section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

/* =========================================================================
   7. BROWSE BY CATEGORY — six boxes, 3 per row, full width
   ========================================================================= */
.catmap__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;      /* gap below the "Browse by category" heading */
}

/* white cards with a teal top accent; icon badge + lift on hover */
.catmap__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 150px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  box-shadow: 0 1px 3px rgba(15, 29, 68, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* faint corner wash that intensifies on hover */
.catmap__item::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 145, 178, .10), transparent 70%);
  opacity: .7;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.catmap__item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.catmap__item span:not(.catmap__count):not(.catmap__go) {
  display: block;
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.45;
}

/* bottom row: count pill + "Explore →" cue */
.catmap__foot {
  margin-top: auto;        /* pinned to the bottom of the box */
  padding-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.catmap__count {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  flex: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.catmap__go {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.catmap__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 29, 68, .12);
  border-color: var(--teal);
}
.catmap__item:hover::after { opacity: 1; transform: scale(1.15); }
.catmap__item:hover .catmap__count { background: var(--teal); border-color: var(--teal); color: #fff; }
.catmap__item:hover .catmap__go { opacity: 1; transform: translateX(0); }

@media (max-width: 900px) {
  .catmap__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catmap__list { grid-template-columns: 1fr; }
  .catmap__item { min-height: 0; }
}

/* =========================================================================
   8. HOW IT WORKS — heading + intro, 3 step cards, CTA pill
   ========================================================================= */
/* light band so the section stands out from the white page */
.howit {
  background: linear-gradient(180deg, #f2f8fb 0%, #eef4f9 100%);
  padding: 54px var(--pad-x) 48px;
  margin-top: 40px;
}

.howit__head { margin-bottom: 34px; }

.howit__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.howit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.howit-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 30px 28px 34px;
}

.howit-card svg {
  display: block;      /* pill starts on its own line below the icon */
  width: 46px;
  height: 46px;
  color: var(--teal);
}

.step-pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 12px;
}

.howit-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.howit-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray);
  margin-top: 10px;
}

/* navy pill CTA with an arrow chip, like the reference */
.howit__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  background: var(--navy);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  transition: background .15s;
}
.howit__cta:hover { background: var(--navy-deep); }

.howit__cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* buttons — primary (green) & ghost (outlined); used site-wide */
.btn {
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  display: inline-block;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #1ca24e; }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .55); }

/* =========================================================================
   9. FEATURED PRODUCT GRID — "Top Products"
   ========================================================================= */
/* Homepage: heading, tabs and grid span the full page width */
.section--featured { padding-bottom: 40px; }

/* category tab pills under the heading */
.ptabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 24px;
}
.ptabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.ptabs button:hover { border-color: var(--teal); color: var(--teal); }
.ptabs button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* 5 per row on desktop, stepping down on smaller screens */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1500px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1150px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 850px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }


/* bordered card; button pinned to the bottom so all cards line up */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 26px rgba(22, 38, 90, .12);
}

.product-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

/* variant for cards with a real photo (vs. striped placeholder) */
.product-card__photo--img {
  background: var(--bg-soft);
  overflow: hidden;
  display: block;
}
.product-card__photo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;   /* blends white photo backgrounds into the tile */
}

/* white badge pinned to the photo corner */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.product-card__meta {
  padding: 14px 4px 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 6px;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;       /* pushes price + button to the card bottom */
  padding-top: 12px;
}

.product-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.product-card__actions { display: flex; gap: 8px; }

.btn-quote {
  background: #e7f5fa;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.btn-quote:hover { background: #d5edf6; }

.btn-add {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}
.btn-add:hover { background: var(--navy-deep); }

/* full-width "Add to Cart" at the bottom of product cards */
.btn-add--full {
  width: 100%;
  margin-top: 12px;
  padding: 10px 0;
  font-size: 13px;
}

/* =========================================================================
   10. FOOTER — benefits strip + light multi-column footer
   ========================================================================= */
/* --- main footer: brand/contact/social + 4 link columns, light theme --- */
.site-footer {
  background: #fff;
  color: var(--ink);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 46px var(--pad-x) 58px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}

.footer-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-mute);
}
.footer-contact a { color: var(--ink-mute); }
.footer-contact a:hover { color: var(--teal); }

.footer-social-title {
  font-weight: 700;
  font-size: 14px;
  margin-top: 28px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #9aa5b1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col__title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.footer-col a { color: var(--ink-mute); }
.footer-col a:hover { color: var(--teal); }

@media (max-width: 1150px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

/* =========================================================================
   11. HERO FEATURED PHOTO — real product image in the hero card
   ========================================================================= */
.hero-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 14px;
  box-sizing: border-box;
  display: block;
}

/* =========================================================================
   12. CART PAGE  (cart.html — items rendered by js/cart.js)
   ========================================================================= */
.cart-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 48px;
}

/* ---------- static content pages (about, legal, policies) ---------- */

/* hero band — brand gradient with the page title */
.page-hero {
  margin: 28px var(--pad-x) 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--teal) 100%);
  padding: 74px 48px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 84% 26%, rgba(34, 197, 94, .28), transparent 44%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 1100px; }
.page-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.8px;
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.page-hero__sub {
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 640px;
}
@media (max-width: 600px) { .page-hero { padding: 48px 24px; } }

.page-prose { max-width: 820px; }
.page-prose .updated {
  font-size: 12.5px;
  color: var(--gray);
  margin: 6px 0 26px;
}
.page-prose h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 30px 0 10px;
}
.page-prose p,
.page-prose li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}
.page-prose p { margin-bottom: 14px; }
.page-prose ul { margin: 0 0 16px; padding-left: 20px; }
.page-prose li { margin-bottom: 6px; }
.page-prose strong { color: var(--ink); font-weight: 600; }
.page-prose a { color: var(--teal); }
.page-prose a:hover { text-decoration: underline; }

/* value tiles reused on the About / Our Process pages */
.page-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 8px;
  max-width: 980px;
}
.page-tile {
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 29, 68, .05);
}
.page-tile .step-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
  background: #e7f5fa;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.page-tile h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.page-tile p { font-size: 13px; line-height: 1.6; color: var(--gray); margin: 0; }
@media (max-width: 760px) {
  .page-tiles { grid-template-columns: 1fr; }
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

/* ---- item rows ---- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex: none;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.cart-item__name:hover { color: var(--teal); }
.cart-item__sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-light);
  text-transform: uppercase;
  margin-top: 4px;
}
.cart-item__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  width: 90px;
  text-align: right;
}
.cart-item__remove {
  color: var(--gray-light);
  font-size: 14px;
  padding: 6px;
}
.cart-item__remove:hover { color: #c0392b; }

/* qty stepper reused from the product page, slightly smaller here */
.cart-item .qty { height: 38px; }
.cart-item .qty button { width: 30px; }
.cart-item .qty input { width: 36px; }

.cart-continue {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
}

/* ---- summary / order form ---- */
.cart-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  padding: 24px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-summary__row strong {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
}
.cart-summary__note {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.5;
  margin-top: 12px;
}

/* "or request a quote" divider between the card button and the form */
.cart-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.cart-or::before,
.cart-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- contact page: info cards + message form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 26px;
  max-width: 1100px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-soft);
}
.contact-card + .contact-card { margin-top: 14px; }
.contact-card h3 { font-size: 14.5px; font-weight: 600; }
.contact-card a { display: block; color: var(--teal); font-weight: 600; font-size: 15px; margin-top: 6px; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { font-size: 13px; color: var(--gray); margin-top: 6px; line-height: 1.5; }

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.order-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.order-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-form .optional { color: var(--gray-light); font-weight: 400; }
.order-form input,
.order-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: 400 13.5px var(--font-body);
  color: var(--ink);
  outline: none;
  background: #fff;
  resize: vertical;
}
.order-form input:focus,
.order-form textarea:focus { border-color: var(--teal); }

/* ---- empty & success states ---- */
.cart-empty,
.cart-success {
  text-align: center;
  padding: 70px 20px;
}
.cart-empty p { font-size: 15px; color: var(--gray); margin-bottom: 20px; }
.cart-success__check {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.cart-success h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.cart-success p { font-size: 14.5px; color: var(--gray); max-width: 460px; margin: 0 auto 22px; line-height: 1.6; }

/* "Added ✓" feedback on add-to-cart buttons */
.js-add-to-cart.is-added { background: var(--green) !important; color: #fff !important; }

/* =========================================================================
   SHOP FILTERS — left sidebar on the All Products page
   ========================================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.filters__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.filters__clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}
.filters__clear:hover { text-decoration: underline; }

.filter-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-group h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.filter-search input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: 400 13px var(--font-body);
  outline: none;
}
.filter-search input:focus { border-color: var(--teal); }

.filter-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 4px 0;
  cursor: pointer;
}
.filter-opt:hover { color: var(--ink); }
.filter-opt input { accent-color: var(--teal); width: 15px; height: 15px; flex: none; }
.filter-opt .count { margin-left: auto; color: var(--gray-light); font-size: 11.5px; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--gray);
}

.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-size: 14.5px;
}

/* grid is narrower next to the sidebar — cap at 4 per row there,
   and let it use the full column width (homepage cap doesn't apply) */
.shop-layout .product-grid { grid-template-columns: repeat(4, 1fr); max-width: none; }
@media (max-width: 1500px) { .shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1150px) { .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 850px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .shop-layout .product-grid { grid-template-columns: 1fr; } }

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

/* =========================================================================
   13. RESPONSIVE — the mockup was desktop-only; these keep it usable
   on tablets and phones.
   ========================================================================= */
@media (max-width: 1100px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__card-col { width: 100%; max-width: 380px; }
  .howit__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 16px; padding: 14px var(--pad-x); }
  .search-bar { order: 3; flex-basis: 100%; max-width: none; }
  .utility-bar { display: none; }   /* only holds the phone number */
  .hero__inner { padding: 36px 24px; }
  .hero__title { font-size: clamp(30px, 7vw, 44px); }
}

/* very narrow: header strip becomes icons-only so nothing overflows */
@media (max-width: 560px) {
  .ha-text, .ha-label, .ha-btn__label { display: none; }
  .header-actions { gap: 12px; }
  .ha-btn { width: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__inner { padding: 26px 18px; }
  .hero__title { font-size: 28px; letter-spacing: -0.6px; }
  .hero__search { height: 50px; }
  .hero__search-submit { padding: 0 16px; }
  .section__head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .howit__title { font-size: 24px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item__price { width: auto; }
  .contact-panel { padding: 18px; }
}


/* ===== single-product styles (ported from product.css) ===== */
/* ==========================================================================
   SimEd Group — Single Product Page styles
   --------------------------------------------------------------------------
   Loaded IN ADDITION to styles.css (which supplies the design tokens,
   header, nav, footer, buttons and product cards).

   Classic e-commerce single-product layout:

     .breadcrumb        "Home / Category / Product" trail
     .product-layout    two even columns:
                          left  → .gallery  (main photo + thumbnails)
                          right → .summary  (title, options, quote CTA, meta)
     .product-tabs      Description | Features | Specifications | Sample Scans
     .related           "Related products" card row (reuses .product-grid)
   ========================================================================== */

/* Montserrat — used for the category label above the product title */
/* Hide the browser scrollbar on product pages (scrolling still works via
   wheel / trackpad / keyboard — only the visible bar is removed). */
/* ---------- breadcrumb trail ---------- */
.breadcrumb {
  padding: 18px var(--pad-x) 0;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 8px; color: #c6d0da; }

/* =========================================================================
   1. PRODUCT LAYOUT — gallery left, summary right (50 / 50)
   ========================================================================= */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 28px var(--pad-x) 0;
  align-items: start;
  max-width: 1520px;      /* keeps the two columns readable on ultrawide */
  margin: 0 auto;
}

/* ---------- gallery: main image + thumbnail strip ---------- */
.gallery { position: sticky; top: 20px; }   /* stays put while summary scrolls */

.gallery__main {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.gallery__main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 24px;
}

/* "New" flag pinned on the photo, same style as homepage cards */
.gallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery__thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.gallery__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.gallery__thumb:hover     { border-color: var(--teal); }
.gallery__thumb.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

/* =========================================================================
   2. SUMMARY — title, options, quote CTA, meta
   ========================================================================= */
.summary__category {
  font-family: 'Montserrat', var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
}

.summary__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.6px;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 10px;
}

/* SKU + modality chips on one row under the title */
.summary__meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary__sku {
  font-family: 'Montserrat', var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modality-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.modality-chips span {
  background: #e7f5fa;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* price line — this product is quote-based */
.summary__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-top: 18px;
}
.summary__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.summary__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  margin-top: 16px;
}

/* ---------- option selectors (appearance / model) ---------- */
.option-group { margin-top: 20px; }

.option-group__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.option-group__label span { color: var(--gray); font-weight: 400; }

.option-group__choices { display: flex; gap: 10px; flex-wrap: wrap; }

.option-pill {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  background: #fff;
  cursor: pointer;
}
.option-pill:hover     { border-color: var(--teal); }
.option-pill.is-active { border-color: var(--navy); color: var(--navy); font-weight: 600; background: var(--bg-soft); }

/* ---------- action row: qty + buttons ---------- */
.summary__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 47px;
}
.qty button {
  width: 38px;
  height: 100%;
  font-size: 16px;
  color: var(--ink-mute);
  background: var(--bg-soft);
}
.qty button:hover { color: var(--navy); }
.qty input {
  width: 44px;
  border: 0;
  outline: none;
  text-align: center;
  font: 600 14px var(--font-body);
  color: var(--ink);
}

/* customization banner */
.custom-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--navy);
  background: #eef2fb;
  border: 1px solid #dbe3f5;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 500;
}

/* ---------- meta list (SKU / category / warranty) at panel bottom ---------- */
.summary__metalist {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.summary__metalist strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   3. TABS — Description | Features | Specifications | Sample Scans
   ========================================================================= */
.product-tabs {
  max-width: 1520px;
  margin: 48px auto 0;
  padding: 0 var(--pad-x);
}

.tab-bar {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;            /* Firefox — hide the tab scroll control */
  -ms-overflow-style: none;         /* legacy Edge/IE */
}
.tab-bar::-webkit-scrollbar { display: none; }   /* Chrome, Safari, new Edge */

.tab-bar button {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray);
  padding: 14px 2px;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;      /* underline sits on top of the bar's border */
}
.tab-bar button:hover { color: var(--ink); }
.tab-bar button.is-active { color: var(--navy); border-bottom-color: var(--green); }

.tab-panel { display: none; padding: 30px 0 8px; }
.tab-panel.is-active { display: block; }

.tab-panel h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 26px 0 12px;
}
.tab-panel h3:first-child { margin-top: 0; }

.tab-panel p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 1040px;
  margin-bottom: 12px;
}

/* two-column feature checklist */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px 32px;
  max-width: 1100px;
  list-style: none;
  padding: 0;
}
.feature-list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }

/* anatomy groups (Head / Torso / Limbs) */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1100px;
}
.anatomy-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.anatomy-card__title { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.anatomy-card p { font-size: 13px; line-height: 1.6; color: var(--gray); margin: 0; }

/* ---------- specification tables ---------- */
.spec-tables { display: flex; flex-direction: column; gap: 28px; }

.spec-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  font-size: 13.5px;
}
.spec-table caption {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding-bottom: 10px;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  color: var(--ink-mute);
}
.spec-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
}
.spec-table td:first-child { font-weight: 500; color: var(--ink); }

/* ---------- sample scan gallery ---------- */
.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1100px;
}
.scan-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin: 0;
}
.scan-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.scan-card figcaption {
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 10px 14px;
}

/* =========================================================================
   4. RELATED PRODUCTS — reuses .product-grid / .product-card from styles.css
   ========================================================================= */
.related {
  max-width: 1520px;
  margin: 48px auto 0;
  padding: 0 var(--pad-x);
}

.related__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .gallery__thumbs { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 700px) {
  .product-layout { gap: 26px; padding-top: 18px; }
  .tab-bar { gap: 24px; }
  /* wide spec tables scroll sideways instead of breaking the page */
  .spec-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery__main img { padding: 14px; }
  .summary__title { font-size: 23px; }
  /* qty + buttons stack full-width for easy tapping */
  .summary__actions { flex-direction: column; align-items: stretch; }
  .summary__actions .qty input { flex: 1; }
  /* single-column lists/grids so 340px minimums can't overflow the phone */
  .feature-list,
  .anatomy-grid,
  .scan-grid { grid-template-columns: 1fr; }
}


/* =========================================================================
   SimEd × Astra / WooCommerce bridge — maps the brand look onto WP markup.
   (Iterate these against screenshots from the live install.)
   ========================================================================= */
body { font-family: var(--font-body); color: var(--ink); }
h1, h2, h3, h4,
.entry-title, .woocommerce-loop-product__title,
.woocommerce div.product .product_title { font-family: var(--font-head); color: var(--ink); }

.ast-container, .ast-container--narrow { max-width: 1400px; }

/* buttons -> brand primary */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wp-block-button__link, .ast-button {
  background: var(--teal); color: #fff; border: 1.5px solid var(--teal);
  border-radius: 8px; font-weight: 600; padding: 12px 22px; transition: .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .wp-block-button__link:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* shop grid cards -> like .product-card */
.woocommerce ul.products li.product {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px; box-shadow: 0 1px 3px rgba(15,29,68,.05);
  transition: transform .15s, box-shadow .15s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,29,68,.10);
}
.woocommerce ul.products li.product a img { border-radius: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-head); font-size: 15px; color: var(--ink); font-weight: 600;
}
.woocommerce ul.products li.product .price {
  color: var(--navy); font-weight: 700; font-family: var(--font-head);
}

/* single product */
.woocommerce div.product .product_title {
  font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.6px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 24px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--navy); }
.woocommerce .sku_wrapper, .woocommerce .sku {
  font-family: 'Montserrat', var(--font-mono); font-weight: 600;
}

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--teal);
}
