/* ==========================================================================
   WooCommerce — habillage Coin des Princesses (surcharge les styles Woo par défaut)
   ========================================================================== */

/* Notices ------------------------------------------------------------------- */
body.cdp .woocommerce-message, body.cdp .woocommerce-info, body.cdp .woocommerce-error, body.cdp .woocommerce-notices-wrapper > div {
	border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
	padding: 14px 16px 14px 46px; margin: 0 0 18px; font-size: 14px; list-style: none; box-shadow: var(--shadow-sm);
}
body.cdp .woocommerce-message { background: var(--success-soft); border-color: var(--success-line); color: var(--green); }
body.cdp .woocommerce-info { background: var(--rose-tint); border-color: var(--rose-line); color: var(--plum); }
body.cdp .woocommerce-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
body.cdp .woocommerce-message::before, body.cdp .woocommerce-info::before, body.cdp .woocommerce-error::before { color: inherit; top: 14px; left: 16px; }
body.cdp .woocommerce-message .button, body.cdp .woocommerce-info .button { float: right; min-height: 36px !important; padding: 0 14px !important; font-size: 13px !important; }
body.cdp .woocommerce-error li { margin: 0; }
body.cdp .woocommerce-notices-wrapper:empty { display: none; }

/* Boutons Woo → boutons de la maison --------------------------------------- */
body.cdp a.button, body.cdp button.button, body.cdp input.button, body.cdp #respond input#submit,
body.cdp a.button, body.cdp button.button, body.cdp a.button.alt, body.cdp button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
	border: 0; border-radius: var(--radius); background: var(--plum); color: #fff; font: 800 15px/1.1 var(--font-sans);
	text-decoration: none; text-align: center; box-shadow: none;
}
body.cdp a.button:hover, body.cdp button.button:hover, body.cdp a.button:hover, body.cdp button.button:hover,
body.cdp button.button.alt:hover, body.cdp a.button.alt:hover { background: var(--plum-deep); color: #fff; }
body.cdp button.button:disabled, body.cdp button.button.disabled, body.cdp button.button.alt.disabled { background: var(--plum); color: #fff; opacity: .5; }
body.cdp a.button.wc-backward, body.cdp button[name="update_cart"], body.cdp .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: var(--paper-soft); border: 1px solid var(--line); color: var(--ink);
}
body.cdp button[name="update_cart"]:hover, body.cdp .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: #fff; color: var(--ink); }
body.cdp .button.loading { opacity: .7; }
body.cdp .button.added::after { display: none; }
body.cdp a.added_to_cart { display: none !important; }

/* Grille de produits ------------------------------------------------------- */
body.cdp ul.products, body.cdp ul.products.cdp-grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; margin: 0; padding: 0; list-style: none;
}
body.cdp ul.products::before, body.cdp ul.products::after { display: none; }
body.cdp ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0; }
@media (max-width: 1080px) { body.cdp ul.products, body.cdp ul.products.cdp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { body.cdp ul.products, body.cdp ul.products.cdp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } }

