/**
 * Composants front — La Perle Gruissanaise.
 * Style anguleux (radius 0), blocs décalés en arrière-plan, ultra responsive.
 * Palette & typo : voir pg-tokens.css.
 */

.pg-shop { font-family: var(--pg-font-body); color: var(--pg-ink); line-height: 1.45; }
.pg-shop *, .pg-shop *::before, .pg-shop *::after { box-sizing: border-box; }
.pg-shop img { max-width: 100%; display: block; }
.pg-wrap { max-width: var(--pg-maxw); margin: 0 auto; padding: 0 var(--pg-s4); }

/* ------------------------------------------------------------------ *
 * Sections + fond anguleux décalé
 * ------------------------------------------------------------------ */
.pg-section { position: relative; padding: clamp(32px, 6vw, 72px) 0; overflow: hidden; }
.pg-section--light { background: var(--pg-light); color: var(--pg-ink); }
.pg-section--dark  { background: var(--pg-dark); color: var(--pg-light); }
/* Couleurs verrouillées : indépendantes du thème hôte (anti « blanc sur blanc »). */
.pg-section--light .pg-title, .pg-section--light .pg-card__title, .pg-section--light .pg-card__price { color: var(--pg-ink); }
.pg-section--dark .pg-title, .pg-section--dark .pg-card__title, .pg-section--dark .pg-card__price { color: var(--pg-light); }

/* Blocs décalés décoratifs (cassent la symétrie, derrière le contenu) */
.pg-angular-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pg-angular-bg span { position: absolute; display: block; border: 2px solid var(--pg-blue); opacity: .14; }
.pg-angular-bg span:nth-child(1) { width: 220px; height: 220px; top: -60px; right: 8%; transform: rotate(0deg); }
.pg-angular-bg span:nth-child(2) { width: 140px; height: 140px; top: 40px;  right: 4%;  background: var(--pg-blue); border: 0; opacity: .07; }
.pg-angular-bg span:nth-child(3) { width: 300px; height: 300px; bottom: -120px; left: -80px; opacity: .10; }
.pg-angular-bg span:nth-child(4) { width: 90px;  height: 90px;  bottom: 60px; left: 22%; background: var(--pg-blue); border: 0; opacity: .06; }
.pg-section > .pg-wrap { position: relative; z-index: 1; }

/* En-tête de section */
.pg-eyebrow { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .18em;
    font-size: 13px; font-weight: 600; color: var(--pg-blue); margin: 0 0 8px; }
.pg-section--dark .pg-eyebrow { color: var(--pg-blue); }
.pg-title { font-family: var(--pg-font-title); text-transform: uppercase; font-weight: 700; color: var(--pg-ink);
    font-size: clamp(28px, 5vw, 46px); line-height: .98; letter-spacing: .01em; margin: 0 0 var(--pg-s5);
    position: relative; }
.pg-title::after { content: ""; display: block; width: 64px; height: 5px; background: var(--pg-blue); margin-top: 14px; }
.pg-section--dark .pg-title { color: var(--pg-light); }

/* ------------------------------------------------------------------ *
 * Filtres
 * ------------------------------------------------------------------ */
.pg-filters-bar { display: flex; flex-wrap: wrap; gap: var(--pg-s2); margin: 0 0 var(--pg-s5); }
.pg-filter { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .06em;
    font-weight: 500; font-size: 14px; border: 2px solid var(--pg-dark); background: transparent;
    color: var(--pg-dark); padding: 8px 18px; cursor: pointer; text-decoration: none; transition: .15s; }
.pg-filter:hover { background: var(--pg-dark); color: var(--pg-light); }
.pg-filter.is-active { background: var(--pg-blue); border-color: var(--pg-blue); color: var(--pg-white); }
/* Variantes sur sections sombres */
.pg-section--dark .pg-filter { color: var(--pg-light); border-color: var(--pg-line-on-dark); }
.pg-section--dark .pg-filter:hover { background: var(--pg-light); color: var(--pg-dark); border-color: var(--pg-light); }
.pg-section--dark .pg-filter.is-active { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.pg-section--dark .pg-btn--ghost { color: var(--pg-light); border-color: var(--pg-light); }
.pg-section--dark .pg-btn--ghost:hover { background: var(--pg-light); color: var(--pg-dark); }

/* ------------------------------------------------------------------ *
 * Grille + carte produit (anguleuse, bloc décalé au survol)
 * ------------------------------------------------------------------ */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--pg-s5); }

