/*  Contenedor general principal de vista carrito de compras */
.cart-container {
    margin-top: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* WRAPPER VISUAL - UNE TABLA Y RESUMEN */
.cart-content-wrapper {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 2rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* COLUMNA IZQUIERDA - TABLA DE PRODUCTOS */
.cart-container .col-lg-8 {
    flex: 1 1 65%;
    min-width: 500px;
    transition: all 0.3s ease-in-out;
}

/* COLUMNA DERECHA - RESUMEN DE COMPRA */
.cart-container .col-lg-4 {
    flex: 0 0 32%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.3s ease-in-out;
}

/*-------- RESPONSIVIDAD---------  */

/*  Monitores grandes (hasta 1200px) */
@media (max-width: 1200px) {
    .cart-container .col-lg-8 {
        flex: 1 1 68%;
        min-width: 480px;
    }

    .cart-container .col-lg-4 {
        flex: 0 0 30%;
    }
}

/*  Tablets horizontales y pantallas medianas (≤992px) */
@media (max-width: 992px) {
    .cart-container .row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cart-container .col-lg-8,
    .cart-container .col-lg-4 {
        width: 100%;
        flex: unset;
        min-width: unset;
    }

    .cart-container .col-lg-4 {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .cart-content-wrapper {
        padding: 1.5rem 1rem;
    }
}

/*  Móviles verticales (≤576px) */
@media (max-width: 576px) {
    .cart-container {
        margin-top: 1rem;
        padding: 0.5rem 0.3rem;
    }

    .cart-content-wrapper {
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .cart-container .col-lg-4 {
        justify-content: center;
        width: 100%;
    }
}

/*  Título */
.cart-title {
    color: #121a77;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
}

/*  Espaciado entre secciones internas */
#cart-products,
#cart-summary {
    width: 100%;
}

/*  Animación de entrada suave */
.cart-content-wrapper {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}