How can I hide subcategories that are not in the selected main category?


As you can see in the picture I have selected "Agencia Automotriz" and this main category consists of 6 subcategories. They have their own subcategories. That's the only thing I want to show when I select this main category, but WordPress / woocommerce shows me the other main categories in the same sidebar, so my question is, how can I hide the other categories that I did not select, like " Body Shop, Detallado Professional, do it yourself, lavado automatico and lavado manual "??? can you please help? 🙂 Many Thanks!