/* A quiet, image-led viewing surface shared by every model page. */
.product-gallery { min-width: 0; }
.product-gallery [hidden] { display: none !important; }
.product-gallery-stage { position: relative; background: #edf1f1; overflow: hidden; }
.product-gallery-panel { width: 100%; }
.product-gallery-open { display: flex; position: relative; width: 100%; aspect-ratio: 1.12; border: 0; padding: 0; background: transparent; cursor: zoom-in; align-items: center; justify-content: center; }
.product-gallery-open > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-open-label { position: absolute; right: 18px; bottom: 19px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; color: #405b6c; background: #f6f8f7ed; font-size: 9px; line-height: 1.5; }
.product-gallery-open-label .icon { width: 15px; height: 15px; }
.product-gallery-open:disabled { cursor: default; }
.product-gallery-open:disabled .product-gallery-open-label { display: none; }
.product-gallery-stage-navigation { position: absolute; display: flex; left: 18px; bottom: 18px; gap: 5px; pointer-events: none; }
.product-gallery-step { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ccd6da; background: #f6f8f7f5; color: #365b77; pointer-events: auto; }
.product-gallery-step .icon { width: 18px; height: 18px; }
.product-gallery-step[data-gallery-step=previous] .icon { transform: rotate(180deg); }
.product-gallery-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; min-height: 37px; padding: 11px 0 8px; font-size: 10px; line-height: 1.6; color: #6a7b86; }
.product-gallery-caption > :first-child { overflow-wrap: anywhere; }
.product-gallery-caption > :last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: #38526a; }
.product-gallery-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.product-gallery-thumbnail { display: block; position: relative; min-width: 0; padding: 0; border: 1px solid #d7e0e0; background: #edf1f1; aspect-ratio: 1.22; }
.product-gallery-thumbnail > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.product-gallery-thumbnail > span { position: absolute; right: 5px; bottom: 3px; padding: 0 3px; font-size: 8px; color: #3c576a; background: #f6f8f7e8; font-variant-numeric: tabular-nums; }
.product-gallery-thumbnail[aria-pressed=true] { border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.product-gallery-thumbnail[aria-pressed=true] > img { opacity: 1; }
.product-gallery-note { margin: 13px 0 0; color: #73818b; font-size: 10px; line-height: 1.75; }
.product-gallery-fallback { background: #edf1f1; }
.product-gallery-fallback > .catalog-detail-visual { height: auto; min-height: 0; aspect-ratio: 1.12; }
.product-gallery-image-error { color: #536b7b; font-size: 12px; line-height: 1.7; padding: 24px; text-align: center; }
.product-gallery-dialog { margin: auto; padding: 0; width: min(1240px, calc(100vw - 64px)); height: min(1000px, calc(100dvh - 48px)); max-width: none; max-height: calc(100dvh - 48px); border: 1px solid #d0dbdf; color: var(--ink); background: #f3f5f4; overflow: hidden; }
.product-gallery-dialog[open] { display: flex; flex-direction: column; }
.product-gallery-dialog::backdrop { background: #092235bd; }
:root:has(.product-gallery-dialog[open]) { overflow: hidden; }
.product-gallery-dialog-header { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 25px 18px; background: white; border-bottom: 1px solid var(--line); }
.product-gallery-dialog-header .page-kicker { font-size: 8px; }
.product-gallery-dialog-header h2 { margin-top: 5px; font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.4px; overflow-wrap: anywhere; }
.product-gallery-close { display: flex; width: 40px; height: 40px; flex-shrink: 0; align-items: center; justify-content: center; background: transparent; border: 1px solid #d3dce1; color: #466173; }
.product-gallery-close .icon { width: 19px; height: 19px; }
.product-gallery-zoom-viewport { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #e8edec; }
.product-gallery-zoom-canvas { min-width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; }
.product-gallery-zoom-canvas > img { display: block; max-width: none; object-fit: contain; flex-shrink: 0; }
.product-gallery-dialog-toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; padding: 11px 24px; background: white; border-top: 1px solid var(--line); }
.product-gallery-dialog-browse, .product-gallery-zoom-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.product-gallery-dialog-browse > span { min-width: 47px; text-align: center; font-variant-numeric: tabular-nums; font-size: 11px; }
.product-gallery-dialog-browse .product-gallery-step { border-color: transparent; background: transparent; }
.product-gallery-zoom-controls { gap: 0; border: 1px solid #cbd6dc; }
.product-gallery-zoom-controls > button { height: 39px; min-width: 39px; border: 0; background: white; color: #385d78; font-size: 22px; }
.product-gallery-zoom-controls > button[data-gallery-zoom=reset] { min-width: 61px; font-size: 11px; font-variant-numeric: tabular-nums; }
.product-gallery-zoom-controls > button:disabled { color: #adb8bf; cursor: default; }
.product-gallery-dialog-help { flex-shrink: 0; padding: 0 24px 13px; background: white; color: #74838e; font-size: 9px; line-height: 1.6; }
.product-gallery button:focus-visible, .product-gallery-zoom-viewport:focus-visible { outline: 2px solid #4975d8; outline-offset: -3px; }
@media (hover: hover) {
  .product-gallery-step:hover, .product-gallery-close:hover, .product-gallery-zoom-controls > button:not(:disabled):hover { background: #eaf0f1; }
  .product-gallery-thumbnail:hover { border-color: #8097a6; }
  .product-gallery-thumbnail:hover > img { opacity: 1; }
}
@media (max-width: 760px) {
  .product-gallery-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .product-gallery-dialog-header { padding: 16px; gap: 12px; }
  .product-gallery-dialog-header h2 { font-size: 19px; }
  .product-gallery-dialog-toolbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .product-gallery-dialog-help { padding: 0 16px 12px; }
  .product-gallery-open-label { right: 12px; bottom: 13px; max-width: calc(100% - 119px); font-size: 8px; }
  .product-gallery-stage-navigation { left: 12px; bottom: 12px; }
  .product-gallery-thumbnails { gap: 6px; }
  .product-gallery-step, .product-gallery-close, .product-gallery-zoom-controls > button { min-width: 42px; height: 42px; }
  .product-gallery-caption { font-size: 9px; }
}
