/*=========================
CARRITO
==========================*/

.cart-container{
    display:grid;
    grid-template-columns:2fr 380px;
    gap:30px;
    align-items:flex-start;
}

.cart-items{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
}

.cart-item{
    display:flex;
    gap:20px;
    padding:20px;
    border-bottom:1px solid #eee;
}

.cart-item:last-child{
    border-bottom:none;
}

.cart-image{
    width:130px;
    height:130px;
    object-fit:contain;
}

.cart-info{
    flex:1;
}

.cart-info h3{
    margin-bottom:8px;
}

.cart-brand{
    color:#777;
    margin-bottom:10px;
}

.cart-actions{
    width:180px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:space-between;
}

.qty-control{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.qty-control button{
    width:36px;
    height:36px;
    border:none;
    background:#f5f5f5;
    cursor:pointer;
    font-size:20px;
}

.qty-control span{
    width:45px;
    text-align:center;
    font-weight:bold;
}

.subtotal{
    font-size:22px;
    font-weight:bold;
    color:#00a650;
}

.btn-remove{
    border:none;
    background:none;
    color:#3483fa;
    cursor:pointer;
}

.cart-summary{
    background:#fff;
    padding:25px;
    border-radius:10px;
    position:sticky;
    top:20px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin:18px 0;
}

.summary-discount strong{
    color:#00a650;
}

.summary-total{
    border-top:1px solid #eee;
    padding-top:14px;
    font-size:1.15em;
}

.cart-checkout{
    width:100%;
    margin-top:20px;
}

.continue-shopping{
    display:block;
    margin-top:20px;
    text-align:center;
    color:#3483fa;
    text-decoration:none;
}

.cart-empty{
    background:#fff;
    padding:80px;
    border-radius:12px;
    text-align:center;
}

.cart-empty h3{
    margin-bottom:15px;
}

@media(max-width:900px){

    .cart-container{
        grid-template-columns:1fr;
    }

    .cart-item{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .cart-info{
        text-align:center;
    }

    .cart-actions{
        width:100%;
        align-items:center;
        gap:15px;
    }

    .cart-summary{
        position:static;
        top:auto;
    }

    .cart-empty{
        padding:40px 20px;
    }

}

/*
 * Las reglas de .checkout / .checkout-item / .checkout-summary / .form-*
 * viven en checkout.css (más completas y con breakpoints propios).
 * No se duplican aquí para evitar que ambos archivos queden desincronizados.
 */