/* ================= BANNER PROVISIONAL ================= */
.banner-provisional {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), #f4a261);
    color: white;
    padding: 40px 5%;
    text-align: center;
    margin-bottom: 40px;
}
.banner-contenido h2 { 
    font-size: 28px; 
    font-weight: 800; 
    margin-bottom: 8px; 
}
.banner-contenido p { 
    font-size: 15px; 
    font-weight: 500; 
    opacity: 0.9; 
}

/* ================= ESTRUCTURA PRINCIPAL CARRITO ================= */
.contenedor-carrito-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px 5%;
}

.carrito-card {
    background-color: var(--color-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* ================= GRID DE TABLA ================= */
.carrito-table-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.carrito-table-header div {
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carrito-row {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Distribución de columnas (Flexbox) */
.col-producto { flex: 3; padding-right: 15px; }
.col-categoria { flex: 1.5; }
.col-precio { flex: 1.5; }
.col-cantidad { flex: 1.5; }
.col-subtotal { flex: 1.5; }
.col-accion { flex: 0.5; text-align: right; }

.item-bold {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-dark);
}

.item-light {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* ================= SELECTOR DE CANTIDAD ================= */
.cantidad-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.cantidad-control button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.cantidad-control button:hover {
    background: #f4f4f4;
}

.cantidad-control input {
    width: 35px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    outline: none;
    pointer-events: none;
}

/* ================= BOTÓN ELIMINAR ================= */
.btn-eliminar-item {
    background-color: #ffeaea;
    color: var(--color-primary);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-eliminar-item:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ================= ESTADO VACÍO ================= */
.carrito-vacio-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #888;
    font-size: 16px;
    font-weight: 600;
}

/* ================= FOOTER DEL CARRITO ================= */
.carrito-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.btn-seguir-comprando {
    color: #43aa8b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-seguir-comprando:hover {
    color: #2f7a63;
}

.carrito-total-box {
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px 30px;
    text-align: right;
    min-width: 320px;
}

.total-text-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.total-amount-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.btn-proceder-pago {
    display: block;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.btn-proceder-pago:hover {
    background-color: #c52a36;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
    .carrito-table-header {
        display: none;
    }
    
    .carrito-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        position: relative;
    }
    
    .col-producto, .col-categoria, .col-precio, .col-cantidad, .col-subtotal, .col-accion {
        width: 100%;
        text-align: left;
    }

    .col-accion {
        position: absolute;
        top: 25px;
        right: 0;
    }

    .carrito-footer-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 30px;
    }

    .btn-seguir-comprando {
        text-align: center;
    }
}