List products related to currently active category (url)
The same way as entry is available if you hit an entry, the variable category is available if you hit a category. 

Thus the following code: 

{% if category is defined %}
    {# Specific category selected #}             
{% else %}
    {# No specific category selected #}
{% endif %}