:root {
    --button-Confirmer : #4CAF50;
    --primary-blue: #203556;
    --primary-yellow: #F4AA2B;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 75px;
    align-items: center;
    padding: 0 15px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.panier-toggle {
    display: flex;
    align-items: center;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.panier-toggle:hover {
    background-color: var(--primary-blue);
}

.panier-icon {
    margin-right: 8px;
    font-size: 18px;
}

.panier-count {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.categories {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    gap: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background-color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    color: black;
}

.category-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0px;
}

.produit-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

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

.produit-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
}

.produit-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produit-info {
    padding: 15px;
}

.produit-nom {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.produit-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    max-height: 3.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.produit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.produit-prix {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
}

.ajouter-panier {
    background-color: var(--primary-yellow);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ajouter-panier:hover {
    background-color: var(--primary-yellow);
    transform: scale(1.1);
}

.ajouter-panier:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.options-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-blue);
}

.close-modal, .close-panier {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover, .close-panier:hover {
    color: var(--primary-blue);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary {
    background-color: var(--button-Confirmer);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: var(--button-Confirmer);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.option-group {
    margin-bottom: 0px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--radius);
}

.option-group[data-required="true"] .option-title {
    color: var(--primary-blue);
    font-weight: bold;
}

.option-group[data-required="true"] .option-title::after {
    content: " *";
    color: #e74c3c;
}

.option-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 16px;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tacos-options .option-item {
    padding: 12px;
    border-left: 3px solid var(--primary-yellow);
}

.box-options .option-item {
    border-left: 3px solid #e74c3c;
}

.option-item:hover {
    background-color: #f0f0f0;
}

.option-item input {
    margin-right: 10px;
}

.option-item label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
}

.option-item label small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

.option-price {
    color: var(--primary-blue);
    font-weight: bold;
    margin-left: 10px;
    min-width: 50px;
    text-align: right;
}

.option-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    resize: none;
    min-height: 80px;
    margin-top: 5px;
    font-family: inherit;
}

.panier-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.panier-sidebar.open {
    right: 0;
}

.panier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.panier-header h2 {
    color: var(--primary-blue);
}

.panier-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.panier-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.panier-item-image {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-right: 15px;
    background-color: #fff;
}

.panier-item-info {
    flex: 1;
}

.panier-item-nom {
    font-weight: 500;
    margin-bottom: 5px;
}

.panier-item-format {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 13px;
}

.panier-item-options {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.panier-item-options::before {
    content: "• ";
    color: var(--primary-yellow);
}

.product-comment,
.panier-item-comment {
    font-style: italic;
    color: #888;
    font-size: 12px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-yellow);
    margin: 5px 0;
}

.panier-item-prix {
    color: var(--primary-blue);
    font-weight: bold;
}

.panier-item-controls {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.panier-item-quantity {
    margin: 0 10px;
    font-weight: bold;
}

.panier-item-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-gray);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panier-item-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.panier-total {
    display: flex;
    justify-content: space-between;
    padding: 0px 20px;
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid #eee;
}

.commander-btn {
    background-color:var(--button-Confirmer);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px;
    border-radius: var(--radius);
}

.commander-btn:hover {
    background-color: var(--button-Confirmer);
}

.commander-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.edit-item-btn {
    background: var(--primary-yellow);
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-item-btn:hover {
    background: var(--primary-yellow);
    transform: scale(1.05);
}

.edit-item-btn:disabled {
    background-color: #ccc !important;
}

.sauce-option {
    display: inline-block;
    margin-right: 10px;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
}

.sauce-option::before {
    content: "• ";
    color: var(--primary-yellow);
}

.box-options .option-title {
    color: #e74c3c;
}

.client-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.client-modal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    z-index: 1002;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-group small {
    display: block;
    color: #666;
    font-size: 0.8em;
    margin-top: 4px;
}

#clientPhone:invalid {
    border-color: #ff4444;
    background-color: #ffeeee;
}

#clientPhone:valid {
    border-color: #4CAF50;
}

#shareLocation {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

#shareLocation i {
    font-size: 16px;
}

#shareLocation:hover {
    background-color: #45a049;
}

#locationStatus {
    margin: 10px 0;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#locationStatus[data-accuracy] {
    position: relative;
    padding-left: 24px;
}

