.product-detail { max-width: 81rem; }
.product-detail .detail-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 0; }
.product-title { grid-column: 2; grid-row: 1; padding-top: .45rem; }
.product-title h1 { margin: 0; font-size: clamp(3.5rem, 6.5vw, 6.9rem); line-height: .98; }
.product-title .subtitle {
  display: block; margin: .65rem 0 .9rem; font: 400 clamp(1.25rem, 2.3vw, 2rem)/1.15 var(--serif);
  letter-spacing: -.025em;
}
.product-detail .detail-grid > .prod-content { grid-column: 2; grid-row: 2; padding: 0; }
.product-detail .detail-grid > .detail-media { grid-column: 1; grid-row: 1 / 3; min-width: 0; }
.product-gallery .product-photo {
  height: auto; aspect-ratio: 1.12; border-radius: .18rem; border: 1px solid #e4d9ce;
  background: radial-gradient(ellipse at 46% 36%, #faf4ed, #f0e4d7 76%, #e8d9cc);
}
.product-gallery [data-gallery-photo] {
  position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
}
.product-gallery [data-gallery-photo] img { object-fit: contain; }
.product-gallery [data-gallery-photo] .gallery-detail { width: 84%; height: 84%; }
.product-gallery [data-gallery-photo] .gallery-scene { width: 100%; height: 100%; mix-blend-mode: normal; }
.gallery-scene-note {
  position: absolute; top: .65rem; left: .65rem; padding: .32rem .55rem; border-radius: 2px;
  background: #fffcf7; color: #241b17; font: 550 .78rem/1.3 var(--sans);
}
.gallery-scene-note[hidden] { display: none; }
.gallery-zoom, .gallery-dialog button {
  display: inline-flex; gap: .55rem; align-items: center; justify-content: center;
  min-height: 44px; padding: .4rem .85rem; border: 1px solid #d5c9bb; border-radius: 2px;
  background: #fffcf7; color: #241b17; font: 650 .9rem/1.2 var(--sans);
}
.gallery-zoom { position: absolute; z-index: 1; bottom: clamp(.55rem, 2vw, 1.25rem); right: clamp(.55rem, 2vw, 1.25rem); }
.gallery-zoom span, .gallery-dialog button span { font-size: 1.2em; }
.gallery-strip { display: flex; gap: clamp(.2rem, 1vw, .55rem); margin-top: .6rem; }
.gallery-thumb {
  display: grid; grid-template-rows: clamp(2.3rem, 5vw, 3.1rem) auto; align-items: start;
  flex: 0 1 6.3rem; min-width: 0; min-height: 44px; padding: .22rem .12rem .32rem;
  background: #f6eee5; color: #31251e; border: 1px solid #e1d7cd; border-radius: 2px;
  text-align: center; text-decoration: none; font: 600 .76rem/1.2 var(--sans);
}
.gallery-thumb img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumb[data-scene] img { mix-blend-mode: normal; }
.gallery-thumb span { align-self: center; margin: .2rem 0 0; }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.gallery-thumb[aria-current] { border-color: var(--accent-ink); box-shadow: inset 0 -2px var(--accent-ink); }
.gallery-thumb:hover { border-color: var(--accent-ink); }
.gallery-dialog {
  width: min(95vw, 60rem); max-width: 95vw; margin: auto; padding: .75rem;
  background: var(--paper); border-radius: .2rem; max-height: 95dvh;
}
.gallery-dialog::backdrop { background: rgb(27 18 14 / 75%); }
.gallery-dialog form { display: flex; justify-content: end; margin: 0 0 .45rem; }
.gallery-full { display: grid; place-items: center; }
.gallery-full img { max-width: 100%; max-height: 75vh; max-height: 75dvh; object-fit: contain; }
.gallery-full p { margin: .55rem 0 .2rem; font: 550 .88rem/1.4 var(--sans); }
.product-detail .saleprice { margin-top: 1.25rem; }
.product-detail .selection-price:not([hidden]) {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: .7rem 1rem;
}
.product-detail .selection-price[hidden] { display: none; }
.selection-amounts { align-self: center; }
.selection-amounts strong, .selection-amounts span { display: block; }
.selection-amounts span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.product-detail .selection-price button { grid-column: 1 / -1; min-height: 3.12rem; }
#prix-livre { scroll-margin-top: 1rem; }
.product-detail .product-links { border-top: 1px solid var(--line); padding-top: .8rem; }
@media (max-width: 650px) {
  .product-detail .detail-grid { display: flex; flex-direction: column; gap: 0; }
  .product-detail .detail-grid > .detail-media, .product-detail .detail-grid > .prod-content { display: block; }
  .product-title { padding: 0; }
  .product-title h1 { font-size: clamp(3rem, 12vw, 4.4rem); }
  .product-title .subtitle { margin: .35rem 0 .55rem; }
  .product-detail .product-gallery .product-photo { height: auto; aspect-ratio: 1.38; max-height: 22rem; }
  .gallery-strip {
    overflow-x: auto; padding: .22rem; gap: .4rem;
    scroll-snap-type: x proximity; overscroll-behavior-inline: contain;
  }
  .gallery-thumb {
    flex: 0 0 clamp(4.9rem, 21vw, 6.3rem); font-size: .875rem; scroll-snap-align: start;
  }
  .product-detail .mobile-order-jump { margin: 0 0 .25rem; }
  .product-detail .saleprice { margin-top: 1rem; }
}
