/* Tiroir panier — thème réglable par sous-site via ces variables (:where = spécificité nulle, la page a le dernier mot) */
:where(:root) {
  --pn-accent: #1a2d5e;
  --pn-accent-texte: #fff;
  --pn-fond: #fff;
  --pn-texte: #1f2433;
  --pn-doux: #6b6f80;
  --pn-ligne: #ecebe6;
  --pn-titre: inherit;
  --pn-rayon: 14px;
}
.pn-voile { position: fixed; inset: 0; background: rgba(10, 14, 26, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 900; }
.pn-tiroir { position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(420px, 100vw); background: var(--pn-fond); color: var(--pn-texte);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s ease; z-index: 901; box-shadow: -12px 0 40px rgba(0,0,0,.18); }
.pn.ouvert .pn-voile { opacity: 1; pointer-events: auto; }
.pn.ouvert .pn-tiroir { transform: none; }
.pn-tete { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--pn-ligne); }
.pn-tete h2 { font-family: var(--pn-titre); font-size: 26px; margin: 0; color: var(--pn-accent); text-align: left; }
.pn-x { border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--pn-doux); padding: 0 4px; }
.pn-corps { flex: 1; overflow-y: auto; padding: 10px 22px; transition: opacity .2s; }
.pn-corps.charge { opacity: .5; pointer-events: none; }
.pn-liste { list-style: none; margin: 0; padding: 0; }
.pn-ligne { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--pn-ligne); }
.pn-ligne img, .pn-ph { width: 68px; height: 68px; object-fit: contain; border-radius: 10px; background: #f6f5f1; display: block; }
.pn-nom { font-weight: 600; font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
.pn-prix { font-size: 14px; color: var(--pn-doux); margin: 0 0 8px; }
.pn-qte { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pn-qte button { border: 1px solid var(--pn-ligne); background: #fff; border-radius: 8px; min-width: 30px; height: 30px; cursor: pointer; font-size: 16px; color: var(--pn-texte); }
.pn-qte .pn-retirer { border: 0; background: none; color: var(--pn-doux); text-decoration: underline; font-size: 13px; margin-left: auto; }
.pn-autres { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--pn-doux); margin: 22px 0 0; }
.pn-liste-autres .pn-ligne { opacity: .85; }
.pn-vide { color: var(--pn-doux); text-align: center; padding: 48px 0; }
.pn-pied { border-top: 1px solid var(--pn-ligne); padding: 18px 22px 22px; }
.pn-total { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 6px; }
.pn-note { font-size: 12.5px; color: var(--pn-doux); margin: 0 0 14px; }
.pn-payer { font-family: inherit; width: 100%; border: 0; border-radius: 40px; padding: 15px; font-size: 16px; font-weight: 600; cursor: pointer;
  background: var(--pn-accent); color: var(--pn-accent-texte); }
.pn-payer:disabled { opacity: .45; cursor: default; }
.pn-erreur { color: #b3261e; font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.pn-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #1f2433; color: #fff; padding: 11px 20px;
  border-radius: 30px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 950; pointer-events: none; }
.pn-toast.vu { opacity: 1; transform: translate(-50%, 0); }
.pn.ouvert .pn-toast { display: none; }
/* Bouton flottant d'ouverture (optionnel) */
.pn-bouton { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; }
.pn-bulle { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: #d4a843; color: #1a2d5e; }
.pn-bulle[hidden] { display: none; }
