/* ================================================================
   MH Single Product Template (mobile-first, CWV-safe)
   Enqueue only on is_product(). Uses global.css tokens if loaded.
   ================================================================ */

:root {
  --mh-navy: #172c4b;
  --mh-navy-dark: #0f1e34;
  --mh-green: #48a625;
  --mh-green-light: #e8f5e0;
  --mh-green-dark: #3a7f1c;
  --mh-gold: #dcb822;
  --mh-gold-soft: #fdf6e4;
  --mh-cream-bar: #fdfaf3;
  --mh-white: #fff;
  --mh-off-white: #f8f9fa;
  --mh-light: #f1f4f8;
  --mh-border: #e2e8f0;
  --mh-muted: #6b7280;
  --mh-font-h: "Poppins", sans-serif;
  --mh-font-b: "Inter", sans-serif;
  --mh-max-w: 1200px;
  --mh-gutter: clamp(16px, 4vw, 24px);
  --mh-r: 12px;
  --mh-r-lg: 20px;
  --mh-shadow: 0 4px 24px rgba(23, 44, 75, 0.08);
  --mh-ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-product-page .woocommerce-notices-wrapper {
  max-width: var(--mh-max-w);
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}

body.mh-product-page .woocommerce div.product.mh-single-product,
body.mh-product-page .product.mh-single-product {
  overflow: visible !important;
}

body.mh-product-page .mh-single-product .mh-container.mh-hero__grid,
body.mh-product-page .mh-single-product .mh-hero {
  overflow: visible !important;
}

body.mh-product-page #wrapper,
body.mh-product-page .site-content {
  overflow: visible !important;
}

/* Layout container (standalone — does not require global.css) */
.mh-single-product .mh-container {
  max-width: var(--mh-max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}

.mh-single-product {
  padding-block: clamp(24px, 5vw, 48px);
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
  background: #fff;
}

@media (max-width: 899px) {
  body.mh-product-page .mh-single-product {
    padding-top: clamp(28px, 7vw, 44px);
    padding-bottom: clamp(24px, 5vw, 40px);
  }

  body.admin-bar.mh-product-page .mh-single-product {
    padding-top: clamp(28px, 7vw, 44px);
  }

  .mh-breadcrumb {
    margin-top: 0;
    margin-bottom: 16px;
  }
}

body.mh-product-page .mh-single-product .mh-hero {
  background: #fff;
}

.mh-hero {
  max-width: 100%;
}

/* Hero copy column: keep overflow visible so sticky works in all browsers */
.mh-hero__content {
  overflow-x: visible;
  overflow: visible;
}

.mh-hero__grid,
.mh-hero__content,
.mh-hero__media {
  min-width: 0;
  max-width: 100%;
}

/* Skip expensive entrance animations on product (LCP / main-thread) */
body.mh-product-page .mh-animate .mh-animate-item {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.mh-product-page {
  --mh-font-b: "Poppins", system-ui, sans-serif;
}

body.mh-product-page .mh-single-product,
body.mh-product-page .mh-single-product button,
body.mh-product-page .mh-single-product input,
body.mh-product-page .mh-single-product select {
  font-family: var(--mh-font-h), system-ui, sans-serif;
}

/* Override theme white/ghost headings on product pages */
body.mh-product-page .mh-single-product,
body.mh-product-page .mh-single-product .mh-hero__title,
body.mh-product-page .mh-single-product h1,
body.mh-product-page .mh-single-product h2,
body.mh-product-page .mh-single-product p,
body.mh-product-page .mh-single-product button {
  color: var(--mh-navy);
}

body.mh-product-page .mh-single-product .mh-hero__excerpt,
body.mh-product-page .mh-single-product .mh-hero__faq-body,
body.mh-product-page .mh-single-product .mh-rating-bar__avg-label {
  color: var(--mh-muted);
}

body.mh-product-page .mh-single-product .mh-btn--navy {
  color: var(--mh-white);
}

.mh-breadcrumb {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.mh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mh-font-b);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--mh-muted);
}

.mh-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.mh-breadcrumb__item + .mh-breadcrumb__item::before {
  content: "›";
  margin: 0 8px;
  color: #9ca3af;
  speak: never;
}

.mh-breadcrumb__link {
  color: var(--mh-navy);
  text-decoration: none;
}

.mh-breadcrumb__link:hover {
  color: var(--mh-green);
  text-decoration: underline;
}

.mh-breadcrumb__current {
  color: var(--mh-muted);
  font-weight: 500;
}

/* Out of stock — full width above hero grid */
.mh-hero__oos--banner {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  margin: 0 0 8px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-family: var(--mh-font-h);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.mh-hero__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 900px) {
  .mh-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 48px);
    overflow: visible !important;
  }

  .mh-hero__media {
    position: -webkit-sticky;
    position: sticky;
    top: max(1rem, env(safe-area-inset-top, 0px));
    align-self: start;
    z-index: 4;
    height: fit-content;
    max-height: none;
    margin-top: 0;
    padding-top: 0;
  }

  body.admin-bar.mh-product-page .mh-single-product .mh-hero__media {
    top: calc(1rem + var(--wp-admin--admin-bar--height, 32px));
  }
}

