/* One reusable, manually navigated gallery; the catalogue/filter remains independent. */
.product-gallery { padding-block: 76px 72px; }
.product-gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.product-gallery-heading h2 { margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); }
.product-gallery-intro { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.product-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-block: 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: #cfb18b80 #ffffff0d;
}
.product-gallery-track:focus-visible { outline: 2px solid #ead2b2; outline-offset: 6px; }
.product-gallery-card { min-width: 0; scroll-snap-align: start; }
.product-gallery-card .product-open:focus-visible { outline-offset: -3px; }
.product-gallery-card .product-open figure { aspect-ratio: 3 / 4; background: #303930; }
.product-gallery-card .product-open img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.product-gallery-card .product-open > div { flex-direction: column; align-items: start; gap: 8px; padding-block: 19px 21px; }
.product-gallery-card .product-open h3 { font-size: 27px; line-height: 1.2; }
.product-gallery-card .product-open > div > span { color: var(--muted); font-size: 12px; }
.product-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.product-gallery-controls[hidden] { display: none; }
.product-gallery-catalogue { margin-top:24px; }
.product-material-band { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px; padding-block:30px 70px; }
.product-material-band h2 { margin-block:16px 20px; font-size:36px; }
.product-material-band p:not(.eyebrow) { color:var(--muted); }
.product-material-band .material-detail { margin:0; }
.product-material-band .material-detail img { width:100%; height:260px; object-fit:cover; }
.product-gallery-position { color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-gallery-arrows { display: flex; gap: 10px; }
.product-gallery-arrows button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #cfb18b75;
  border-radius: 0;
  background: transparent;
  color: #ead2b2;
  font-size: 23px;
  line-height: 1;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.product-gallery-arrows button:hover:not(:disabled) { background: #cfb18b; border-color: #cfb18b; color: #171c17; }
.product-gallery-arrows button:disabled { opacity: .35; cursor: default; }
.product-gallery-arrows button:focus-visible { outline: 2px solid #ead2b2; outline-offset: 4px; }

@media (max-width: 950px) {
  .product-gallery-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
  .product-gallery-card .product-open h3 { font-size: 28px; }
}
@media (max-width: 650px) {
  .product-material-band { grid-template-columns:1fr; gap:28px; padding-block:12px 48px; }
  .product-material-band h2 { font-size:30px; }
  .product-gallery { padding-block: 48px; }
  .product-gallery-heading { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 25px; }
  .product-gallery-heading h2 { font-size: 34px; }
  .product-gallery-intro { max-width: 100%; }
  .product-gallery-track { grid-auto-columns: 100%; gap: 18px; }
  .product-gallery-card .product-open figure,
  .product-gallery-card .product-open img { aspect-ratio: 3 / 4; }
  .product-gallery-card .product-open > div { flex-direction: row; align-items: center; gap: 12px; }
  .product-gallery-card .product-open h3 { font-size: 28px; }
  .product-gallery-card .product-open > div > span { font-size: 11px; }
  .product-gallery-controls { margin-top: 14px; }
}
@media (max-width: 370px) {
  .product-gallery-card .product-open > div { flex-direction: column; align-items: start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery-track { scroll-behavior: auto !important; }
  .product-gallery-arrows button { transition: none; }
}
@media (forced-colors: active) {
  .product-gallery-arrows button { border-color: ButtonText; color: ButtonText; }
}


/* Original product frames and real source detail. No image enlarging past source pixels. */
.product-card .product-open figure { aspect-ratio: 3 / 4; }
.product-card .product-open img,
.product-gallery-card .product-open img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-viewport {
  width: 100%; min-width: 0; height: min(68svh, 650px); margin: 0;
  overflow: auto; overscroll-behavior: contain; background: #111611;
}
.product-photo-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.product-dialog .product-photo-viewport .dialog-photo {
  width: 100%; max-width: var(--product-native-width, 100%);
  height: 100%; max-height: none; margin-inline: auto; object-fit: contain;
}
.product-dialog.product-detail-open .product-photo-viewport .dialog-photo {
  width: var(--product-native-width); max-width: none; height: auto; margin: 0;
}
.product-detail-toggle {
  display: inline-block; margin: 0 0 24px; padding: 10px 16px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.product-detail-toggle:disabled { opacity: .55; cursor: default; }
@media (max-width: 650px) {
  .product-photo-viewport { height: min(62svh, 500px); }
}
