/**
 * PDP gallery thumbs carousel — ships without Vite rebuild.
 * Infinite wrap is handled in product-gallery.js (‹ › loop end ↔ start).
 */

.single-product .mrzoodle-product-gallery__thumbs-carousel {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
	position: relative;
	z-index: 5;
}

.single-product .mrzoodle-product-gallery__thumbs-track {
	min-width: 0;
	overflow-x: auto !important;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	container-type: inline-size;
}

.single-product .mrzoodle-product-gallery__thumbs-track::-webkit-scrollbar {
	display: none;
}

.single-product .mrzoodle-product-gallery__thumbs-nav {
	display: inline-flex !important;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 1.5px solid #d9c9b0;
	border-radius: 999px;
	background: #fff;
	color: #3d281c;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
}

.single-product .mrzoodle-product-gallery__thumbs-nav[hidden] {
	display: none !important;
}

.single-product .mrzoodle-product-gallery__thumbs,
.single-product .flex-control-thumbs {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0.5rem;
	width: max-content !important;
	min-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	grid-template-columns: none !important;
}

.single-product .mrzoodle-product-gallery__thumbs li,
.single-product .flex-control-thumbs li {
	flex: 0 0 calc((100cqi - 1.5rem) / 4) !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	aspect-ratio: 1;
	height: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
