Assign category's css in product details page


I managed to assign different css for each category with cs-cart forums help. I didn’t manage though to figure out how I assign the category css to the product details page. I want all the products from the specific category and subcategories to get the css from the parent categories.


Kids->Toys->Toys for babies

A product that is in “Toys for babies” gets default css style. I want to get the “Kids” category css.

Is there a chance for this to be done?

Thank you in advance.

Cs-Cart Version 2.2.3