﻿/* ========================================
   PAGE PANIER - CARPRO PRO
   ======================================== */

/* Header panier */
.panier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #64b22a;
}

/* Panier vide */
.panier-vide {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.panier-vide-icon {
    font-size: 80px !important;
    color: #ccc;
}

/* Actions globales */
.panier-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Liste articles */
.panier-liste {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.panier-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 150px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.panier-item-image img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
}

.panier-item-ref {
    color: #999;
    font-size: 11px;
    font-weight: 600;
}

.panier-item-libelle {
    margin: 5px 0;
    line-height: 1.3;
}

.panier-item-price,
.panier-item-subtotal {
    text-align: right;
}

.panier-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input {
    width: 60px;
}

    .quantity-input input {
        text-align: center;
        font-weight: 700;
    }

/* Sections */
.panier-section {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.section-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

/* Récapitulatif */
.recap-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.total-line {
    border-top: 2px solid #64b22a;
    padding-top: 15px;
    margin-top: 10px;
}

/* Info box */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 960px) {
    .panier-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .panier-item-image {
        text-align: center;
    }

    .panier-item-price,
    .panier-item-subtotal {
        text-align: left;
    }

    .panier-item-quantity {
        justify-content: center;
    }
}
