/* ───────────────────────────────────────────────
   Tabs de découpe (manucurée / brute) — cartes catalogue uniquement
   ─────────────────────────────────────────────── */

.cbd-decoupe-tabs {
	display: inline-flex;
	gap: 0;
	margin: 0.5rem auto 0.75rem;
	border: 1px solid var(--vert, #677427);
	border-radius: 999px;
	padding: 3px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	font-size: 0.78rem;
	line-height: 1;
	vertical-align: middle;
}

.cbd-decoupe-tabs__tab {
	appearance: none;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vert, #677427);
	padding: 0.35rem 0.95rem;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cbd-decoupe-tabs__tab:hover:not(.is-active) {
	background: rgba(103, 116, 39, 0.08);
}

.cbd-decoupe-tabs__tab.is-active {
	background: var(--vert, #677427);
	color: #fff;
	box-shadow: inset 0 0 0 1px var(--vert, #677427);
}

.cbd-decoupe-tabs__tab:focus-visible {
	outline: 2px solid var(--vert, #677427);
	outline-offset: 2px;
}

.product-card .cbd-decoupe-tabs {
	font-size: 0.72rem;
}

/* Quand la carte contient les tabs découpe, on supprime le séparateur sous
   le titre et on réduit le padding bas pour rapprocher les tabs du titre. */
.product-card .text:has(.cbd-decoupe-tabs) h2,
.product-card .text:has(.cbd-decoupe-tabs) h3,
.product-card .text:has(.cbd-decoupe-tabs) p.titre {
	border-bottom: 0 !important;
	padding-bottom: 2px !important;
	margin-bottom: 4px !important;
}


/* ───────────────────────────────────────────────
   Fiche produit : boutons radio stylés pour les attributs de variation
   (pa_poids, pa_decoupe). Côté carte, on reste sur un <select>.
   ─────────────────────────────────────────────── */

.cbd-variation-radios {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.3rem;
	justify-content: center;
	align-items: stretch;
	border: 0;
	margin: 0.5rem 0;
	padding: 0;
	max-width: 100%;
}

.cbd-variation-radio {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--vert, #677427);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
	line-height: 1.2;
	white-space: nowrap;
	font-size: 0.85rem;
	color: var(--vert, #677427);
	background: transparent;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.cbd-variation-radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	margin: 0;
}

.cbd-variation-radio:hover {
	background: rgba(103, 116, 39, 0.08);
}

.cbd-variation-radio:has(input:checked) {
	background: var(--vert, #677427);
	color: #fff;
	border-color: var(--vert, #677427);
}

.cbd-variation-radio:has(input:checked) span {
	color: #fff;
}

.cbd-variation-radio:has(input:focus-visible) {
	outline: 2px solid var(--vert, #677427);
	outline-offset: 2px;
}

.cbd-variation-radio.is-unavailable,
.cbd-variation-radio:has(input:disabled) {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
	background: transparent !important;
	color: var(--vert, #677427) !important;
}

.cbd-variation-radio.is-unavailable span {
	color: var(--vert, #677427) !important;
}

/* Le thème ajoute "label::after { content: ' :' }" sur .variations — on l'annule pour nos pilules */
.variations .cbd-variation-radio::after,
.variations .cbd-variation-radio span::after {
	content: none !important;
}

/* Labels natifs WC (colonne gauche des lignes variation) */
.woocommerce div.product form.cart .variations label {
	font-weight: 500;
}
