.shop-gallery{min-width:0}
.shop-gallery [hidden]{display:none!important}
.shop-gallery-main{cursor:zoom-in;touch-action:pan-y pinch-zoom;text-decoration:none}
.shop-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.75rem 0;font-size:.875rem}
.shop-gallery-controls button,.shop-gallery-close{font:inherit;color:var(--ink,#203b30);border:1px solid var(--line,#dce5df);background:#fff;border-radius:8px;padding:.65rem .75rem;min-height:44px;cursor:pointer}
.shop-gallery-controls [data-gallery-count]{text-align:center;flex:1}
.shop-gallery-thumbs{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem .15rem .6rem;scrollbar-width:thin}
.shop-gallery-thumbs button{flex:0 0 78px;padding:4px;border:2px solid transparent;border-radius:8px;background:#f7f8f6;cursor:pointer}
.shop-gallery-thumbs button[aria-pressed=true]{border-color:#916000;background:#fff8e9}
.shop-gallery-thumbs img{display:block;width:66px;height:66px;object-fit:contain;mix-blend-mode:multiply}
.shop-gallery-hint{font-size:.875rem;color:#52605a;margin:.5rem 0}
.shop-gallery-dialog{width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #dce5df;border-radius:14px;background:#fff;color:#203b30;padding:1rem;overflow:auto}
.shop-gallery-dialog::backdrop{background:rgb(12 25 20 / 75%)}
.shop-gallery-dialog[open]{display:flex;flex-direction:column}
.shop-gallery-close{align-self:flex-end;flex-shrink:0;margin:0 0 .5rem}
.shop-gallery-zoom{min-height:0;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.shop-gallery-zoom img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 210px);object-fit:contain}
.shop-gallery-dialog .shop-gallery-controls{flex-shrink:0;margin-bottom:0}
.shop-gallery :is(a,button):focus-visible{outline:3px solid #aa6000;outline-offset:3px}
@media(max-width:480px){.shop-gallery-dialog{padding:.75rem}.shop-gallery-controls button{padding:.6rem;font-size:.875rem}.shop-gallery-controls{gap:.3rem}.shop-gallery-main{padding:1rem}}