/* ── Media column ─────────────────────────────────────────────── */
.mh-hero__media-frame {
  position: relative;
  background: linear-gradient(145deg, #eef2f7 0%, #f8fafc 100%);
  border-radius: var(--mh-r-lg);
  padding: clamp(16px, 3vw, 28px);
  min-height: 240px;
}

.mh-hero__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: min(560px, 72vh);
}

.mh-hero__img {
  width: auto;
  max-height: min(520px, 62vw);
  object-fit: contain;
  margin-inline: auto;
}

.mh-hero__media-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.mh-hero__media-badge-img {
  max-width: 110px;
  height: auto;
  background: var(--mh-white);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--mh-shadow);
}

.mh-hero__ship-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  max-width: clamp(92px, 28vw, 118px);
  height: auto;
  object-fit: contain;
}

/* ── Rating pill bar (compact, theme navy) ───────────────────── */
.mh-rating-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 0;
  margin: 10px 0 14px;
  padding: 6px 10px;
  background: var(--mh-off-white);
  border-radius: 999px;
  border: 1px solid var(--mh-border);
  box-shadow: none;
  overflow: visible;
}

.mh-rating-bar__cluster {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  flex-shrink: 0;
  min-width: 0;
}

.mh-rating-bar__cluster .mh-rating-bar__seg {
  flex: 0 0 auto;
}

.mh-rating-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 8px;
  position: relative;
}

.mh-rating-bar__seg--count {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.mh-rating-bar__seg:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: var(--mh-border);
}

.mh-rating-bar__seg--shield {
  flex: 0 0 auto;
  padding-left: 4px;
  padding-right: 6px;
}

.mh-rating-bar__shield {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-navy);
  opacity: 0.92;
}

.mh-rating-bar__shield svg {
  display: block;
  width: 28px;
  height: 28px;
}

.mh-rating-bar__stars-row {
  display: inline-flex;
  gap: 2px;
  color: #e3a008;
}

.mh-rating-bar__star {
  flex-shrink: 0;
}

.mh-rating-bar__avg-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 44, 75, 0.2);
  background: var(--mh-white);
  white-space: nowrap;
}

.mh-rating-bar__avg-num {
  font-family: var(--mh-font-h);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mh-navy);
}

.mh-rating-bar__avg-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.mh-rating-bar__count-txt {
  font-family: var(--mh-font-h);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mh-navy);
  text-align: center;
  line-height: 1.25;
}

.mh-rating-bar__people {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mh-light);
  color: var(--mh-navy);
  border: 1px solid var(--mh-border);
}