.pg-card { position: relative; background: var(--pg-white); border: 2px solid var(--pg-dark);
    display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.pg-card::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; background: var(--pg-blue);
    z-index: -1; opacity: 0; transition: opacity .18s ease; }
.pg-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 0 var(--pg-blue); }
.pg-section--dark .pg-card { background: var(--pg-dark-2); border-color: var(--pg-blue); color: var(--pg-light); }

.pg-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--pg-dark); overflow: hidden; }
.pg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-card:hover .pg-card__media img { transform: scale(1.05); }
.pg-card__media.is-empty::after { content: "🐟"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 52px; opacity: .4; }
.pg-card.is-unavailable .pg-card__media img { filter: grayscale(1) brightness(.7); }

.pg-badges { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; }
.pg-badge-origin, .pg-badge-state { font-family: var(--pg-font-title); text-transform: uppercase;
    letter-spacing: .06em; font-size: 11px; font-weight: 600; padding: 5px 10px; }
.pg-badge-origin { background: var(--pg-dark); color: var(--pg-light); }
.pg-badge-state  { background: var(--pg-blue); color: var(--pg-white); }

.pg-card__body { padding: var(--pg-s4); display: flex; flex-direction: column; gap: var(--pg-s2); flex: 1; }
.pg-card__title { font-family: var(--pg-font-title); text-transform: uppercase; font-weight: 600; color: var(--pg-ink);
    font-size: 19px; line-height: 1.05; margin: 0; }
.pg-card__meta { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .08em;
    font-size: 11px; color: var(--pg-muted); }
.pg-section--dark .pg-card__meta { color: #AEB4D2; }
.pg-card__price { font-family: var(--pg-font-title); font-weight: 700; font-size: 22px; color: var(--pg-ink); }
.pg-card__price .pg-from { font-size: 12px; color: var(--pg-muted); font-weight: 500; display: block; }

/* Bloc d'achat ancré en bas de carte (boutons alignés entre cartes) */
.pg-card__buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }

/* Compteur de quantité (− [n] +) pour le mode « à l'unité » */
.pg-qtybox { display: flex; align-items: stretch; }
.pg-step { width: 44px; min-height: 44px; border: 2px solid var(--pg-dark); background: #fff; color: var(--pg-dark);
    font-family: var(--pg-font-title); font-size: 20px; line-height: 1; cursor: pointer; }
