.mhpf-product-detail {
  --mhpf-content-width: 1180px;
  --mhpf-ink: #12243a;
  --mhpf-muted: #60748c;
  --mhpf-line: #dce7f2;
  --mhpf-soft: #f3f6fa;
  --mhpf-compare-bg: #eef8f2;
  --mhpf-related-bg: #f6f9fd;
  --mhpf-blue: #1f8ef1;
  --mhpf-green: #22c55e;
  --mhpf-navy: #10284d;
  --mhpf-radius: 8px;
  --mhpf-section-padding: 82px;
  --mhpf-hero-top-offset: 78px;
  --mhpf-gallery-height: 560px;
  --mhpf-split-image-height: 390px;
  --mhpf-grid-gap: 58px;
  color: var(--mhpf-ink);
  letter-spacing: 0;
  overflow: hidden;
}

.mhpf-product-detail *,
.mhpf-product-detail *::before,
.mhpf-product-detail *::after {
  box-sizing: border-box;
}

.mhpf-product-detail h1,
.mhpf-product-detail h2,
.mhpf-product-detail h3,
.mhpf-product-detail h4,
.mhpf-product-detail h5,
.mhpf-product-detail p,
.mhpf-product-detail figure {
  margin: 0;
}

.mhpf-product-detail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mhpf-top-visual,
.mhpf-hero,
.mhpf-compare,
.mhpf-split,
.mhpf-related,
.mhpf-ready {
  padding-left: max(28px, calc((100vw - var(--mhpf-content-width)) / 2));
  padding-right: max(28px, calc((100vw - var(--mhpf-content-width)) / 2));
}

.mhpf-top-visual {
  padding-top: calc(42px + var(--mhpf-hero-top-offset));
  padding-bottom: 46px;
  background: #fff;
}

.mhpf-top-visual__inner {
  text-align: center;
}

.mhpf-top-visual__inner .mhpf-lead {
  max-width: 760px;
  margin: 12px auto 0;
}

.mhpf-top-visual__media {
  max-width: 1080px;
  height: 500px;
  margin: 28px auto 0;
  border-radius: var(--mhpf-radius);
  overflow: hidden;
  background: #eef5fb;
}

.mhpf-top-visual__media img {
  object-fit: cover;
}

.mhpf-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--mhpf-green);
  line-height: 1.2;
  text-transform: uppercase;
}

.mhpf-hero {
  padding-top: var(--mhpf-section-padding);
  padding-bottom: var(--mhpf-section-padding);
  background: var(--mhpf-soft);
}

.mhpf-hero__intro {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.mhpf-hero__intro p {
  margin-top: 14px;
  color: var(--mhpf-muted);
}

.mhpf-selector-title {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.3;
  color: var(--mhpf-ink);
}

.mhpf-selector {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 32px;
  align-items: stretch;
}

.mhpf-selector__media,
.mhpf-selector__panel {
  border-radius: calc(var(--mhpf-radius) + 10px);
}

.mhpf-selector__media {
  position: relative;
  min-height: var(--mhpf-gallery-height);
  overflow: hidden;
  background: #fff;
}

.mhpf-gallery-main {
  height: 100%;
  min-height: var(--mhpf-gallery-height);
  background: #eef5fb;
}

.mhpf-selector__caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  max-width: 520px;
  padding: 22px 24px;
  border-radius: var(--mhpf-radius);
  color: #fff;
  background: rgba(16, 40, 77, .9);
  box-shadow: 0 16px 32px rgba(16, 40, 77, .22);
}

.mhpf-selector__caption h3,
.mhpf-selector__caption p {
  color: inherit;
}

.mhpf-selector__caption p {
  margin-top: 8px;
}

.mhpf-gallery-thumbs {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  max-width: calc(100% - 56px);
  overflow-x: auto;
}

.mhpf-gallery-thumbs__item {
  width: 74px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: var(--mhpf-radius);
  overflow: hidden;
  background: #edf5fb;
  cursor: pointer;
  flex: 0 0 auto;
}

.mhpf-gallery-thumbs__item.is-active {
  border-color: var(--mhpf-green);
}

.mhpf-selector__panel {
  padding: 34px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(23, 32, 51, .08);
}

.mhpf-option-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.mhpf-option-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--mhpf-line);
  border-radius: var(--mhpf-radius);
  color: var(--mhpf-ink);
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.mhpf-option-card.is-active {
  border-color: var(--mhpf-navy);
  box-shadow: 0 0 0 1px var(--mhpf-navy);
  background: #fff;
}

.mhpf-option-card__swatch {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(16, 40, 77, .06);
}

.mhpf-option-card__swatch--1 {
  background: linear-gradient(135deg, #f7fafc, #dfe7f1);
}

.mhpf-option-card__swatch--2 {
  background: linear-gradient(135deg, #b7dcff, #3f7df2);
}

.mhpf-option-card__swatch--3 {
  background: linear-gradient(135deg, #ffc3c7, #ef4444);
}

.mhpf-option-card__swatch--4 {
  background: linear-gradient(135deg, #d8e8ff, #234f9f);
}

.mhpf-option-card__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mhpf-option-card__text small,
.mhpf-option-card__chip {
  color: var(--mhpf-muted);
}

.mhpf-option-card__chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf2f8;
  white-space: nowrap;
}

.mhpf-option-detail {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--mhpf-radius);
  color: #fff;
  background: #111d34;
}

.mhpf-option-detail.is-active {
  display: block;
}

.mhpf-option-detail h3 {
  color: #fff;
}

.mhpf-option-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mhpf-option-detail__grid div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--mhpf-radius);
  background: rgba(255, 255, 255, .07);
}

