media-gallery[data-av-gallery],av-product-gallery{display:block;min-width:0;max-width:100%}
av-product-gallery{color:#25243a;--av-gallery-accent:#4f46c8}
.av-gallery__stage{position:relative;width:100%;height:auto;aspect-ratio:1;max-height:72svh;overflow:hidden;border-radius:14px;background:#fff}
.av-gallery__track{position:relative;display:flex;width:100%;height:100%;margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;cursor:grab}
.av-gallery__track::-webkit-scrollbar,.av-gallery__thumbs::-webkit-scrollbar,.av-gallery-viewer__thumbs::-webkit-scrollbar{display:none}
.av-gallery__track.is-dragging{scroll-snap-type:none;cursor:grabbing}
.av-gallery__slide{display:block;flex:0 0 100%;width:100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.av-gallery__open{display:block;width:100%;height:100%;padding:0;border:0;background:#fff;cursor:zoom-in;color:inherit}
.av-gallery__image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.av-gallery__slide .product-media-container{width:100%;height:100%;max-width:100%;max-height:100%;margin:0}
.av-gallery__slide .product-media-container .media{height:100%;padding-top:0}
.av-gallery__counter{position:absolute;top:12px;right:12px;z-index:2;min-width:47px;padding:5px 9px;border:1px solid #ffffff24;border-radius:20px;background:rgba(37,36,58,.36);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:12px;font-weight:600;line-height:16px;letter-spacing:.1px;text-align:center;font-variant-numeric:tabular-nums;pointer-events:none}
.av-gallery__arrow{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:6px;border:0;border-radius:50%;background:transparent;color:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .15s}
.av-gallery__arrow span{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff24;border-radius:50%;background:rgba(37,36,58,.32);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font:26px/1 Arial,sans-serif}
.av-gallery__prev{left:5px}.av-gallery__next{right:5px}
.av-gallery__stage:hover .av-gallery__arrow,.av-gallery__stage:focus-within .av-gallery__arrow{opacity:1}
.av-gallery__arrow:disabled{opacity:.18!important;cursor:default}
.av-gallery__thumbs{display:flex;gap:8px;width:100%;margin-top:12px;padding:2px;overflow-x:auto;scrollbar-width:none}
.av-gallery__thumb{flex:0 0 48px;width:48px;height:48px;padding:2px;border:1px solid #e4e4f0;border-radius:8px;background:#fff;cursor:pointer;opacity:.65}
.av-gallery__thumb[aria-current=true]{border-color:var(--av-gallery-accent);box-shadow:0 0 0 1px var(--av-gallery-accent);opacity:1}
.av-gallery__thumb img,.av-gallery-viewer__thumb img{display:block;width:100%;height:100%;border-radius:4px;object-fit:contain}
av-product-gallery button:focus-visible{outline:3px solid #a8a1f0;outline-offset:-3px}
.av-gallery-viewer:not([open]){display:none}
.av-gallery-viewer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(20,19,27,.97);color:#fff;overflow:hidden;overscroll-behavior:contain;font-family:var(--font-body-family,Arial,sans-serif)}
.av-gallery-viewer::backdrop{background:rgba(20,19,27,.88)}
.av-gallery-viewer[open]{animation:av-gallery-open .16s ease-out}
@keyframes av-gallery-open{from{opacity:0}to{opacity:1}}
.av-gallery-viewer__shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-width:0;box-sizing:border-box;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
.av-gallery-viewer__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:64px;padding:8px 16px;background:#16151ddd;z-index:3}
.av-gallery-viewer__count{font-size:14px;line-height:1.3;font-variant-numeric:tabular-nums;flex-shrink:0}
.av-gallery-viewer__controls{display:flex;align-items:center;gap:8px}
.av-gallery-viewer__zoom{min-height:42px;padding:9px 14px;border:1px solid #ffffff30;border-radius:22px;background:#ffffff10;color:#fff;font:inherit;font-size:12px;cursor:pointer}
.av-gallery-viewer__close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#ffffff12;color:#fff;font:32px/1 Arial,sans-serif;cursor:pointer}
.av-gallery-viewer__stage{position:relative;width:100%;min-width:0;min-height:0;overflow:hidden;touch-action:none;user-select:none}
.av-gallery-viewer__picture{position:absolute;inset:12px 76px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.av-gallery-viewer__picture img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-drag:none}
.av-gallery-viewer__picture img.is-zoomed{cursor:grab;will-change:transform}
.av-gallery-viewer__picture img.is-panning{cursor:grabbing}
.av-gallery-viewer__nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:48px;height:48px;padding:0;transform:translateY(-50%);border:1px solid #ffffff24;border-radius:50%;background:#ffffff16;color:#fff;font:32px/1 Arial,sans-serif;cursor:pointer}
.av-gallery-viewer__prev{left:16px}.av-gallery-viewer__next{right:16px}
.av-gallery-viewer__nav:disabled{opacity:.22;cursor:default}
.av-gallery-viewer__footer{z-index:3;width:100%;min-width:0;padding:12px 18px 10px;background:#16151ddd}
.av-gallery-viewer__thumbs{display:flex;gap:8px;min-width:0;max-width:820px;margin:0 auto;padding:2px 2px 5px;overflow-x:auto;scrollbar-width:none}
.av-gallery-viewer__thumb{flex:0 0 64px;width:64px;height:64px;padding:2px;border:2px solid transparent;border-radius:7px;background:#fff;opacity:.62;cursor:pointer}
.av-gallery-viewer__thumb[aria-current=true]{border-color:#b2aaff;box-shadow:0 0 0 1px #b2aaff;opacity:1}
.av-gallery-viewer__hint{margin:6px 0 0;color:#c5c3d0;font-size:11px;line-height:1.4;text-align:center}
@media(max-width:749px){
 .av-gallery__stage{max-height:none;border-radius:12px}
 .av-gallery__arrow{opacity:1}
 .av-gallery__counter{top:10px;right:10px}
 .av-gallery__thumbs{display:none}
 .av-gallery-viewer__bar{min-height:58px;padding:7px 10px}
 .av-gallery-viewer__picture{inset:4px 10px}
 .av-gallery-viewer__nav{width:40px;height:40px;background:#25243a55}
 .av-gallery-viewer__prev{left:5px}.av-gallery-viewer__next{right:5px}
 .av-gallery-viewer__footer{padding:10px 10px 8px}
 .av-gallery-viewer__thumb{flex-basis:48px;width:48px;height:48px}
 .av-gallery-viewer__hint{font-size:10px}
}
@media(hover:none){.av-gallery__arrow{opacity:1}}
@media(prefers-reduced-motion:reduce){.av-gallery-viewer[open]{animation:none}.av-gallery__arrow{transition:none}}

.av-gallery__image:not([src]){visibility:hidden}
