{{ 'section-lookbook-v1.css' | asset_url | stylesheet_tag }}

<div {% render 'section-attr' %}>
  <xo-container
    {% render 'section-layout' %}
  >
    <xo-animate>
      <div class='lookbook-v5'>
        <div class='lookbook-v5__item'>
          {% render 'hotspot-style-2',
            hotspot_image: section.settings.hotspot_image,
            media_aspect_ratio: section.settings.media_aspect_ratio,
            custom_ratio: section.settings.custom_ratio,
            block: block
          %}
          <div class='lookbook-v5__content'>
            {%- if section.settings.title != blank -%}
              <div class='lookbook-v5__title'>
                {{ section.settings.title }}
              </div>
            {%- endif -%}
            {%- if section.settings.desc != blank -%}
              <div class='lookbook-v5__desc'>
                {{ section.settings.desc }}
              </div>
            {%- endif -%}

            <div class='lookbook-v5__button'>
              {% render 'button',
                text: section.settings.button_text,
                link: section.settings.button_link,
                mode: section.settings.button_mode,
                style: section.settings.button_style,
                size: section.settings.button_size,
                radius: section.settings.button_radius,
                padding: section.settings.button_padding
              %}
            </div>
          </div>
        </div>
      </div>
    </xo-animate>
  </xo-container>
</div>

