/* The gallery occupies the existing product photo column. */
.product-gallery{min-width:0;width:100%;align-self:start}
.product-gallery [hidden]{display:none}
.product-gallery-stage{border-radius:var(--radius-card);overflow:hidden;background:#ebe9df}
.product-gallery-track{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;aspect-ratio:1;outline-offset:-4px}
.product-gallery-track::-webkit-scrollbar{display:none}
.product-gallery-slide{flex:0 0 100%;min-width:0;aspect-ratio:1;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.product-gallery-image-link{position:relative;display:block;width:100%;height:100%;cursor:zoom-in;outline-offset:-5px}
.product-gallery-slide img{display:block;width:100%;height:100%;object-fit:contain}
.product-gallery-zoom{position:absolute;right:14px;bottom:14px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#153e31;background:#fffdf5;border:1px solid #d6ddd0;box-shadow:0 2px 8px #153e3112}
.product-gallery svg{display:block;width:21px;height:21px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.product-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.product-gallery-position{display:flex;align-items:center;gap:12px;margin:0;min-width:0;font-size:.875rem;line-height:1.4;color:#526556}
.product-gallery-position [data-gallery-counter]{white-space:nowrap;color:#163e31;font-variant-numeric:tabular-nums;font-weight:600}
.product-gallery-arrows{display:flex;gap:8px;flex-shrink:0}
.product-gallery-arrows button,.product-gallery-dialog-footer button{display:grid;place-items:center;width:44px;height:44px;padding:0;color:#163e31;background:#fffdf7;border:1px solid #bdc8bc;border-radius:50%;cursor:pointer}
.product-gallery button:disabled{opacity:.35;cursor:default}
.product-gallery-arrows button:hover:not(:disabled),.product-gallery-dialog-footer button:hover:not(:disabled){background:#e1e9dc}
.product-gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.product-gallery-thumbnails button{position:relative;display:block;min-width:0;aspect-ratio:1;padding:3px;background:transparent;border:2px solid transparent;border-radius:var(--radius-option);cursor:pointer;transition:border-color .15s}
.product-gallery-thumbnails button[aria-current="true"]{border-color:#174733}
.product-gallery-thumbnails button:hover{border-color:#7c927a}
.product-gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--radius-control)}
.product-gallery :focus-visible{outline:3px solid #174733;outline-offset:3px}
.product-gallery-track:focus-visible,.product-gallery-image-link:focus-visible{outline-offset:-5px}
.product-gallery-modal-open{overflow:hidden}
.product-gallery-dialog{width:min(96vw,1060px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:var(--radius-card);background:#f7f5ec;color:#163e31;overflow:auto;box-shadow:0 12px 60px #0005}
.product-gallery-dialog::backdrop{background:#081c16c9}
.product-gallery-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;font-size:1rem}
.product-gallery-dialog-header button{display:flex;gap:12px;align-items:center;min-height:44px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:6px 4px}
.product-gallery-dialog-header button span{font-size:1.8rem;line-height:1}
.product-gallery-dialog-image{display:block;width:100%;height:auto;aspect-ratio:1;max-height:min(76dvh,calc(100dvh - 164px));object-fit:contain;background:#eceadf}
.product-gallery-dialog-footer{display:flex;align-items:center;justify-content:center;gap:20px;padding:10px 18px;font-size:.875rem}
.product-gallery-dialog-footer span{text-align:center;min-width:0}
@media(max-width:800px){.product-gallery-thumbnails{gap:7px}.product-gallery-controls{margin:10px 0}.product-gallery-zoom{right:10px;bottom:10px}.product-gallery-dialog-header{padding:8px 12px}.product-gallery-dialog-footer{gap:12px;padding:10px 12px}}
@media(max-width:360px){.product-gallery-position{gap:8px;font-size:.8125rem}.product-gallery-arrows{gap:5px}.product-gallery-thumbnails{gap:4px}.product-gallery-thumbnails button{padding:2px}}
@media(prefers-reduced-motion:reduce){.product-gallery-thumbnails button{transition:none}}
