{% assign display_wishlist = true %}
{% for tag in Wishlist.data.exclusions %}
{% if product.tags contains tag %}
{% assign display_wishlist = false %}
{% endif %}
{% endfor %}
{% if product == blank %}
{% assign product = Product %}
{% endif %}
{% if display_wishlist %}
{%- if wishlist == blank -%}
{% assign wishlist = Wishlist.data.items | map: 'handle' %}
{% if wishlist[0] == null %}
{% assign wishlist = data.items | map: 'handle' %}
{% endif %}
{%- endif -%}
{%- assign p_title = product.title | replace: '"', '”' -%}
{%- capture wishlist_add -%}
event.preventDefault();
Wishlist.add({
handle: '{{ product.handle }}',
type: '{{ product.type | escpae }}',
image: '{{ product.featured_image }}',
{%- if variant -%}variant: {{ variant.id | json }},{%- endif -%}
title: `{{ p_title }}`
});
[this, _n.sibling(this, '.wishlist__button')].forEach(function(button) { button.classList.toggle('dn')});
{%- endcapture -%}
{% endif %}
{%- if product.member_exclusive contains 'coming_soon' or product.member_exclusive contains 'member_active' -%}
{%- assign year = product.member_end | split: '/' | last | prepend: '/' -%}
{%- assign date = product.member_end | remove: year -%}
{%- if product.member_exclusive contains 'coming_soon' -%}
{%- assign year = product.member_start | split: '/' | last | prepend: '/' -%}
{%- assign date = product.member_start | remove: year -%}
{%- endif -%}
{%- capture member_active_text -%}CCS+ Exclusive through {{ date }}{%- endcapture -%}
{%- capture coming_soon_text -%}CCS+ Exclusive starting {{ date }}{%- endcapture -%}
{%- assign member_text = member_active_text -%}
{%- if product.member_exclusive contains 'coming_soon' -%}
{%- assign member_text = coming_soon_text -%}
{%- endif -%}
{{ year }}
{{ date }}
{{ member_text }}
{%- endif -%}
{% assign crop = 'crop_height=64&crop_left=430&crop_top=472&crop_width=64' %}
{% if 'Skateboard Deck, Skateboard Complete' contains product.type %}
{% assign crop = 'crop_height=64&crop_left=230&crop_top=472&crop_width=64' %}
{% endif %}
{% for badge in productBadges %}
{% if product.tags contains badge.tag and badge.tag != 'more-colors' %}
{{ badge.collection_badge }}
{% endif %}
{% endfor %}
{%- assign option_value_data = '' -%}
{%- for option in product.options_with_values -%}
{%- if option.name == 'Title' %}{%- continue -%}{%- endif -%}
{%- unless siblingRange[product.type] contains option.name -%}{%- continue -%}{%- endunless -%}
{%- if option.values.size == 0 -%}{%- continue -%}{%- endif -%}
{%- assign option_values = option.values | sort -%}
{%- if option.values.size == 1 -%}
{%- assign option_value_data = option_values | first -%}
{%- else -%}
{%- assign option_values_last = option_values | last -%}
{%- assign option_va