{% schema %}
{
  "name": "t:sections.lookbook_v1.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "type": "select",
      "id": "width",
      "label": "t:sections.all.width.label",
      "default": "box",
      "options": [
        {
          "value": "box",
          "label": "t:sections.all.width.options__1.label"
        },
        {
          "value": "wide",
          "label": "t:sections.all.width.options__2.label"
        },
        {
          "value": "fullwidth",
          "label": "t:sections.all.width.options__3.label"
        }
      ]
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.lookbook_v1.settings.title.label"
    },
    {
      "type": "richtext",
      "id": "desc",
      "label": "t:sections.lookbook_v1.settings.desc.label"
    },
    {
      "type": "header",
      "content": "t:sections.all.button_heading.content"
    },
    {
      "type": "text",
      "id": "button_text",
      "label": "t:sections.all.button_text.label",
      "default": "ALL PRODUCTS"
    },
    {
      "type": "url",
      "id": "button_link",
      "label": "t:sections.all.button_link.label",
      "default": "/collections/all"
    },
    {
      "type": "select",
      "id": "button_mode",
      "label": "t:sections.all.button_mode.label",
      "options": [
        {
          "value": "light",
          "label": "t:sections.all.button_mode.option__1.label"
        },
        {
          "value": "dark",
          "label": "t:sections.all.button_mode.option__2.label"
        }
      ],
      "default": "light"
    },
    {
      "type": "select",
      "id": "button_style",
      "label": "t:sections.all.button_style.label",
      "options": [
        {
          "value": "primary",
          "label": "t:sections.all.button_style.option__1.label"
        },
        {
          "value": "secondary",
          "label": "t:sections.all.button_style.option__2.label"
        },
        {
          "value": "tertiary",
          "label": "t:sections.all.button_style.option__3.label"
        },
        {
          "value": "link",
          "label": "t:sections.all.button_style.option__4.label"
        }
      ],
      "default": "secondary"
    },
    {
      "type": "select",
      "id": "button_size",
      "label": "t:sections.all.button_size.label",
      "options": [
        {
          "value": "xs",
          "label": "t:sections.all.button_size.option__0.label"
        },
        {
          "value": "sm",
          "label": "t:sections.all.button_size.option__1.label"
        },
        {
          "value": "md",
          "label": "t:sections.all.button_size.option__2.label"
        },
        {
          "value": "lg",
          "label": "t:sections.all.button_size.option__3.label"
        }
      ],
      "default": "sm"
    },
    {
      "type": "range",
      "id": "button_radius",
      "label": "t:sections.all.button_radius.label",
      "max": 4,
      "min": 0,
      "step": 0.2,
      "unit": "rem",
      "default": 0.8
    },
    {
      "type": "range",
      "id": "button_padding",
      "label": "t:sections.all.button_padding.label",
      "info": "t:sections.all.button_padding.info",
      "max": 10,
      "min": 0,
      "step": 0.2,
      "unit": "rem",
      "default": 1.4
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.lookbook__action.content"
    },
    {
      "type": "select",
      "id": "trigger_type",
      "label": "t:sections.lookbook_v1.settings.effect.label",
      "default": "hover",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.effect.option_1.label",
          "value": "hover"
        },
        {
          "label": "t:sections.lookbook_v1.settings.effect.option_2.label",
          "value": "click"
        }
      ]
    },
    {
      "type": "select",
      "id": "open_as",
      "label": "t:sections.lookbook_v1.settings.open_as.label",
      "default": "popup",
      "info": "t:sections.lookbook_v1.settings.open_as.info",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.open_as.option_1.label",
          "value": "popup"
        },
        {
          "label": "t:sections.lookbook_v1.settings.open_as.option_2.label",
          "value": "quickview"
        }
      ]
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.lookbook_settings2.content"
    },
    {
      "type": "select",
      "id": "dot_style",
      "label": "t:sections.lookbook_v1.settings.dot_style.label",
      "default": "simple",
      "options": [
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_1.label",
          "value": "simple"
        },
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_2.label",
          "value": "plus"
        },
        {
          "label": "t:sections.lookbook_v1.settings.dot_style.option_3.label",
          "value": "number"
        }
      ]
    },
    {
      "type": "checkbox",
      "id": "custom_ratio",
      "label": "t:sections.lookbook_v1.settings.custom_aspect_ratio.label",
      "default": false
    },
    {
      "type": "text",
      "id": "custom_ratio_text",
      "label": "t:sections.lookbook_v1.settings.aspect_ratio_text.label",
      "default": "21/9"
    },
    {
      "type": "image_picker",
      "id": "hotspot_image",
      "label": "t:sections.lookbook_v1.settings.hotspot_image.label",
      "info": "523 x 414px recommended"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_1.content"
    },
    {
      "type": "range",
      "id": "top_1",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_1.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_1",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_1.label",
      "default": 20
    },
    {
      "type": "product",
      "id": "product_1",
      "label": "t:sections.lookbook_v1.settings.product_1.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_1",
      "label": "t:sections.lookbook_v1.settings.placement_1.label",
      "info": "t:sections.lookbook_v1.settings.placement_1.info",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_1.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_2.content"
    },
    {
      "type": "range",
      "id": "top_2",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_2.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_2",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_2.label",
      "default": 20
    },
    {
      "type": "product",
      "id": "product_2",
      "label": "t:sections.lookbook_v1.settings.product_2.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_2",
      "label": "t:sections.lookbook_v1.settings.placement_2.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_2.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_3.content"
    },
    {
      "type": "range",
      "id": "top_3",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_3.label",
      "default": 20
    },
    {
      "type": "range",
      "id": "left_3",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_3.label",
      "default": 60
    },
    {
      "type": "product",
      "id": "product_3",
      "label": "t:sections.lookbook_v1.settings.product_3.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_3",
      "label": "t:sections.lookbook_v1.settings.placement_3.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_3.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_4.content"
    },
    {
      "type": "range",
      "id": "top_4",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_4.label",
      "default": 40
    },
    {
      "type": "range",
      "id": "left_4",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_4.label",
      "default": 40
    },
    {
      "type": "product",
      "id": "product_4",
      "label": "t:sections.lookbook_v1.settings.product_4.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_4",
      "label": "t:sections.lookbook_v1.settings.placement_4.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_4.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.lookbook_v1.settings.header_5.content"
    },
    {
      "type": "range",
      "id": "top_5",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.top_5.label",
      "default": 60
    },
    {
      "type": "range",
      "id": "left_5",
      "unit": "%",
      "min": 1,
      "max": 100,
      "step": 1,
      "label": "t:sections.lookbook_v1.settings.left_5.label",
      "default": 60
    },
    {
      "type": "product",
      "id": "product_5",
      "label": "t:sections.lookbook_v1.settings.product_5.label",
      "info": "Choose a product, when you click to the hotspot, it will be shown"
    },
    {
      "type": "select",
      "id": "placement_5",
      "label": "t:sections.lookbook_v1.settings.placement_5.label",
      "info": "The hotspot content placement depends on the hotspot location",
      "options": [
        {
          "value": "top-right",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_1.label"
        },
        {
          "value": "top-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_2.label"
        },
        {
          "value": "top-left",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_3.label"
        },
        {
          "value": "bottom-right",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_4.label"
        },
        {
          "value": "bottom-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_5.label"
        },
        {
          "value": "bottom-left",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_6.label"
        },
        {
          "value": "right-top",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_7.label"
        },
        {
          "value": "right-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_8.label"
        },
        {
          "value": "right-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_9.label"
        },
        {
          "value": "left-top",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_10.label"
        },
        {
          "value": "left-center",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_11.label"
        },
        {
          "value": "left-bottom",
          "label": "t:sections.lookbook_v1.settings.placement_5.option_12.label"
        }
      ],
      "default": "right-center"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.bg_color.label"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.bg_gradient.label"
    },
    {
      "type": "number",
      "id": "padding_top",
      "label": "t:sections.all.padding_top.label",
      "default": 50
    },
    {
      "type": "number",
      "id": "padding_bottom",
      "label": "t:sections.all.padding_bottom.label",
      "default": 50
    }
  ],
  "presets": [
    {
      "name": "t:sections.lookbook_v1.presets.name"
    }
  ]
}
{% endschema %}
