/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Expected identifier but found "%"
Line 17:7 Unexpected "\"You may also like\""
Line 18:1 Expected identifier but found "%"
Line 20:0 Unexpected "<"
Line 23:5 Expected identifier but found "%"
Line 24:6 Unexpected "{"
Line 24:7 Expected identifier but found "%"
Line 25:8 Unexpected "{"
Line 25:9 Expected identifier but found "%"
... and 11 more hidden warnings

**/
{% comment %}
Custom "You may also like" – shows products only from the same collection.
{% endcomment %}

<div class="related-products">
  <h2 class="related-products__heading">You may also like</h2>
  <div class="grid grid--4-col">
    {% if collection %}
      {% for product in collection.products limit:4 %}
        {% if product.id != product.id %}
          <div class="grid__item">
            {% render 'card-product', product: product %}
          </div>
        {% endif %}
      {% endfor %}
    {% else %}
      <p>No related products found.</p>
    {% endif %}
  </div>
</div>
