.product-page { margin-bottom: 48px; }
#product-mobile-actions { grid-template-columns: 1fr; }

.product-sheet {
  padding: clamp(14px, 1.45vw, 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.product-return { display:flex; align-items:center; gap:clamp(14px,2vw,28px); padding-bottom:8px; margin-bottom:clamp(12px,1.4vw,22px); border-bottom:1px solid var(--line); }
#product-back { display:inline-flex; flex:none; align-items:center; gap:8px; min-height:44px; padding:0 4px; color:var(--blue); font-size:1rem; font-weight:650; text-decoration:none; }
#product-back svg { flex:none; }
#product-back:is(:hover,:focus-visible) { color:var(--ink); }
@media (prefers-reduced-motion:no-preference) {
  #product-back svg { transition:transform .18s ease-out; }
  #product-back:is(:hover,:focus-visible) svg { transform:translateX(-3px); }
}
.product-return .site-path { min-width:0; margin:0; padding-inline-start:clamp(14px,2vw,28px); border-inline-start:1px solid var(--line); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.18fr);
  grid-template-areas: 'intro gallery';
  gap: clamp(18px, 2.5vw, 44px);
  align-items: center;
}

.product-hero.no-gallery, .product-hero:not(:has(.product-gallery:not([hidden]))) {
  grid-template-columns: 1fr;
  grid-template-areas: 'intro';
}
.product-intro { grid-area:intro; min-width:0; padding-inline:clamp(0px,1vw,18px); }
.product-heading { min-width:0; }
.product-heading h1, .product-missing h1 {
  font-size: clamp(1.875rem, 3.35vw, 3rem);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

.product-sku { margin-top: 12px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.product-summary { max-width: 58ch; margin-top: 16px; color: var(--muted); font-size:clamp(1rem,1.25vw,1.23rem); line-height:1.55; }
.product-gallery { grid-area: gallery; min-width: 0; }
.product-gallery__frame { position: relative; }

.product-gallery__stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e9edf2;
}

:root[data-theme='dark'] .product-gallery__stage { background: #c8d1dd; }

.product-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

[data-photo-fit-gallery] .product-gallery__stage { isolation:isolate; }
[data-photo-fit-gallery] #product-photo { z-index:1; }
[data-photo-fit-expand] {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-inline-start:auto;
  color:var(--blue);
  font-weight:650;
  white-space:nowrap;
}
[data-photo-fit-gallery] .product-photo-fill {
  object-fit:cover;
  filter:blur(18px);
  opacity:.32;
  transform:scale(1.1);
  pointer-events:none;
}
@media (min-width:721px) {
  .product-hero:has([data-photo-fit-gallery]:not([hidden])) {
    grid-template-columns:minmax(0,.8fr) minmax(0,1.28fr);
  }
}

.product-gallery__step {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgb(21 43 69 / 18%);
  border-radius: 12px;
  background: #fff;
  color: #183654;
  cursor: pointer;
}
.product-gallery__step[data-product-gallery-step="-1"] { inset-inline-start: 12px; }
.product-gallery__step[data-product-gallery-step="1"] { inset-inline-end: 12px; }
.product-gallery__step svg { width: 22px; height: 22px; }
.product-gallery__step:hover { background: #e8f1fa; }
.product-gallery__step:focus-visible { outline: 3px solid #2666a2; outline-offset: 2px; }

.product-gallery__caption { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-block:12px; color:var(--muted); font-size:.9375rem; line-height:1.42; }
.product-photo-count { color:var(--muted); font-size:.9375rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.product-thumbnails:not([hidden]) {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px 2px 4px;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}
.product-thumbnails a { flex:0 0 auto; display:block; padding:2px; width:clamp(60px,5.4vw,84px); height:clamp(48px,4.1vw,64px); border:2px solid transparent; border-radius:8px; cursor:pointer; }
.product-thumbnails a:is(:hover,[aria-current]) { border-color:var(--blue); }
.product-thumbnails a:focus-visible { outline:2px solid var(--ink); outline-offset:0; }
.product-thumbnails img { display:block; width:100%; height:100%; object-fit:contain; border-radius:4px; background:#e9edf2; }

.product-order {
  display:flex; align-items:center; flex-wrap:wrap; gap:13px clamp(16px,2vw,36px);
  margin-top:clamp(22px,2.4vw,38px); padding-block:clamp(18px,2vw,30px) 0;
  border-top: 1px solid var(--line);
}

.product-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.product-price { font-size: clamp(1.75rem, 3.7vw, 2.75rem); font-weight: 740; line-height: 1.18; font-variant-numeric: tabular-nums; }
.product-price[data-request-price] { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.product-order-note { padding: 4px 8px; border-radius: 6px; color: var(--blue); background: var(--wash); font-size: .875rem; }
.product-call { min-width:min(100%,12rem); }
.product-department { flex-basis:100%; color:var(--muted); font-size:.9375rem; }
.product-department span { display: inline-block; }
.product-delivery { flex-basis:100%; margin:0; color:var(--muted); font-size:1rem; line-height:1.45; }

.product-description-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.product-info {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.product-info h2 { font-size: clamp(1.25rem, 2.25vw, 1.625rem); font-weight: 690; line-height: 1.2; }
.product-info p { max-width: 62ch; margin-top: 12px; color: var(--muted); white-space: pre-line; }
.product-specs { margin-top: 12px; }
.product-specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 16px; padding-block: 10px; border-top: 1px solid var(--line); }
.product-specs div:last-child { padding-bottom: 0; }
.product-specs dt { color: var(--muted); }
.product-specs dd { font-weight: 620; overflow-wrap: anywhere; }

.product-related-sizes { margin-top: 16px; }
.product-related-sizes__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.product-related-sizes__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  height: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, background-color .18s ease;
}
.product-related-sizes__list a:is(:hover, :focus-visible) { border-color: var(--blue); background: var(--wash); }
.product-related-sizes__list strong { color: var(--blue); font-size: .9375rem; }
@media (max-width: 440px) {
  .product-related-sizes__list a { grid-template-columns: 1fr; }
}

.product-missing {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.product-missing p { margin-block: 12px 20px; color: var(--muted); }

@media (min-width: 1680px) {
  .product-gallery:is([data-photo-fit-gallery], :has([data-photo-kind='reference'])) {
    width: min(100%, 96vh, 1080px);
    justify-self: center;
  }
  .product-gallery__stage { position: relative; max-height: min(64vh, 720px); }
  .product-gallery__stage img { position: absolute; inset: 0; }
}
@media (max-width: 720px) {
  [data-photo-fit-gallery] .product-gallery__stage[data-photo-shape='standard'] { aspect-ratio:4 / 3; }
  [data-photo-fit-gallery] .product-gallery__stage[data-photo-shape='portrait'] { aspect-ratio:5 / 4; }
  [data-photo-fit-gallery] .product-gallery__caption { flex-wrap:wrap; gap:0 10px; }
  [data-photo-fit-gallery] #product-photo-caption { min-width:0; overflow-wrap:anywhere; }
  .product-sheet { border-radius:20px; padding-block-start:6px; }
  .product-return { padding-bottom:4px; margin-bottom:14px; }
  .product-return .site-path { display:none; }
  .product-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 'heading' 'gallery' 'order';
    gap: 16px;
  }
  .product-intro { display:contents; }
  .product-heading { grid-area:heading; padding-top:0; }
  .product-order { grid-area:order; margin-top:0; }
  .product-hero.no-gallery, .product-hero:not(:has(.product-gallery:not([hidden]))) { grid-template-areas:'heading' 'order'; }
  .product-summary { margin-top: 8px; }
  .product-gallery__stage { border-radius: 12px; }
  .product-gallery__step[data-product-gallery-step="-1"] { inset-inline-start: 8px; }
  .product-gallery__step[data-product-gallery-step="1"] { inset-inline-end: 8px; }
  .product-order { gap:8px 16px; padding-block:16px 0; }
  .product-call { min-width:0; }
  .product-description-grid { grid-template-columns: 1fr; }
}
.product-photo-note { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
