{% liquid assign search_heading = search.terms | remove: '*' | strip if search_heading == blank assign search_heading = 'search.title' | t endif %}

{{ search_heading | escape }}

{% if search.performed %} {% if search.results_count == 0 %}

{{ 'search.no_results_html' | t: terms: search_heading }}

{% else %}

{{ 'search.results_for_html' | t: terms: search_heading, count: search.results_count }}

{% paginate search.results by 9 %}
{% for result in search.results %} {% if result.object_type == 'product' %} {% assign card_suffix = section.id | append: '-' | append: forloop.index %} {% render 'collection-card', product: result, form_suffix: card_suffix %} {% else %} {% assign result_image = result.image | default: result.featured_image %} {% endif %} {% endfor %}
{% if paginate.pages > 1 %} {% endif %} {% endpaginate %} {% endif %} {% endif %}
{% schema %} { "name": "t:general.search", "settings": [] } {% endschema %}