.product-data-page {
  padding-top: 0;
}

.product-detail-hero-card img,
.product-single-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.product-detail-hero-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  background: #fff;
}

.product-detail-hero-card figcaption span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.product-single-summary,
.product-detail-sample-section {
  background: #f4f6f5;
}

.product-single-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
}

.product-single-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(10 18 20 / 8%);
}

.product-single-copy h2 {
  margin: 16px 0 20px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
}

.product-single-lead,
.product-detail-richtext {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.product-detail-richtext > :first-child {
  margin-top: 0;
}

.product-detail-richtext img {
  max-width: 100%;
  height: auto;
}

.product-detail-content-section {
  background: #fff;
  padding-top: clamp(70px, 6vw, 96px);
  padding-bottom: clamp(70px, 6vw, 96px);
  scroll-margin-top: calc(var(--nav-height) + 72px);
}

.product-detail-content-shell {
  display: block;
  width: var(--container);
}

.product-detail-content-shell > div:first-child {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-bottom: clamp(34px, 4vw, 50px);
  margin-left: 0;
}

.product-detail-content-shell > div:first-child .section-label {
  margin-bottom: 24px;
}

.product-detail-content-shell > div:first-child h2 {
  width: 100%;
  max-width: none;
  margin-top: 0;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.product-detail-content-section .product-detail-richtext {
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.72;
}

.product-detail-content-section .product-detail-richtext figure {
  width: 100%;
  margin: clamp(44px, 5vw, 72px) 0;
  margin-right: 0;
  margin-left: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f3f5f4;
  box-shadow: 0 24px 70px rgb(10 18 20 / 8%);
}

.product-detail-content-section .product-detail-richtext figure:first-child {
  margin-top: 0;
}

.product-detail-content-section .product-detail-richtext figure img {
  display: block;
  width: 100%;
  height: auto;
}

.product-detail-content-section .product-detail-richtext p:has(> img:only-child) {
  margin: clamp(44px, 5vw, 72px) 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f3f5f4;
  box-shadow: 0 24px 70px rgb(10 18 20 / 8%);
}

.product-detail-content-section .product-detail-richtext > p:first-child:has(> img:only-child) {
  margin-top: 0;
}

.product-detail-content-section .product-detail-richtext p > img:only-child {
  display: block;
  width: 100%;
  height: auto;
}

.product-detail-content-section .product-detail-richtext h2,
.product-detail-content-section .product-detail-richtext h3,
.product-detail-content-section .product-detail-richtext p,
.product-detail-content-section .product-detail-richtext ul,
.product-detail-content-section .product-detail-richtext ol {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.product-detail-content-section .product-detail-richtext h2,
.product-detail-content-section .product-detail-richtext h3 {
  color: var(--ink);
  margin-top: clamp(46px, 5vw, 72px);
  margin-bottom: 20px;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.product-detail-content-section .product-detail-richtext p {
  margin-top: 0;
  margin-bottom: 20px;
}

.product-detail-content-section .product-detail-richtext > :last-child {
  margin-bottom: 0;
}

.product-detail-content-section .product-detail-richtext > h2:first-child {
  display: none;
}

#specs,
#product-faq,
#consulting {
  scroll-margin-top: calc(var(--nav-height) + 72px);
}

.product-single-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.product-single-specs span {
  display: grid;
  gap: 6px;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
}

.product-single-specs strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-single-specs em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.product-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-data-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.product-data-gallery-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 18px 50px rgb(10 18 20 / 7%);
}

.product-data-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-spec-richtext table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.product-spec-richtext th,
.product-spec-richtext td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.product-spec-richtext th {
    width: 36%;
    color: var(--muted);
    font-size: 13px;
  }

  .product-spec-richtext p:first-child {
    margin-top: 0;
  }

  .product-spec-table + .product-spec-table-title,
  .product-spec-table-title:not(:first-child) {
    margin-top: 28px;
  }

  .product-spec-table-title {
    margin-bottom: 10px;
    font-size: 16px;
  }

.material-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgb(8 16 17 / 82%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.material-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.material-lightbox-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 90px rgb(0 0 0 / 28%);
}

.material-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #eef1f0;
}

.material-lightbox-copy {
  padding: 22px clamp(22px, 3vw, 34px) 26px;
}

.material-lightbox-copy strong,
.material-lightbox-copy span {
  display: block;
}

.material-lightbox-copy strong {
  color: var(--ink);
  font-size: var(--fs-card-title);
}

.material-lightbox-copy span {
  margin-top: 8px;
  color: var(--muted);
}

.material-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(8 16 17 / 82%);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-single-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-content-shell > div:first-child {
    margin-bottom: 34px;
  }

  .product-detail-content-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .product-detail-content-shell > div:first-child h2 {
    font-size: clamp(32px, 7vw, 42px);
  }

  .product-detail-content-section .product-detail-richtext figure {
    margin: 38px 0;
    border-radius: 16px;
  }

  .product-detail-content-section .product-detail-richtext p:has(> img:only-child) {
    margin: 38px 0;
    border-radius: 16px;
  }

  .product-detail-content-section .product-detail-richtext h2,
  .product-detail-content-section .product-detail-richtext h3 {
    margin-top: 42px;
    font-size: clamp(28px, 6.5vw, 36px);
  }

  .product-data-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-single-specs,
  .product-data-gallery {
    grid-template-columns: 1fr;
  }
}

.product-related-content {
  background: #f2f3f3;
}

.product-related-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 78px);
}

.product-related-head h2 {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.08;
}

.product-related-head > p {
  margin: 0;
  color: var(--muted, #66706c);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.product-related-group + .product-related-group {
  margin-top: clamp(54px, 7vw, 96px);
}

.product-related-columns {
  display: block;
}

.product-related-columns .product-related-group + .product-related-group {
  margin-top: clamp(54px, 7vw, 96px);
}

.product-related-columns .product-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-related-columns .product-related-material-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-related-group-head {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d5dbd8;
}

.product-related-group-head h3 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 38px);
}

.product-related-group-head a {
  color: var(--green, #008f2f);
  font-weight: 900;
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-related-material-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-related-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding-bottom: 26px;
  border: 1px solid #e0e4e2;
  border-radius: 22px;
  color: var(--ink, #232829);
  background: #fff;
  box-shadow: 0 18px 55px rgb(21 35 30 / 6%);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.product-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgb(21 35 30 / 11%);
}

.product-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.34;
  margin-bottom: 22px;
  object-fit: cover;
  background: #eef1f0;
}

.product-related-card > span,
.product-related-card > strong,
.product-related-card > p {
  margin-inline: 24px;
}

.product-related-card > span {
  color: var(--green, #008f2f);
  font-size: var(--fs-mini);
  font-weight: 900;
}

.product-related-card > strong {
  margin-top: 10px;
  font-size: var(--fs-card-title);
  line-height: 1.18;
}

.product-related-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted, #66706c);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 1100px) {
  .product-related-columns .product-related-grid,
  .product-related-columns .product-related-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-related-head {
    grid-template-columns: 1fr;
  }

  .product-related-columns .product-related-grid,
  .product-related-columns .product-related-material-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 340px);
    overflow-x: auto;
    padding-bottom: 12px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .product-related-columns .product-related-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .product-related-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-related-columns .product-related-grid,
  .product-related-columns .product-related-material-grid {
    grid-template-columns: none;
  }
}