@media (max-width: 720px) {
  .mh-rating-bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 6px 6px 8px;
    border-radius: 14px;
    gap: 0;
  }

  .mh-rating-bar::-webkit-scrollbar {
    display: none;
  }

  .mh-rating-bar__cluster {
    padding-right: 2px;
    margin-right: 2px;
    border-right: 1px solid var(--mh-border);
  }

  .mh-rating-bar__cluster .mh-rating-bar__seg {
    padding: 0 4px;
  }

  .mh-rating-bar__cluster .mh-rating-bar__seg::after {
    display: none;
  }

  .mh-rating-bar__shield svg {
    width: 26px;
    height: 26px;
  }

  .mh-rating-bar__stars-row {
    transform: scale(0.88);
    transform-origin: center center;
  }

  .mh-rating-bar__avg-pill {
    padding: 2px 7px;
    gap: 4px;
  }

  .mh-rating-bar__avg-num {
    font-size: 0.8125rem;
  }

  .mh-rating-bar__avg-label {
    display: none;
  }

  .mh-rating-bar__seg--count {
    padding: 0 4px 0 6px;
    justify-content: flex-start;
  }

  .mh-rating-bar__count-txt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .mh-rating-bar__seg--people {
    padding-left: 4px;
    padding-right: 4px;
  }

  .mh-rating-bar__people {
    width: 30px;
    height: 30px;
  }

  .mh-rating-bar__seg:not(:last-child)::after {
    display: none;
  }
}
.mh-hero__title {
  font-family: var(--mh-font-h);
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: var(--mh-navy);
  margin: 0 0 8px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ── Content ─────────────────────────────────────────────────── */
.mh-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mh-hero__cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--mh-navy);
  color: var(--mh-white) !important;
  font-family: var(--mh-font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--mh-ease), transform var(--mh-ease), box-shadow var(--mh-ease);
}

.mh-hero__cat-pill:hover {
  background: var(--mh-navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23, 44, 75, 0.22);
}

.mh-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mh-hero__tag {
  font-family: var(--mh-font-b);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--mh-border);
  background: var(--mh-white);
  color: var(--mh-navy);
}

.mh-hero__excerpt {
  font-family: var(--mh-font-b);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mh-muted);
  margin-bottom: 16px;
}

.mh-hero__excerpt p {
  margin: 0 0 0.75em;
}

.mh-hero__excerpt p:last-child {
  margin-bottom: 0;
}

/* FAQ accordions — compact, no frame */
.mh-hero__faq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mh-hero__faq-item {
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  min-height: 48px;
}

.mh-hero__faq-item.is-open {
  border: none;
  box-shadow: none;
}

.mh-hero__faq-heading {
  margin: 0;
  font-size: inherit;
}

.mh-hero__faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--mh-font-b);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mh-navy);
  min-height: 44px;
}

.mh-hero__faq-trigger:hover {
  background: transparent;
}

.mh-hero__faq-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(23, 44, 75, 0.07);
  color: var(--mh-navy);
  flex-shrink: 0;
}

.mh-hero__faq-marker svg {
  display: block;
}

.mh-hero__faq-title {
  min-width: 0;
  line-height: 1.35;
}

.mh-hero__faq-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-navy);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-hero__faq-item.is-open .mh-hero__faq-chevron {
  transform: rotate(180deg);
}

.mh-hero__faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-hero__faq-item.is-open .mh-hero__faq-panel {
  grid-template-rows: 1fr;
}

.mh-hero__faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.mh-hero__faq-body {
  padding: 0 24px 8px 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mh-muted);
  border-top: none;
  padding-top: 4px;
}

.mh-hero__faq-body p {
  margin: 0 0 0.75em;
}

.mh-hero__faq-body p:last-child {
  margin-bottom: 0;
}

.mh-hero__faq-body ul,
.mh-hero__faq-body ol {
  margin: 0.5em 0 0.75em;
  padding-left: 1.35em;
  list-style-position: outside;
}

.mh-hero__faq-body ul {
  list-style-type: disc;
}

.mh-hero__faq-body ol {
  list-style-type: decimal;
}

.mh-hero__faq-body li {
  margin-bottom: 0.35em;
}

.mh-hero__faq-body li::marker {
  color: var(--mh-green);
}

.mh-hero__faq-body strong,
.mh-hero__faq-body b {
  color: var(--mh-navy);
  font-weight: 700;
}

.mh-faq__answer ul,
.mh-faq__answer ol {
  margin: 0.5em 0 0.75em;
  padding-left: 1.35em;
}

.mh-faq__answer strong,
.mh-faq__answer b {
  color: var(--mh-navy);
  font-weight: 700;
}

.mh-hero__guarantee,
.mh-hero__pre-options {
  font-family: var(--mh-font-b);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mh-hero__guarantee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mh-green);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Selectors */
.mh-hero__config {
  position: relative;
}

.mh-hero__selector {
  margin-bottom: 14px;
}

.mh-hero__selector-label {
  display: block;
  font-family: var(--mh-font-h);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mh-navy);
  margin-bottom: 8px;
}