.pg-step:hover { background: var(--pg-dark); color: var(--pg-light); }
.pg-qtyin { flex: 1; min-width: 0; text-align: center; border: 2px solid var(--pg-dark); border-left: 0; border-right: 0;
    font-family: var(--pg-font-title); font-size: 17px; background: #fff; color: var(--pg-ink); -moz-appearance: textfield; }
.pg-qtyin::-webkit-outer-spin-button, .pg-qtyin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pg-section--dark .pg-step { border-color: var(--pg-line-on-dark); color: var(--pg-light); background: transparent; }
.pg-section--dark .pg-qtyin { border-color: var(--pg-line-on-dark); color: var(--pg-light); background: transparent; }

/* État « épuisé » */
.pg-badge-soldout { background: var(--pg-muted); color: #fff; font-family: var(--pg-font-title);
    text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; padding: 5px 10px; }
.pg-card.is-unavailable .pg-card__title { color: var(--pg-muted); }

/* Pills de variantes (rectangulaires) */
.pg-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-variant { font-family: var(--pg-font-body); border: 1.5px solid var(--pg-dark); background: transparent;
    color: var(--pg-ink); padding: 6px 10px; font-size: 13px; cursor: pointer; min-height: 36px; transition: .12s; }
.pg-section--dark .pg-variant { border-color: var(--pg-line-on-dark); color: var(--pg-light); }
.pg-variant.is-selected { background: var(--pg-blue); border-color: var(--pg-blue); color: var(--pg-white); }

/* ------------------------------------------------------------------ *
 * Boutons
 * ------------------------------------------------------------------ */
.pg-btn { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    background: var(--pg-blue); color: var(--pg-white); border: 2px solid var(--pg-blue); padding: 13px 22px;
    font-size: 15px; cursor: pointer; width: 100%; min-height: 46px; transition: .15s; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pg-btn:hover { background: var(--pg-blue-deep); border-color: var(--pg-blue-deep); }
.pg-btn:disabled { background: var(--pg-muted); border-color: var(--pg-muted); cursor: not-allowed; }
.pg-btn--ghost { background: transparent; color: var(--pg-dark); border-color: var(--pg-dark); }
.pg-btn--ghost:hover { background: var(--pg-dark); color: var(--pg-light); }
.pg-btn--auto { width: auto; }
.pg-btn:focus-visible, .pg-variant:focus-visible, .pg-filter:focus-visible,
.pg-day:focus-visible, .pg-time:focus-visible { outline: 3px solid var(--pg-blue); outline-offset: 2px; }

.pg-allergens { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .04em;
    font-size: 10px; color: var(--pg-muted); }

/* ------------------------------------------------------------------ *
 * Showcase accueil
 * ------------------------------------------------------------------ */
.pg-showcase__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--pg-s4); }
.pg-showcase__cta { text-align: center; margin-top: var(--pg-s6); }

/* ------------------------------------------------------------------ *
 * Panier
 * ------------------------------------------------------------------ */
.pg-cart, .pg-checkout { max-width: 720px; margin: 0 auto; }
/* Grille à colonnes FIXES : quantité, prix et suppression sont alignés d'une
   ligne à l'autre, indépendamment de la longueur du nom du produit (le nom
   occupe la colonne souple 1fr). */
.pg-line { display: grid; grid-template-columns: minmax(0, 1fr) 112px 96px 34px; align-items: center;
    column-gap: var(--pg-s3); padding: var(--pg-s3) 0; border-bottom: 1px solid var(--pg-line); }
