Sanitized for your protection

absint on the incoming product_id, add filter for buynow form classes
and sanitize_html_class on the resulting classes
Clean on aisle 2 - printf

Extend with specific argument and force interger for array index
Little light housekeeping for whitespace
Pass disabled as argument to printf

Light housekeeping on the whitespace, insert argument numbering