Firstly, this conditional returns true on category archives for Woo Commerce and NOT single product page.
Try using the actual slug in lowercase or the i.d.
Example:
if ( is_product_category( 't-shirt' ) ) {
Your code looks like its wrong because it includes too many brackets.
Woo suggest using the slug in their Docs.
This is the correct conditional which returns true on a single product page.
is_product()
Here’s all the Woo hooks & conditional tags you can use in custom functions from your child themes functions file.