* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #263238;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

h1 {
    margin-bottom: 24px;
}

.topbar h1 {
    margin-bottom: 0;
}

.produits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.produit,
.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.produit {
    text-align: center;
}

.produit h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.prix {
    color: #168a4a;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-ajouter {
    background: #1976d2;
}

.btn-panier {
    background: #ef8b00;
}

.btn-payer {
    background: #168a4a;
}

.btn-maj {
    background: #1976d2;
}

.btn-retour {
    background: #607d8b;
}

.btn-vider,
.btn-supprimer {
    background: #d84242;
}

.btn:hover {
    opacity: 0.88;
}

.table-wrapper {
    overflow-x: auto;
}

.table-panier {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table-panier th,
.table-panier td {
    padding: 13px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.table-panier th {
    background: #263238;
    color: #fff;
}

.qte-input {
    width: 70px;
    padding: 8px;
}

.actions-panier {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.message-success {
    border-left: 6px solid #168a4a;
}

.message-pending {
    border-left: 6px solid #ef8b00;
}

.message-error {
    border-left: 6px solid #d84242;
}

.reference {
    margin: 18px 0;
    color: #607d8b;
    font-size: 0.92rem;
}

@media (max-width: 650px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-panier {
        font-size: 0.9rem;
    }
}