.mh-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mh-hero__pills--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mh-hero__pills--scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .mh-hero__pills--duration.mh-hero__pills--scroll {
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    row-gap: 10px;
    column-gap: 8px;
    padding-bottom: 2px;
    max-width: 100%;
  }

  .mh-hero__pills--duration.mh-hero__pills--scroll .mh-hero__pill-btn {
    scroll-snap-align: unset;
  }
}

.mh-hero__pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--mh-border);
  background: var(--mh-white);
  font-family: var(--mh-font-b);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mh-navy);
  cursor: pointer;
  transition:
    border-color var(--mh-ease),
    background var(--mh-ease),
    color var(--mh-ease);
}

.mh-hero__pills--duration .mh-hero__pill-btn {
  position: relative;
  overflow: visible;
}

.mh-hero__selector:has(.mh-hero__pill-btn--suggested) .mh-hero__pills--duration.mh-hero__pills--scroll {
  padding-top: 12px;
  margin-top: -4px;
}

.mh-pill__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-muted);
}

.mh-pill__ico svg {
  display: block;
}

.mh-hero__pill-btn.is-active .mh-pill__ico {
  color: #fff;
}

.mh-pill__txt {
  white-space: nowrap;
}

.mh-pill__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mh-hero__pill-btn--suggested {
  overflow: visible;
  padding-top: 11px;
  padding-inline: 8px;
}

.mh-pill__suggested-badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--mh-green);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.15;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 4px 12px rgba(72, 166, 37, 0.35);
  pointer-events: none;
  white-space: nowrap;
  border: 0 solid transparent;
}

.mh-hero__pill-btn--suggested.is-active .mh-pill__suggested-badge {
  border-width: 2px;
  border-style: solid;
  border-color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mh-hero__pill-btn:hover {
  border-color: #93c5fd;
}

.mh-hero__pills--duration .mh-hero__pill-btn:hover {
  border-color: var(--mh-navy);
}

.mh-hero__pill-btn.is-active {
  border-color: var(--mh-navy);
  background: var(--mh-navy);
  color: #fff !important;
}

body.mh-product-page .mh-single-product .mh-hero__pill-btn.is-active {
  color: #fff !important;
}

.mh-hero__pills--plan .mh-hero__pill-btn {
  min-width: 0;
  justify-content: center;
}

/* Segmented toggle — "Select your plan" */
.mh-hero__pills--plan.mh-hero__pills--segmented {
  flex-wrap: nowrap;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--mh-white);
  border: 2px solid var(--mh-border);
  max-width: 100%;
}

.mh-hero__pills--segmented .mh-hero__pill-btn {
  flex: 1 1 50%;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--mh-muted);
  box-shadow: none;
}

.mh-hero__pills--segmented .mh-hero__pill-btn .mh-pill__ico {
  color: var(--mh-muted);
}

.mh-hero__pills--segmented .mh-hero__pill-btn.is-active {
  background: var(--mh-navy);
  color: #fff !important;
  border: 0;
}

.mh-hero__pills--segmented .mh-hero__pill-btn.is-active .mh-pill__ico {
  color: #fff;
}

body.mh-product-page .mh-single-product .mh-hero__pills--segmented .mh-hero__pill-btn.is-active {
  color: #fff !important;
}

/* Duration — same segmented shell as plan */
.mh-hero__pills--duration.mh-hero__pills--segmented {
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  overflow-x: visible;
  overflow-y: visible;
  scroll-snap-type: none;
  row-gap: 6px;
  column-gap: 4px;
  padding: 4px;
  max-width: 100%;
}

.mh-hero__pills--segmented-duration .mh-hero__pill-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--mh-muted);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
}

.mh-hero__pills--segmented-duration .mh-pill__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  max-width: 100%;
}

.mh-hero__pills--segmented-duration .mh-pill__txt {
  white-space: nowrap;
  text-align: center;
}

.mh-hero__pills--segmented-duration .mh-hero__pill-btn.is-active {
  background: var(--mh-navy);
  color: #fff !important;
}

.mh-hero__pills--segmented-duration .mh-hero__pill-btn--suggested {
  padding-top: 11px;
  padding-right: 8px;
  padding-left: 8px;
}

