.product-gallery{min-width:0;align-self:start;display:flex;flex-direction:column;gap:12px}
.gallery-stage{position:relative;display:grid;place-items:center;width:100%;padding:8px 8px 34px;border:1px solid #e2e9ee;border-radius:12px;background:#fff;cursor:zoom-in;overflow:hidden}
.gallery-stage>img{display:block;width:100%;height:auto;aspect-ratio:1500/1060;object-fit:contain;background:#fff}
.gallery-enlarge-label{position:absolute;right:12px;bottom:9px;font-size:12px;color:#526779}
.product-gallery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gallery-option{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;min-height:62px;border:1px solid #d4e1e8;border-radius:8px;background:#fff;color:#29485d;font:inherit;font-size:13px;cursor:pointer}
.gallery-option>img{width:58px;height:42px;object-fit:contain;background:#fff}
.gallery-option.is-selected{border-color:#0a7085;box-shadow:inset 0 0 0 1px #0a7085;background:#f2f8fa;color:#085d70}
.gallery-option:focus-visible,.gallery-stage:focus-visible,.image-viewer-toolbar button:focus-visible,.image-viewer-arrow:focus-visible{outline:3px solid #0a7085;outline-offset:3px}
.product-documents{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin-top:20px}
.product-documents .manufacturer-document{font-size:12px;color:#526779}
.product-image-viewer{width:min(1540px,96vw);max-width:none;max-height:none;height:92dvh;margin:auto;padding:0;border:0;border-radius:12px;overflow:hidden;background:#fff;color:#1c364b}
.product-image-viewer::backdrop{background:rgba(12,30,43,.75)}
.image-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #dbe5ec;min-height:64px;box-sizing:border-box}
.image-viewer-toolbar>span{font-size:14px;font-weight:600;line-height:1.4}
.image-viewer-toolbar>div{display:flex;align-items:center;gap:10px;flex-shrink:0}
.image-viewer-toolbar button{border:1px solid #c5d7e1;border-radius:6px;background:#fff;color:#1c364b;cursor:pointer;font:inherit;font-size:13px;padding:8px 12px}
.image-viewer-toolbar [data-image-close]{font-size:24px;line-height:24px;padding:5px 10px}
.image-viewer-content{position:relative;height:calc(100% - 65px)}
.image-viewer-canvas{height:100%;overflow:auto;overscroll-behavior:contain;background:#fff;display:grid;place-items:center}
.image-viewer-canvas>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;background:#fff}
.image-viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:46px;padding:10px;border:1px solid #c5d7e1;border-radius:50%;background:#fff;color:#0a7085;box-shadow:0 2px 10px #17364b1a;cursor:pointer}
.image-viewer-arrow:hover{background:#f2f8fa;border-color:#0a7085}
.image-viewer-arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.image-viewer-prev{left:18px}.image-viewer-next{right:18px}
.is-enlarged .image-viewer-canvas{display:block}
.is-enlarged .image-viewer-canvas>img{width:max(1500px,140%);height:auto;max-width:none;object-fit:initial}
@media(max-width:650px){
 .gallery-option{font-size:12px;padding:6px;gap:6px;min-height:56px}.gallery-option>img{width:48px;height:36px}
 .product-image-viewer{width:98vw;height:94dvh;border-radius:8px}
 .image-viewer-toolbar{padding:10px;gap:8px;min-height:84px;align-items:flex-start}.image-viewer-toolbar>span{font-size:12px}.image-viewer-toolbar>div{gap:6px}.image-viewer-toolbar button{font-size:11px;padding:7px 8px}.image-viewer-content{height:calc(100% - 85px)}
 .image-viewer-prev{left:8px}.image-viewer-next{right:8px}
}
@media(max-width:380px){.gallery-option{flex-direction:column;gap:3px;min-width:0}.gallery-option>img{width:44px;height:28px}}

.product-gallery-options.has-wiring{grid-template-columns:repeat(3,minmax(0,1fr))}
