/* W5 product-page depth: layout and media polish for the existing render pipeline. */

.product-page-shell {
  padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem);
}

.product-detail {
  max-width: 1240px;
}

.product-detail .breadcrumbs {
  margin-inline: auto;
  max-width: 1240px;
  padding-block: .25rem clamp(1.25rem, 3vw, 2.5rem);
}

.product-detail .product-above-fold {
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.product-detail .product-gallery {
  min-width: 0;
}

.product-detail .gallery-main {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid #d0bcc6;
  background: #f7d7e2;
  box-shadow: 0 18px 42px #24171d12, inset 0 0 0 8px #fff8fb;
}

.product-detail .gallery-main [data-view] {
  overflow: hidden;
  border-radius: 18px;
}

.product-detail .gallery-main img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: #f7d7e2;
}

.product-detail .gallery-thumbs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
  padding: .65rem 0 0;
  background: transparent;
}

.product-detail .gallery-thumbs button {
  min-width: 0;
  padding: .35rem;
  border: 1px solid #d0bcc6;
  background: #fffafd;
  color: #65545c;
}

.product-detail .gallery-thumbs button[aria-pressed="true"] {
  border-color: #93405f;
  box-shadow: 0 0 0 2px #d97a9c40;
}

.product-detail .gallery-thumbs img,
.product-detail .gallery-thumbs svg {
  height: clamp(52px, 7vw, 82px);
  object-fit: cover;
}

.product-detail .gallery-thumbs span {
  display: none;
}

.product-detail .buy-box {
  top: 6.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #d0bcc6;
  border-radius: 24px;
  background: #fffafd;
  box-shadow: 0 18px 42px #24171d0d;
}

.product-detail .buy-box h1 {
  max-width: 12ch;
  margin-block: .35rem .75rem;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: .98;
}

.product-detail .product-story {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.product-detail .product-price {
  margin: 1rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.product-detail .variant-group {
  margin: .8rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px solid #eadbe2;
}

.product-detail .variant-chips {
  flex-wrap: wrap;
}

.product-detail .variant-chips button,
.product-detail .swatch {
  min-height: 42px;
}

.product-detail .product-cta {
  min-height: 54px;
  margin-top: 1.25rem;
  font-size: 1rem;
}

.product-detail .made-to-order {
  margin: .75rem 0 0;
  color: #65545c;
  font-size: .9rem;
  line-height: 1.45;
}

.product-detail .product-facts,
.product-detail .cta-trust {
  margin: .75rem 0 0;
  color: #65545c;
  font-size: .9rem;
}

.product-detail .product-facts {
  padding: .75rem 0;
  border-block: 1px solid #eadbe2;
}

.product-detail .product-trust {
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border: 1px solid #d0bcc6;
  border-radius: 16px;
  background: #fffafd;
  color: #93405f;
  font-weight: 650;
}

.product-detail .product-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.product-detail .onyx-spec-table-wrap,
.product-detail .spec-table {
  overflow-x: auto;
}

.product-detail .spec-table th,
.product-detail .spec-table td,
.product-detail .onyx-spec-table th,
.product-detail .onyx-spec-table td {
  min-width: 9rem;
  vertical-align: top;
}

.product-detail .onyx-benefits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}

.product-detail .onyx-benefits li {
  padding: 1rem;
  border: 1px solid #d0bcc6;
  border-radius: 14px;
  background: #fffafd;
}

.pairs-well {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: #fdf4f8;
}

.pairs-well .products {
  align-items: start;
}

@media (max-width: 800px) {
  .product-page-shell {
    padding-top: .75rem;
  }

  .product-detail .product-above-fold {
    gap: 1.25rem;
  }

  .product-detail .buy-box {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .product-detail .buy-box h1 {
    max-width: none;
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .product-detail .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: .25rem;
  }

  .product-detail .gallery-thumbs button {
    flex: 0 0 68px;
  }

  .product-detail .onyx-benefits ul {
    grid-template-columns: 1fr;
  }

  .pairs-well .grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .product-detail .gallery-main {
    border-radius: 16px;
  }

  .product-detail .gallery-main img {
    padding: .5rem;
  }

  .pairs-well .grid.products {
    grid-template-columns: 1fr;
  }
}
