/* Product images, not speculative geometry: white canvas and uncluttered views. */
.product-gallery-v2{min-width:0;align-self:start;--gallery-accent:#54534c}
.product-gallery-v2 .gallery-stage{width:100%;min-width:0;box-sizing:border-box;position:relative;background:#fff;min-height:480px;aspect-ratio:1/1;isolation:isolate;border:1px solid #e7eae8;border-radius:18px;overflow:hidden}
.product-gallery-v2 .gallery-open{min-width:0;box-sizing:border-box;display:block;border:0;background:#fff;width:100%;height:100%;padding:62px 54px 48px;cursor:zoom-in}
.product-gallery-v2 .hero-photo{display:flex;width:100%;height:100%;max-height:none;aspect-ratio:auto;align-items:center;justify-content:center}
.product-gallery-v2 .hero-photo img,.product-gallery-v2 .hero-photo svg{height:100%;width:100%;object-fit:contain;max-height:none}
.product-gallery-v2 .gallery-tag{position:absolute;top:20px;left:20px;z-index:2}
.product-gallery-v2 .gallery-index{position:absolute;top:23px;right:24px;color:#56616a;font-size:12px;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.product-gallery-v2 .gallery-prev,.product-gallery-v2 .gallery-next{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:1px solid #d8dde0;background:#ffffffed;border-radius:50%;z-index:2;line-height:1}
.product-gallery-v2 .gallery-prev{left:10px}.product-gallery-v2 .gallery-next{right:10px}
.product-gallery-v2 .gallery-zoom{position:absolute;bottom:18px;right:20px;left:auto;display:flex;align-items:center;gap:7px;border:0;border-bottom:1px solid #cdd6d1;border-radius:0;padding:5px 0;background:#fff;font-size:12px;z-index:2}
.product-gallery-v2 .gallery-zoom svg{width:15px;height:15px}
.product-gallery-v2 .gallery-caption{display:flex;justify-content:space-between;gap:16px;padding:14px 1px 18px;font-size:12px;line-height:1.4;color:#56616a}
.product-gallery-v2 .gallery-view-label{font-weight:650;color:#1b332c}
.product-gallery-v2 .gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;overflow-x:auto;scrollbar-width:thin;margin:0;padding:0 0 6px}
.product-gallery-v2 .gallery-thumbnails button{min-width:0;border:1px solid #d8dde0;border-radius:8px;background:#fff;padding:10px 5px 9px;transition:border-color .18s;display:flex;flex-direction:column;gap:8px;align-items:center}
.product-gallery-v2 .gallery-thumbnails button[aria-pressed=true]{border-color:var(--gallery-accent);box-shadow:inset 0 -2px var(--gallery-accent)}
.product-gallery-v2 .gallery-thumbnails button>.product-photo{width:100%;height:78px;aspect-ratio:auto;display:flex;justify-content:center;align-items:center;overflow:hidden}
.product-gallery-v2 .gallery-thumbnails button>.product-photo img,.product-gallery-v2 .gallery-thumbnails button>.product-photo svg{max-height:100%;height:100%;width:100%;object-fit:contain}
.product-gallery-v2 .gallery-thumbnails button>span:not(.product-photo){font-size:11px;line-height:1.4;display:flex;gap:4px;align-items:baseline;justify-content:center;text-align:center;flex-wrap:wrap}
.product-gallery-v2 .gallery-thumbnails small{color:#7a8580;font-size:9px}
.product-gallery-v2.gallery-is-texture .gallery-open{padding:0}
.product-gallery-v2.gallery-is-texture .hero-photo img{object-fit:cover}
.product-gallery-v2 button:focus-visible,.basket-product-media button:focus-visible{outline:2px solid var(--gallery-accent,#304f6c);outline-offset:3px}
.basket-product-media{width:100%;min-width:0;align-self:start;display:flex;flex-direction:column;align-items:stretch;gap:8px;background:#fff}
.basket-product-media .basket-product-image{display:flex;width:100%;height:180px;align-items:center;justify-content:center;overflow:hidden;background:#fff}
.basket-product-media .product-photo{height:100%;width:100%;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
.basket-product-media .product-photo img,.basket-product-media .product-photo svg{height:100%;width:100%;max-height:100%;object-fit:contain}
.basket-view-buttons{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:2px;border:1px solid #e0e7e2;border-radius:20px;background:#fff}
.basket-view-buttons button{min-height:28px;font-size:10px;line-height:1.2;padding:4px 2px;border:0;border-radius:16px;background:#fff;color:#4f625a}
.basket-view-buttons button[aria-pressed=true]{background:#193e34;color:#fff}
.basket-product-media .basket-view-play{font-size:10px;line-height:1.4;border:0;background:#fff;color:#53685d;padding:3px 0;min-height:26px;white-space:nowrap}
.basket-product-media .basket-view-play span{font-size:12px;vertical-align:middle;padding-right:2px}
.gallery-unavailable{padding:80px 25px;color:#6a7570;text-align:center}
@media(min-width:1200px){.product-gallery-v2 .gallery-stage{aspect-ratio:1/1.08;max-height:710px}.product-gallery-v2 .gallery-open{padding:66px 65px 48px}}
@media(max-width:700px){.product-gallery-v2 .gallery-stage{min-height:0;aspect-ratio:1/1.12;border-radius:12px}.product-gallery-v2 .gallery-open{padding:54px 45px 40px}.product-gallery-v2 .gallery-tag{top:13px;left:13px}.product-gallery-v2 .gallery-index{top:17px;right:16px;font-size:10px}.product-gallery-v2 .gallery-caption{font-size:11px;padding:11px 0 13px}.product-gallery-v2 .gallery-thumbnails{gap:6px}.product-gallery-v2 .gallery-thumbnails button{padding:7px 3px}.product-gallery-v2 .gallery-thumbnails button>.product-photo{height:58px}.product-gallery-v2 .gallery-thumbnails button>span:not(.product-photo){font-size:9px}.product-gallery-v2 .gallery-thumbnails small{display:none}.basket-product-media .basket-product-image{height:150px}}
@media(prefers-reduced-motion:reduce){.product-gallery-v2 *{transition:none!important;animation:none!important}}

.gallery-live.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gallery-videos{margin-top:24px;padding:20px;border:1px solid #e7eae8;border-radius:16px;background:#fff}
.gallery-videos h3{margin:0 0 14px;font-size:16px;color:#263a32}
.gallery-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gallery-video-grid figure{min-width:0;margin:0}
.gallery-video-grid video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#f5f5f2;border-radius:10px}
.gallery-video-grid figcaption{padding:8px 2px 0;color:#56616a;font-size:12px;line-height:1.4}
@media(max-width:700px){.gallery-videos{padding:15px}.gallery-video-grid{grid-template-columns:1fr}.gallery-video-grid video{aspect-ratio:4/3}}
/* Both inline and enlarged views support explicit controls and touch navigation. */
.product-gallery-v2 .gallery-prev,.product-gallery-v2 .gallery-next{width:44px;height:44px;color:#171b1c;border-color:#becfc4}
.product-gallery-v2 .gallery-zoom{min-width:44px;min-height:44px;justify-content:center;transform:none;color:#171b1c}
.product-gallery-v2 .gallery-stage{touch-action:pan-y pinch-zoom}
.product-gallery-v2 .gallery-index{color:#304f6c;background:#ffffffed;border-radius:5px;padding:3px 5px}
#lightbox[data-product-gallery-open] #lightbox-image{touch-action:pan-y pinch-zoom}
#lightbox[data-product-gallery-open] #lightbox-image.zoomed{touch-action:auto}
#lightbox[data-product-gallery-open] #lightbox-controls{gap:12px;color:#171b1c;background:#fff;position:sticky;bottom:0;z-index:3}
#lightbox[data-product-gallery-open] #lightbox-controls button{min-width:44px;min-height:48px;padding:10px 12px;border:1px solid #c5d6cb;border-radius:10px;color:#171b1c;background:#f2f4f5}
#lightbox[data-product-gallery-open] #lightbox-controls button[hidden]{display:none}
#lightbox[data-product-gallery-open] #lightbox-controls>span{text-align:center;line-height:1.4;font-size:12px}
@media(max-width:700px){#lightbox[data-product-gallery-open] #lightbox-controls{padding:10px 14px max(10px,env(safe-area-inset-bottom))}#lightbox[data-product-gallery-open] #lightbox-controls button{font-size:12px;padding:10px 8px}}