@media (min-width: 900px) {
  .mh-hero__pills--segmented-duration .mh-hero__pill-btn {
    flex: 1 1 calc(25% - 6px);
    min-width: 5.25rem;
    padding: 10px 12px;
  }
}

.mh-hero__pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Checkout / purchase card */
.mh-hero__purchase {
  border-radius: 18px;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(23, 44, 75, 0.08);
  box-shadow: 0 12px 40px rgba(23, 44, 75, 0.1);
  background: #fff;
}

.mh-hero__purchase-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--mh-font-h);
  background: linear-gradient(112deg, #0c1f36 0%, #172c4b 38%, #1a3660 100%);
  color: #fff;
  border-bottom: 0;
}

.mh-hero__purchase-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 13px 18px 14px;
  flex: 1;
  min-width: 0;
}

.mh-hero__purchase-banner--locked .mh-hero__purchase-banner-inner {
  align-items: center;
}

.mh-hero__purchase-banner-copy {
  flex: 1;
  min-width: 0;
}

.mh-hero__purchase-banner-text {
  margin: 0;
  font-size: clamp(0.875rem, 2.8vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.mh-hero__purchase-banner-sub {
  margin: 5px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.mh-hero__purchase-banner-sub[hidden] {
  display: none;
}

.mh-hero__purchase-banner:has(.mh-hero__purchase-badge) .mh-hero__purchase-banner-inner {
  padding-right: 10px;
}

.mh-hero__purchase-banner .mh-hero__purchase-badge {
  flex-shrink: 0;
  align-self: center;
  margin: 10px 14px 10px 4px;
}

body.mh-product-page .mh-single-product .mh-hero__purchase-banner-text,
body.mh-product-page .mh-single-product .mh-hero__purchase-banner-sub {
  color: #fff !important;
}

body.mh-product-page .mh-single-product .mh-hero__purchase-banner-sub {
  color: rgba(255, 255, 255, 0.78) !important;
}

.mh-hero__purchase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--mh-green-light);
  color: var(--mh-green);
}

.mh-hero__purchase-badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mh-hero__purchase-inner {
  padding: 20px 22px 22px;
}

.mh-hero__purchase-main-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.mh-hero__purchase-main-row--title-only .mh-hero__purchase-title {
  margin: 0;
}

.mh-hero__purchase-heading-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--mh-green-light) 0%, #dcefd4 100%);
  border: 1px solid rgba(72, 166, 37, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-green-dark);
  box-shadow: 0 2px 10px rgba(72, 166, 37, 0.12);
}

.mh-hero__purchase-heading-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mh-hero__purchase-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.mh-hero__purchase-title {
  margin: 0;
  font-family: var(--mh-font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mh-navy);
}

.mh-hero__purchase-sub {
  display: none;
}

.mh-hero__purchase-learn {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mh-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mh-hero__purchase-numbers {
  flex-shrink: 0;
  text-align: right;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  min-width: 108px;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mh-hero__price-monthly {
  font-family: var(--mh-font-h);
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  font-weight: 700;
  color: var(--mh-navy);
  margin: 0;
  line-height: 1.15;
  min-height: 1.15em;
}

.mh-hero__price-suffix {
  font-family: var(--mh-font-b);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mh-muted);
}

.mh-hero__price-note {
  font-size: 0.8125rem;
  color: var(--mh-muted);
  margin: 6px 0 0;
  min-height: 1em;
}

.mh-hero__purchase-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.mh-hero__purchase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--mh-navy);
  margin: 0;
  padding: 11px 0;
  line-height: 1.4;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.mh-hero__purchase-list li:first-child {
  padding-top: 6px;
}

.mh-hero__purchase-list li:last-child {
  border-bottom: none;
}

.mh-hero__feat-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #56bc2e 0%, var(--mh-green) 55%, #3d8f1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(72, 166, 37, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mh-hero__feat-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.mh-hero__feat-icon--tick {
  background: linear-gradient(145deg, #56bc2e 0%, var(--mh-green) 55%, #3d8f1c 100%);
  color: #fff;
}

.mh-hero__purchase-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  padding: 16px 44px 16px 22px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 6px 22px rgba(23, 44, 75, 0.22);
  text-align: center;
}

.mh-hero__purchase-cta:hover {
  transform: translateY(-1px);
}

.mh-hero__purchase-cta-label {
  display: inline-block;
  text-align: center;
}

