.cw-detail.cw-product {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(36px, 6vw, 75px);
}
.cw-product-info, .cw-product-gallery { min-width: 0; }
.cw-product-gallery { position: sticky; top: 16px; }
.cw-product-stage {
  display: grid; position: relative; width: 100%; aspect-ratio: 1.5;
  place-items: center; overflow: hidden; background: white;
  border: 1px solid #e5e5e5; border-radius: 5px; cursor: zoom-in;
}
.cw-square-gallery .cw-product-stage { aspect-ratio: 1; }
.cw-product-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.cw-image-zoom, .cw-lightbox-close {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid #dadada; background: #fff; color: #171717;
}
.cw-image-zoom { position: absolute; bottom: 10px; inset-inline-end: 10px; }
.cw-product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cw-product-thumbs a {
  width: clamp(52px, 5.5vw, 76px); aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #ccc; padding: 3px; border-radius: 4px; background: #fff;
}
.cw-product-thumbs a[aria-current=true] { border-color: var(--cw-ink); outline: 1px solid var(--cw-ink); }
.cw-product-thumbs a:focus-visible { outline: 3px solid var(--cw-brand); outline-offset: 3px; }
.cw-product-thumbs img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cw-product-lightbox { padding: 0; border: 0; border-radius: 4px; max-width: 95vw; max-height: 94dvh; background: white; }
.cw-product-lightbox::backdrop { background: rgb(0 0 0 / 72%); }
.cw-product-lightbox img { display: block; width: auto; height: auto; max-width: 95vw; max-height: 94dvh; object-fit: contain; }
.cw-lightbox-close { position: absolute; top: 8px; inset-inline-end: 8px; }
.cw-product-header h1 { font-size: clamp(27px, 3vw, 45px); margin: 6px 0 10px; line-height: 1.12; overflow-wrap: anywhere; }
.cw-product-info .cw-buy { position: static; margin: 16px 0; }
.cw-product-prose { margin-top: 1.6rem; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.cw-product-description { white-space: normal; }
.cw-product-description :is(p, ul, ol, blockquote) { margin: .75em 0; }
.cw-product-description :is(ul, ol) { padding-inline-start: 1.55em; }
.cw-product-description ul { list-style: disc outside; }
.cw-product-description ol { list-style: decimal outside; }
.cw-product-description ul ul { list-style-type: circle; }
.cw-product-description li { display: list-item; padding-inline-start: .14em; margin-block: .13em; }
.cw-product-description li > :is(p, ul, ol) { margin-block: .15em; }
.cw-product-description :is(h1,h2,h3,h4,h5,h6) { font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin: 1.25em 0 .45em; }
.cw-product-description :is(h1,h2) { font-size: clamp(21px, 2vw, 26px); }
.cw-product-description h3 { font-size: 1.25em; }
.cw-product-description h4 { font-size: 1.12em; }
.cw-product-description strong { font-weight: 700; }
.cw-product-description > :first-child { margin-top: 0; }
.cw-product-description img { max-width: 100%; height: auto; }
.cw-product-description table { max-width: 100%; border-collapse: collapse; }
.cw-product-description :is(td,th) { padding: .35em .6em; border: 1px solid var(--cw-border); }
@media(max-width: 700px) {
  .cw-detail.cw-product { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cw-product-gallery { position: static; }
  .cw-product-thumbs { margin-top: 8px; }
  .cw-product-header h1 { font-size: clamp(25px, 6.8vw, 36px); }
  .cw-product-info .cw-buy { margin-block: 14px; }
}
