/* ===========================
   RESPONSIVE GRILLE PRODUITS
=========================== */
@media (max-width: 768px) {
    .bxl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   CORPS BLOQUÉ LORS DU POPUP
=========================== */
body.popup-open {
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* ===========================
   POPUP GÉNÉRAL
=========================== */
.bxl-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 1rem;
}

.bxl-popup.active {
    display: flex;
}

.bxl-popup-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.bxl-popup-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* ===========================
   CONTENEUR PRODUITS
=========================== */
.bxl-container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

/* ===========================
   TITRES CATÉGORIES
=========================== */
.bxl-category-title,
.bxl-subcategory-title {
    text-align: center;
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* ===========================
   GRILLE DE PRODUITS
=========================== */
.bxl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.bxl-produit {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.bxl-produit:hover {
    transform: translateY(-5px);
}

.bxl-produit img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* ===========================
   TITRE ET PRIX PRODUIT
=========================== */
.bxl-product-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.bxl-product-price {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===========================
   BOUTONS GÉNÉRAUX
=========================== */
.bxl-btn {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bxl-btn:hover {
    background-color: #dcb253;
}

/* ===========================
   FORMULAIRE ÉTAPE 1
=========================== */
.bxl-step1-form {
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    margin: 30px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.bxl-step1-form input,
.bxl-step1-form button {
    width: 100%;
    margin-bottom: 15px;
}

/* ===========================
   NAVIGATION ÉTAPES
=========================== */
.bxl-step-nav {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.bxl-step-nav-item {
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s;
}

.bxl-step-nav-item.active {
    background: #000;
    color: white;
}

.bxl-step-nav-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===========================
   PANIER (ÉTAPE 3)
=========================== */
.bxl-step3-summary {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.bxl-cart-details {
    margin: 30px 0;
    text-align: left;
    display: inline-block;
}

.bxl-cart-items {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
}

.bxl-cart-item {
    background: #f9f9f9;
    padding: 15px 60px 15px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    position: relative;
}

.bxl-cart-item-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.bxl-cart-item-options small {
    display: block;
    color: #666;
}

.bxl-cart-item-comment {
    font-style: italic;
    color: #777;
    margin-top: 5px;
}

.bxl-cart-total {
    font-size: 1.2em;
    margin-top: 20px;
    text-align: center;
}

.bxl-btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.bxl-btn-remove:hover {
    background: #e64949;
}

/* ===========================
   FORMULAIRE PAIEMENT
=========================== */
.bxl-payment-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

#bxl-payment-method {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.bxl-payment-methods {
    margin-top: 1rem;
}

.bxl-payment-method {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bxl-payment-method label {
    min-width: 120px;
    font-weight: bold;
    margin-right: 10px;
}

.bxl-payment-method input {
    width: 100px;
    padding: 0.5rem;
    text-align: right;
}

#bxl-payment-remaining {
    font-weight: bold;
    color: #2271b1;
}

#bxl-payment-remaining.error {
    color: #d00000;
}

/* ===========================
   NOTIFICATION
=========================== */
.food-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    animation: slideIn 0.5s ease;
}

.food-notification.warning {
    border-color: #FF9800;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.progress-bar {
    height: 4px;
    background: #4CAF50;
    width: 100%;
    animation: progressBar linear forwards;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

.bxl-toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    z-index: 9999;
    animation: fadeInOut 3s ease forwards;
    display: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.bxl-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
}

.bxl-close-popup:hover {
    color: #d00000;
}

