.product-gallery{min-width:0;width:100%;align-self:start}
.gallery-stage{position:relative;display:grid;place-items:center;background:#f3f4f0;border-radius:12px;overflow:hidden;touch-action:pan-y;aspect-ratio:1/1}
.product-gallery .gallery-stage .gallery-photo,#detail-content .gallery-stage .gallery-photo{display:block;width:100%;height:100%;max-height:560px;object-fit:contain;border-radius:0}
.gallery-stage .gallery-photo[hidden],.product-gallery [hidden]{display:none!important}
.gallery-error{padding:24px;text-align:center;color:#52665c;font-size:14px}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin:14px 0 10px}
.gallery-arrow{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #d0d9d2;border-radius:50%;background:#fff;color:#173b2c;font:22px system-ui;cursor:pointer}
.gallery-count{min-width:42px;text-align:center;color:#52665c;font:14px system-ui;font-variant-numeric:tabular-nums}
.gallery-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.gallery-thumb{padding:3px;border:2px solid transparent;border-radius:8px;background:#f3f4f0;cursor:pointer;min-height:44px;aspect-ratio:1/1;overflow:hidden}
.gallery-thumb[aria-pressed=true]{border-color:#173b2c;background:#e9eee8}
.product-gallery .gallery-thumb img,#detail-content .gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}
.product-gallery button:focus-visible,.gallery-stage:focus-visible{outline:3px solid #b28940;outline-offset:3px}
@media(max-width:650px){.product-gallery .gallery-stage .gallery-photo,#detail-content .gallery-stage .gallery-photo{max-height:400px}.gallery-controls{margin-top:10px}.gallery-thumbs{gap:5px}}
