/**
 * Etikashion — Tailles
 * Boutons de sélection de taille, charte bordeaux #7A0000 / rouge #C40000 / écru #FAF7F2.
 */

.etk-swatch-wrap {
	display: block;
}

/* Le select natif reste dans le DOM (WooCommerce en a besoin) mais devient
   invisible tout en restant accessible au clavier et aux lecteurs d'écran. */
.etk-swatch-wrap select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0 !important;
}

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

.etk-swatch {
	appearance: none;
	min-width: 54px;
	padding: 13px 16px;
	background: #ffffff;
	border: 1px solid #e3d8cc;
	border-radius: 0;
	color: #000000;
	font-family: 'Helvetica World', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.etk-swatch:hover {
	border-color: #c40000;
	color: #7a0000;
}

.etk-swatch:focus-visible {
	outline: 2px solid #c40000;
	outline-offset: 2px;
}

.etk-swatch.is-active {
	background: #7a0000;
	border-color: #7a0000;
	color: #ffffff;
}

.etk-swatch.is-disabled {
	background: #faf7f2;
	border-color: #ece2d7;
	color: #a9a9a9;
	cursor: not-allowed;
	text-decoration: line-through;
}

.etk-swatch.is-disabled:hover {
	border-color: #ece2d7;
	color: #a9a9a9;
}

/* Message d'aide affiché tant qu'aucune taille n'est choisie. */
.etk-swatch-aide {
	margin: 0 0 14px;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5a5a5a;
}

/* Harmonisation du champ quantité avec les boutons. */
.woocommerce div.product form.cart .quantity .qty {
	height: 44px;
	padding: 0 8px;
	border: 1px solid #e3d8cc;
	border-radius: 0;
	font-size: 15px;
	text-align: center;
}

@media (max-width: 767px) {
	.etk-swatches {
		gap: 8px;
	}

	.etk-swatch {
		min-width: 48px;
		padding: 12px 13px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.etk-swatch {
		transition: none;
	}
}
