/* Booster de nicotine — le bloc de la fiche produit.
   Le dessin passe par des variables : chaque boutique pose les siennes (réglage « gnb_palette »),
   et sans palette le bloc reste sobre et lisible sur n'importe quel thème. */
.gnb.gnb {
    --gnb-accent: #111;
    --gnb-on: #fff;
    --gnb-soft: #f4f4f1;
    --gnb-line: rgba(0, 0, 0, .14);
    --gnb-radius: 14px;
    position: relative;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 16px;
    border: 2px solid var(--gnb-line);
    border-radius: calc(var(--gnb-radius) + 6px);
    background: #fff;
    color: inherit;
    text-align: left;
    flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; order: -1; /* dans un formulaire en flex (thèmes maison), le bloc occupe toute la ligne */
}
.gnb *, .gnb *::before, .gnb *::after { box-sizing: border-box; }

.gnb .gnb__tete { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.gnb .gnb__icone {
    flex: none; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 50%; background: var(--gnb-soft); color: var(--gnb-accent);
}
.gnb .gnb__icone svg { width: 22px; height: 22px; }
.gnb .gnb__titre { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.gnb .gnb__aide { margin: 3px 0 0; font-size: .85rem; line-height: 1.4; opacity: .75; }

.gnb .gnb__options { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
.gnb .gnb__option {
    position: relative; display: flex; flex-direction: column; gap: 2px;
    margin: 0; padding: 10px 10px 9px; min-width: 0;
    border: 2px solid var(--gnb-line); border-radius: var(--gnb-radius); background: #fff;
    cursor: pointer; line-height: 1.25; text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.gnb .gnb__option:hover { border-color: var(--gnb-accent); transform: translateY(-2px); }
.gnb .gnb__option input { position: absolute; opacity: 0; pointer-events: none; }
.gnb .gnb__option:has(input:focus-visible) { outline: 3px solid var(--gnb-accent); outline-offset: 2px; }
.gnb .gnb__option.est-choisi,
.gnb .gnb__option:has(input:checked) {
    background: var(--gnb-soft); border-color: var(--gnb-accent); color: inherit;
    box-shadow: 0 0 0 1px var(--gnb-accent);
}
.gnb .gnb__option.est-choisi::after,
.gnb .gnb__option:has(input:checked)::after {
    content: ""; position: absolute; top: 11px; right: 10px; width: 9px; height: 5px;
    border-left: 2.5px solid var(--gnb-accent); border-bottom: 2.5px solid var(--gnb-accent); transform: rotate(-45deg);
}
.gnb .gnb__mg { font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
.gnb .gnb__n { font-size: .78rem; opacity: .85; }
.gnb .gnb__plus { font-size: .84rem; font-weight: 700; min-height: 1.1em; }

.gnb .gnb__resume {
    margin: 10px 0 0; padding: 10px 13px; border-radius: var(--gnb-radius);
    background: var(--gnb-soft); font-size: .9rem; line-height: 1.4;
}
.gnb .gnb__resume b { font-weight: 800; }
.gnb .gnb__mention { margin: 9px 0 0; font-size: .78rem; line-height: 1.5; opacity: .65; }

@media (max-width: 520px) {
    .gnb.gnb { padding: 16px; }
    .gnb .gnb__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .gnb .gnb__option { transition: none; }
    .gnb .gnb__option:hover { transform: none; }
}

/* ---- Choix du booster (2.0) : une ligne repliée, la liste ne se déroule qu'au clic ---- */
.gnb [hidden] { display: none !important; }
.gnb .gnb__etape { margin: 12px 0 6px; padding: 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .65; line-height: 1.2; }
.gnb .gnb__boosters { margin: 0; padding: 0; border: 0; min-width: 0; background: none; }
.gnb .gnb__boosters > .gnb__liste { display: none; }
.gnb .gnb__boosters.est-ouvert > .gnb__liste { display: grid; }
/* Un vrai bouton, remis à zéro : les thèmes restylent les boutons (couleur, majuscules, ombre) et les « details ». */
.gnb button.gnb__choisi {
    all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 9px 12px;
    cursor: pointer; border: 2px solid var(--gnb-line); border-radius: var(--gnb-radius); background: #fff; color: inherit;
    font: inherit; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: normal; transition: border-color .18s ease;
}
.gnb button.gnb__choisi:hover, .gnb .gnb__boosters.est-ouvert > button.gnb__choisi { border-color: var(--gnb-accent); background: #fff; color: inherit; transform: none; box-shadow: none; }
.gnb button.gnb__choisi:focus-visible { outline: 3px solid var(--gnb-accent); outline-offset: 2px; }
.gnb .gnb__lbl { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.gnb .gnb__cnom { flex: 1 1 auto; min-width: 0; font-size: .9rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnb .gnb__cprix { flex: none; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.gnb .gnb__changer {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding-left: 4px;
    font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.gnb .gnb__changer::after {
    content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .18s ease;
}
.gnb .gnb__boosters.est-ouvert .gnb__changer::after { margin-top: 3px; transform: rotate(-135deg); }
.gnb .gnb__liste { display: grid; gap: 6px; margin-top: 8px; }
.gnb .gnb__liste--defile { max-height: 232px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.gnb .gnb__booster {
    position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 10px; min-width: 0;
    border: 2px solid var(--gnb-line); border-radius: var(--gnb-radius); background: #fff; cursor: pointer; text-align: left;
    transition: border-color .18s ease, background .18s ease;
}
.gnb .gnb__booster:hover { border-color: var(--gnb-accent); }
.gnb .gnb__booster input { position: absolute; opacity: 0; pointer-events: none; }
.gnb .gnb__booster:has(input:focus-visible) { outline: 3px solid var(--gnb-accent); outline-offset: 2px; }
.gnb .gnb__booster.est-choisi,
.gnb .gnb__booster:has(input:checked) { background: var(--gnb-soft); border-color: var(--gnb-accent); box-shadow: 0 0 0 1px var(--gnb-accent); }
.gnb .gnb__vignette { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--gnb-soft); color: var(--gnb-accent); overflow: hidden; }
.gnb .gnb__vignette svg { width: 21px; height: 21px; }
.gnb .gnb__vignette img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gnb .gnb__bcorps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gnb .gnb__bnom { font-size: .88rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gnb .gnb__bmeta { font-size: .76rem; opacity: .8; line-height: 1.3; }
.gnb .gnb__bmeta b { font-weight: 800; }
.gnb .gnb__bprix { flex: none; text-align: right; font-size: .9rem; font-weight: 800; white-space: nowrap; line-height: 1.15; }
.gnb .gnb__bprix small { display: block; font-size: .7rem; font-weight: 600; opacity: .75; }

/* Dans le panier : la quantité d'un booster suit son e-liquide, elle ne se modifie pas séparément. */
.gnb-qte { display: inline-block; min-width: 2.2em; font-weight: 700; text-align: center; }

@media (max-width: 520px) {
    .gnb .gnb__lbl { display: none; }
    .gnb button.gnb__choisi { gap: 8px; padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .gnb .gnb__booster { transition: none; } }

/* Exemplaire recopié par le thème (barre collante d'ajout au panier) : masqué, mais ses boutons radio restent dans son formulaire. */
.gnb--double, .sticky-add-to-cart .gnb, .sticky-add-to-cart-wrapper .gnb { display: none !important; }