.pg-line__qty { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.pg-line__qty button { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center;
    justify-content: center; padding: 0; border: 2px solid var(--pg-dark); background: var(--pg-white);
    color: var(--pg-dark); cursor: pointer; font-size: 20px; line-height: 1; font-family: var(--pg-font-title); }
.pg-line__qty button:hover { background: var(--pg-dark); color: var(--pg-white); }
.pg-qty { min-width: 26px; text-align: center; font-family: var(--pg-font-title); font-weight: 600; font-size: 16px; }
.pg-line__total { font-family: var(--pg-font-title); font-weight: 600; text-align: right; white-space: nowrap; }
.pg-qty-del { justify-self: end; }
@media (max-width: 560px) {
    .pg-line { grid-template-columns: minmax(0, 1fr) 94px 68px 32px; column-gap: 8px; }
    .pg-line__qty { gap: 5px; }
    .pg-line__qty button { width: 28px; height: 28px; font-size: 17px; }
    .pg-qty { min-width: 20px; }
    .pg-qty-del { width: 32px; height: 32px; }
}
.pg-totals { margin: var(--pg-s5) 0; }
.pg-total-row { display: flex; justify-content: space-between; padding: 5px 0; }
.pg-total-row.pg-grand { font-family: var(--pg-font-title); font-size: 22px; font-weight: 700;
    border-top: 3px solid var(--pg-dark); padding-top: 10px; margin-top: 6px; }

/* ------------------------------------------------------------------ *
 * Champs formulaire
 * ------------------------------------------------------------------ */
.pg-field { margin: var(--pg-s4) 0; }
.pg-field > label { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .05em;
    font-weight: 500; font-size: 13px; display: block; margin-bottom: 6px; }
/* width:100% UNIQUEMENT sur les champs texte — surtout PAS sur les cases à
   cocher / boutons radio (sinon ils sont étirés et déformés). */
.pg-field input:not([type=checkbox]):not([type=radio]), .pg-field textarea, .pg-field select {
    width: 100%; padding: 12px; border: 2px solid var(--pg-dark);
    background: var(--pg-white); font-size: 16px; font-family: var(--pg-font-body); }
.pg-field input:focus, .pg-field textarea:focus, .pg-field select:focus { outline: none; border-color: var(--pg-blue); }
.pg-field--note textarea { height: 64px; min-height: 64px; resize: vertical; line-height: 1.4; }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Mode de paiement : cartes compactes avec icône ronde */
.pg-pay-choice { display: flex; gap: var(--pg-s3); flex-wrap: wrap; }
.pg-pay-opt { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--pg-line);
    padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.pg-pay-opt:hover { border-color: var(--pg-dark); }
.pg-pay-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.pg-pay-opt__ico { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--pg-light); color: var(--pg-dark); }
.pg-pay-opt__body { display: flex; flex-direction: column; line-height: 1.2; }
.pg-pay-opt__body strong { font-family: var(--pg-font-title); font-size: 16px; text-transform: none; }
.pg-pay-opt__body small { color: var(--pg-muted); font-size: 12px; }
.pg-pay-opt:has(input:checked) { border-color: var(--pg-blue); background: rgba(83, 105, 172, .07); }
.pg-pay-opt:has(input:checked) .pg-pay-opt__ico { background: var(--pg-blue); color: #fff; }
.pg-pay-opt:has(input:focus-visible) { outline: 3px solid var(--pg-blue); outline-offset: 2px; }

/* Acceptation des CGV : case lisible + texte sur la même ligne */
.pg-field label.pg-cgv { display: flex; align-items: flex-start; gap: 10px; margin: 0;
    font-family: var(--pg-font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; line-height: 1.45; }
.pg-cgv input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pg-blue); cursor: pointer; }
.pg-cgv a { color: var(--pg-blue); text-decoration: underline; }