/* Carte produit ------------------------------------------------------------- */
.cdp-card-product { display: flex; flex-direction: column; }
.cdp-card-product__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--rose-tint); }
body.cdp ul.products li.product .cdp-card-product__media img, .cdp-card-product__media img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .4s; }
.cdp-card-product:hover .cdp-card-product__media img { transform: scale(1.035); }
.cdp-card-product__media .cdp-badges { position: absolute; top: 10px; inset-inline-start: 10px; }
.cdp-card-product.outofstock .cdp-card-product__media img { opacity: .55; }
.cdp-card-product__body { display: flex; flex-direction: column; flex: 1; padding: 10px 2px 0; }
.cdp-card-product__fam { margin: 0 0 2px; font-size: 11.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
body.cdp ul.products li.product .cdp-card-product__title, .cdp-card-product__title { font: 600 15.5px/1.35 var(--font-sans); color: var(--ink); margin: 0; padding: 0; }
.cdp-card-product__title a { color: inherit; text-decoration: none; }
.cdp-card-product__title a:hover { color: var(--plum); }
.cdp-card-product__hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cdp-card-product__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
body.cdp .cdp-card-product__foot .button { min-height: 44px !important; padding: 0 16px !important; font-size: 14px !important; margin: 0 !important; }
.cdp-price, body.cdp ul.products li.product .price { font-family: var(--font-serif); color: var(--plum); font-size: 19px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.cdp-price del, body.cdp .price del { color: var(--muted); font-size: .78em; font-weight: 400; opacity: 1; margin-inline-end: 4px; }
.cdp-price ins, body.cdp .price ins { text-decoration: none; font-weight: 700; }
@media (max-width: 760px) {
	.cdp-card-product__foot { flex-direction: column; align-items: stretch; }
	body.cdp .cdp-card-product__foot .button { width: 100%; }
	.cdp-price { font-size: 17px; }
}

/* Liste : en-tête, barre d'outils, pagination ------------------------------- */
.cdp-shophead { padding-block: 4px 18px; }
.cdp-shophead h1 { margin-bottom: 6px; }
.cdp-shophead__desc { color: var(--muted); max-width: 680px; }
.cdp-shophead .cdp-chips { margin-top: 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cdp-shophead .cdp-alert { max-width: 760px; }
.cdp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
body.cdp .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 13px; float: none; }
body.cdp .woocommerce-ordering { margin: 0; float: none; }
body.cdp .woocommerce-ordering select { min-height: 44px; width: auto; padding-inline-end: 34px; font-weight: 700; font-size: 14px; background-color: #fff; }
body.cdp nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
body.cdp nav.woocommerce-pagination ul li { border: 0; }
body.cdp nav.woocommerce-pagination ul li a, body.cdp nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
body.cdp nav.woocommerce-pagination ul li span.current { background: var(--rose-soft); border-color: var(--plum); color: var(--plum); }
body.cdp .woocommerce-info.woocommerce-no-products-found { margin-top: 12px; }

/* Fiche produit ------------------------------------------------------------- */
.cdp-product .cdp-crumbs { padding-top: 16px; }
body.cdp div.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
body.cdp div.product > * { grid-column: 1 / -1; }
body.cdp div.product div.images, body.cdp div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; grid-column: auto; }
body.cdp div.product div.images { position: sticky; top: calc(var(--header-h) + 50px); }
body.cdp div.product div.images .woocommerce-product-gallery__wrapper, body.cdp div.product div.images .flex-viewport { border-radius: var(--radius-lg); overflow: hidden; background: var(--rose-tint); }
body.cdp div.product div.images img { aspect-ratio: 4 / 5; object-fit: cover; }
body.cdp div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; }
body.cdp div.product div.images .flex-control-thumbs li { width: 72px; float: none; }
body.cdp div.product div.images .flex-control-thumbs img { border-radius: 10px; opacity: .6; }
body.cdp div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--plum); }
body.cdp div.product div.images .woocommerce-product-gallery__trigger { top: 14px; right: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.cdp-summary__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.cdp-summary__top .cdp-eyebrow { margin: 0; }
body.cdp div.product .product_title { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 10px; }
body.cdp div.product p.price, body.cdp div.product span.price { font-family: var(--font-serif); color: var(--plum); font-size: 28px; font-weight: 800; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
body.cdp div.product p.price .cdp-price-suffix { font: 600 14px var(--font-sans); color: var(--muted); }
.cdp-summary__hint { color: var(--muted); margin: 0 0 4px; }
.cdp-stock { display: flex; gap: 6px; align-items: center; color: var(--green); font-weight: 700; font-size: 14px; margin: 6px 0 14px; }
body.cdp div.product .woocommerce-product-details__short-description { color: var(--muted); margin: 10px 0 18px; }
body.cdp div.product .stock { color: var(--green); font-weight: 700; }
body.cdp div.product .stock.out-of-stock { color: var(--danger); }
body.cdp div.product form.cart { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
body.cdp div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; font-size: 16px; }
body.cdp div.product form.cart.variations_form { display: block; }
body.cdp div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
body.cdp div.product form.cart .variations { margin-bottom: 8px; border: 0; }
body.cdp div.product form.cart .variations tr { display: block; margin-bottom: 12px; }
body.cdp div.product form.cart .variations th, body.cdp div.product form.cart .variations td { display: block; padding: 0; text-align: start; line-height: 1.4; }
body.cdp div.product form.cart .variations label { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
body.cdp div.product form.cart .variations select.cdp-chipified { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
body.cdp div.product form.cart .reset_variations { display: inline-flex !important; min-height: 32px; align-items: center; font-size: 13px; color: var(--muted); }
body.cdp div.product .woocommerce-variation-price { margin-bottom: 8px; }
body.cdp div.product .woocommerce-variation-price .price { font-size: 24px; }

/* Quantité − / + */
body.cdp .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
body.cdp .quantity .qty { width: 46px !important; min-height: 52px; border: 0 !important; background: transparent !important; text-align: center; font-weight: 800; padding: 0 !important; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
body.cdp .quantity .qty::-webkit-outer-spin-button, body.cdp .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cdp-qtybtn { width: 44px; border: 0; background: transparent; color: var(--plum); cursor: pointer; display: grid; place-items: center; }
.cdp-qtybtn:hover { background: var(--rose-tint); }
body.cdp .quantity.hidden, body.cdp .quantity:has(input[type="hidden"]) { display: none; }


.cdp-reassure { list-style: none; margin: 22px 0 0; padding: 16px; display: grid; gap: 10px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.cdp-reassure li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.cdp-reassure .cdp-icon { color: var(--green); }

/* Onglets */
body.cdp div.product .woocommerce-tabs { margin-top: clamp(28px, 5vw, 56px); }
body.cdp div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
body.cdp div.product .woocommerce-tabs ul.tabs::before, body.cdp div.product .woocommerce-tabs ul.tabs li::before, body.cdp div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.cdp div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; margin: 0; padding: 0; border-radius: 0; }
body.cdp div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--muted); font-weight: 800; white-space: nowrap; border-bottom: 3px solid transparent; }
body.cdp div.product .woocommerce-tabs ul.tabs li.active a { color: var(--plum); border-color: var(--plum); }
body.cdp div.product .woocommerce-tabs .panel { max-width: 780px; margin: 0; }
body.cdp div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
body.cdp table.shop_attributes { border: 0; }
body.cdp table.shop_attributes th, body.cdp table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); background: none !important; padding: 10px 12px; font-style: normal; }
body.cdp div.product .related, body.cdp div.product .upsells { margin-top: clamp(32px, 5vw, 64px); }
body.cdp div.product .related > h2, body.cdp div.product .upsells > h2 { margin-bottom: 18px; }

/* CTA collant (mobile) */
.cdp-stickycta { position: fixed; inset-inline: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(66,42,49,.08); }
.cdp-stickycta__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cdp-stickycta__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdp-stickycta__price { font-family: var(--font-serif); color: var(--plum); font-weight: 800; }
.cdp-stickycta__price del { color: var(--muted); font-size: .8em; font-weight: 400; }
.cdp-stickycta__price ins { text-decoration: none; }
@media (min-width: 761px) { .cdp-stickycta { display: none !important; } }
@media (max-width: 760px) { .single-product .cdp-footer { padding-bottom: 76px; } }

@media (max-width: 900px) {
	body.cdp div.product { grid-template-columns: minmax(0, 1fr); }
	body.cdp div.product div.images { position: static; }
	body.cdp div.product form.cart .single_add_to_cart_button { flex-basis: 100%; }
}

/* Panier -------------------------------------------------------------------- */
body.cdp .woocommerce-cart-form { margin-bottom: 24px; }
body.cdp table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); border-collapse: separate; overflow: hidden; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }
body.cdp table.shop_table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; }
body.cdp table.shop_table td { border-top: 1px solid var(--line); padding: 14px; }
body.cdp table.shop_table img { width: 72px; border-radius: 10px; }
body.cdp table.shop_table .product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
body.cdp table.shop_table .product-name dl.variation { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
body.cdp table.shop_table .product-name dl.variation dt, body.cdp table.shop_table .product-name dl.variation dd { margin: 0; float: none; padding: 0; }
body.cdp table.shop_table .product-name dl.variation dd p { margin: 0; }
body.cdp a.remove { color: var(--danger) !important; width: 32px; height: 32px; line-height: 30px; font-size: 22px; }
body.cdp a.remove:hover { background: var(--danger-soft); color: var(--danger) !important; }
body.cdp .cart .actions .coupon { display: flex; gap: 8px; }
body.cdp .cart .actions .coupon .input-text { width: 200px; min-height: 52px; }
body.cdp .cart-collaterals .cart_totals { width: 100%; max-width: 460px; float: right; }
body.cdp .cart_totals h2 { font-size: 22px; }
body.cdp .cart_totals .order-total td, body.cdp .woocommerce-checkout-review-order-table .order-total td { font-family: var(--font-serif); color: var(--plum); font-size: 22px; }
body.cdp .wc-proceed-to-checkout .checkout-button { width: 100%; font-size: 16px; margin-bottom: 0; }
body.cdp ul#shipping_method li { margin-bottom: 8px; }
body.cdp ul#shipping_method li label { font-weight: 600; }
.cdp-free { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--success-soft); color: var(--green); font-size: 12px; font-weight: 800; }
body.cdp .cart-empty.woocommerce-info { text-align: center; padding: 28px 16px; }
body.cdp .return-to-shop { text-align: center; }
@media (max-width: 760px) {
	body.cdp table.shop_table_responsive tr td { padding: 10px 14px; }
	body.cdp .cart .actions .coupon { flex-direction: column; float: none; width: 100%; }
	body.cdp .cart .actions .coupon .input-text, body.cdp .cart .actions .button { width: 100% !important; }
	body.cdp .cart-collaterals .cart_totals { float: none; max-width: none; }
}

