Add an input field to the product view
Instead of adding the field to the product, consider adding the field to order items.

Then make it available in 'manage form display' -> 'add to cart'.

in Drupal 7 this functionality was provided by Commerce customizable Products module, now it has been moved into Commerce 2.x itself.