/* Product details: a quiet, practical layout around the actual object. */
main:has(.product) {
  padding-top: clamp(1.5rem, 3.2vw, 3.25rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

main:has(.product) .breadcrumbs {
  max-width: none;
  margin-bottom: clamp(1.25rem, 2.7vw, 2.5rem);
  color: #505963;
  font-size: .8125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

main:has(.product) .breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: #a8a29a;
  text-underline-offset: .2em;
}

main:has(.product) .breadcrumbs a:hover {
  color: #1a1d21;
  text-decoration-color: currentColor;
}

.product {
  align-items: start;
  gap: clamp(2rem, 4.6vw, 5rem);
}

.product > * { min-width: 0; }

.product__gallery {
  border: 1px solid #d6d2c9;
  border-radius: 0;
  background: #fff;
}

.product__illust {
  min-width: 0;
  aspect-ratio: auto;
  height: clamp(25rem, 40vw, 34rem);
  background: #fff;
}

.product__illust img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product > div:last-child > h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.625rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.product > div:last-child > p:not(.product-order-note) {
  max-width: 50ch;
  margin-top: 1.3rem;
  color: #48515a;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
}

.product__price-block {
  margin: 1.5rem 0 0;
}

.product__price {
  color: #1a1d21;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.product__price span {
  color: #505963;
  font-size: .875rem;
  letter-spacing: 0;
}

.product .hero__actions {
  gap: .75rem;
  margin-top: 1.75rem;
}

.product .hero__actions .btn {
  min-height: 3.25rem;
  padding: .8rem 1.25rem;
  border-radius: 4px;
  font-size: .9375rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.product .hero__actions .btn--secondary {
  border-color: #8c8880;
}

.product .hero__actions .btn--secondary:hover {
  border-color: #1a1d21;
  background: #e8e3da;
}

.product .product-order-note {
  max-width: 50ch;
  margin: .9rem 0 0;
  color: #505963;
  font-size: .875rem;
  line-height: 1.55;
}

.product .product-order-note a {
  color: #1a1d21;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.product .specs {
  margin-top: clamp(2.25rem, 3vw, 3rem);
}

.product .specs h2 {
  margin: 0 0 .875rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.product .specs table {
  width: 100%;
  table-layout: fixed;
  border-top: 1px solid #bdb8ae;
  font-size: .9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.product .specs th,
.product .specs td {
  padding: .8rem .65rem .8rem 0;
  border-bottom: 1px solid #d6d2c9;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.product .specs th {
  width: 43%;
  color: #505963;
  font-weight: 500;
}

.product .specs td {
  color: #1a1d21;
}

.product .safety-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: #e9e5dc;
  color: #30383f;
  line-height: 1.6;
}

.product .safety-box h3 {
  margin-bottom: .5rem;
  font-size: 1rem;
}

.product-description {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid #bdb8ae;
}

.product-description h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

.product-description p {
  max-width: 66ch;
  color: #30383f;
  line-height: 1.75;
}

.product-description p + p { margin-top: 1rem; }

main:has(.product) .product-description + section {
  margin-top: clamp(3rem, 5vw, 4.5rem) !important;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid #bdb8ae;
}

main:has(.product) .product-description + section > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
}

main:has(.product) .product-description + section .card {
  border-color: #d6d2c9;
  border-radius: 0;
  background: transparent;
}

main:has(.product) .product-description + section .card__body {
  gap: .85rem;
  padding: 1.25rem;
}

main:has(.product) .product-description + section .card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

main:has(.product) .product-description + section .card__title a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

main:has(.product) .product-description + section .card__price {
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

main:has(.product) .product-description + section .btn {
  align-self: start;
  min-height: 2.75rem;
  border-radius: 4px;
  white-space: normal;
}

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
  .product-description {
    display: grid;
    grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.28fr);
    gap: 0 clamp(2rem, 5vw, 5rem);
  }
  .product-description h2 { grid-row: 1 / span 4; }
  .product-description p { grid-column: 2; }
}

@media (max-width: 599px) {
  .product { gap: 1.75rem; }
  .product__illust { height: min(70vw, 19rem); }
  .product > div:last-child > h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .product .hero__actions { flex-direction: column; }
  .product .hero__actions .btn { width: 100%; }
  .product .specs th { width: 44%; }
  .product .specs th,
  .product .specs td { padding-block: .7rem; font-size: .875rem; }
}
