/* Styles pour panier.html */

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

/* Utiliser les styles de nav/footer de style.css si possible */
/* Assurez-vous que style.css est lié AVANT panier.css dans panier.html */

.panier-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

#cart-items-container {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: auto;
    margin-right: 20px;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #555;
}

.item-details p {
    margin: 5px 0;
    color: #777;
}

.item-quantity input {
    width: 50px;
    padding: 5px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.item-actions button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.item-actions button:hover {
    background-color: #c0392b;
}

#cart-summary {
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid #333;
}

#cart-summary h2 {
    margin-bottom: 15px;
    color: #333;
}

#cart-summary p {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

#checkout-button {
    /* Style repris de .cta-button si défini dans style.css */
    padding: 12px 25px;
    font-size: 1.1em;
    /* Ajoutez d'autres styles si .cta-button n'est pas suffisant */
}

#empty-cart-message {
    text-align: center;
    font-size: 1.1em;
    color: #888;
    padding: 40px 0;
}

/* Classe utilitaire pour cacher des éléments */
.hidden {
    display: none !important; /* !important pour surcharger d'autres styles potentiels */
}