.mh-hero__purchase-cta-arrow {
  position: absolute;
  right: clamp(18px, 5vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.mh-hero__form-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.mh-hero__availability--soft {
  margin: 8px 0 12px;
  padding: 14px 16px;
  border-radius: var(--mh-r);
  background: var(--mh-off-white);
  border: 1px dashed var(--mh-border);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mh-muted);
}

.mh-hero__availability--soft p {
  margin: 0;
}

.mh-hero__purchase--paused {
  opacity: 0.78;
}

.mh-hero__purchase[hidden],
.mh-hero__purchase--hidden {
  display: none !important;
}

.mh-hero__purchase--hidden.mh-hero__purchase--paused {
  opacity: 1;
}

/* Off-screen WC form — keep layout so variation script can init */
.mh-hero__form-wrap--sr {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 320px !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.mh-hero__form-wrap--sr .single_add_to_cart_button,
.mh-hero__form-wrap--sr .quantity {
  position: absolute !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Buttons (match global .mh-btn--navy) */
.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mh-font-b);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--mh-ease), transform var(--mh-ease), box-shadow var(--mh-ease);
}

.mh-btn--navy {
  background: var(--mh-navy);
  color: var(--mh-white);
  border-color: var(--mh-navy);
  border-radius: var(--mh-r);
}

.mh-btn--navy:hover {
  background: var(--mh-navy-dark);
}

.mh-btn:focus-visible {
  outline: 3px solid var(--mh-green);
  outline-offset: 2px;
}

.mh-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* CSS-only entrance — visible by default (no invisible content if CSS 404) */
.mh-animate .mh-animate-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .mh-animate .mh-animate-item {
    animation: mh-fade-up 0.5s var(--mh-ease) both;
  }

  .mh-animate > .mh-animate-item { animation-delay: 0.04s; }
  .mh-hero__content > .mh-animate-item:nth-child(1) { animation-delay: 0.06s; }
  .mh-hero__content > .mh-animate-item:nth-child(2) { animation-delay: 0.1s; }
  .mh-hero__content > .mh-animate-item:nth-child(3) { animation-delay: 0.14s; }
  .mh-hero__content > .mh-animate-item:nth-child(4) { animation-delay: 0.18s; }
  .mh-hero__content > .mh-animate-item:nth-child(5) { animation-delay: 0.22s; }
  .mh-hero__content > .mh-animate-item:nth-child(6) { animation-delay: 0.26s; }
  .mh-hero__content > .mh-animate-item:nth-child(7) { animation-delay: 0.3s; }
  .mh-hero__content > .mh-animate-item:nth-child(8) { animation-delay: 0.34s; }

  @keyframes mh-fade-up {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-animate .mh-animate-item {
    animation: none;
  }

  .mh-hero__faq-chevron {
    transition: none;
  }

  .mh-hero__faq-panel {
    transition: none;
  }
}

@media (max-width: 899px) {
  .mh-hero__figure {
    max-height: min(500px, 90vw);
  }

  .mh-hero__img {
    width: auto;
    max-width: 100%;
    max-height: min(460px, 85vw);
  }

  .mh-hero__media-frame {
    max-width: 100%;
    padding: clamp(12px, 3vw, 20px);
  }

  .mh-hero__config {
    max-width: 100%;
  }

  .mh-hero__purchase-main-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .mh-hero__purchase-heading-icon {
    width: 42px;
    height: 42px;
  }

  .mh-hero__purchase-title {
    font-size: 0.9375rem;
  }

  .mh-hero__purchase-numbers {
    text-align: right;
    width: auto;
    min-width: 92px;
    max-width: 46%;
  }

  .mh-hero__cats {
    gap: 8px;
  }

  .mh-hero__cat-pill {
    font-size: 0.65rem;
    padding: 8px 16px;
  }

  .mh-hero__pills--segmented-duration .mh-hero__pill-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
    justify-content: center;
  }

  .mh-hero__pills--segmented-duration .mh-pill__row {
    justify-content: center;
    gap: 5px;
  }

  .mh-hero__pills--segmented-duration .mh-pill__ico svg {
    width: 18px;
    height: 18px;
  }

  .mh-hero__pills--segmented-duration .mh-pill__txt {
    font-size: 0.8125rem;
  }
}
