/* ── WC Variation Gallery – Custom Gallery ── */

.wcvg-gallery {
	display: flex;
	flex-direction: row-reverse;
	gap: 12px;
	width: 100%;
}

.wcvg-main {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	border-radius: 4px;
}

.wcvg-main-link {
	display: block;
	cursor: zoom-in;
}

.wcvg-main-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}

.wcvg-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 80px;
	flex-shrink: 0;
	max-height: 500px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.wcvg-thumbs::-webkit-scrollbar {
	width: 4px;
}

.wcvg-thumbs::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 2px;
}

.wcvg-thumb {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
	opacity: 0.6;
	transition: opacity 0.2s, border-color 0.2s;
}

.wcvg-thumb:hover {
	opacity: 0.85;
}

.wcvg-thumb.active {
	opacity: 1;
	border-color: #222;
}

.wcvg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mobile: thumbs below */
@media (max-width: 600px) {
	.wcvg-gallery {
		flex-direction: column;
	}

	.wcvg-thumbs {
		flex-direction: row;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.wcvg-thumb {
		width: 60px;
		height: 60px;
	}
}
