Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can I make the category sidebar close only if I click anywhere else and open it just by clicking? Is there something implemented like that?
No, it is not implemented, you just need to replace the event from hover to click.
hover
click