/*
 * VipVize isolated product gallery slider — v1.23.3.
 * Fully isolated from WooCommerce FlexSlider and generic theme form/button CSS.
 */
body.single-product .vv-product-gallery {
	--vv-gallery-thumb-size: 78px;
	--vv-gallery-thumb-gap: 10px;
	--vv-gallery-nav-size: 38px;
	align-self: start;
	min-width: 0;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	isolation: isolate;
}
body.single-product .vv-product-gallery,
body.single-product .vv-product-gallery *,
body.single-product .vv-product-gallery *::before,
body.single-product .vv-product-gallery *::after { box-sizing: border-box; }
body.single-product .vv-product-gallery__stage {
	position: relative;
	width: 100%;
	padding: 10px;
	border: 1px solid #dbe7f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(22,65,104,.08);
	overflow: hidden;
}
body.single-product .vv-product-gallery__main-link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 13px;
	overflow: hidden;
	background: #f4f7fa;
	text-decoration: none;
}
body.single-product .vv-product-gallery__main-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 13px;
	transition: opacity .18s ease, transform .28s ease;
}
body.single-product .vv-product-gallery__main-link:hover .vv-product-gallery__main-image { transform: scale(1.015); }
body.single-product .vv-product-gallery__main-image.is-changing { opacity: .35; }
body.single-product .vv-product-gallery__zoom {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,.96);
	color: #102f4c;
	font-size: 28px;
	font-weight: 700;
	box-shadow: 0 8px 22px rgba(14,45,72,.2);
	pointer-events: none;
}

/* Slider uses one relative layer. Navigation never participates in page grid. */
body.single-product .vv-product-gallery__slider {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}
body.single-product .vv-product-gallery__thumb-viewport {
	position: relative !important;
	display: block !important;
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 4px calc(var(--vv-gallery-nav-size) + 10px) 8px !important;
	overflow: hidden !important;
	overflow-x: hidden !important;
	overflow-y: hidden !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
	touch-action: pan-y;
	user-select: none;
	clip-path: inset(0);
}
body.single-product .vv-product-gallery__thumb-viewport::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
body.single-product .vv-product-gallery__thumbs {
	position: relative !important;
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: var(--vv-gallery-thumb-gap) !important;
	width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
	counter-reset: none !important;
	transform: translate3d(0,0,0);
	transition: transform .32s cubic-bezier(.2,.7,.2,1);
	will-change: transform;
}
body.single-product .vv-product-gallery__thumbs.is-dragging { transition: none; }
body.single-product .vv-product-gallery__thumb-item {
	display: block !important;
	flex: 0 0 var(--vv-gallery-thumb-size) !important;
	width: var(--vv-gallery-thumb-size) !important;
	height: var(--vv-gallery-thumb-size) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}
body.single-product .vv-product-gallery__thumb-item::before,
body.single-product .vv-product-gallery__thumb-item::after,
body.single-product .vv-product-gallery__thumb-item::marker { content: none !important; display: none !important; }
body.single-product .vv-product-gallery__thumb {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 3px !important;
	border: 2px solid transparent !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 4px 14px rgba(22,65,104,.1) !important;
	cursor: pointer;
	font: inherit !important;
	line-height: 1 !important;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.single-product .vv-product-gallery__thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	border: 0 !important;
	border-radius: 8px !important;
	pointer-events: none;
}
body.single-product .vv-product-gallery__thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,65,104,.16) !important; }
body.single-product .vv-product-gallery__thumb.is-active { border-color: #1775bd !important; box-shadow: 0 0 0 3px rgba(23,117,189,.14) !important; }
body.single-product .vv-product-gallery__thumb:focus-visible,
body.single-product .vv-product-gallery__nav:focus-visible { outline: 3px solid rgba(23,117,189,.34) !important; outline-offset: 2px; }

/* Span-based controls avoid generic button CSS from theme/plugins. */
body.single-product .vv-product-gallery__nav {
	position: absolute !important;
	top: 50% !important;
	z-index: 5 !important;
	display: grid !important;
	place-items: center !important;
	width: var(--vv-gallery-nav-size) !important;
	height: var(--vv-gallery-nav-size) !important;
	min-width: var(--vv-gallery-nav-size) !important;
	min-height: var(--vv-gallery-nav-size) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #d4e2ed !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #123a5d !important;
	box-shadow: 0 5px 15px rgba(20,61,96,.14) !important;
	font: inherit !important;
	line-height: 1 !important;
	text-align: center !important;
	cursor: pointer;
	transform: translateY(-50%) !important;
	transition: background .18s ease, color .18s ease, opacity .18s ease, box-shadow .18s ease;
	user-select: none;
}
body.single-product .vv-product-gallery__nav--prev { left: 0 !important; }
body.single-product .vv-product-gallery__nav--next { right: 0 !important; }
body.single-product .vv-product-gallery__nav > span {
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 29px !important;
	font-weight: 500 !important;
	line-height: .8 !important;
	transform: translateY(-1px) !important;
}
body.single-product .vv-product-gallery__nav:hover:not([aria-disabled="true"]) { background: #1775bd !important; color: #fff !important; box-shadow: 0 7px 18px rgba(23,117,189,.25) !important; }
body.single-product .vv-product-gallery__nav[aria-disabled="true"] { opacity: .28 !important; cursor: default !important; pointer-events: none !important; box-shadow: none !important; }
body.single-product .vv-product-gallery__slider.is-static .vv-product-gallery__nav { display: none !important; }
body.single-product .vv-product-gallery__slider.is-static .vv-product-gallery__thumb-viewport { padding-inline: 2px !important; }
body.single-product .vv-product-gallery__slider.is-static .vv-product-gallery__thumbs { margin-inline: auto !important; }

@media (max-width: 820px) {
	body.single-product .vv-product-gallery { --vv-gallery-thumb-size: 66px; --vv-gallery-thumb-gap: 8px; --vv-gallery-nav-size: 34px; }
	body.single-product .vv-product-gallery__stage { padding: 8px; border-radius: 15px; }
	body.single-product .vv-product-gallery__main-link,
	body.single-product .vv-product-gallery__main-image { border-radius: 10px; }
	body.single-product .vv-product-gallery__thumb-viewport { padding-inline: calc(var(--vv-gallery-nav-size) + 7px) !important; }
	body.single-product .vv-product-gallery__nav > span { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.single-product .vv-product-gallery__main-image,
	body.single-product .vv-product-gallery__thumb,
	body.single-product .vv-product-gallery__thumbs,
	body.single-product .vv-product-gallery__nav { transition: none !important; }
}
