/* ==========================================================================
   CARRITO DE COMPRAS - MODERN UI
   ========================================================================== */

.cart-page {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-page h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.cart-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
}

.cart-info {
    flex: 1;
}

.cart-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cantidad-form {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: none;
    background: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--dark);
}

.qty-value {
    padding: 0 14px;
    font-weight: 800;
    font-size: 0.95rem;
}

.delete-btn-cart {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn-cart:hover {
    background: #ef4444;
    color: #ffffff;
}

.cart-total {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 25px;
    margin-top: 25px;
    box-shadow: var(--shadow-md);
}

.cart-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.empty-cart-btn {
    padding: 12px 24px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
}

.checkout-btn {
    padding: 14px 32px;
    background: var(--dark);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--shadow-glow);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-buttons {
        flex-direction: column;
    }
}