/* Style global */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Contenu principal */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main h2 {
    text-align: center;
    color: #e60012;
    margin-bottom: 1.5rem;
}

/* Table Panier */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

thead th {
    background-color: #e60012;
    color: #fff;
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

tbody td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: center;
}

tfoot td {
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    text-align: right;
}

/* Produits dans le panier */
.product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product span {
    font-size: 1rem;
    color: #333;
}

/* Champs d'entrée pour les quantités */
input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-right: 10px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    background-color: #e60012;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #cc0010;
    transform: scale(1.05);
}

.btn:active {
    background-color: #a8000e;
    transform: scale(0.95);
}

.btn.delete-btn {
    background-color: #ff4c4c;
}

.btn.delete-btn:hover {
    background-color: #e60012;
}

/* Conteneur des boutons sous le tableau */
.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #555;
}

.btn-secondary:hover {
    background-color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tbody tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1rem;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }

    .btn-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}
     /* Bouton attractif */
 .btn-return {
     display: inline-block;
     padding: 10px 20px;
     margin-top: 20px;
     font-size: 1rem;
     font-weight: bold;
     color: white;
     background-color: #e60012;
     text-transform: uppercase;
     text-decoration: none;
     border-radius: 5px;
     transition: background-color 0.3s ease, transform 0.2s ease;
 }

.btn-return:hover {
    background-color: #cc0010;
    transform: scale(1.05);
}

/* Nouveau bouton de suppression */
.btn-delete {
    color: white;
    background-color: #ff0000;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.btn-clear {
    color: white;
    background-color: #d9534f;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
}

.btn-clear:hover {
    background-color: #c9302c;
}