/* Jauge livraison offerte */
.cdp-meter { padding: 12px 14px; border-radius: 12px; background: var(--shop-soft); color: var(--green); font-size: 13.5px; margin: 0 0 14px; }
.cdp-meter p { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; }
.cdp-meter__bar { display: block; height: 6px; border-radius: 999px; background: rgba(56,116,90,.18); overflow: hidden; }
.cdp-meter__bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }

/* Commande (checkout) -------------------------------------------------------- */
body.cdp form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
body.cdp form.checkout > * { grid-column: 1 / -1; }
body.cdp form.checkout #customer_details { grid-column: 1; width: auto; }
body.cdp form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; }
body.cdp form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: calc(var(--header-h) + 50px); }
body.cdp form.checkout #customer_details { grid-row: 2 / span 2; }
body.cdp form.checkout .col2-set .col-1, body.cdp form.checkout .col2-set .col-2 { float: none; width: 100%; }
body.cdp .woocommerce-billing-fields h3, body.cdp #order_review_heading, body.cdp .woocommerce-additional-fields h3 { font-size: 22px; }
body.cdp form .form-row { padding: 0; margin: 0 0 14px; }
body.cdp form .form-row label { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.3; }
body.cdp form .form-row .required { color: var(--rose); text-decoration: none; }
body.cdp form .form-row .optional { text-transform: none; letter-spacing: 0; font-weight: 600; }
body.cdp form .form-row .description { color: var(--muted); font-size: 12.5px; margin-top: 6px; background: none; padding: 0; }
body.cdp form .form-row .description::before { display: none; }
body.cdp form .form-row.woocommerce-invalid input, body.cdp form .form-row.woocommerce-invalid select { border-color: var(--danger); }
body.cdp form .form-row-first, body.cdp form .form-row-last { width: calc(50% - 6px); }
body.cdp .woocommerce-checkout-review-order { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
body.cdp .woocommerce-checkout-review-order-table { box-shadow: none !important; border: 0 !important; }
body.cdp .woocommerce-checkout-review-order-table td, body.cdp .woocommerce-checkout-review-order-table th { padding: 10px 4px !important; }
body.cdp .woocommerce-checkout #payment { background: transparent; border-radius: 0; }
body.cdp .woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; display: grid; gap: 10px; margin: 8px 0 14px; }
body.cdp .woocommerce-checkout #payment ul.payment_methods li { list-style: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
body.cdp .woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--plum); background: var(--rose-tint); }
body.cdp .woocommerce-checkout #payment ul.payment_methods li label { font-weight: 800; color: var(--ink); cursor: pointer; }
body.cdp .woocommerce-checkout #payment div.payment_box { background: transparent; color: var(--muted); padding: 4px 0 0 26px; margin: 0; font-size: 13.5px; }
body.cdp .woocommerce-checkout #payment div.payment_box::before { display: none; }
body.cdp .woocommerce-checkout #payment div.form-row { padding: 0; }
body.cdp .woocommerce-checkout #payment #place_order { width: 100%; float: none; min-height: 56px; font-size: 16px; }
body.cdp .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); }
body.cdp .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 12px; }
body.cdp .checkout_coupon { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
body.cdp .checkout_coupon p:first-child { flex-basis: 100%; margin: 0; }
body.cdp .checkout_coupon .form-row { width: auto !important; flex: 1; margin: 0 !important; float: none !important; }
@media (max-width: 900px) {
	body.cdp form.checkout { grid-template-columns: 1fr; }
	body.cdp form.checkout #customer_details, body.cdp form.checkout #order_review_heading, body.cdp form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}
.cdp-searchselect .select2-container .select2-selection--single { min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-soft); display: flex; align-items: center; }
.cdp-searchselect .select2-container .select2-selection__rendered { padding-inline: 14px !important; color: var(--ink) !important; line-height: 46px !important; }
.cdp-searchselect .select2-container .select2-selection__arrow { height: 46px !important; right: 8px !important; }
.select2-dropdown { border-color: var(--line) !important; border-radius: 12px !important; box-shadow: var(--shadow); overflow: hidden; }
.select2-search--dropdown .select2-search__field { min-height: 44px; border-radius: 10px !important; border: 1px solid var(--line) !important; padding: 8px 12px !important; }
.select2-results__option { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px !important; gap: 12px; }
.select2-results__option .cdp-fee { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--rose-soft) !important; color: var(--plum) !important; }

