How to print product ID in commerce-product.html.twig template
You need to retrieve it from product_entity

{{ kint(product_entity.product_id.value) }}



  Search "Available Variables" for more information here
  https://docs.drupalcommerce.org/commerce2/developer-guide/products/displaying-products/theme-product