/*
 * Page panier, ordinateur et tablette (body.pn-d2, inc/shop/panier-mobile.php : option mld_panier_d2, aperçu ?apercu_panier).
 * Prototype validé par William le 23/11/2026 : https://claude.ai/artifact/F3AmjEHjkn1dmLiuz6KJwk
 * William : « sur mobile c'est plutôt correct, mais sur ordinateur c'est mal foutu ». Le téléphone ne change pas.
 * 1. Grille : la liste et le récapitulatif côte à côte, quoi qu'insère le dégressif (le bandeau « Fais ton stock » prenait
 *    la première colonne et faisait passer les articles à droite, le récapitulatif en dessous).
 * 2. Les ajouts du téléphone sur grand écran : nombre d'articles, livraison offerte en haut, prix à l'unité, « Retirer »,
 *    produits proposés (une rangée de 4), réassurance, question à Emily, case « Créer mon espace client ».
 * 3. Le récapitulatif dans l'ordre du téléphone (mode de réception en deux cases, décompte, total, e-mail, bouton).
 * 4. Bouton « Commander et payer » bordeaux, comme sur les fiches, téléphone compris (barre fixe aussi).
 */
@media (max-width: 767.98px) {
	body.pn-d2 #cart-checkout, body.pn-d2 .pn-bar button { background: #641F2D; color: #fff; }
	body.pn-d2 #cart-checkout:hover, body.pn-d2 .pn-bar button:hover { background: #4E1823; }
	body.pn-d2 #cart-checkout:focus-visible, body.pn-d2 .pn-bar button:focus-visible { outline: 3px solid #D7C3A5; outline-offset: 2px; }
}
@media (min-width: 768px) {
	body.pn-d2 #main > section.bg-cream > div { padding-top: 28px; padding-bottom: 56px; }

	/* ---------- Titre, nombre d'articles, livraison ---------- */
	body.pn-d2 .pn-tete { display: flex; align-items: baseline; gap: 14px; }
	body.pn-d2 .pn-tete h1 { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 500; }
	body.pn-d2 .pn-nb.m2-only { display: inline !important; font-size: 14px; color: #7a7268; }
	body.pn-d2 .pn-port.m2-only { display: block !important; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #F1EBE2; font-size: 14px; line-height: 1.45; color: #3d3832; }
	body.pn-d2 .pn-port.m2-only[hidden] { display: none !important; }
	body.pn-d2 .pn-port.ok { display: flex !important; align-items: center; gap: 9px; background: #EDF3EE; color: #2F6B45; }
	body.pn-d2 .pn-port.ok i { flex: none; width: 8px; height: 8px; border-radius: 4px; background: #3C8A63; }
	body.pn-d2 .pn-port .barre { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(29,26,23,.08); overflow: hidden; }
	body.pn-d2 .pn-port .barre span { display: block; height: 100%; border-radius: 3px; background: #C9A979; transition: width .3s; }
	body.pn-d2 #cart-progress-wrap { display: none !important; }

	/* ---------- Articles ---------- */
	body.pn-d2 #cart-wrap:not(.hidden) { display: block; margin-top: 20px; }
	body.pn-d2 #cart-wrap > .dg-pan { margin: 0 0 14px; }
	body.pn-d2 #cart-items { margin: 0; padding: 0 22px; border-radius: 18px; box-shadow: none; border: 1px solid rgba(29,26,23,.08); }
	body.pn-d2 #cart-items > li { gap: 18px; padding: 18px 0; align-items: flex-start; }
	body.pn-d2 #cart-items .cart-img { width: 88px; height: 88px; border-radius: 12px; }
	body.pn-d2 #cart-items .cart-name { display: inline; font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 16px; font-weight: 500; line-height: 1.35; color: #1D1A17; background: none; text-decoration: none; }
	body.pn-d2 #cart-items .cart-name:hover { text-decoration: underline; text-underline-offset: 3px; }
	body.pn-d2 #cart-items .cart-variant { display: table; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: #F1EBE2; font-size: 12.5px; color: #3d3832; }
	body.pn-d2 #cart-items .cart-variant:empty { display: none; }
	body.pn-d2 #cart-items .pn-u { display: block; margin-top: 4px; font-size: 13px; color: #7a7268; }
	body.pn-d2 #cart-items .cart-actions { margin-top: 10px; }
	body.pn-d2 #cart-items .cart-qtybox { height: 38px; background: #fff; }
	body.pn-d2 #cart-items .cart-qtybox button { width: 36px; height: 36px; padding: 0; font-size: 17px; color: #5a544c; }
	body.pn-d2 #cart-items .cart-qty { font-weight: 500; }
	body.pn-d2 #cart-items .cart-side { min-height: 0; align-self: stretch; }
	body.pn-d2 #cart-items .cart-line-total { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
	body.pn-d2 #cart-items .cart-remove { margin-top: auto; padding: 8px 0 4px; border: 0; background: none; color: #7a7268; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
	body.pn-d2 #cart-items .cart-remove:hover { color: #1D1A17; }
	body.pn-d2 #cart-items .cart-remove svg { display: none; }
	body.pn-d2 #cart-items .cart-remove::before { content: "Retirer"; }

	/* ---------- Récapitulatif ---------- */
	body.pn-d2 #cart-wrap > aside { display: flex; flex-direction: column; margin-top: 24px; padding: 24px; border-radius: 18px; box-shadow: none; border: 1px solid rgba(29,26,23,.08); }
	body.pn-d2 #cart-wrap > aside > h2 { order: 0; margin: 0 0 14px; font-size: 26px; }
	body.pn-d2 #cart-wrap > aside > .hairline { display: none; }
	body.pn-d2 .mld-recep { order: 1; margin: 0; font-size: 0; }
	body.pn-d2 .mld-recep legend { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; color: #7a7268; }
	body.pn-d2 .mld-recep label { position: relative; display: inline-flex; vertical-align: top; width: calc(50% - 4px); flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 11px 13px; border-radius: 12px; cursor: pointer; }
	body.pn-d2 .mld-recep label + label { margin-left: 8px; }
	body.pn-d2 .mld-recep label:has(input:checked) { border: 1.5px solid #1D1A17; background: #FAF8F6; }
	body.pn-d2 .mld-recep input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; min-width: 0; }
	body.pn-d2 .mld-recep label:has(input:focus-visible) { outline: 2px solid #7E6040; outline-offset: 2px; }
	body.pn-d2 .mld-recep-n { font-size: 14px; font-weight: 500; }
	body.pn-d2 .mld-recep-p { font-size: 13px; font-weight: 400; color: #7a7268; }
	body.pn-d2 .mld-recep-adr { margin: 8px 0 0; padding: 0; font-size: 13px; color: #5a544c; }
	body.pn-d2 .mld-decompte { order: 2; margin: 16px 0 0; gap: 8px; font-size: 14px; }
	body.pn-d2 .dg-promo { order: 2; }
	body.pn-d2 .mld-promo { order: 3; margin: 12px 0 0; }
	body.pn-d2 .mld-promo summary { font-size: 13px; font-weight: 600; }
	body.pn-d2 .pn-o-total { order: 4; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(29,26,23,.08); }
	body.pn-d2 .pn-o-total > span:first-child { font-weight: 600; }
	body.pn-d2 #cart-total { font-family: Inter, system-ui, sans-serif; font-size: 26px; font-weight: 600; color: #6E4E2E; font-variant-numeric: tabular-nums; }
	body.pn-d2 .pn-o-tva { order: 5; margin: 2px 0 0; text-align: right; font-style: normal; color: #7a7268; }
	body.pn-d2 .mld-coord { order: 6; margin-top: 16px; }
	body.pn-d2.logged-in .mld-coord > label[for="cart-email"], body.pn-d2.logged-in #cart-email, body.pn-d2.logged-in #cart-email + .mld-coord-aide { display: none; }
	body.pn-d2 .mld-coord-aide { margin-bottom: 0; }
	body.pn-d2 .pn-compte.m2-only { display: flex !important; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; font-weight: 400; line-height: 1.45; color: #3d3832; cursor: pointer; }
	body.pn-d2 .pn-compte input { flex: none; width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; padding: 0; border-radius: 4px; background: none; -webkit-appearance: checkbox; appearance: auto; accent-color: #1D1A17; }
	body.pn-d2 .pn-compte > span { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #1D1A17; }
	body.pn-d2 .pn-compte small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: #7a7268; }
	body.pn-d2 .mld-tel { margin-top: 12px; }
	body.pn-d2 .cart-err { order: 7; margin-top: 10px; }
	body.pn-d2 #cart-checkout { order: 8; height: 54px; margin-top: 16px; padding: 0; font-size: 15px; background: #641F2D; color: #fff; }
	body.pn-d2 #cart-checkout:hover { background: #4E1823; }
	body.pn-d2 #cart-checkout:focus-visible { outline: 3px solid #D7C3A5; outline-offset: 2px; }
	body.pn-d2 #cart-contact { order: 8; margin-top: 10px; }
	body.pn-d2 .cart-secure { order: 9; margin-top: 12px; }
	body.pn-d2 .cart-pay-logos { order: 10; margin-top: 10px; }
	body.pn-d2 .cart-cgv { order: 11; margin-top: 12px; font-size: 12px; text-align: center; color: #7a7268; }
	body.pn-d2 .pn-o-cont { order: 12; margin-top: 14px; }

	/* ---------- Produits proposés, réassurance, question ---------- */
	body.pn-d2 .pn-compl.m2-only { display: block !important; margin: 36px 0 0; }
	body.pn-d2 .pn-compl.m2-only[hidden] { display: none !important; }
	body.pn-d2 .pn-titre { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.1; color: #1D1A17; }
	body.pn-d2 .pn-car { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
	body.pn-d2 .pn-car li { display: flex; flex-direction: column; padding-bottom: 12px; background: #fff; border: 1px solid rgba(29,26,23,.08); border-radius: 14px; overflow: hidden; }
	body.pn-d2 .pn-car .im { position: relative; }
	body.pn-d2 .pn-car img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
	body.pn-d2 .pn-car .t { padding: 10px 12px 0; min-height: 3.4em; font-size: 14px; line-height: 1.3; color: #1D1A17; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	body.pn-d2 .pn-car .t:hover { text-decoration: underline; text-underline-offset: 3px; }
	body.pn-d2 .pn-car .pr { padding: 4px 12px 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
	body.pn-d2 .pn-car .pr s { margin-left: 4px; font-size: 12px; font-weight: 400; color: #9a9288; }
	body.pn-d2 .pn-ic { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border: 0; border-radius: 20px; background: rgba(250,248,246,.96); color: #1D1A17; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(29,26,23,.18); cursor: pointer; }
	body.pn-d2 .pn-ic:hover { background: #fff; }
	body.pn-d2 .pn-reass.m2-only { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 32px 0 0; padding: 18px 20px; list-style: none; border-radius: 16px; background: #F1EBE2; font-size: 14px; color: #3d3832; }
	body.pn-d2 .pn-reass li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
	body.pn-d2 .pn-reass svg { flex: none; margin-top: 3px; color: #4F7A5C; }
	body.pn-d2 .pn-reass em { font-style: normal; color: #8a8278; }
	body.pn-d2 .pn-qst.m2-only { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; margin: 16px 0 0; padding: 20px 24px; border-radius: 16px; background: #1D1A17; color: #F1EBE2; }
	body.pn-d2 .pn-qst h2 { grid-column: 1; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.1; color: #fff; }
	body.pn-d2 .pn-qst p { grid-column: 1; margin: 0; font-size: 14px; color: #d9cfbf; }
	body.pn-d2 .pn-qst a { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 23px; background: #D7C3A5; color: #1D1A17; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
	body.pn-d2 .pn-qst a:hover { background: #E3D3BB; }
}

/* Ordinateur : la liste et ses compléments à gauche, le récapitulatif collant à droite. Les lignes sont toutes « auto »
   sauf la dernière, qui absorbe la hauteur du récapitulatif : aucun vide entre les blocs de gauche. */
@media (min-width: 1024px) {
	body.pn-d2 #cart-wrap:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: repeat(7, auto) 1fr; column-gap: 40px; row-gap: 0; align-items: start; margin-top: 24px; }
	body.pn-d2 #cart-wrap > * { grid-column: 1; }
	body.pn-d2 #cart-wrap > aside { grid-column: 2; grid-row: 1 / -1; margin-top: 0; position: sticky; top: 112px; }
	body.pn-d2 .pn-compl.m2-only { margin-top: 40px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
	body.pn-d2 .pn-car { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.pn-d2 .pn-car li:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { body.pn-d2 .pn-port .barre span { transition: none; } }
