.product-detail {
  background: linear-gradient(160deg, #f3f6f0, #fff 62%);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(1.5rem, 5.25vw, 4.75rem);
}
.product-gallery,
.product-summary {
  min-width: 0;
}
.product-image-trigger {
  display: grid;
  padding: .48rem;
  color: var(--action);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.product-image-trigger:focus-visible { outline-offset: 3px; }
.product-image-stage {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.16;
  background: radial-gradient(ellipse at 48% 35%, #fffdf5, #e8ece1);
  border-radius: calc(var(--radius) - .42rem);
  cursor: zoom-in;
}
.product-image-stage img {
  position: absolute;
  left: 10%;
  top: 8%;
  width: 80%;
  height: 84%;
  object-fit: contain;
}
.product-image-link-label {
  justify-self: end;
  padding: .65rem .55rem .3rem;
  font-size: .875rem;
  font-weight: 700;
}
.product-image-trigger:hover .product-image-link-label {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.product-collection-link {
  display: inline-block;
  font-size: .875rem;
  margin-bottom: .7rem;
}
.product-summary h1 {
  font-size: clamp(2rem, 3.9vw, 3.75rem);
  overflow-wrap: anywhere;
}
.product-description,
.product-brief p {
  max-width: 36rem;
  margin-top: .85rem;
  color: var(--body);
}
.product-brief {
  margin-top: 1.55rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.product-brief h2 { font-size: 1.1rem; }
.product-brief p { margin-top: .65rem; }
.product-brief .checks { color: var(--body); margin-top: .62rem; font-size: .915rem; }
.sample-card { display: flex; flex-direction: column; }
.sample-image-trigger {
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - .4rem);
  background: transparent;
}
.sample-image-trigger .product-image-stage { aspect-ratio: 1.2; }
.sample-image-trigger .product-image-link-label { padding: .42rem .57rem .1rem; font-size: .8125rem; }
.sample-card .card-caption { flex: 1; align-content: space-between; min-width: 0; padding: .5rem .6rem .62rem; }
.sample-card h3 { overflow-wrap: anywhere; }
.sample-card h3 a { text-decoration: none; }
.sample-card h3 a:hover { color: var(--action); text-decoration: underline; text-underline-offset: .17em; }
.sample-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; margin-top: .35rem; }
.sample-actions a { font-size: .8125rem; }
.sample-actions .button { min-height: 2.6rem; padding: .43rem .7rem; }
@media (max-width: 620px) {
  .sample-actions { align-items: flex-start; flex-direction: column; }
  .sample-actions .button { max-width: 100%; }
}

.product-image-dialog {
  width: min(calc(100% - 1.5rem), 64rem);
  max-height: calc(100% - 1.5rem);
  padding: .75rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-image-dialog:not([open]) { display: none; }
html:has(.product-image-dialog[open]) { overflow: hidden; }
.product-image-dialog::backdrop { background: #10271edb; }
.product-zoom-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .15rem .15rem .6rem;
}
.product-zoom-toolbar h2 { font-size: 1.075rem; }
.product-zoom-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.product-zoom-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .2rem .45rem;
  border: 1px solid #a7bcac;
  border-radius: .4rem;
  background: #fff;
  color: var(--action);
  font-size: .875rem;
  font-weight: 700;
}
.product-zoom-controls button:hover { background: #e8f4eb; }
.product-zoom-controls button[aria-disabled="true"] { color: var(--body); cursor: default; }
.product-zoom-controls output {
  min-width: 2.85rem;
  text-align: center;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.product-zoom-view {
  --zoom: 1;
  --zoom-height: min(64vh, 40rem);
  --zoom-height: min(64dvh, 40rem);
  width: 100%;
  height: var(--zoom-height);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  background: #f4f5ef;
  border-radius: .5rem;
}
.product-zoom-view:focus-visible { outline-offset: -3px; }
.product-zoom-view[data-scale="1"] { --zoom: 1.5; }
.product-zoom-view[data-scale="2"] { --zoom: 2; }
.product-zoom-view[data-scale="3"] { --zoom: 2.5; }
.product-zoom-view[data-scale="4"] { --zoom: 3; }
.product-zoom-stage {
  width: calc(100% * var(--zoom));
  height: calc(var(--zoom-height) * var(--zoom));
  padding: .42rem;
}
.product-zoom-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image-stage { aspect-ratio: 1.25; }
  .product-summary h1 { font-size: clamp(2rem, 7.8vw, 3rem); }
}
