/* --- Compteur du panier de la barre de navigation (lien : .navbar-icone-link de components.css) --- */
.navbar-panier-compteur {
    position: absolute;
    top: 0;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-small);
    background: var(--rouille);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.navbar-panier-compteur[hidden] {
    display: none;
}

/* --- Bouton « Ajouter » d'une ligne de disponibilité --- */
.panier-ajout-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--or-terne);
    border-radius: var(--radius-small);
    background: #fffdf8;
    color: var(--brun-nuit);
    padding: 2px 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.panier-ajout-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panier-ajout-btn:hover,
.panier-ajout-btn:focus-visible {
    background: var(--brun-cuir);
    border-color: var(--brun-cuir);
    color: var(--beige-clair);
}

.panier-ajout-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Tout le stock de cet état est déjà au panier */
.panier-ajout-btn.is-complet {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --- Rappel de ce qui est déjà au panier (fiche article, modale) --- */
.panier-quantite-etat {
    border-radius: var(--radius-small);
    background: var(--or);
    color: var(--brun-nuit);
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.panier-quantite-etat[hidden],
.panier-resume[hidden] {
    display: none;
}

.panier-resume {
    margin: 8px 0 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brun-nuit);
}

.panier-resume a {
    color: var(--rouille);
}

/* --- Bandeau de la boutique : livraison offerte --- */
.bandeau-livraison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brun-cuir);
    color: var(--beige-clair);
    padding: 0.45rem 1rem;
    font-size: 0.95rem;
    text-align: center;
}

.bandeau-livraison strong {
    color: var(--or-clair);
}

.bandeau-livraison .icone {
    flex-shrink: 0;
    color: var(--or);
}

/* --- Notifications --- */
.panier-notifications {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
}

.panier-toast {
    border-left: 4px solid var(--or);
    border-radius: 6px;
    background: var(--brun-nuit);
    color: var(--beige-clair);
    padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.panier-toast a {
    color: var(--or-clair);
    font-weight: 700;
}

.panier-toast--erreur {
    border-left-color: var(--rouge-banni);
}

.panier-toast.is-sortie {
    opacity: 0;
    transform: translateY(6px);
}