.mhpf-option-detail__grid span,
.mhpf-option-detail__grid strong {
  display: block;
}

.mhpf-option-detail__grid span {
  margin-bottom: 6px;
  color: #8fc5ff;
}

.mhpf-selector__panel .mhpf-button {
  margin-top: 20px;
}

.mhpf-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 23px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mhpf-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.mhpf-button--green {
  background: var(--mhpf-green);
  color: #062714;
}

.mhpf-button--blue {
  background: var(--mhpf-blue);
  color: #fff;
}

.mhpf-compare {
  padding-top: 58px;
  padding-bottom: 58px;
  background: var(--mhpf-compare-bg);
  border-top: 1px solid #cfeedd;
  border-bottom: 1px solid #cfeedd;
}

.mhpf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.mhpf-section-head p {
  max-width: 520px;
  color: var(--mhpf-muted);
}

.mhpf-compare-title {
  max-width: 620px;
  line-height: 1.28;
  color: var(--mhpf-ink);
}

.mhpf-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mhpf-compare-card {
  border: 1px solid #cfe0f0;
  border-radius: var(--mhpf-radius);
  background: #fff;
  overflow: hidden;
}

.mhpf-compare-card__title {
  padding: 12px 14px;
  background: var(--mhpf-navy);
  color: #fff;
  text-align: center;
  line-height: 1.25;
}

.mhpf-compare-card dl {
  margin: 0;
  padding: 8px 14px 12px;
}

.mhpf-compare-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mhpf-line);
  line-height: 1.35;
}

.mhpf-compare-card dl div:last-child {
  border-bottom: 0;
}

.mhpf-compare-card dt {
  color: var(--mhpf-muted);
}

.mhpf-compare-card dd {
  margin: 0;
  color: var(--mhpf-ink);
  text-align: right;
}

.mhpf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mhpf-grid-gap);
  align-items: center;
  padding-top: var(--mhpf-section-padding);
  padding-bottom: var(--mhpf-section-padding);
  background: #fff;
}

.mhpf-split--reverse .mhpf-split__media {
  order: 2;
}

.mhpf-split__media {
  height: var(--mhpf-split-image-height);
  border-radius: var(--mhpf-radius);
  overflow: hidden;
  background: #eef5fb;
}

.mhpf-split__copy p {
  margin-top: 16px;
  color: var(--mhpf-muted);
}

.mhpf-checklist {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mhpf-checklist span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #18314e;
}

.mhpf-checklist i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mhpf-green);
  color: #fff;
  font-style: normal;
  line-height: 1;
  flex: 0 0 auto;
}

.mhpf-related {
  padding-top: var(--mhpf-section-padding);
  padding-bottom: var(--mhpf-section-padding);
  background: var(--mhpf-related-bg);
}

.mhpf-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.mhpf-related-card {
  display: block;
  border: 1px solid var(--mhpf-line);
  border-radius: var(--mhpf-radius);
  overflow: hidden;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

.mhpf-related-card:hover {
  text-decoration: none;
}

.mhpf-related-card__image {
  display: block;
  height: 182px;
  background: #eef5fb;
  background-position: center;
  background-size: cover;
}

.mhpf-related-card__title {
  display: block;
  min-height: 78px;
  padding: 18px 16px 22px;
  color: var(--mhpf-ink);
  line-height: 1.25;
}

.mhpf-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--mhpf-navy);
  color: #fff;
}

.mhpf-ready h2 {
  max-width: 660px;
  color: #fff;
}

.mhpf-ready p {
  max-width: 520px;
  margin-top: 12px;
  color: #c9dbef;
}

@media (max-width: 1024px) {
  .mhpf-selector,
  .mhpf-split {
    grid-template-columns: 1fr;
  }

  .mhpf-selector__panel {
    min-width: 0;
  }

  .mhpf-compare-grid,
  .mhpf-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mhpf-split--reverse .mhpf-split__media {
    order: 0;
  }
}

@media (max-width: 767px) {
  .mhpf-top-visual,
  .mhpf-hero,
  .mhpf-compare,
  .mhpf-split,
  .mhpf-related,
  .mhpf-ready {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mhpf-top-visual,
  .mhpf-hero,
  .mhpf-compare,
  .mhpf-split,
  .mhpf-related {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .mhpf-top-visual__media {
    height: 260px;
  }

  .mhpf-selector__media,
  .mhpf-gallery-main {
    min-height: 360px;
  }

  .mhpf-selector__caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }

  .mhpf-gallery-thumbs {
    left: 16px;
    top: 16px;
    max-width: calc(100% - 32px);
  }

  .mhpf-gallery-thumbs__item {
    width: 62px;
    height: 54px;
  }

  .mhpf-selector__panel {
    padding: 20px;
  }

  .mhpf-option-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .mhpf-option-card__chip {
    grid-column: 2;
    justify-self: start;
  }

  .mhpf-option-detail__grid,
  .mhpf-compare-grid {
    grid-template-columns: 1fr;
  }

  .mhpf-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mhpf-section-head,
  .mhpf-ready {
    align-items: flex-start;
    flex-direction: column;
  }

  .mhpf-related-card__image {
    height: clamp(132px, 38vw, 235px);
  }

  .mhpf-related-card__title {
    min-height: 62px;
    padding: 12px 10px 14px;
    overflow-wrap: anywhere;
  }
}
