/* =============================== */
/*        MODALE PANIER            */
/* =============================== */

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    padding: 20px;
    overflow-y: auto;
    z-index: 999999 !important;

    /* Animation ouverture/fermeture */
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-radius: 12px 0 0 12px; /* cohérent avec ton design */
}

/* État visible */
.cart-modal:not(.is-hidden) {
    transform: translateX(0);
}

/* =============================== */
/*        OVERLAY PANIER           */
/* =============================== */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999998 !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cart-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* =============================== */
/*        HEADER DU PANIER         */
/* =============================== */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    transition: 0.2s ease;
}

.cart-close:hover {
    color: #000;
}

/* =============================== */
/*        CONTENU PANIER           */
/* =============================== */

.cart-body {
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #777;
    font-size: 15px;
}

/* =============================== */
/*        FOOTER PANIER            */
/* =============================== */

.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cart-continue {
    width: 100%;
    background: #ddd;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.cart-continue:hover {
    background: #c9c9c9;
}

.cart-checkout {
    width: 100%;
    background: #0070ba;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: 0.2s ease;
}

.cart-checkout:hover {
    background: #005a96;
}
/* =============================== */
/*   ENCADRÉ POUR CHAQUE PRODUIT   */
/* =============================== */

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;

    background: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 12px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Miniature */
.cart-item-preview {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #ddd;
}

/* Bloc infos */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Nom du produit */
.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Description */
.cart-item-description {
    font-size: 14px;
    color: #444;
}

/* Couleur */
.cart-item-couleur {
    font-size: 14px;
    color: #555;
}

/* Faces (recto/verso) */
.cart-item-faces {
    margin-top: 4px;
    padding: 8px;
    background: #f2f2f2;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cart-face {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.cart-face:last-child {
    margin-bottom: 0;
}

/* Quantité / prix / date */
.cart-item-qty,
.cart-item-price,
.cart-item-date {
    font-size: 14px;
    color: #444;
}

/* Bouton supprimer */
.cart-item-remove {
    margin-top: 8px;
    align-self: flex-start;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.cart-item-remove:hover {
    background: #d93636;
}

