/*
 * Prix : TTC / HT, « À partir de », variantes.
 * Chargé après comptoir.css (voir inc/setup.php).
 *
 * Couleurs :
 *   --ccde-orange       #f39200  liserés et fonds (trop clair pour du texte)
 *   --ccde-orange-text  #a85800  montants HT
 *   #c96a00             montants TTC (contraste ≈ 3,8:1, gros texte)
 *   #fff7ec #fff1dc #fde3bf  fonds et bordures orange clair
 *   #6b6966             textes secondaires (TTC, HT, « À partir de »)
 */

/* ---------------------------------------------------------------------------
 * 1. Fiche produit : prix principal
 * ------------------------------------------------------------------------- */

.ccde.single-product div.product .summary .price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--ccde-orange);
	color: #c96a00;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

/* Produit simple : montant TTC, puis « TTC / [HT] » */
.ccde.single-product div.product .summary .price > .woocommerce-Price-amount {
	color: #c96a00;
	font-weight: 700;
	white-space: nowrap;
}

.ccde.single-product div.product .summary .price .woocommerce-price-suffix {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ccde-muted, #6b6966);
	white-space: nowrap;
}

.ccde.single-product div.product .summary .price .woocommerce-price-suffix .amount {
	padding: 2px 10px;
	border: 1px solid #fde3bf;
	border-radius: 999px;
	background: #fff1dc;
	color: var(--ccde-orange-text);
	font-weight: 600;
}

/* Produit variable : « À partir de » au-dessus, TTC, puis HT */
.ccde.single-product div.product .summary .price .ccde-price {
	display: block;
	min-width: 0;
}

.ccde.single-product div.product .summary .price .ccde-price-from {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	color: #6b6966;
}

.ccde.single-product div.product .summary .price .ccde-price__ttc {
	margin-left: 4px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	color: #c96a00;
}

.ccde.single-product div.product .summary .price .ccde-price__ht {
	display: inline-block;
	margin: 0;
	padding: 2px 10px;
	border: 1px solid #fde3bf;
	border-radius: 999px;
	background: #fff1dc;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ccde-orange-text);
	white-space: nowrap;
}

.ccde.single-product div.product .summary .price .ccde-price__ht::before {
	content: "/";
	margin: 0 6px 0 0;
	color: #6b6966;
	font-weight: 400;
}

/* ---------------------------------------------------------------------------
 * 2. Fiche produit : prix de la variante choisie
 * ------------------------------------------------------------------------- */

/* Encadré menthe : rappel du prix de la variante, sous le sélecteur et au-dessus du bouton */
.ccde.single-product div.product .summary .woocommerce-variation-price .price{
  display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;
  margin:0 0 14px;padding:12px 16px;
  border:1px solid var(--ccde-mint,#cfe8e2);border-radius:12px;background:#f1f8f6;
  color:#c96a00;font-size:28px;font-weight:700;line-height:1.2;
}
.ccde.single-product div.product .summary .woocommerce-variation-price .price::before{
  content:"✓  Prix de votre sélection";flex-basis:100%;margin-bottom:2px;white-space:pre;
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ccde-mint-text,#2f7a6d);
}
.ccde.single-product div.product .summary .woocommerce-variation-price .price .woocommerce-price-suffix .amount{
  background:#fff1dc;border:1px solid #fde3bf;
}

.ccde.single-product .woocommerce-variation-price .price > .woocommerce-Price-amount {
	color: #c96a00;
	font-weight: 700;
	white-space: nowrap;
}

.ccde.single-product .woocommerce-variation-price .price .woocommerce-price-suffix {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: #6b6966;
	white-space: nowrap;
}

.ccde.single-product .woocommerce-variation-price .price .woocommerce-price-suffix .amount {
	padding: 2px 10px;
	border: 1px solid #fde3bf;
	border-radius: 999px;
	background: #fff;
	color: var(--ccde-orange-text);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 3. Cartes produits : version allégée, une seule ligne
 *    Même alignement pour les produits simples et variables.
 * ------------------------------------------------------------------------- */

ul.products li.product .price {
	display: block;
	line-height: 1.3;
}

/* Produit simple : montant TTC (hors promo, qui reste en del / ins) */
ul.products li.product .price > .woocommerce-Price-amount,
ul.products li.product .price > .amount {
	display: inline;
	color: #c96a00;
	font-weight: 700;
	white-space: nowrap;
}

/* Produit variable : « À partir de » et montant TTC sur la ligne */
ul.products li.product .ccde-price {
	display: inline;
}

ul.products li.product .ccde-price .ccde-price-from {
	display: inline;
	margin-right: 4px;
	font-size: 12px;
	font-weight: 400;
	color: #6b6966;
}

ul.products li.product .ccde-price > .woocommerce-Price-amount {
	color: #c96a00;
	font-weight: 700;
	white-space: nowrap;
}

ul.products li.product .ccde-price .ccde-price__ttc {
	display: inline;
	margin-left: 2px;
	font-size: 11px;
	font-weight: 500;
	color: #6b6966;
}

/* « TTC / [HT] » sur la même ligne, en 12 px */
ul.products li.product .price .woocommerce-price-suffix,
ul.products li.product .ccde-price__ht {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	opacity: 1;
	color: #6b6966;
	white-space: nowrap;
}

ul.products li.product .price .woocommerce-price-suffix .amount,
ul.products li.product .ccde-price__ht .woocommerce-Price-amount {
	color: var(--ccde-orange-text);
	font-weight: 600;
}

ul.products li.product .ccde-price__ht::before {
	content: "/";
	margin: 0 4px 0 6px;
	color: #6b6966;
	font-weight: 400;
}

/* Promo : on ne touche pas au barré ni au prix réduit */
ul.products li.product .price del .woocommerce-Price-amount {
	color: var(--ccde-faint, #8a8784);
	font-weight: 400;
}

ul.products li.product .price ins .woocommerce-Price-amount {
	color: #c96a00;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * 4. Correctif : prix principal des produits variables (fiche)
 * ------------------------------------------------------------------------- */

.ccde.single-product div.product .summary .price{column-gap:6px;align-items:flex-end;}
.ccde.single-product div.product .summary .price .ccde-price__ttc{color:var(--ccde-muted,#6b6966);}
.ccde.single-product div.product .summary .price .ccde-price__ht{
  margin-bottom:.3em;padding:0;border:0;background:none;
  color:var(--ccde-muted,#6b6966);font-weight:500;
}
.ccde.single-product div.product .summary .price .ccde-price__ht::before{margin-right:6px;}
.ccde.single-product div.product .summary .price .ccde-price__ht .woocommerce-Price-amount{
  display:inline-block;margin-right:4px;padding:2px 10px;
  border:1px solid #fde3bf;border-radius:999px;background:#fff1dc;
  color:var(--ccde-orange-text);font-weight:600;
}

/* ---------------------------------------------------------------------------
 * 5. Alignement TTC / HT : produits variables (fiche)
 * ------------------------------------------------------------------------- */

.ccde.single-product div.product .summary .price:has(.ccde-price){display:block;}
.ccde.single-product div.product .summary .price .ccde-price{display:inline;}
.ccde.single-product div.product .summary .price .ccde-price__ht{display:inline;margin:0 0 0 6px;}
