/* Styles pour la boutique */
.boutique-bieres {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 6rem auto 6rem auto;
}
.biere-item {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.biere-item h2 {
    margin-top: 0;
}
.biere-item img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}
.cartouches-variations {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    justify-content: center;
}
.cartouche {
    min-width: 100px;
    padding: 0.8rem 1.5rem;
    text-align: center;
    border: 1px solid #007c2a;
    border-radius: 20px;
    cursor: pointer;
    background: white;
    color: #007c2a;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    white-space: normal;
}
.cartouche.active {
    background: #007c2a;
    color: white;
}
.ligne-achat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.prix-variation {
    font-weight: bold;
}
.ajout-panier-form input[type="number"] {
    padding: 0.5rem;
    font-size: 1rem;
    width: 70px;
    text-align: center;
}
.ajouter-panier-btn {
    background-color: #007c2a;
    color: white;
    border: none;
    padding: 0.7rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
.ajouter-panier-btn:hover {
    background-color: #005e20;
}

/* Styles pour le widget quantité */
.quantity-widget {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden; /* Pour que les bords arrondis s'appliquent bien */
    width: fit-content; /* Ajuste la largeur au contenu */
}

.quantity-widget button {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: background-color 0.2s ease;
}

.quantity-widget button:hover {
    background-color: #e0e0e0;
}

.quantity-widget input.input-qty {
    border: none;
    text-align: center;
    width: 50px; /* Ajustez la largeur selon vos besoins */
    -moz-appearance: textfield; /* Cache les flèches par défaut de l'input number sur Firefox */
    appearance: textfield;
}

/* Cache les flèches par défaut de l'input number sur Chrome/Safari/Edge */
.quantity-widget input.input-qty::-webkit-outer-spin-button,
.quantity-widget input.input-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Styles pour la vérification de l'âge */
#age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Assurez-vous qu'il est au-dessus de tout le reste */
}

#age-gate-modal {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    font-family: 'Inter', sans-serif; /* Utilisation de la police Inter */
}

#age-gate-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.age-gate-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1; /* Permet aux boutons de prendre la même largeur */
    max-width: 120px; /* Limite la largeur maximale des boutons */
}

.age-gate-btn-no {
    background-color: #c62828; /* Rouge */
    color: white;
}

.age-gate-btn-no:hover {
    background-color: #a01f1f;
    transform: translateY(-2px);
}

.age-gate-btn-yes {
    background-color: #007c2a; /* Vert */
    color: white;
}

.age-gate-btn-yes:hover {
    background-color: #005e20;
    transform: translateY(-2px);
}

/* Responsive adjustments for the modal */
@media (max-width: 600px) {
    #age-gate-modal {
        padding: 30px 20px;
    }

    #age-gate-modal h2 {
        font-size: 1.5em;
    }

    .age-gate-buttons {
        flex-direction: column; /* Empile les boutons sur les petits écrans */
        gap: 15px;
    }

    .age-gate-btn {
        width: 100%; /* Les boutons prennent toute la largeur en mode empilé */
        max-width: none; /* Supprime la limite de largeur */
    }
}