/* Confirmation --------------------------------------------------------------- */
.cdp-confirm { display: flex; gap: 16px; align-items: flex-start; padding: 22px; margin-bottom: 24px; border: 1px solid var(--success-line); border-radius: var(--radius-lg); background: var(--success-soft); }
.cdp-confirm h2 { font-size: 24px; }
.cdp-confirm p:last-child { margin: 0; }
.cdp-confirm__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
body.cdp .woocommerce-thankyou-order-received { display: none; }
body.cdp ul.order_details { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
body.cdp ul.order_details li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; background: #fff; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
body.cdp ul.order_details li strong { font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Mon compte ----------------------------------------------------------------- */
body.cdp .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
body.cdp .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.cdp .woocommerce-account .woocommerce-MyAccount-navigation, body.cdp .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
body.cdp .woocommerce-MyAccount-navigation ul { list-style: none; padding: 8px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
body.cdp .woocommerce-MyAccount-navigation a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
body.cdp .woocommerce-MyAccount-navigation .is-active a { background: var(--rose-soft); color: var(--plum); }
body.cdp .woocommerce-account:not(.logged-in) .woocommerce { display: block; }
body.cdp form.login, body.cdp form.register { border: 1px solid var(--line) !important; border-radius: var(--radius-lg) !important; background: #fff; padding: 22px !important; }
@media (max-width: 760px) { body.cdp .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }

/* Mini-panier (tiroir) -------------------------------------------------------- */
.cdp-minicart { padding: 14px 18px 18px; flex: 1; }
.cdp-minicart .woocommerce-mini-cart { list-style: none; margin: 0 0 14px; padding: 0; }
.cdp-minicart .woocommerce-mini-cart-item { position: relative; display: block; min-height: 96px; padding: 12px 36px 12px 84px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cdp-minicart .woocommerce-mini-cart-item a:not(.remove) { color: var(--ink); font-weight: 700; text-decoration: none; display: block; }
.cdp-minicart .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 12px; width: 68px; height: 85px; object-fit: cover; border-radius: 10px; margin: 0; }
.cdp-minicart .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--danger); text-decoration: none; font-size: 20px; }
.cdp-minicart .woocommerce-mini-cart-item .remove:hover { background: var(--danger-soft); }
.cdp-minicart .woocommerce-mini-cart-item .quantity { border: 0; background: none; color: var(--muted); display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cdp-minicart dl.variation { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.cdp-minicart dl.variation dt, .cdp-minicart dl.variation dd { margin: 0; padding: 0; float: none; }
.cdp-minicart dl.variation p { margin: 0; }
.cdp-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 14px; margin: 0; font-size: 15px; }
.cdp-minicart .woocommerce-mini-cart__total .amount { font-family: var(--font-serif); color: var(--plum); font-size: 22px; font-weight: 800; }
.cdp-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.cdp-minicart .woocommerce-mini-cart__buttons a.button { width: 100%; margin: 0; }
.cdp-minicart .woocommerce-mini-cart__buttons a.checkout { order: -1; }
.cdp-minicart .woocommerce-mini-cart__empty-message { text-align: center; color: var(--muted); padding: 40px 0; }

/* Cart/checkout pages : largeur */
.woocommerce-cart .cdp-reading, .woocommerce-checkout .cdp-reading, .woocommerce-account .cdp-reading { max-width: 1240px; }
body.cdp #billing_country_field { display: none; }
body.cdp .woocommerce-additional-fields > h3 { font-size: 18px; margin-top: 8px; }
.cdp-commerce .cdp-page__title { margin-bottom: 22px; }

/* Notices au format « bannière » (Woo sur thème block) */
body.cdp .wc-block-components-notice-banner { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rose-line); border-radius: 12px; background: var(--rose-tint); color: var(--plum); padding: 12px 14px; margin: 0 0 14px; font-size: 14px; box-shadow: none; }
body.cdp .wc-block-components-notice-banner > svg { fill: #fff; background: var(--plum); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: none; }
body.cdp .wc-block-components-notice-banner.is-success { background: var(--success-soft); border-color: var(--success-line); color: var(--green); }
body.cdp .wc-block-components-notice-banner.is-success > svg { background: var(--green); }
body.cdp .wc-block-components-notice-banner.is-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
body.cdp .wc-block-components-notice-banner.is-error > svg { background: var(--danger); }
body.cdp .wc-block-components-notice-banner a { color: inherit; font-weight: 800; }
body.cdp .wc-block-components-notice-banner .button { min-height: 36px !important; padding: 0 14px !important; font-size: 13px !important; margin-inline-start: auto; order: 2; }
body.cdp .wc-block-components-notice-banner__content { flex: 1; }
.cdp-confirm p { font-size: 15px; color: var(--ink); }
body.cdp .woocommerce-order-details, body.cdp .woocommerce-customer-details { margin-top: 24px; }
body.cdp .woocommerce-order-details__title, body.cdp .woocommerce-column__title { font-size: 21px; }
body.cdp .woocommerce-customer-details address { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; font-style: normal; }
body.cdp .woocommerce-order-details .wc-item-meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
body.cdp .woocommerce-order-details .wc-item-meta li { display: flex; gap: 6px; }
body.cdp .woocommerce-order-details .wc-item-meta p { margin: 0; }
body.cdp table.shop_table { width: 100%; }
body.cdp ul.products li.product .cdp-card-product__foot .button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.1; margin: 0; }
.cdp-from { font: 600 12.5px var(--font-sans); color: var(--muted); margin-inline-end: 4px; }
body.cdp form.cart div.quantity:not(.hidden), body.cdp .woocommerce-cart-form div.quantity:not(.hidden) { display: inline-flex; flex-direction: row; width: auto; float: none; margin: 0; }
body.cdp form.cart div.quantity label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
body.cdp div.product div.images, body.cdp div.product div.summary { min-width: 0; }
.cdp-choose-hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