#locationStatus[data-accuracy]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 400px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.add-to-cart-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { bottom: -50px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.add-to-cart-notification i {
    font-size: 18px;
}


.notification.success {
    background-color: #fff;
    border-left: 4px solid #0077b6;
    color: #333;
}

.notification.error {
    background-color: #fff;
    border-left: 4px solid #d32f2f;
    color: #333;
}

.notification.warning {
    background-color: #fff;
    border-left: 4px solid #ff9800;
    color: #333;
}

.notification i {
    margin-right: 12px;
    font-size: 20px;
}

.notification.success i {
    color: #0077b6;
}

.notification.error i {
    color: #d32f2f;
}

.notification.warning i {
    color: #ff9800;
}

.notification .close-btn {
    margin-left: 16px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    background: none;
    border: none;
    padding: 0;
}

.order-confirmation-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background-color: #fff;
    border-left: 4px solid #0077b6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 400px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
    font-family: 'Roboto', sans-serif;
}

.order-confirmation-notification i {
    color: #0077b6;
    font-size: 24px;
    margin-right: 16px;
}

.order-confirmation-notification div {
    flex: 1;
}

.order-confirmation-notification strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
}

.error-content h3 {
    color: #d32f2f;
    margin-top: 0;
}

.error-content button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.error-content button:hover {
    background-color: #b71c1c;
}

.delete-order {
    background: #ff4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s;
}

.delete-order:hover {
    background: #cc0000;
}

.delete-order:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.plus-code-link {
    color: #0058a3;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #0058a3;
    cursor: pointer;
}

.plus-code-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

@media (max-width: 768px) {
    .produits-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .panier-sidebar {
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .produits-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .produit-card {
        max-width: 100%;
    }
    
    .panier-toggle {
        padding: 8px 12px;
    }
    
    .categories {
        padding: 10px 0;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}


/* Style pour le popup de choix de mode de commande */
.delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delivery-modal.active {
    opacity: 1;
    visibility: visible;
}

.delivery-modal .modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.delivery-modal.active .modal-content {
    transform: translateY(0);
}

.delivery-modal .modal-header h3 {
    margin: 0;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
}

.delivery-modal .modal-body {
    padding: 20px 0;
    text-align: center;
}

.delivery-modal .modal-body p {
    margin-bottom: 20px;
    color: #555;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option-btn:hover {
    transform: translateY(-2px);
}

#takeawayBtn {
    background-color: #F4AA2B;
    color: #333;
}

#deliveryBtn {
    background-color: #FF6347;
    color: white;
}

.delivery-option-btn i {
    font-size: 1.2rem;
}


.btn-previous-info {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-previous-info:hover {
    background-color: #e0e0e0;
}

.btn-previous-info i {
    font-size: 0.9rem;
}

.order-mode-display {
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

#currentOrderMode {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bolder;
}

#changeOrderMode {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--primary-yellow);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
}

#changeOrderMode:hover {
    text-decoration: none;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

#currentOrderMode i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

/* Menu mobile footer */
.mobile-footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.menu-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .mobile-footer-menu {
        display: none;
    }
}





/* Ajoutez ces règles à la fin de votre fichier CSS */

/* Ajustements pour le panier-sidebar avec le footer mobile */
.panier-sidebar {
    bottom: 60px; /* Hauteur du footer mobile */
    height: calc(100% - 60px); /* Prend en compte la hauteur du footer */
}

/* Sur les écrans plus larges où le footer mobile est caché */
@media (min-width: 768px) {
    .panier-sidebar {
        bottom: 0;
        height: 100%;
    }
}

/* Animation plus douce pour l'ouverture/fermeture */
.panier-sidebar {
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.panier-sidebar.open {
    transform: translateX(0);
}

/* Ajustement pour le contenu du panier */
.panier-items {
    padding-bottom: 20px; /* Espace avant le footer */
}

/* Style pour le footer mobile */
.mobile-footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f3455;
    font-size: 12px;
    flex: 1;
}

.menu-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.menu-item.active {
    color: var(--primary-blue);
}

/* Cache le footer sur desktop */
@media (min-width: 768px) {
    .mobile-footer-menu {
        display: none;
    }
}

.estimated-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 500;
}

