{{ 'section-our-store-v2.css' | asset_url | stylesheet_tag }}


{%- assign reverse_layout = section.settings.reverse_layout -%}

<section {% render 'section-attr' %} class='our-store-v1'>
  <div class='our-store-v1__line-container'>
    <div class='our-store-v1__line'></div>
  </div>
  {% render 'section-bg-image' %}
  <xo-container {%- render 'section-layout' -%}>
    <div class='our-store-v1__container'>
      <xo-grid>
        <div
          class='our-store-v1__content'
          style='
            {%- if reverse_layout -%}
              --xs: 12; --order-xs: 2; --sm: 12; --order-sm: 2; --lg: 4; --order-lg: 2;
            {%- else -%}
            --xs: 12; --order-xs: 1; --sm: 12; --order-sm: 1; --lg: 4; --order-lg: 1;
            {%- endif -%}
          '
        >
          <div class='our-store-v1__sub'>
            {{ section.settings.subtitle }}
          </div>
          <div class='our-store-v1__title'>
            {{ section.settings.title }}
          </div>
          <div class='our-store-v1__desc'>
            {{ section.settings.desc }}
          </div>
          <div class='our-store-v1__button'>
            {% render 'button', text: section.settings.button_text, link: section.settings.button_url, style: 'secondary', size: 'md' %}
          </div>
        </div>

        <div
          style='
            {%- if reverse_layout -%}
              --xs: 12; --order-xs: 1; --sm: 12; --order-sm: 1; --lg: 8; --order-lg: 1;
              {%- else -%}
              --xs: 12; --order-xs: 2; --sm: 12; --order-sm: 2; --lg: 8; --order-lg: 2;
            {%- endif -%}
          '
        >
          <div class='our-store-v1__video'>
            {%- if section.settings.video_url != blank -%}
              <xo-video-cover xo-src='{{section.settings.video_url}}'></xo-video-cover>
            {%- else -%}
              <xo-video-cover
                xo-src='https://cdn.shopify.com/videos/c/vp/a9ea64c362124ba0b6ffc37ea30bc5c8/a9ea64c362124ba0b6ffc37ea30bc5c8.HD-1080p-4.8Mbps-13664080.mp4'
              ></xo-video-cover>
            {%- endif -%}
          </div>
        </div>
      </xo-grid>
    </div>
  </xo-container>
  <div class='our-store-v1__line-container'>
    <div class='our-store-v1__line'></div>
  </div>
</section>

{% schema %}
{
  "name": "t:sections.our_store_v2.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": "checkbox",
      "id": "reverse_layout",
      "label": "t:sections.our_store_v2.settings.reverse_layout.label",
      "default": false
    },
    {
      "type": "text",
      "id": "subtitle",
      "label": "t:sections.our_store_v2.settings.subtitle.label",
      "default": "Sub title"
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.our_store_v2.settings.title.label",
      "default": "Title",
      "info": "Enter <br> for a line break"
    },
    {
      "type": "richtext",
      "id": "desc",
      "label": "t:sections.our_store_v2.settings.desc.label",
      "default": "<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eos architecto odit, nulla nemo dolore rerum?</p>"
    },
    {
      "type": "text",
      "id": "button_text",
      "label": "t:sections.our_store_v2.settings.button_text.label",
      "default": "Button"
    },
    {
      "type": "url",
      "id": "button_url",
      "label": "t:sections.our_store_v2.settings.button_url.label",
      "default": "/"
    },
    {
      "type": "url",
      "id": "video_url",
      "label": "t:sections.our_store_v2.settings.video_url.label",
      "info": "Support mp4"
    },
    {
      "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": "image_picker",
      "id": "background_image_desktop",
      "label": "t:sections.all.background_image_desktop.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_mobile",
      "label": "t:sections.all.background_image_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "use_parallax",
      "label": "t:sections.all.use_parallax.label",
      "default": true
    },
    {
      "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
    }
  ],
  "blocks": [

  ],
  "presets": [
    {
      "name": "t:sections.our_store_v2.presets.name"
    }
  ]
}
{% endschema %}
