/** Shopify CDN: Minification failed

Line 23:0 Unexpected "{"
Line 23:1 Expected identifier but found "%"
Line 24:0 Unexpected "{"
Line 24:1 Expected identifier but found "%"
Line 26:0 Unexpected "<"
Line 29:5 Expected identifier but found "%"
Line 30:6 Unexpected "{"
Line 30:7 Expected identifier but found "%"
Line 31:8 Unexpected "<"
Line 33:14 Unexpected "{"
... and 9 more hidden warnings

**/
.related-products {
  display: block;
}

.related-products__heading {
  margin: 0 0 3rem;
}
{% assign base_title_match = product.title | regex_replace: '(CVR|COVER).*', '' | strip %}
{% assign base_title = base_title_match | split: "#" | first | append: "#" | append: product.title | split: "#" | last | split: " " | first %}

<div id="related-products">
  <h3>Related Products</h3>
  <div class="related-grid">
    {% for p in collections.all.products %}
      {% if p.id != product.id and p.title contains base_title %}
        <div class="related-item" data-variant-id="{{ p.variants.first.id }}">
          <img src="{{ p.featured_image | img_url: 'small' }}" alt="{{ p.title }}">
          <p>{{ p.title }}</p>
          <p>${{ p.price | divided_by: 100.0 }}</p>
          <button class="add-related-to-cart">Add to Cart</button>
        </div>
      {% endif %}
    {% endfor %}
  </div>
</div>
