Hello,
Change the previous code to
.products-grid .products-page-brands { display: none; }
+ Theme Options > WooCommerce (Shop) > Shop > Products style > Product Content Elements > uncheck “Product categories”
Regards