.pg-msg { padding: 12px 14px; margin: var(--pg-s3) 0; border-left: 4px solid; font-weight: 600; }
.pg-msg--error { background: #fdecec; border-color: #c0392b; color: #8e2418; }
.pg-msg--ok { background: #eaf3ee; border-color: #2e7d4f; color: #1d5436; }
.pg-msg--info { background: #eef1fb; border-color: #5369ac; color: #23366e; }

/* Ajout au panier : message d'erreur dédié + lien vers le panier */
.pg-add-msg { font-size: 13px; color: #8e2418; margin-top: 6px; }
.pg-goto-cart { display: inline-block; margin-top: 8px; font-family: var(--pg-font-title); text-transform: uppercase;
    font-size: 13px; letter-spacing: .04em; color: var(--pg-dark); text-decoration: underline; }
.pg-section--dark .pg-goto-cart, .pg-section--dark .pg-add-msg { color: var(--pg-light); }

/* Mention d'information RGPD (checkout) */
.pg-privacy-notice { font-size: 12px; color: var(--pg-muted); line-height: 1.5; margin: var(--pg-s3) 0; }
.pg-privacy-notice a { color: inherit; text-decoration: underline; }

/* Panier : bouton supprimer la ligne */
.pg-qty-del { width: 34px; height: 34px; border: 2px solid var(--pg-line); background: transparent; color: var(--pg-muted);
    cursor: pointer; font-size: 15px; line-height: 1; flex: none; }
.pg-qty-del:hover { border-color: #c0392b; color: #c0392b; }

/* Gros bouton d'action (panier & commande) */
.pg-btn--lg { min-height: 56px; font-size: 17px; padding: 16px 24px; }

/* Barre de validation fixée en bas de l'écran, visible pendant toute la saisie.
   position:fixed (et non sticky) : un ancêtre .pg-section a overflow:hidden, ce
   qui neutraliserait position:sticky. Centrée sur ~760px sur grand écran. */
.pg-checkout-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center;
    gap: var(--pg-s3); background: var(--pg-white); border-top: 2px solid var(--pg-dark);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); padding: 12px max(18px, calc((100% - 760px) / 2)); }
.pg-checkout-cta__total { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.pg-checkout-cta__total span { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .04em;
    font-size: 11px; color: var(--pg-muted); }
.pg-checkout-cta__total strong { font-family: var(--pg-font-title); font-size: 24px; color: var(--pg-dark); }
.pg-checkout-cta .pg-btn { flex: 1 1 auto; width: auto; margin: 0; }
/* Réserve la place sous le formulaire pour que la barre fixe ne masque rien. */
#pg-checkout-form { padding-bottom: 92px; }

/* Mini-panier flottant persistant */
.pg-minicart { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: inline-flex; align-items: center; gap: 9px;
    background: var(--pg-dark); color: var(--pg-white); text-decoration: none; padding: 12px 18px; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24); font-family: var(--pg-font-title); font-weight: 600; font-size: 15px;
    transition: transform .15s ease, opacity .2s ease, visibility .2s ease; }
.pg-minicart:hover { transform: translateY(-2px); color: var(--pg-white); }
.pg-minicart.is-empty { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px); }
.pg-minicart__icon { display: inline-flex; }
.pg-minicart .pg-cart-count { background: var(--pg-blue); color: #fff; border-radius: 999px; min-width: 22px; height: 22px;
    padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.pg-minicart__total { letter-spacing: .02em; }
@media (max-width: 560px) {
    .pg-minicart { right: 12px; bottom: 12px; padding: 11px 15px; font-size: 14px; }
    .pg-checkout-cta { padding: 10px 14px; gap: 12px; }
    .pg-checkout-cta__total strong { font-size: 20px; }
    /* Réserve l'espace bas pour que la pastille ne masque pas le dernier CTA. */
    .pg-section:last-of-type { padding-bottom: 96px; }
}

.pg-confirm { text-align: center; padding: var(--pg-s8) var(--pg-s4); }
.pg-confirm h2 { font-family: var(--pg-font-title); text-transform: uppercase; color: var(--pg-blue);
    font-size: clamp(26px, 5vw, 40px); }

/* ------------------------------------------------------------------ *
 * Sélecteur de retrait « drive » (jour puis heure, grisage)
 * ------------------------------------------------------------------ */
.pg-drive__label { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .05em;
    font-weight: 500; font-size: 13px; margin: var(--pg-s4) 0 6px; }
.pg-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pg-day { flex: 0 0 auto; min-width: 78px; text-align: center; border: 2px solid var(--pg-dark); background: var(--pg-white);
    color: var(--pg-ink); cursor: pointer; padding: 8px 6px; font-family: var(--pg-font-title); transition: .12s; }
.pg-day small { display: block; font-size: 11px; color: var(--pg-muted); text-transform: uppercase; }
.pg-day.is-selected { background: var(--pg-dark); color: var(--pg-light); border-color: var(--pg-dark); }
.pg-day.is-closed { opacity: .35; cursor: not-allowed; background: repeating-linear-gradient(45deg,
    transparent, transparent 5px, rgba(26,26,46,.06) 5px, rgba(26,26,46,.06) 10px); }
.pg-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: var(--pg-s2); }
.pg-time { border: 2px solid var(--pg-dark); background: var(--pg-white); color: var(--pg-ink); cursor: pointer;
    padding: 10px 8px; font-family: var(--pg-font-title); font-size: 14px; transition: .12s; }
.pg-time:hover:not(.is-disabled) { background: var(--pg-blue); border-color: var(--pg-blue); color: var(--pg-white); }
.pg-time.is-selected { background: var(--pg-blue); border-color: var(--pg-blue); color: var(--pg-white); }
.pg-time.is-disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.pg-time small { display: block; font-size: 10px; opacity: .8; }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 760px) {
    .pg-grid { grid-template-columns: repeat(2, 1fr); gap: var(--pg-s3); }
    .pg-angular-bg span { display: none; }
}
/* Téléphone : un article par écran (1 colonne, carte plus courte) */
@media (max-width: 560px) {
    .pg-grid { grid-template-columns: 1fr; gap: var(--pg-s4); }
    .pg-card__media { aspect-ratio: 3 / 2; }
    .pg-card__title { font-size: 20px; }
    .pg-card__price { font-size: 23px; }
}


/* ------------------------------------------------------------------ *
 * Plateau composable (configurateur)
 * ------------------------------------------------------------------ */
/* overflow:clip (et NON hidden) : un ancêtre en overflow:hidden neutralise
   position:sticky — la barre de total ne collerait jamais. */
.pg-platter { overflow: clip; }
.pg-platter__intro { color: var(--pg-muted); margin: 0 0 var(--pg-s4); }
.pg-plist { border-top: 3px solid var(--pg-dark); }
.pg-prow { display: grid; grid-template-columns: 1fr 220px 100px; gap: var(--pg-s3); align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--pg-line); }
.pg-prow__name strong { font-family: var(--pg-font-title); text-transform: uppercase; font-size: 16px; display: block; color: var(--pg-ink); }
.pg-prow__tarif { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--pg-muted); }
.pg-prow__qty { padding: 9px 10px; border: 2px solid var(--pg-dark); background: #fff; color: var(--pg-ink);
    font-family: var(--pg-font-body); font-size: 15px; width: 100%; min-height: 44px; }
