.product-image-viewer {box-sizing:border-box;width:96vw;max-width:1100px;height:94dvh;max-height:94dvh;padding:1rem;border-radius:16px;background:var(--cream);color:var(--ink);overflow:hidden;}
.product-image-viewer[open]{display:flex;flex-direction:column;gap:.5rem;}
.product-image-viewer::backdrop{background:rgba(35,25,20,.8)}
.product-image-viewer .preview-chart-header{flex:none}.product-image-viewer .viewer-title{margin:0;font:600 1.2rem/1.3 var(--serif)}
.product-image-viewer .preview-chart-caption,.product-image-viewer .viewer-help{margin:0;font-size:.85rem;flex:none}
.viewer-tools{display:flex;gap:.4rem;flex-wrap:wrap;flex:none;justify-content:center}.viewer-tools button,.product-image-viewer .preview-chart-close{min-height:44px;min-width:44px;margin:0;padding:.4rem .7rem;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);font:inherit;cursor:pointer}
.viewer-viewport{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:var(--cream);cursor:grab}
.product-image-viewer .preview-chart-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;user-select:none;pointer-events:none;margin:0;}
.filtered-shopify-main-image[role=button]{cursor:zoom-in}.filtered-shopify-main-image[role=button]:focus-visible{outline:3px solid var(--berry-dark);outline-offset:-4px}
@media(max-width:600px){.product-image-viewer{padding:.65rem;width:98vw;height:96dvh;max-height:96dvh}.viewer-tools{gap:.25rem}.viewer-tools button{padding:.35rem .5rem}.viewer-help{font-size:.75rem}}
