.product-gallery { min-width: 0; margin: 0; }
.product-gallery [data-preview-open] { display: block; cursor: zoom-in; }
.product-gallery img { display: block; width: 100%; height: auto; border: 1px solid #cdd8d7; border-radius: .75rem; }
.product-gallery-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.product-gallery-controls[hidden] { display: none; }
.product-gallery-controls button { min-height: 44px; padding: .5rem .8rem; border: 1px solid #cdd8d7; border-radius: .5rem; background: #fff; color: #1e3f43; font: inherit; font-size: .9rem; cursor: pointer; }
.product-gallery-controls button[aria-pressed=true] { background: #1e3f43; color: #fff; border-color: #1e3f43; }
.product-gallery figcaption { margin: .85rem 0 0; font-size: .9rem; line-height: 1.5; }
.product-gallery .product-gallery-hint { margin: .35rem 0 0; font-size: .8rem; }
[data-preview-open]:focus-visible, .product-gallery-controls button:focus-visible, .product-image-dialog button:focus-visible { outline: 3px solid #a6452e; outline-offset: 4px; }
.product-preview-open { overflow: hidden; }
.product-image-dialog { width: min(1500px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid #cdd8d7; border-radius: .8rem; background: #fff; color: #1e3f43; box-shadow: 0 20px 100px #0006; }
.product-image-dialog::backdrop { background: #072548c9; }
.product-image-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #cdd8d7; }
.product-image-toolbar h2 { margin: 0; color: #1e3f43; font: 600 .95rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.product-image-toolbar > div { display: flex; gap: .5rem; flex-shrink: 0; }
.product-image-toolbar button { min-height: 44px; min-width: 44px; border: 1px solid #cdd8d7; border-radius: .4rem; padding: .4rem .6rem; background: #fff; color: #1e3f43; cursor: pointer; font: 600 .9rem system-ui, sans-serif; }
.product-image-toolbar button[hidden] { display: none; }
.product-image-scroll { max-height: calc(94dvh - 86px); overflow: auto; background: #eef2ef; }
.product-image-scroll img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
@media (max-width: 640px) { .product-image-toolbar { flex-wrap: wrap; gap: .5rem; } .product-image-toolbar h2 { font-size: .85rem; } .product-image-scroll { max-height: calc(94dvh - 130px); } .product-image-scroll img { max-width: none; min-width: 100%; } }
