/* =====================================================================
   Plantier – Déclinaisons en liste
   Le rendu visuel reprend les classes .buy-options du thème (pages.css).
   Les styles ci-dessous sont scopés sous .plantier-buy : ils servent de
   repli si le thème ne les fournit pas, et n'écrasent rien d'autre.
   ===================================================================== */

/* --- Masquer le sélecteur natif WooCommerce (piloté par la liste) --- */
.plantier-buy .variations,
.plantier-buy .reset_variations {
	display: none !important;
}

/* --- Option : masquer le bloc prix / disponibilité de la variation --- */
.plantier-buy.pl-hide-price .woocommerce-variation.single_variation {
	display: none !important;
}

/* --- Option : masquer le champ quantité --- */
.plantier-buy.pl-hide-qty .quantity {
	display: none !important;
}

/* --- Disposition de la zone d'ajout (quantité + bouton) --- */
.plantier-buy .variations_form {
	margin: 0;
}
.plantier-buy .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 26px;
}
.plantier-buy .woocommerce-variation-add-to-cart .quantity {
	flex: none;
}
.plantier-buy .single_add_to_cart_button,
.plantier-coffret .pl-coffret-cta {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	cursor: pointer;
	border: 1.5px solid transparent;
	background-color: #EFF079;
	color: #000000;
	fill: #000000;
	font-family: "Loos Condensed", sans-serif;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 20px;
	letter-spacing: 1.8px;
	border-radius: 2px;
	padding: 16px 30px;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.plantier-buy .single_add_to_cart_button:hover,
.plantier-coffret .pl-coffret-cta:hover {
	background-color: #FFFFFF;
}

/* --- Bouton secondaire « Offrir en cadeau » (ghost foncé) --- */
.plantier-buy .pl-gift-btn,
.plantier-coffret .buy-actions .btn-ghost {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	cursor: pointer;
	background-color: transparent;
	color: #000000;
	fill: #000000;
	border: 1.5px solid #000000;
	font-family: "Loos Condensed", sans-serif;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 20px;
	letter-spacing: 1.8px;
	border-radius: 2px;
	padding: 16px 30px;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.plantier-buy .pl-gift-btn:hover,
.plantier-coffret .buy-actions .btn-ghost:hover {
	background-color: #000000;
	color: #FFFFFF;
	fill: #FFFFFF;
}

/* --- Quantité verrouillée au panier --- */
.pl-qty-locked {
	display: inline-block;
	min-width: 2em;
	text-align: center;
	font-weight: 600;
}

/* =====================================================================
   Prix synchronisé [plantier_prix] (calé sur .buy-price du thème)
   ===================================================================== */
.plantier-prix {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
}
.plantier-prix .pl-price,
.plantier-prix .pl-price .price,
.plantier-prix .pl-price .amount,
.plantier-prix .pl-price .woocommerce-Price-amount {
	font-family: "Loos Condensed", sans-serif;
	/* Taille responsive : plafond 32px (desktop), réduit progressivement sur mobile. */
	font-size: clamp(24px, 1.2rem + 1.3vw, 32px);
	font-weight: 700;
	color: #000000;
	line-height: 1;
}
.plantier-prix .pl-price ins {
	text-decoration: none;
}
.plantier-prix .pl-price del {
	font-size: 1.4rem;
	font-weight: 400;
	opacity: .55;
	margin-right: 4px;
}
.plantier-prix .unit {
	font-size: .9rem;
	color: var(--gris, rgba(0, 0, 0, .55));
}

/* =====================================================================
   Configurateur de coffret [plantier_coffret] (repli calé sur le thème)
   ===================================================================== */
/* Loos Condensed sur tous les éléments du coffret. */
.plantier-coffret,
.plantier-coffret * {
	font-family: "Loos Condensed", sans-serif !important;
}
.plantier-coffret .compose {
	margin-top: 0;
	border-top: 1px solid rgba(0, 0, 0, .14);
	padding-top: 0;
}
.plantier-coffret .cfg-row {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.plantier-coffret .cfg-row:last-of-type {
	border-bottom: 0;
}
.plantier-coffret .cfg-thumb {
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 3px;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, .12);
}
.plantier-coffret .cfg-info {
	flex: 1;
	min-width: 0;
}
.plantier-coffret .cfg-info b {
	display: block;
	font-family: var(--font-serif, inherit);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--terre, #000000);
	line-height: 1.15;
}
.plantier-coffret .cfg-info span {
	font-size: .82rem;
	line-height: 1.4;
	color: var(--gris, rgba(0, 0, 0, .55));
}
.plantier-coffret .cfg-info .cfg-price {
	font-family: var(--font-titre, inherit);
	font-weight: 600;
	color: var(--vert-d, #000000);
	letter-spacing: .04em;
}
.plantier-coffret .cfg-qty {
	flex: none;
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 30px;
	overflow: hidden;
	background: var(--blanc, #fff);
}
.plantier-coffret .cfg-qty button {
	width: 34px;
	height: 34px;
	font-size: 1.15rem;
	color: var(--terre, #000000);
	background: transparent;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s var(--ease, ease);
}
.plantier-coffret .cfg-qty button:hover {
	background: var(--ivoire-2, #EFF079);
}
.plantier-coffret .cfg-qty button:disabled {
	opacity: .28;
	cursor: not-allowed;
}
.plantier-coffret .cfg-qty button:disabled:hover {
	background: var(--blanc, #fff);
}
.plantier-coffret .cfg-qty .q {
	min-width: 30px;
	text-align: center;
	font-family: var(--font-titre, inherit);
	font-weight: 600;
	font-size: 1rem;
	color: var(--terre, #000000);
}
.plantier-coffret .cfg-fee {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, .1);
	font-size: .95rem;
	color: rgba(0, 0, 0, .62);
}
.plantier-coffret .cfg-fee.is-off {
	opacity: .4;
}
.plantier-coffret .cfg-fee .val {
	font-weight: 600;
	color: #000000;
}
.plantier-coffret .cfg-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 14px;
	padding-top: 0;
	border-top: 0;
}
.plantier-coffret .cfg-total .lbl {
	font-family: var(--font-titre, inherit);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .74rem;
	font-weight: 600;
	color: var(--terre, #000000);
}
.plantier-coffret .cfg-total .sum {
	font-family: var(--font-titre, inherit);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--terre, #000000);
	line-height: 1;
}
.plantier-coffret .cfg-note {
	font-size: .78rem;
	color: var(--gris, rgba(0, 0, 0, .55));
	margin-top: 8px;
}
.plantier-coffret .buy-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 20px;
}
/* CTA désactivé tant que le coffret n'est pas complet. */
.plantier-coffret .btn.is-disabled {
	opacity: .45;
	pointer-events: none;
}
.plantier-coffret .pl-coffret-cta.loading {
	opacity: .6;
	pointer-events: none;
}

/* =====================================================================
   Repli visuel « au choix » (identique au thème, variables + valeurs sûres)
   ===================================================================== */
.plantier-buy .buy-options {
	margin-top: 0;
}
.plantier-buy .buy-options h4 {
	font-family: var(--font-titre, inherit);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .74rem;
	font-weight: 600;
	color: var(--terre, #000000);
	margin-bottom: 16px;
}
.plantier-buy .buy-options .opt {
	display: flex;
	gap: 14px;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, .16);
	border-radius: 3px;
	padding: 13px 16px;
	margin-bottom: 0;
	background: var(--blanc, #fff);
	cursor: pointer;
	transition: border-color .3s var(--ease, ease), background .3s var(--ease, ease), transform .3s var(--ease, ease);
}
.plantier-buy .buy-options .opt:hover {
	border-color: var(--jaune, #EFF079);
	transform: translateY(-2px);
}
.plantier-buy .buy-options .opt.is-on {
	border-color: var(--vert-d, #000000);
	background: var(--ivoire-2, #EFF079);
}
.plantier-buy .buy-options .opt .mk {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--vert-d, #000000);
	display: flex;
	align-items: center;
	justify-content: center;
}
.plantier-buy .buy-options .opt .mk::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--vert-d, #000000);
	transform: scale(0);
	transition: transform .3s var(--ease, ease);
}
.plantier-buy .buy-options .opt.is-on .mk::after {
	transform: scale(1);
}
.plantier-buy .buy-options .opt .txt {
	font-family: "Loos Condensed", sans-serif;
	font-size: .95rem;
	line-height: 1.35;
	color: #000000;
}
.plantier-buy .buy-options .opt .txt b {
	color: var(--terre, #000000);
	font-weight: 600;
}
.plantier-buy .buy-options .opt-sep {
	font-family: "Book Signature", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 2px;
	color: #000000;
	text-align: center;
	margin: 2px 0 10px;
}
.plantier-buy .buy-options .opt:focus-visible {
	outline: 2px solid var(--vert-d, #000000);
	outline-offset: 2px;
}

/* =====================================================================
   Responsive — configurateur de coffret sur petits écrans
   La ligne vignette + infos + sélecteur de quantité débordait sous 420px.
   ===================================================================== */
/* La ligne se replie d'elle-même dès que la colonne devient étroite,
   quelle que soit la largeur de l'écran. */
.plantier-coffret .cfg-row {
	flex-wrap: wrap;
	column-gap: 15px;
	row-gap: 10px;
}
.plantier-coffret .cfg-info {
	flex: 1 0 195px;
	min-width: 0;
}
.plantier-coffret .cfg-info b {
	overflow-wrap: anywhere;
}
.plantier-coffret .cfg-thumb {
	align-self: flex-start;
	margin-top: 2px;
}
.plantier-coffret .cfg-qty {
	margin-left: auto;
}

@media (max-width: 600px) {
	.plantier-coffret .cfg-qty button {
		width: 30px;
		height: 30px;
	}
	.plantier-coffret .cfg-qty .q {
		min-width: 26px;
	}
	.plantier-coffret .cfg-thumb {
		width: 54px;
		height: 54px;
	}
	.plantier-buy .woocommerce-variation-add-to-cart,
	.plantier-coffret .buy-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.plantier-buy .single_add_to_cart_button,
	.plantier-buy .pl-gift-btn,
	.plantier-coffret .pl-coffret-cta,
	.plantier-coffret .buy-actions .btn-ghost {
		width: 100%;
	}
}