.estimated-time i {
    font-size: 18px;
    color: var(--primary-yellow);
}





/* Ajoutez ceci dans votre fichier CSS  */
/* Ajoutez ceci dans votre fichier CSS  */
/* Ajoutez ceci dans votre fichier CSS  */
/* Ajoutez ceci dans votre fichier CSS  */
/* Ajoutez ceci dans votre fichier CSS  */
/* Ajoutez ceci dans votre fichier CSS  */

/* IKEA-inspired confirmation modal styling */

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Noto Sans', 'Helvetica Neue', sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

.confirmation-content {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease-out;
}

.confirmation-content h3 {
    font-size: 22px;
    color: #000000; /* Blue */
    margin-bottom: 18px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.confirmation-details {
    margin: 15px 0;
    padding: 15px;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
}

.confirmation-details p {
    margin: 8px 0;
}

.confirmation-details ul {
    margin-left: 20px;
    padding-left: 0;
    list-style: disc;
}

.confirmation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
    flex-wrap: wrap;
}

.confirm-btn, .edit-btn, .cancel-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Bouton vert de confirmation */
.confirm-btn {
    background-color: #4CAF50;
    color: white;
}

.confirm-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bouton gris clair de modification */
.edit-btn {
    background-color: #e0e0e0;
    color: #333;
}

.edit-btn:hover {
    background-color: #d5d5d5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bouton de suppression ou annulation */
.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #d32f2f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.edit-btn {
    background-color: #2196F3;
    color: white;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}


.delivery-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9em;
    color: #666;
}


.location-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.location-prompt-modal .prompt-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 400px;
    text-align: center;
}

.location-prompt-modal .prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.location-prompt-modal button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.location-prompt-modal #openSettingsBtn {
    background-color: #4CAF50;
    color: white;
}

.location-prompt-modal #cancelLocationBtn {
    background-color: #f44336;
    color: white;
}


.location-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.location-prompt-modal .prompt-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 90%;
    width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.location-prompt-modal h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.location-prompt-modal .prompt-steps {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.location-prompt-modal .prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.location-prompt-modal button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.location-prompt-modal #retryLocationBtn {
    background-color: #3498db;
    color: white;
}

.location-prompt-modal #retryLocationBtn:hover {
    background-color: #2980b9;
}

.location-prompt-modal #manualAddressBtn {
    background-color: #95a5a6;
    color: white;
}

.location-prompt-modal #manualAddressBtn:hover {
    background-color: #7f8c8d;
}


.form-group label:after {
    content: " *";
    color: red;
}

input:required:invalid {
    border-color: #ff4444;
}

input:required:valid {
    border-color: #4CAF50;
}




.produit-card.unavailable {
    opacity: 0.6;
    filter: grayscale(100%);
    pointer-events: none;
    position: relative;
}

.produit-card.unavailable::after {
    content: "Indisponible";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.produit-card.unavailable .ajouter-panier {
    display: none;
}


/* 
éviter zoom automatique sur les <input> */
input, select, textarea {
    font-size: 16px;
  }



  .swal-popup-top {
    margin-top: 20px !important;
}




.promo-code-section {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.promo-code-section label {
    font-weight: 500;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.promo-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.promo-input-group button {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.promo-input-group button:hover {
    background-color: #e69c24;
}

#promoFeedback {
    margin-top: 5px;
    display: block;
    font-size: 0.85rem;
    color: green;
}

.top-banner {
    background-color: #ffdf91;
    color: #000;
    text-align: center;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  

  .deal-banner {
    background-color: #ffeeba;
    color: #111;
    padding: 10px 8px;
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
  }

  

  .highlight {
    border: 2px solid #f44336;
    box-shadow: 0 0 10px #f44336;
  }

  .produit-card.offre-speciale {
    background: #fff3e0;
    border: 2px solid #ff9800;
  }
  .produit-card.offre-speciale.mardi {
    background: #fffde7; /* jaune très clair */
    border-color: #fbc02d;
  }
  .produit-card.offre-speciale.weekend {
    background: #e8f5e9; /* vert clair */
    border-color: #66bb6a;
  }
  .badge-promo {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
  }
  .badge-promo.mardi {
    background: #fbc02d;
  }
  .badge-promo.weekend {
    background: #43a047;
  }



