.product-image-preview { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-image-preview:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: -3px; }
.product-image-hint { position: absolute; right: 10px; bottom: 10px; background: #0b1e36cc; color: white; border-radius: 6px; padding: 2px 9px; font-size: 24px; }
.image-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #080d16f5; color: #fff; overflow: hidden; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer::backdrop { background: #080d16; }
.image-viewer-toolbar { display: flex; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) 18px 12px; flex-shrink: 0; background: #111827; }
.image-viewer-toolbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 1rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-controls { display: flex; align-items: center; gap: 6px; }
.image-viewer-controls button { width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 8px; color: #fff; background: #ffffff12; font-size: 25px; cursor: pointer; }
.image-viewer-controls button:disabled { opacity: .35; cursor: default; }
.image-viewer-controls button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.image-viewer-controls output { min-width: 48px; text-align: center; font-size: .85rem; }
.image-viewer-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; }
.image-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; cursor: grab; flex-shrink: 0; }
.image-viewer-stage.is-dragging img { cursor: grabbing; }
.image-viewer-help { flex-shrink: 0; margin: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); text-align: center; color: #b6c1d1; font-size: .8rem; }
@media (max-width: 600px) {
    .image-viewer-toolbar { flex-wrap: wrap; gap: 8px; padding-inline: 12px; }
    .image-viewer-toolbar h2 { flex-basis: 100%; font-size: .9rem; }
    .image-viewer-controls { width: 100%; justify-content: center; }
    .image-viewer-controls [data-image-action="close"] { margin-left: auto; }
}
.product-detail-gallery { display: grid; gap: 18px; margin-bottom: 30px; }
.product-detail-gallery figure { margin: 0; }
.product-detail-gallery .product-image-preview { height: 420px; border-radius: var(--radius-md); overflow: hidden; background: #f0f2f3; }
.product-detail-gallery img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-gallery figcaption { margin-top: 8px; color: var(--text-secondary); }
@media (max-width: 600px) { .product-detail-gallery .product-image-preview { height: 300px; } }
