/* =========================
   ESTILO GENERAL
========================= */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenido principal empuja el footer */
main {
    flex: 1;
}

/* =========================
   CARD PRODUCTO
========================= */
.carrito-card {
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carrito-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.franja-verde {
            background-color: #25D366;
            color: black;               
            font-weight: bold;          
            text-align: center;         
            padding: 15px 0;           
            font-family: Arial, sans-serif;
            font-size: 30px;              
        }
/* =========================
   IMÁGENES (MÁS GRANDES)
========================= */
.carrito-img {
    max-height: 140px;     /* 👈 PC */
    width: 100%;
    object-fit: contain;
    padding: 12px;
}

/* =========================
   RESUMEN
========================= */
.resumen-card {
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* =========================
   BOTONES
========================= */
.btn-success,
.btn-outline-secondary {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 500;
}
/* =========================
   📱 CELULAR / TABLET
========================= */
@media (max-width: 768px) {

    h2 {
        font-size: 1.7rem;
    }

    /* Imagen GRANDE en móvil */
    .carrito-img {
        max-height: 200px; /* 👈 celular */
        margin: 0 auto;
    }

    .carrito-card .row {
        text-align: center;
    }

    .carrito-card .card-body {
        padding: 12px;
    }

    .carrito-card .text-end {
        text-align: center !important;
        padding-bottom: 16px;
    }

    .carrito-card .text-success {
        font-size: 1.4rem;
    }

    /* Botones uno debajo del otro */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 14px;
    }

    .btn {
        width: 100%;
    }

    /* Total centrado */
    .resumen-card .card-body {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* =========================
   💻 ESCRITORIO GRANDE
========================= */
@media (min-width: 992px) {

    .carrito-img {
        max-height: 160px;
    }

    .resumen-card h3 {
        font-size: 2.1rem;
    }
    
}

