/* PC-part detail hero, decision card and related models. These components only
   render on /product/[slug], so other shopper routes should not download them. */
.catalog-product-hero {
  display: grid;
  min-height: 0;
  padding: 46px 0 34px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  align-items: start;
  gap: clamp(38px, 5vw, 72px);
}

.catalog-product-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.07em;
}

.catalog-product-hero > div > p:not(.kicker) {
  max-width: 650px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.catalog-product-hero > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-product-hero > div > div a {
  display: inline-flex;
  min-height: 46px;
  padding: 0 17px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.catalog-product-hero > div > div a:first-child {
  background: var(--ink);
  color: white;
}

.catalog-product-hero > div > small {
  display: block;
  margin: 28px 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.catalog-product-hero aside {
  position: sticky;
  top: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 33, 28, .06);
}

.catalog-product-hero aside > span {
  display: grid;
  min-width: 72px;
  width: fit-content;
  height: 48px;
  padding: 0 15px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-family: var(--font-geist-mono), monospace;
  font-size: 14px;
  font-weight: 850;
}

.catalog-product-hero aside dl {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.catalog-product-hero aside dl div {
  display: flex;
  padding: 11px 0;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog-product-hero aside dt {
  color: var(--muted);
  font-size: 13px;
}

.catalog-product-hero aside dd {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}

.catalog-related-models {
  padding: 100px 0;
}

.catalog-related-models h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.catalog-related-models > div:last-child {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(3, 1fr);
}

.catalog-related-models a {
  display: grid;
  min-height: 250px;
  padding: 24px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.catalog-related-models a:first-child { border-left: 1px solid var(--line); }
.catalog-related-models a span { color: var(--green); font-size: 13px; font-weight: 850; }
.catalog-related-models a strong { margin-top: 45px; font-size: 22px; }
.catalog-related-models a small { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.catalog-related-models a b { margin-top: auto; padding-top: 20px; font-size: 13px; }

.catalog-product-page .product-fact-card {
  padding: 18px 20px;
  border-radius: 14px;
}

.product-fact-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-product-hero .product-fact-card > header > span {
  display: grid;
  min-width: 54px;
  width: 54px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: #e6f2eb;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.product-fact-card > header > div {
  display: grid;
  gap: 2px;
}

.product-fact-card > header small {
  color: #6c7972;
  font-size: 13px;
}

.product-fact-card > header strong {
  font-size: 14px;
}

.product-price-snapshot {
  display: grid;
  margin: 18px 0 6px;
  padding: 16px;
  gap: 3px;
  border: 1px solid #c9dbd1;
  border-radius: 8px;
  background: #f0f8f4;
}

.product-price-snapshot > span,
.product-price-snapshot > small {
  color: #5f7268;
  font-size: 13px;
}

.product-price-snapshot > strong {
  color: #08734d;
  font-size: 27px;
  letter-spacing: -.045em;
}

.product-price-snapshot > a {
  width: fit-content;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.product-decision-tabs {
  position: sticky;
  z-index: 34;
  top: 151px;
  display: flex;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 10px;
  align-items: center;
  overflow-x: auto;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 18px rgba(20, 42, 32, .045);
}

.product-decision-tabs > * {
  min-width: max-content;
}

.product-decision-tabs > span {
  padding: 0 12px 0 4px;
  color: #75827b;
  font-size: 13px;
  font-weight: 800;
}

.product-decision-tabs a {
  display: flex;
  min-height: 46px;
  padding: 0 12px;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #364b41;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.product-decision-tabs a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}

@media (max-width: 900px) {
  .catalog-product-hero {
    padding-block: 22px 28px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .catalog-product-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .catalog-product-hero aside {
    position: static;
    max-width: none;
  }

  .catalog-related-models > div:last-child { grid-template-columns: 1fr; }
  .catalog-related-models a { border-left: 1px solid var(--line); }

  .catalog-product-page .product-fact-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .catalog-product-hero {
    min-height: auto;
    padding: 58px 0 80px;
    gap: 38px;
  }

  .catalog-product-hero h1 { font-size: 48px; }
  .catalog-product-hero aside { width: 100%; padding: 23px; }
  .catalog-related-models { padding: 78px 0; }
  .catalog-related-models h2 { font-size: 42px; }
  .catalog-related-models > div:last-child { grid-template-columns: 1fr; }
  .catalog-related-models a { border-left: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .catalog-product-hero { padding-top: 32px; }
  .catalog-product-hero h1 { font-size: 43px; }

  .product-decision-tabs {
    position: static;
  }

  .catalog-product-hero .product-fact-card {
    padding: 18px;
  }
}

@media (min-width: 901px) {
  .catalog-product-hero {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 38px;
    gap: clamp(28px, 4vw, 52px);
  }

  .catalog-product-hero h1 {
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.02;
  }

  .catalog-product-hero aside {
    min-height: 0;
    padding: 20px;
  }
}
