/* Match the reference photo area: 794 x 1059, scaled down for smaller screens. */
.detail-layout > .gallery {
  --gallery-image-height:min(1059px,max(1px,calc(100svh - var(--header-height) - var(--notice-height) - 100px)));
  display:grid;
  grid-template-columns:clamp(48px,4vw,80px) minmax(0,1fr);
  align-items:start;
  gap:clamp(12px,1.4vw,28px);
  padding-left:clamp(16px,2vw,48px);
}
.gallery .gallery-hero {
  grid-column:2;
  grid-row:1;
  justify-self:center;
  width:min(100%,794px,calc(var(--gallery-image-height) * .7497639282));
  max-height:var(--gallery-image-height);
  aspect-ratio:794/1059;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}
.gallery .gallery-hero img { position:static; display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; object-position:center; border:0; border-radius:0; }
.gallery .thumbs button { border:0; border-radius:0; background:transparent; position:relative; }
.gallery .thumbs button[aria-pressed="true"]::after { content:''; position:absolute; left:0; right:0; bottom:-5px; height:1px; background:var(--ink); }
.gallery .thumbs {
  grid-column:1;
  grid-row:1;
  flex-direction:column;
  flex-wrap:nowrap;
  gap:12px;
  padding:4px 0 8px;
  max-height:var(--gallery-image-height);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.gallery .thumbs button { width:100%; flex:0 0 auto; aspect-ratio:3/4; }
.gallery .thumbs img { object-fit:contain; }
.gallery-photo-note { grid-column:2; grid-row:2; margin:0; justify-self:center; color:var(--muted); font-size:11px; line-height:1.5; }
.gallery-photo-note[hidden] { display:none; }
.detail-layout > .gallery:not(:has(.thumbs)) { grid-template-columns:minmax(0,1fr); padding-inline:var(--gutter); }
.gallery:not(:has(.thumbs)) .gallery-hero { grid-column:1; }
@media (max-width:768px) {
  .detail-layout > .gallery {
    --gallery-image-height:min(1059px,max(1px,calc(100svh - var(--header-height) - var(--notice-height) - 96px)));
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:0;
    padding:0;
  }
  .gallery .thumbs {
    width:100%;
    flex-direction:row;
    gap:10px;
    max-height:none;
    padding:16px var(--gutter) 20px;
    overflow-x:auto;
    overflow-y:hidden;
  }
  .gallery .thumbs button { width:52px; flex:0 0 52px; }
}
.product-card, .card-picture, .card-picture img { border:0; border-radius:0; box-shadow:none; }
.variant-selector { border:0; padding:0; margin:30px 0; min-width:0; }
.variant-selector legend { display:block; width:100%; padding:0 0 14px; color:var(--muted); font-size:12px; line-height:1.6; letter-spacing:.08em; text-transform:uppercase; }
.variant-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; row-gap:10px; }
.variant-option { position:relative; display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); cursor:pointer; min-width:0; color:var(--muted); transition:color .2s,border-color .2s; }
.variant-option:has(input:checked) { color:var(--ink); border-color:var(--ink); }
.variant-option:has(input:focus-visible) { outline:1px solid var(--ink); outline-offset:5px; }
.variant-option input { position:absolute; width:1px; height:1px; opacity:0; }
.variant-option-name { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.variant-option-dot { flex:0 0 20px; width:20px; height:20px; border-radius:50%; background:var(--swatch); box-shadow:inset 0 0 0 1px #0001; }
.variant-option-check { margin-left:auto; width:12px; height:7px; flex:0 0 12px; border-left:1px solid; border-bottom:1px solid; transform:translateY(-2px) rotate(-45deg); opacity:0; }
.variant-option:has(input:checked) .variant-option-check { opacity:1; }
.delivery-estimate { font-size:13px; color:var(--muted); margin:0 0 24px; }
.product-specifications { color:var(--muted); font-size:14px; line-height:1.75; padding-top:8px; }
.product-specifications p { margin:14px 0; font-size:inherit; line-height:inherit; white-space:normal; }
.product-specifications strong { color:var(--ink); font-weight:500; }
.product-specifications ul, .product-specifications ol { padding-left:20px; }
.product-specifications h2, .product-specifications h3, .product-specifications h4 { font-size:15px; line-height:1.6; margin:24px 0 12px; }
.product-specifications table { width:100%; border-collapse:collapse; }
.product-specifications td, .product-specifications th { padding:8px 0; text-align:left; font-weight:400; border-bottom:1px solid var(--line); }
.detail-page .related-products-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:989px) { .detail-page .related-products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .variant-options { column-gap:20px; } .variant-option { padding:14px 0; gap:9px; } .variant-option-name { font-size:13px; } }
