/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Expected identifier but found "%"
Line 19:10 Expected identifier but found whitespace
Line 20:2 Unexpected "-"
Line 20:20 Expected ":"
Line 21:2 Unexpected "-"
Line 21:29 Expected ":"
Line 21:47 Unexpected "("
Line 22:31 Expected ":"
Line 22:51 Unexpected "("
... and 393 more hidden warnings

**/
{% comment %}
  Renders a product item

  Accepts:
  - product: {Object} Product Liquid object
  - is_swiper_slide: {Boolean} Is swiper slide (Fix width)
  - is_related_swiper: {Boolean} Is Related swiper (Fix variant picker)

  Usage:
  {% render 'product-item', product: product_object, is_swiper_slide: false %}
{% endcomment %}

{% liquid
  assign button_text = settings.pi_button_text | default: 'הוספה לסל'
  if button_text == blank
    assign button_text = 'הוספה לסל'
  endif
  assign hide_vendor = settings.pi_hide_vendor
%}

<style>
  /* Force the outer grid item (rendered by a different template) to stay
     fully visible at all times — counters any hide-until-hover logic from
     the theme's own quick-add.css that may apply opacity to this ancestor */
  li.grid-product,
  .grid__item.grid-product,
  li.grid__item {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 2.5rem !important;
  }

  /* Disable the theme's "slide in on scroll/load" reveal animation for
     product cards specifically — this is very likely what causes all
     products to visibly shift upward right after the page loads. */
  li.grid-product.scroll-trigger,
  li.grid-product.animate--slide-in,
  .grid-product.scroll-trigger,
  .grid-product.animate--slide-in {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .grid-product.product-item-slide {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* ===== Image wrapper: fixed aspect ratio + uniform background so all
     product photos (white / transparent / off-white) sit on the same
     backdrop instead of looking inconsistent ===== */
  .product-item-media-wrap {
    position: relative;
    width: 100%;
    background: #f6f6f6 !important;
    overflow: hidden;
    isolation: isolate;
  }
  .product-item-media-wrap::before {
    content: "";
    display: block;
    padding-top: 100%; /* square */
  }
  .product-item-images {
    position: absolute;
    inset: 0;
    display: block;
    background: #f6f6f6 !important;
    z-index: 1;
  }
  .product-item-image {
    position: absolute;
    inset: 0;
    background: #f6f6f6 !important;
  }
  .product-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
    padding: 6% !important;
    box-sizing: border-box !important;
    transition: none !important;
    transform: none !important;
  }
  .product-item-image--first {
    display: block;
  }
  .product-item-second-image {
    display: none;
  }
  .grid-product:has(.product-item-second-image):hover .product-item-image--first {
    display: none;
  }
  .grid-product:has(.product-item-second-image):hover .product-item-second-image {
    display: block;
  }

  /* Force text/price/swatches to stay visible on hover — cancels any
     pre-existing theme CSS that hides card info and shows only the button */
  .grid-product:hover .product-item-vendor,
  .grid-product .product-item-vendor {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  .grid-product:hover .product-item-title,
  .grid-product .product-item-title {
    opacity: 1 !important;
    visibility: visible !important;
    display: -webkit-box !important;
  }
  .grid-product:hover .grid-product__colors,
  .grid-product .grid-product__colors {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
  .grid-product:hover .product-item-price,
  .grid-product .product-item-price {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
  .grid-product:hover .product-item-bottom-top,
  .grid-product .product-item-bottom-top {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* ===== Wishlist button — sits OUTSIDE the <a> so it never triggers
     navigation to the product page. White circle, forced to the top of
     the stacking order so it is always clickable. ===== */
  .product-item-media-wrap .wishlist-btn {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 999 !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto !important;
  }
  .product-item-media-wrap .wishlist-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none; /* clicks always land on the button, not the svg */
  }
  @media screen and (max-width: 749px) {
    .product-item-media-wrap .wishlist-btn {
      width: 20px;
      height: 20px;
    }
    .product-item-media-wrap .wishlist-btn svg {
      width: 10px;
      height: 10px;
    }
  }

  .product-item-content,
  .grid-product:hover .product-item-content {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-item-bottom,
  .grid-product:hover .product-item-bottom {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-item-bottom-inner {
    padding: 0.3rem 0 0 0 !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Brand name — always visible, right-aligned, tight to the image above it */
  .product-item-vendor {
    display: block !important;
    text-align: right !important;
    font-size: 1.4rem !important;
    font-weight: 500;
    letter-spacing: 0.04rem;
    color: #555555 !important;
    margin: 0 0 0.3rem 0 !important;
    min-height: 1.3rem;
    order: 1;
  }

  /* Title — larger, given enough room for 2 full lines, no premature clipping */
  .product-item-title {
    margin: 0 0 0.15rem 0 !important;
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2 + 2px);
    order: 2;
  }

  .product-item-product-variants {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  @media screen and (max-width: 749px) {
    .product-item-title {
      font-size: 1.3rem !important;
      -webkit-line-clamp: 3 !important;
      min-height: calc(1.3em * 3 + 2px) !important;
      margin-bottom: 0.2rem !important;
    }
    .product-item-vendor {
      margin-bottom: 0.15rem !important;
    }
    .product-item-regular-price {
      font-size: 1.4rem !important;
    }
    .product-item-compare-price {
      font-size: 1.1rem !important;
    }
    .grid-product__colors {
      flex-wrap: nowrap !important;
      overflow: hidden !important;
      direction: rtl !important;
      justify-content: flex-end !important;
      margin: 0 0 0.15rem 0 !important;
      height: 1.8rem !important;
      min-height: 1.8rem !important;
      max-height: 1.8rem !important;
    }
    .grid-product__colors span.variant-swatch:nth-child(n+4) {
      display: none !important;
    }
  }

  .product-item-bottom-top {
    min-width: 0;
    width: 100%;
  }
  .product-item-bottom-left {
    min-width: 0;
    width: 100%;
    flex-shrink: 0;
  }
  .product-item-bottom-left:has(.product-item-title) {
    display: flex;
    flex-direction: column;
  }

  .grid-product__colors {
    height: 2.2rem !important;
    min-height: 2.2rem !important;
    max-height: 2.2rem !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.15rem 0 !important;
  }

  .product-item-price {
    margin: 0 0 0.4rem 0 !important;
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
  }
  .product-item-regular-price {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0 !important;
  }
  .product-item-compare-price {
    font-size: 1.4rem !important;
    text-decoration: line-through !important;
    color: #d21818 !important;
    margin: 0 !important;
  }

  /* Add to cart button — always visible, static, no hover animation,
     taller fixed height */
  .product-item-button {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 1.5rem 0 !important;
    min-height: 5.2rem !important;
    height: 5.2rem !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    position: relative !important;
    order: 3;
    flex-shrink: 0;
    background-color: #000000 !important;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-item-button:disabled,
  .product-item-button:disabled:hover {
    background-color: #777777 !important;
    color: #ffffff !important;
    cursor: not-allowed;
  }

  /* Nuclear override: defeat any external theme CSS that positions this
     button absolutely and slides it up on hover (a common "reveal add to
     cart on hover" pattern) which was covering the price instead of
     sitting in normal flow beneath it. Matches every plausible selector
     combination so specificity cannot lose. */
  .grid-product .product-item-button,
  .grid-product:hover .product-item-button,
  .product-item-bottom .product-item-button,
  .product-item-bottom:hover .product-item-button,
  li.grid-product .product-item-button,
  li.grid-product:hover .product-item-button,
  .grid-product .product-item-content .product-item-button,
  .grid-product:hover .product-item-content .product-item-button {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    order: 3 !important;
    align-self: auto !important;
    margin: 0 !important;
  }

  /* Targeted fix: the theme's own JS adds a "quick-add-added" class to
     this button by default (confirmed via devtools), and the theme's CSS
     for that exact class combination is winning over our plain
     .product-item-button rule due to higher selector specificity.
     Matching that same specificity here, with our own !important values,
     forces the button to stay fully visible regardless. */
  .product-item-button.quick-add-added,
  .js-quick-add-btn.quick-add-added,
  .js-quick-add-variants.quick-add-added,
  button.product-item-button.quick-add-added {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    width: 100% !important;
    height: 5.2rem !important;
    min-height: 5.2rem !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-indent: 0 !important;
    overflow: visible !important;
  }

  .product__image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
  }

  .card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }

  .card__label__badge {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 0.4rem 0;
  }

  .card__badge .badge,
  .card__label__badge .badge {
    text-transform: uppercase !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03rem !important;
    line-height: 1.6 !important;
  }
</style>

<div
  class="product-item-slide grid-product{% if is_swiper_slide %} swiper-slide{% endif %}"
  data-product-handle="{{ product.handle }}"
  data-product-id="{{ product.id }}"
>
  <div class="product-item-media-wrap">

    {% comment %} Wishlist button — OUTSIDE the <a> on purpose, so clicking it
    never triggers navigation to the product page {% endcomment %}
    <button
      type="button"
      class="wishlist-btn"
      data-wishlist-btn
      data-product-id="{{ product.id }}"
      data-product-handle="{{ product.handle }}"
      data-product-title="{{ product.title | escape }}"
      data-product-image="{{ product.featured_image | image_url: width: 400 }}"
      data-product-price="{{ product.price | money }}"
      data-product-compare-price="{{ product.compare_at_price | money }}"
      data-product-url="{{ product.url }}"
      aria-label="הוסף לרשימת המשאלות"
    >
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
        <path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>
      </svg>
    </button>

    <a href="{{ product.url }}" class="product-item-images">
      {% if product.metafields.custom.image_label != blank %}
        <div class="product__image-label">
          {{ product.metafields.custom.image_label | image_url: width: 55 | image_tag }}
        </div>
      {% endif %}

      <div
        class="product-item-image {% if product.media.size > 1 %}product-item-first-image{% endif %} product-item-image--first"
        data-product-id="{{ product.selected_or_first_available_variant.id }}"
      >
        {% if product.featured_image != blank %}
          <img
            srcset="
              {%- if product.featured_image.width >= 375 -%}{{ product.featured_image | image_url: width: 375 }} 375w,{%- endif -%}
              {%- if product.featured_image.width >= 550 -%}{{ product.featured_image | image_url: width: 550 }} 550w,{%- endif -%}
              {%- if product.featured_image.width >= 750 -%}{{ product.featured_image | image_url: width: 750 }} 750w,{%- endif -%}
              {%- if product.featured_image.width >= 1100 -%}{{ product.featured_image | image_url: width: 1100 }} 1100w,{%- endif -%}
              {%- if product.featured_image.width >= 1500 -%}{{ product.featured_image | image_url: width: 1500 }} 1500w,{%- endif -%}
              {%- if product.featured_image.width >= 1780 -%}{{ product.featured_image | image_url: width: 1780 }} 1780w,{%- endif -%}
              {%- if product.featured_image.width >= 2000 -%}{{ product.featured_image | image_url: width: 2000 }} 2000w,{%- endif -%}
              {%- if product.featured_image.width >= 3000 -%}{{ product.featured_image | image_url: width: 3000 }} 3000w,{%- endif -%}
              {%- if product.featured_image.width >= 3840 -%}{{ product.featured_image | image_url: width: 3840 }} 3840w,{%- endif -%}
              {{ product.featured_image | image_url }} {{ product.featured_image.width }}w
            "
            sizes="100vw"
            src="{{ product.featured_image | image_url: width: 1500 }}"
            loading="lazy"
            alt="{{ product.featured_image.alt | escape }}"
            width="100%"
            height="auto"
          >
        {% else %}
          {{ 'image' | placeholder_svg_tag }}
        {% endif %}
      </div>

      {% if product.media.size > 1 %}
        <div
          class="product-item-image product-item-second-image product-item-media-show-mobile"
          data-product-id="{{ product.selected_or_first_available_variant.id }}"
        >
          {% for media in product.media %}
            {% if forloop.index == 2 %}
              <img
                srcset="
                  {%- if media.width >= 375 -%}{{ media | image_url: width: 375 }} 375w,{%- endif -%}
                  {%- if media.width >= 550 -%}{{ media | image_url: width: 550 }} 550w,{%- endif -%}
                  {%- if media.width >= 750 -%}{{ media | image_url: width: 750 }} 750w,{%- endif -%}
                  {%- if media.width >= 1100 -%}{{ media | image_url: width: 1100 }} 1100w,{%- endif -%}
                  {%- if media.width >= 1500 -%}{{ media | image_url: width: 1500 }} 1500w,{%- endif -%}
                  {%- if media.width >= 1780 -%}{{ media | image_url: width: 1780 }} 1780w,{%- endif -%}
                  {%- if media.width >= 2000 -%}{{ media | image_url: width: 2000 }} 2000w,{%- endif -%}
                  {%- if media.width >= 3000 -%}{{ media | image_url: width: 3000 }} 3000w,{%- endif -%}
                  {%- if media.width >= 3840 -%}{{ media | image_url: width: 3840 }} 3840w,{%- endif -%}
                  {{ media | image_url }} {{ media.width }}w
                "
                id="variant-image-{{ product.id }}"
                sizes="100vw"
                src="{{ media | image_url: width: 1500 }}"
                loading="lazy"
                alt="{{ media.alt | escape }}"
                width="100%"
                height="auto"
              >
            {% endif %}
          {% endfor %}
        </div>
      {% endif %}

      <div class="card__badge {{ settings.badge_position }}">
        {% comment %} badges by collection {% endcomment %}
        {% for item in product.collections %}
          {% if item.metafields.custom.collection_thumbnail_badges != blank %}
            {% assign badges_bottom = item.metafields.custom.collection_thumbnail_badges.value %}
            {% for badge_one in badges_bottom %}
              <span
                id="NoMediaStandardBadge-{{ section_id }}-{{ product.id }}"
                class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}"
                style="background: {{ badge_one.background_color }}; color: {{ badge_one.text_color }}"
              >
                {{ badge_one.badge_name }}
              </span>
            {% endfor %}
          {% endif %}
        {% endfor %}

        {%- if product.available == false -%}
          <span
            id="NoMediaStandardBadge-{{ product.id }}"
            class="badge badge--bottom-left color-{{ settings.sold_out_badge_color_scheme }}"
          >
            {{- 'products.product.sold_out' | t -}}
          </span>
        {%- elsif product.compare_at_price > product.price and product.available -%}
          <span
            id="NoMediaStandardBadge-{{ product.id }}"
            class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}"
          >
            {{- 'products.product.on_sale' | t -}}
          </span>
        {%- endif -%}

        {% if product.metafields.custom.product_badge != blank %}
          {% assign product_badge = product.metafields.custom.product_badge.value %}
          {% assign background_opacity = product_badge.background_opacity.value | default: 100 | divided_by: 100.0 %}
          <span
            id="NoMediaStandardBadge-{{ section_id }}-{{ product.id }}"
            class="badge color-{{ settings.sale_badge_color_scheme }}"
            style="
              background: {{ product_badge.background_color.value | default: '#ba4444' | color_modify: 'alpha', background_opacity }};
              color: {{ product_badge.text_color | default: '#000000' }};
              border-color: {{ product_badge.border_color | default: 'transparent' }};
              border-width: {{ product_badge.border_width | default: 1 }}px;
              border-style: solid;
              font-size: {{ product_badge.text_size | default: 14 }}px;
              text-align: {{ product_badge.text_align | default: 'center' }};
              display: inline-block;
            "
          >
            {{ product_badge.badge_name }}
          </span>
        {% endif %}
      </div>
    </a>
  </div>

  <div class="product-item-content" style="max-height:none !important; height:auto !important; overflow:visible !important; opacity:1 !important; visibility:visible !important;">
    <div class="product-item-bottom" style="max-height:none !important; height:auto !important; overflow:visible !important; opacity:1 !important; visibility:visible !important;">
      <div class="product-item-bottom-inner" style="max-height:none !important; height:auto !important; overflow:visible !important; opacity:1 !important; visibility:visible !important;">
        <div class="product-item-bottom-top" style="opacity:1 !important; visibility:visible !important;">

          {%- capture label_badge_html -%}
            {% for item in product.collections %}
              {% if item.metafields.custom.collection_badges != blank %}
                {% for badge_one in item.metafields.custom.collection_badges.value %}
                  {% assign background_opacity = badge_one.background_opacity.value | default: 100 | divided_by: 100.0 %}
                  <span
                    id="NoMediaStandardBadge-{{ section_id }}-{{ product.id }}"
                    class="badge color-{{ settings.sale_badge_color_scheme }}"
                    style="
                      background: {{ badge_one.background_color.value | default: '#ba4444' | color_modify: 'alpha', background_opacity }};
                      color: {{ badge_one.text_color | default: '#000000' }};
                      border-color: {{ badge_one.border_color | default: 'transparent' }};
                      border-width: {{ badge_one.border_width | default: 1 }}px;
                      border-style: solid;
                      font-size: {{ badge_one.text_size | default: 14 }}px;
                      text-align: {{ badge_one.text_align | default: 'center' }};
                      display: inline-block;
                    "
                  >
                    {{ badge_one.badge_name }}
                  </span>
                {% endfor %}
              {% endif %}
            {% endfor %}
          {%- endcapture -%}
          {%- if label_badge_html != blank -%}
            <div class="card__label__badge {{ settings.badge_position }}">
              {{ label_badge_html }}
            </div>
          {%- endif -%}

          <div class="product-item-bottom-left">
            <p class="product-item-vendor" style="display:block !important; opacity:1 !important; visibility:visible !important;">
              {{ product.vendor }}
            </p>

            <p class="product-item-title" style="display:-webkit-box !important; opacity:1 !important; visibility:visible !important;">
              {{ product.title | truncate: 70, "…" }}
            </p>
          </div>

          <div class="product-item-bottom-left">
            {%- liquid
              assign swatch_trigger = 'products.general.color_swatch_trigger' | t | downcase
              assign swatch_file_extension = 'png'
              assign color_count = 0
              assign max_colors_show = 4
              assign more_than_max = false
            -%}
            <div class="grid-product__colors" style="display:flex !important; opacity:1 !important; visibility:visible !important;">
              {%- for option in product.options_with_values -%}
                {%- liquid
                  assign option_name = option.name | downcase
                  assign is_color = false
                  if option_name contains swatch_trigger
                    assign is_color = true
                  elsif swatch_trigger == 'color' and option_name contains 'colour'
                    assign is_color = true
                  endif
                -%}
                {%- if is_color -%}
                  {%- assign option_index = forloop.index0 -%}
                  {%- assign values = '' -%}
                  {%- for variant in product.variants -%}
                    {%- assign value = variant.options[option_index] %}
                    {%- unless values contains value -%}
                      {%- liquid
                        assign values = values | join: ',' | append: ',' | append: value | split: ','
                        assign color_file_name = value | handle | append: '.' | append: swatch_file_extension
                        assign color_image = color_file_name | file_img_url: '50x50' | prepend: 'https:' | split: '?' | first
                        assign color_swatch_fallback = value | split: ' ' | last | handle
                        assign color_count = color_count | plus: 1
                      -%}
                      {%- if color_count <= max_colors_show -%}
                        <span
                          class="variant-swatch color-swatch--small color-swatch--{{ value | handle }}"
                          data-url="{{ variant.url | within: collection }}"
                          {% if variant.image %}
                            data-variant-id="{{ variant.id }}"
                            data-variant-image="{{ variant.image | image_url: width: 400 }}"
                          {% endif %}
                          style="background-color: {{ color_swatch_fallback }};{% if images[color_file_name] != blank %} background-image: url({{ color_image }});{% endif %}"
                        >
                          <span class="visually-hidden">{{ value }}</span>
                        </span>
                      {%- else -%}
                        {%- assign more_than_max = true -%}
                      {%- endif -%}
                    {%- endunless -%}
                  {%- endfor -%}
                  {%- if more_than_max -%}
                    {%- assign more_colors = color_count | minus: max_colors_show -%}
                    <small class="color-swatch__more">+{{ more_colors }}</small>
                  {%- endif -%}
                {%- endif -%}
              {%- endfor -%}
            </div>
          </div>

          <div class="product-item-price" style="display:flex !important; opacity:1 !important; visibility:visible !important;">
            <p class="product-item-regular-price">{{ product.price | money }}</p>
            {% if product.compare_at_price != blank and product.compare_at_price > 0 %}
              <p class="product-item-compare-price">
                {{ product.compare_at_price | money }}
              </p>
            {% endif %}
          </div>
        </div>
      </div>

      {% if product.variants.size > 1 %}
        <div class="product-item-product-variants" data-product-handle="{{ product.handle }}">
          <button type="button" class="btn--circle btn--icon close-variants-picker">
            <svg aria-hidden="true" focusable="false" role="presentation" class="icon icon-close" viewBox="0 0 64 64">
              <defs><style>.cls-1{fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:2px}</style></defs><path class="cls-1" d="M19 17.61l27.12 27.13m0-27.13L19 44.74"/>
            </svg>
            <span class="icon__fallback-text">{{ 'general.accessibility.close_modal' | t | json }}</span>
          </button>
        </div>
      {% endif %}

      {% if button_text != blank %}
        <button
          type="button"
          href="#"
          data-id="{{ product.selected_or_first_available_variant.id }}"
          data-handle="{{ product.handle }}"
          {% if is_related_swiper and product.variants.size > 1 %}
            onclick="location.href='{{ product.url }}'"
          {% endif %}
          class="product-item-button {% if product.variants.size > 1 %}{% if is_related_swiper %}js-quick-redirect{% else %}{% endif %}js-quick-add-variants{% else %}js-quick-add-btn{% endif %}"
          style="opacity:1 !important; visibility:visible !important;"
          {% if product.available == false %}
            disabled
          {% endif %}
        >
          <span class="btn_label">
            {%- if product.available == false -%}
              {{- 'products.product.sold_out' | t -}}
            {% else %}
              {{ button_text }}
            {% endif %}
          </span>
          {%- render 'loading-spinner' -%}
        </button>
      {% endif %}
    </div>
  </div>
</div>
