{{ collection.title }}
{% if section.settings.collection_tags_style == 'dropdown' %}
{% endif %}
{% if section.settings.collection_sort_enable %}
{%- assign sort_by = collection.sort_by | default: collection.default_sort_by -%}
{% endif %}
{{ collection.description }}
{% endif %} {%- endif -%}
{% assign grid_item_width = 'small--one-half medium-up--one-third' %}
{% case per_row %}
{% when 1 %}
{%- assign grid_item_width = '' -%}
{% when 2 %}
{%- assign grid_item_width = 'medium-up--one-half' -%}
{% when 3 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-third' -%}
{% when 4 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-quarter' -%}
{% when 5 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-fifth' -%}
{% endcase %}
{%- assign have_sidebar = false -%}
{%- assign tag_count = 0 -%}
{%- assign tag_limit = 7 -%}
{%- assign have_extra_tags = false -%}
{% if section.settings.collection_tags_style == 'inline' %}
{% if collection.all_tags.size > 0 %}
{% endif %}
{%- assign show_button_limit = tag_limit | minus: 1 -%}
{% if tag_count > show_button_limit %}
{% endif %}
{% elsif section.settings.collection_subnav_style == 'inline' %}
{% if linklists.main-menu.levels > 0 %}
{% for link in linklists.main-menu.links %}
{% if link.active %}
{% if link.links.size > 0 %}
{%- assign have_sidebar = true -%}
{% endif %}
{% elsif link.child_active %}
{%- assign have_sidebar = true -%}
{% endif %}
{% endfor %}
{% endif %}
{% if have_sidebar %}
{% endif %}
{% endif %}
{%- assign show_button_limit = tag_limit | minus: 1 -%}
{% if tag_count > show_button_limit %}
{% endif %}
{% endif %}
{% for product in collection.products %}
{% include 'product-grid-item' %}
{% else %}
{% endif %}
{% endif %}
{{ 'collections.general.no_matches' | t }}