/* ═══════════════════════════════════════════════════════════════
   Panier — Uprinter
   Remplace les styles inline des vues cart/cart.php et
   partials/cart/cart_item.php.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --uprt-accent: #e905ed;
}

/* ── Page ──────────────────────────────────────────────────── */

.cart-page__title {
    color: var(--uprt-accent);
}

/* ── Ligne de panier ───────────────────────────────────────── */

.cart-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-item__carousel {
    width: 100%;
}

.cart-item__img {
    border: 0.7px solid darkgray;
}

/* Flèches du carrousel débordant légèrement de la vignette */
.cart-item__carousel .carousel-control-prev {
    left: -18px;
}

.cart-item__carousel .carousel-control-next {
    right: -18px;
}

/* ── En-tête : titre + suppression ─────────────────────────── */

.cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item__title {
    color: var(--uprt-accent);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}

.cart-item__delete {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cart-item__delete:hover,
.cart-item__delete:focus-visible {
    color: #dc3545;
}

/* ── Caractéristiques produit ──────────────────────────────── */

.cart-item__specs {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 0.25rem 0.75rem;
    margin: 0.75rem 0 0.5rem;
}

.cart-item__spec {
    display: flex;
    gap: 0.25rem;
}

.cart-item__spec dt {
    font-weight: 600;
}

.cart-item__spec dd {
    margin: 0;
}

/* Séparateur visuel entre caractéristiques */
.cart-item__spec:not(:last-child)::after {
    content: ",";
}

/* ── Livraison et prix ─────────────────────────────────────── */

.cart-item__delivery {
    margin-bottom: 0.5rem;
}

.cart-item__price {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

/* ── Animation de suppression (pilotée par cartController.js) ─ */

.cart-item {
    transition: height 0.25s ease, opacity 0.25s ease,
                margin 0.25s ease, padding 0.25s ease;
}

/* ── Résumé latéral ────────────────────────────────────────── */

.cart-resume {
    top: 165px;
}

/* ═══════════════════════════════════════════════════════════════
   MODALE DE SUPPRESSION (#modal_del — app/Views/partials/modals/cart-delete.php)
   ═══════════════════════════════════════════════════════════════ */

.del-modal__icon {
    align-items: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    color: #dc3545;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.del-modal__product {
    background: #f6f6f4;
    border-radius: 10px;
    padding: 10px 12px;
}

.del-modal__thumb {
    align-items: center;
    background: rgba(11, 94, 215, 0.1);
    border-radius: 8px;
    color: #0b5ed7;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.del-modal__name {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}

.del-modal__meta {
    color: #8a8a86;
    font-size: 13px;
}

/* Masque la ligne quantité tant que le JS ne l'a pas remplie. */
.del-modal__meta:empty {
    display: none;
}

.del-modal .btn {
    align-items: center;
    display: flex;
    height: 42px;
    justify-content: center;
}