.pg-prow__total { font-family: var(--pg-font-title); font-weight: 700; font-size: 17px; text-align: right; color: var(--pg-muted); }
.pg-prow.is-on .pg-prow__total { color: var(--pg-blue-deep); }
.pg-section--dark .pg-plist { border-color: var(--pg-blue); }
.pg-section--dark .pg-prow { border-color: var(--pg-line-on-dark); }
.pg-section--dark .pg-prow__name strong { color: var(--pg-light); }
.pg-section--dark .pg-prow__qty { border-color: var(--pg-line-on-dark); }
.pg-section--dark .pg-prow.is-on .pg-prow__total { color: #fff; }

.pg-platter__opts { margin: var(--pg-s5) 0 0; display: flex; flex-wrap: wrap; gap: var(--pg-s2); align-items: center; }
.pg-opt { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--pg-dark); padding: 8px 14px;
    cursor: pointer; font-family: var(--pg-font-title); text-transform: uppercase; font-size: 13px; min-height: 44px; }
.pg-opt:has(input:checked) { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.pg-platter__note { color: var(--pg-muted); font-style: italic; margin: var(--pg-s3) 0 0; }

.pg-platter__bar { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between;
    align-items: center; gap: var(--pg-s4); background: var(--pg-dark); color: var(--pg-light);
    padding: 14px 18px; margin-top: var(--pg-s5); flex-wrap: wrap; }
.pg-platter__sum { display: flex; flex-direction: column; }
.pg-platter__sumlabel { font-family: var(--pg-font-title); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #AEB4D2; }
.pg-platter__bar strong { font-family: var(--pg-font-title); font-size: 28px; line-height: 1; color: #fff; }
.pg-platter__bar .pg-btn { width: auto; min-width: 230px; }

/* Thème sombre : la barre et les chips doivent rester détachées du fond. */
.pg-section--dark .pg-opt { border-color: var(--pg-line-on-dark); color: var(--pg-light); }
.pg-section--dark .pg-platter__bar { background: var(--pg-dark-2); border: 2px solid var(--pg-blue); }
.pg-section--dark .pg-platter__note { color: #AEB4D2; }

@media (max-width: 640px) {
    .pg-prow { grid-template-columns: 1fr auto; grid-template-areas: "name total" "qty qty"; row-gap: 8px; }
    .pg-prow__name { grid-area: name; }
    .pg-prow__total { grid-area: total; }
    .pg-prow__qty { grid-area: qty; }
    .pg-platter__bar { flex-direction: column; align-items: stretch; }
    .pg-platter__bar .pg-btn { width: 100%; min-width: 0; }
}
