/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding:0px;
}

/* Style du titre du panier */
.titre_panier {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Conteneur principal du panier */
.contenu_cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table du panier */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* En-tête de la table */
th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1rem;
}

/* Style des en-têtes */
th {
    background-color: #3498db;
    color: #fff;
}

/* Style des cellules de produits */
td img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

/* Cellules pour les totaux */
td[colspan="2"] {
    font-weight: bold;
    color: #e74c3c;
}

/* Action buttons */
button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #27ae60;
}

/* Style des liens pour passer la commande */
a.passe {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
}

a.passe:hover {
    background-color: #e67e22;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    table, th, td {
        font-size: 0.9rem;
    }

    .contenu_cart {
        padding: 10px;
    }

    .titre_panier {
        font-size: 1.1rem;
    }

    /* Pour que le tableau soit scrollable horizontalement sur les petits écrans */
    table {
        overflow-x: auto;
        display: block;
    }

    th, td {
        word-wrap: break-word;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    a.passe {
        font-size: 1rem;
        padding: 6px;
    }

    /* Réduire la taille des images */
    td img {
        width: 40px;
    }
}
/* Formulaire de mise à jour du panier */
form input[type="number"], form button {
    border-radius: 8px; /* Arrondir les champs et les boutons */
    padding: 5px 8px; /* Espacement interne pour les champs */
    border: 1px solid #ddd; /* Bordure discrète */
    font-size: 1rem;
}

/* Spécifique aux boutons */
form button {
    background-color: #2ecc71;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #27ae60;
}

/* Champ d'entrée (quantité) */
form input[type="number"] {
    width: 50px; /* Largeur pour un affichage plus approprié */
    text-align: center; /* Centrer le texte dans le champ */
}

/* Formulaire de suppression */
form input[type="hidden"] {
    display: none; /* Cacher les champs cachés */
}
