/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Unexpected "{"
Line 16:3 Expected identifier but found "'section-collection-list.css'"
Line 17:0 Unexpected "{"
Line 17:1 Unexpected "{"
Line 17:3 Expected identifier but found "'component-card.css'"
Line 18:0 Unexpected "{"
Line 18:1 Unexpected "{"
Line 18:3 Expected identifier but found "'component-slider.css'"
Line 20:0 Unexpected "{"
... and 133 more hidden warnings

**/
{{ 'section-collection-list.css' | asset_url | stylesheet_tag }}
{{ 'component-card.css' | asset_url | stylesheet_tag }}
{{ 'component-slider.css' | asset_url | stylesheet_tag }}

{% assign col = section.settings.columns_desktop  %}
{%- style -%}
  .section-{{ section.id }}-padding {
    padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
    padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
  }

  @media screen and (min-width: 750px) {
    .section-{{ section.id }}-padding {
      padding-top: {{ section.settings.padding_top }}px;
      padding-bottom: {{ section.settings.padding_bottom }}px;
    }
  }

  /* ── Header: heading + subheading (left) / shop all button (right) ─────── */
  #CollectionListOuter-{{ section.id }} .collection-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 40px);
    padding-bottom: clamp(16px, 2.5vw, 28px);
    border-bottom: 0.5px solid #56483A;
  }

  #CollectionListOuter-{{ section.id }} .collection-list-header__text {
    flex: 1 1 auto;
    min-width: 0;
  }

  #CollectionListOuter-{{ section.id }} .collection-list-subheading {
    margin-top: 8px;
    max-width: 640px;
  }

  #CollectionListOuter-{{ section.id }} .collection-list-header__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 14px 28px;
    background-color: #A43823;
    color: #fff;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
  }

  #CollectionListOuter-{{ section.id }} .collection-list-header__button:hover {
    opacity: 0.85;
    color: #fff;
  }

  @media screen and (max-width: 749px) {
    #CollectionListOuter-{{ section.id }} .collection-list-header {
      flex-direction: column;
      align-items: flex-start;
    }
    #CollectionListOuter-{{ section.id }} .collection-list-header__button {
      width: 100%;
    }
  }

  /* ── Numbered collection card (matches "What Is Illustration" cards) ───── */
  #CollectionListOuter-{{ section.id }} .collection-list {
    --grid-desktop-horizontal-spacing: clamp(16px, 3vw, 40px);
    --grid-desktop-vertical-spacing: clamp(16px, 3vw, 40px);
    border-top: none;
    border-bottom: none;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0.5px solid #56483A;
    overflow: hidden;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__media {
    position: relative;
    overflow: hidden;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__img,
  #CollectionListOuter-{{ section.id }} .card-collection-numbered__media .placeholder-svg {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    border-top: 0.5px solid #56483A;
    transition: background 0.2s;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer:hover {
    background: #A43823;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer-inner {
    display: flex;
    align-items: stretch;
    min-height: 46px;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-family: 'coco' !important;
    font-size: 1.3rem !important;
    letter-spacing: .15em !important;
    text-transform: uppercase !important;
    font-weight: 500;
    color: #5c4a3c;
    border-right: 0.5px solid #56483A;
    transition: color 0.2s, border-color 0.2s;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    font-family: 'libre' !important;
    font-size: 1.3rem !important;
    letter-spacing: .07em !important;
    font-weight: 300;
    color: #3a2a20;
    text-transform: lowercase !important;
    transition: color 0.2s;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer:hover .card-collection-numbered__num,
  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer:hover .card-collection-numbered__title {
    color: #fff;
  }

  #CollectionListOuter-{{ section.id }} .card-collection-numbered__footer:hover .card-collection-numbered__num {
    border-right-color: #fff;
  }

{%- endstyle -%}

{%- liquid
  assign columns_mobile_int = section.settings.columns_mobile | plus: 0
  assign show_mobile_slider = false
  if section.settings.swipe_on_mobile and section.blocks.size > columns_mobile_int
    assign show_mobile_slider = true
  endif
-%}

<div id="CollectionListOuter-{{ section.id }}" class="color-{{ section.settings.color_scheme }} gradient {% unless section.settings.fullWidth %}page-width{% endunless %}">
  <div class="collection-list-wrapper {% unless section.settings.fullWidth %}page-width {% endunless %} isolate{% if show_mobile_slider %} page-width-desktop{% endif %}{% if section.settings.title == blank %} no-heading{% endif %}{% if section.settings.show_view_all == false or section.blocks.size > collections.size %} no-mobile-link{% endif %} section-{{ section.id }}-padding">
    {%- unless section.settings.title == blank and section.settings.subheading == blank -%}
      <div class="collection-list-header title-wrapper--no-top-margin{% if show_mobile_slider %} title-wrapper--self-padded-tablet-down{% else %} title-wrapper--self-padded-mobile{% endif %}">
        <div class="collection-list-header__text">
          {%- unless section.settings.title == blank -%}
            <h2
              id="SectionHeading-{{ section.id }}"
              class="collection-list-title inline-richtext {{ section.settings.heading_size }}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
            >
              {{ section.settings.title }}
            </h2>
          {%- endunless -%}
          {%- unless section.settings.subheading == blank -%}
            <div class="collection-list-subheading rte body{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}">
              {{ section.settings.subheading }}
            </div>
          {%- endunless -%}
        </div>

        {%- if section.settings.show_view_all -%}
          <a
            href="{{ routes.collections_url }}"
            id="ViewAll-{{ section.id }}"
            class="collection-list-header__button button{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
            aria-labelledby="ViewAll-{{ section.id }} SectionHeading-{{ section.id }}"
          >
            {{- 'sections.collection_list.view_all' | t -}}
          </a>
        {%- endif -%}
      </div>
    {%- endunless -%}

    <slider-component class="slider-mobile-gutter{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}">
      <ul
        class="collection-list contains-card contains-card--collection{% if settings.card_style == 'standard' %} contains-card--standard{% endif %} grid grid--{{ section.settings.columns_desktop }}-col-desktop grid--{{ section.settings.columns_mobile }}-col-tablet-down{% if section.settings.swipe_on_mobile %} slider slider--tablet grid--peek{% endif %} collection-list--{{ section.blocks.size }}-items"
        id="Slider-{{ section.id }}"
        role="list"
      >
        {%- liquid
          assign columns = section.blocks.size
          if columns > 3
            assign columns = 3
          endif
        -%}
        {%- for block in section.blocks -%}
          <li
            id="Slide-{{ section.id }}-{{ forloop.index }}"
            class="collection-list__item grid__item{% if show_mobile_slider %} slider__slide{% endif %}{% if block.settings.collection.featured_image == nil %} collection-list__item--no-media{% endif %}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
            {{ block.shopify_attributes }}
            {% if settings.animations_reveal_on_scroll %}
              data-cascade
              style="--animation-order: {{ forloop.index }};"
            {% endif %}
          >
            {%- assign placeholder_image_index = forloop.index0 | modulo: 4 | plus: 1 -%}
            {%- assign placeholder_image = 'collection-apparel-' | append: placeholder_image_index -%}
            {% render 'card-collection',
              card_collection: block.settings.collection,
              media_aspect_ratio: section.settings.image_ratio,
              columns: columns,
              placeholder_image: placeholder_image,
              show_index: true,
              index: forloop.index
            %}
          </li>
        {%- endfor -%}
      </ul>
      {%- if show_mobile_slider -%}
        <div class="slider-buttons no-js-hidden">
          <button
            type="button"
            class="slider-button slider-button--prev"
            name="previous"
            aria-label="{{ 'general.slider.previous_slide' | t }}"
          >
            {% render 'icon-caret' %}
          </button>
          <div class="slider-counter caption">
            <span class="slider-counter--current">1</span>
            <span aria-hidden="true"> / </span>
            <span class="visually-hidden">{{ 'general.slider.of' | t }}</span>
            <span class="slider-counter--total">{{ section.blocks.size }}</span>
          </div>
          <button
            type="button"
            class="slider-button slider-button--next"
            name="next"
            aria-label="{{ 'general.slider.next_slide' | t }}"
          >
            {% render 'icon-caret' %}
          </button>
        </div>
      {%- endif -%}
    </slider-component>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.collection-list.name",
  "tag": "section",
  "class": "section section-collection-list",
  "max_blocks": 15,
  "disabled_on": {
    "groups": ["header", "footer"]
  },
  "settings": [
    {
      "type": "inline_richtext",
      "id": "title",
      "default": "Collections",
      "label": "t:sections.collection-list.settings.title.label"
    },
    {
      "type": "richtext",
      "id": "subheading",
      "label": "Subheading",
      "info": "Paragraph text shown below the title"
    },
    {
      "type": "select",
      "id": "heading_size",
      "options": [
        {
          "value": "h2",
          "label": "t:sections.all.heading_size.options__1.label"
        },
        {
          "value": "h1",
          "label": "t:sections.all.heading_size.options__2.label"
        },
        {
          "value": "h0",
          "label": "t:sections.all.heading_size.options__3.label"
        }
      ],
      "default": "h1",
      "label": "t:sections.all.heading_size.label"
    },

    {
      "type": "checkbox",
      "id": "fullWidth",
      "label": "Make section full width",
      "default": true
    },
    {
      "type": "select",
      "id": "image_ratio",
      "options": [
        {
          "value": "adapt",
          "label": "t:sections.collection-list.settings.image_ratio.options__1.label"
        },
        {
          "value": "portrait",
          "label": "t:sections.collection-list.settings.image_ratio.options__2.label"
        },
        {
          "value": "square",
          "label": "t:sections.collection-list.settings.image_ratio.options__3.label"
        }
      ],
      "default": "square",
      "label": "t:sections.collection-list.settings.image_ratio.label",
      "info": "t:sections.collection-list.settings.image_ratio.info"
    },
    {
      "type": "range",
      "id": "columns_desktop",
      "min": 1,
      "max": 5,
      "step": 1,
      "default": 3,
      "label": "t:sections.collection-list.settings.columns_desktop.label"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.colors.label",
      "info": "t:sections.all.colors.has_cards_info",
      "default": "background-1"
    },
    {
      "type": "checkbox",
      "id": "show_view_all",
      "default": false,
      "label": "t:sections.collection-list.settings.show_view_all.label"
    },
    {
      "type": "header",
      "content": "t:sections.collection-list.settings.header_mobile.content"
    },
    {
      "type": "select",
      "id": "columns_mobile",
      "options": [
        {
          "value": "1",
          "label": "t:sections.collection-list.settings.columns_mobile.options__1.label"
        },
        {
          "value": "2",
          "label": "t:sections.collection-list.settings.columns_mobile.options__2.label"
        }
      ],
      "default": "1",
      "label": "t:sections.collection-list.settings.columns_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "swipe_on_mobile",
      "default": false,
      "label": "t:sections.collection-list.settings.swipe_on_mobile.label"
    },
    {
      "type": "header",
      "content": "t:sections.all.padding.section_padding_heading"
    },
    {
      "type": "range",
      "id": "padding_top",
      "min": 0,
      "max": 100,
      "step": 4,
      "unit": "px",
      "label": "t:sections.all.padding.padding_top",
      "default": 36
    },
    {
      "type": "range",
      "id": "padding_bottom",
      "min": 0,
      "max": 100,
      "step": 4,
      "unit": "px",
      "label": "t:sections.all.padding.padding_bottom",
      "default": 36
    }
  ],
  "blocks": [
    {
      "type": "featured_collection",
      "name": "t:sections.collection-list.blocks.featured_collection.name",
      "settings": [
        {
          "type": "collection",
          "id": "collection",
          "label": "t:sections.collection-list.blocks.featured_collection.settings.collection.label"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "t:sections.collection-list.presets.name",
      "blocks": [
        {
          "type": "featured_collection"
        },
        {
          "type": "featured_collection"
        },
        {
          "type": "featured_collection"
        }
      ]
    }
  ]
}
{% endschema %}