*if you already have templates ready for a product:
In the admin panel open a product, where you wish to use your custom template. In the bottom right of the product settings you will see ‘use the template’.
*If you need to create a specific templates for some of your products.
Go to the theme customisation, in top middle part of the editor select Products, + create a new template. Add sections inside. Use that template in a product settings.