/* ── Fiche produit : vignettes de couleur ── */

/* Le <select> reste dans le DOM (WooCommerce s'en sert) mais n'est plus visible */
.vcg-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden;
	pointer-events: none;
}

.vcg-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 2px;
}

.vcg-sw {
	position: relative;
	width: 38px;
	height: 38px;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: border-color .15s, transform .15s;
}

.vcg-sw:hover {
	transform: scale(1.08);
}

.vcg-sw:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vcg-sw__dot {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #ccc;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.vcg-sw.is-selected {
	border-color: #812f6c;
}

/* Combinaison indisponible : vignette grisée et barrée, non cliquable */
.vcg-sw.is-unavailable {
	opacity: .35;
	cursor: not-allowed;
}

.vcg-sw.is-unavailable:hover {
	transform: none;
}

.vcg-sw.is-unavailable::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: #666;
	transform: rotate(45deg);
}

.vcg-swatches__name {
	display: block;
	min-height: 1.2em;
	margin-top: 4px;
	font-size: .9em;
	text-transform: capitalize;
}
