{% comment %}
  KM Premium Footer v2 — a modern, fully editable footer section for Shopify.
  Built for Horizon, works in any Online Store 2.0 theme.
  Free from KM Webverse · www.kashifmahmood.com
  Install: Edit code > sections > new file "km-premium-footer.liquid" > paste > Save.
  Then in the theme editor: Footer > Add section > KM Premium Footer, and hide the old Footer.
{% endcomment %}

{%- liquid
  assign sid = section.id
  assign s = section.settings
  assign pay_types = shop.enabled_payment_types
  if s.payment_list != blank
    assign pay_types = s.payment_list | remove: ' ' | split: ','
  endif
  assign benefit_count = section.blocks | where: 'type', 'benefit' | size
  assign column_count = section.blocks.size | minus: benefit_count
  assign any_social = false
  if s.instagram != blank or s.facebook != blank or s.tiktok != blank or s.pinterest != blank or s.youtube != blank or s.x != blank
    assign any_social = true
  endif
-%}

<footer class="kmf kmf-{{ sid }}" role="contentinfo">
  <style>
    .kmf-{{ sid }} {
      --kmf-bg: {{ s.color_bg }};
      --kmf-bar: {{ s.color_bar }};
      --kmf-text: {{ s.color_text }};
      --kmf-heading: {{ s.color_heading }};
      --kmf-accent: {{ s.color_accent }};
      --kmf-line: {{ s.color_text | color_modify: 'alpha', 0.14 }};
      --kmf-muted: {{ s.color_text | color_modify: 'alpha', 0.72 }};
      background: var(--kmf-bg); color: var(--kmf-text);
      font-size: {{ s.text_size }}px; line-height: 1.6; position: relative;
      {%- if s.top_line %} border-top: 3px solid var(--kmf-accent);{% endif %}
    }
    .kmf-{{ sid }} .kmf__wrap { max-width: {{ s.max_width }}px; margin: 0 auto; padding: 0 24px; }
    .kmf-{{ sid }} a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
    .kmf-{{ sid }} a:hover { color: var(--kmf-accent); }
    .kmf-{{ sid }} h2, .kmf-{{ sid }} h3, .kmf-{{ sid }} p { margin: 0; }

    /* benefits bar */
    .kmf-{{ sid }} .kmf__benefits { display: grid; grid-template-columns: repeat({{ benefit_count | at_least: 1 }}, 1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--kmf-line); }
    .kmf-{{ sid }} .kmf__benefit { display: flex; align-items: center; gap: 14px; }
    .kmf-{{ sid }} .kmf__benefit-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: {{ s.color_accent | color_modify: 'alpha', 0.14 }}; color: var(--kmf-accent); }
    .kmf-{{ sid }} .kmf__benefit-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .kmf-{{ sid }} .kmf__benefit-title { color: var(--kmf-heading); font-weight: 700; line-height: 1.3; }
    .kmf-{{ sid }} .kmf__benefit-text { color: var(--kmf-muted); font-size: .92em; line-height: 1.4; }

    /* main columns */
    .kmf-{{ sid }} .kmf__main { display: flex; flex-wrap: wrap; gap: 40px 72px; padding: {{ s.padding_main }}px 0; }
    .kmf-{{ sid }} .kmf__col { flex: 0 1 auto; min-width: 150px; }
    .kmf-{{ sid }} .kmf__col--brand { flex: 0 1 400px; margin-right: auto; }
    .kmf-{{ sid }} .kmf__col h3 { color: var(--kmf-heading); font-size: 1.05em; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; position: relative; }
    .kmf-{{ sid }} .kmf__col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--kmf-accent); }
    .kmf-{{ sid }} .kmf__brand-name { color: var(--kmf-heading); font-size: 1.8em; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
    .kmf-{{ sid }} .kmf__logo { display: block; height: auto; margin-bottom: 16px; }
    .kmf-{{ sid }} .kmf__about { color: var(--kmf-muted); margin-bottom: 22px; }
    .kmf-{{ sid }} .kmf__about p + p { margin-top: 8px; }
    .kmf-{{ sid }} .kmf__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
    .kmf-{{ sid }} .kmf__care { display: grid; gap: 12px; color: var(--kmf-muted); }
    .kmf-{{ sid }} .kmf__care-row { display: flex; gap: 10px; align-items: flex-start; }
    .kmf-{{ sid }} .kmf__care-row svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--kmf-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .kmf-{{ sid }} .kmf__care a { color: var(--kmf-text); }

    /* social */
    .kmf-{{ sid }} .kmf__social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
    .kmf-{{ sid }} .kmf__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--kmf-line); color: var(--kmf-heading); }
    .kmf-{{ sid }} .kmf__social a:hover { background: var(--kmf-accent); border-color: var(--kmf-accent); color: var(--kmf-bg); }
    .kmf-{{ sid }} .kmf__social svg { width: 18px; height: 18px; fill: currentColor; }

    /* bottom bar */
    .kmf-{{ sid }} .kmf__bar { background: var(--kmf-bar); }
    .kmf-{{ sid }} .kmf__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 20px 24px; font-size: .9em; color: var(--kmf-muted); }
    .kmf-{{ sid }} .kmf__policies { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
    .kmf-{{ sid }} .kmf__pay { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
    .kmf-{{ sid }} .kmf__pay svg { display: block; width: 38px; height: 24px; border-radius: 4px; }

    /* back to top */
    .kmf-{{ sid }} .kmf__top { position: absolute; right: 24px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--kmf-accent); color: var(--kmf-bg); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s; }
    .kmf-{{ sid }} .kmf__top:hover { transform: translateY(-3px); }
    .kmf-{{ sid }} .kmf__top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

    @media (max-width: 989px) {
      .kmf-{{ sid }} .kmf__benefits { grid-template-columns: repeat(2, 1fr); }
      .kmf-{{ sid }} .kmf__main { display: grid; grid-template-columns: repeat(2, 1fr); }
      .kmf-{{ sid }} .kmf__col--brand { grid-column: 1 / -1; }
      .kmf-{{ sid }} .kmf__bar-in { justify-content: center; text-align: center; }
    }
    @media (max-width: 599px) {
      .kmf-{{ sid }} .kmf__benefits { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 28px 0; }
      .kmf-{{ sid }} .kmf__benefit { flex-direction: column; align-items: flex-start; gap: 10px; }
      .kmf-{{ sid }} .kmf__main { gap: 32px 20px; }
      .kmf-{{ sid }} .kmf__col--wide { grid-column: 1 / -1; }
      .kmf-{{ sid }} .kmf__bar-in { flex-direction: column; }
      .kmf-{{ sid }} .kmf__policies, .kmf-{{ sid }} .kmf__pay { justify-content: center; }
    }
  </style>

  {%- if s.back_to_top -%}
    <button type="button" class="kmf__top" aria-label="Back to top" onclick="window.scrollTo({ top: 0, behavior: 'smooth' })">
      <svg viewBox="0 0 24 24"><path d="M12 19V5M5 12l7-7 7 7"/></svg>
    </button>
  {%- endif -%}

  <div class="kmf__wrap">
    {%- if benefit_count > 0 -%}
      <div class="kmf__benefits">
        {%- for block in section.blocks -%}
          {%- if block.type == 'benefit' -%}
            <div class="kmf__benefit" {{ block.shopify_attributes }}>
              <span class="kmf__benefit-icon" aria-hidden="true">
                {%- case block.settings.icon -%}
                  {%- when 'truck' -%}<svg viewBox="0 0 24 24"><path d="M3 6h11v10H3zM14 9h4l3 3v4h-7"/><circle cx="7" cy="17.5" r="1.8"/><circle cx="17" cy="17.5" r="1.8"/></svg>
                  {%- when 'return' -%}<svg viewBox="0 0 24 24"><path d="M9 14 4 9l5-5"/><path d="M4 9h11a5 5 0 0 1 0 10h-3"/></svg>
                  {%- when 'lock' -%}<svg viewBox="0 0 24 24"><rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></svg>
                  {%- when 'chat' -%}<svg viewBox="0 0 24 24"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/></svg>
                  {%- when 'gift' -%}<svg viewBox="0 0 24 24"><rect x="3" y="8" width="18" height="5" rx="1"/><path d="M5 13v8h14v-8M12 8v13M12 8S10.5 3 8 4s0 4 4 4zM12 8s1.5-5 4-4 0 4-4 4z"/></svg>
                  {%- when 'leaf' -%}<svg viewBox="0 0 24 24"><path d="M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19l8-8"/></svg>
                  {%- when 'star' -%}<svg viewBox="0 0 24 24"><path d="m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z"/></svg>
                  {%- else -%}<svg viewBox="0 0 24 24"><path d="M12 21s-8-4.6-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6.4-8 11-8 11z"/></svg>
                {%- endcase -%}
              </span>
              <div>
                {%- if block.settings.title != blank -%}<p class="kmf__benefit-title">{{ block.settings.title }}</p>{%- endif -%}
                {%- if block.settings.text != blank -%}<p class="kmf__benefit-text">{{ block.settings.text }}</p>{%- endif -%}
              </div>
            </div>
          {%- endif -%}
        {%- endfor -%}
      </div>
    {%- endif -%}

    {%- if column_count > 0 -%}
      <div class="kmf__main">
        {%- for block in section.blocks -%}
          {%- case block.type -%}
            {%- when 'brand' -%}
              <div class="kmf__col kmf__col--brand kmf__col--wide" {{ block.shopify_attributes }}>
                {%- if block.settings.logo != blank -%}
                  {{ block.settings.logo | image_url: width: 600 | image_tag: class: 'kmf__logo', width: block.settings.logo_width, alt: shop.name }}
                {%- else -%}
                  <h2 class="kmf__brand-name">{{ block.settings.title | default: shop.name }}</h2>
                {%- endif -%}
                {%- if block.settings.text != blank -%}<div class="kmf__about">{{ block.settings.text }}</div>{%- endif -%}
                {%- if any_social and block.settings.show_social -%}
                  <ul class="kmf__social" role="list">
                    {%- if s.instagram != blank -%}<li><a href="{{ s.instagram }}" target="_blank" rel="noopener" aria-label="Instagram"><svg viewBox="0 0 24 24"><path d="M12 7.3A4.7 4.7 0 1 0 12 16.7 4.7 4.7 0 0 0 12 7.3zm0 7.7a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm4.9-8.9a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0zM21.9 7.2c-.1-1.6-.4-3-1.6-4.2S17.7 1.4 16.1 1.3C14.4 1.2 9.6 1.2 7.9 1.3 6.3 1.4 4.9 1.7 3.7 2.9S2.1 5.6 2 7.2c-.1 1.7-.1 6.5 0 8.2.1 1.6.4 3 1.6 4.2s2.6 1.5 4.2 1.6c1.7.1 6.5.1 8.2 0 1.6-.1 3-.4 4.2-1.6s1.5-2.6 1.6-4.2c.1-1.7.1-6.5 0-8.2zm-2.1 10a3 3 0 0 1-1.7 1.7c-1.2.5-4 .4-5.3.4s-4.1.1-5.3-.4a3 3 0 0 1-1.7-1.7c-.5-1.2-.4-4-.4-5.3s-.1-4.1.4-5.3A3 3 0 0 1 7.5 5c1.2-.5 4-.4 5.3-.4s4.1-.1 5.3.4a3 3 0 0 1 1.7 1.7c.5 1.2.4 4 .4 5.3s.1 4.1-.4 5.3z"/></svg></a></li>{%- endif -%}
                    {%- if s.facebook != blank -%}<li><a href="{{ s.facebook }}" target="_blank" rel="noopener" aria-label="Facebook"><svg viewBox="0 0 24 24"><path d="M14 8.5V6.6c0-.8.2-1.3 1.4-1.3H17V2.2c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.1v2.3H8v3.4h2.6V22H14v-10h2.6l.4-3.4H14z"/></svg></a></li>{%- endif -%}
                    {%- if s.tiktok != blank -%}<li><a href="{{ s.tiktok }}" target="_blank" rel="noopener" aria-label="TikTok"><svg viewBox="0 0 24 24"><path d="M19.6 6.7a4.8 4.8 0 0 1-3.8-4.2V2h-3.4v13.4a2.9 2.9 0 1 1-2-2.7V9.2a6.3 6.3 0 1 0 5.4 6.2V8.6a8.1 8.1 0 0 0 4.8 1.5V6.8l-1-.1z"/></svg></a></li>{%- endif -%}
                    {%- if s.pinterest != blank -%}<li><a href="{{ s.pinterest }}" target="_blank" rel="noopener" aria-label="Pinterest"><svg viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-3.6 19.3c-.1-.8-.2-2 0-2.9l1.2-5s-.3-.6-.3-1.5c0-1.4.8-2.5 1.8-2.5.9 0 1.3.7 1.3 1.4 0 .9-.6 2.2-.9 3.4-.2 1 .5 1.9 1.6 1.9 1.9 0 3.3-2 3.3-4.9 0-2.6-1.8-4.4-4.5-4.4-3 0-4.8 2.3-4.8 4.6 0 .9.4 1.9.8 2.4l.1.4-.3 1.2c0 .2-.2.3-.4.2-1.4-.7-2.2-2.7-2.2-4.3 0-3.5 2.5-6.7 7.3-6.7 3.8 0 6.8 2.7 6.8 6.4 0 3.8-2.4 6.9-5.8 6.9-1.1 0-2.2-.6-2.6-1.3l-.7 2.7c-.3 1-1 2.2-1.4 2.9A10 10 0 1 0 12 2z"/></svg></a></li>{%- endif -%}
                    {%- if s.youtube != blank -%}<li><a href="{{ s.youtube }}" target="_blank" rel="noopener" aria-label="YouTube"><svg viewBox="0 0 24 24"><path d="M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8zM9.8 15V9l5.8 3-5.8 3z"/></svg></a></li>{%- endif -%}
                    {%- if s.x != blank -%}<li><a href="{{ s.x }}" target="_blank" rel="noopener" aria-label="X"><svg viewBox="0 0 24 24"><path d="M17.8 2.5h3.4l-7.4 8.4 8.7 11.6h-6.8l-5.3-7-6.1 7H1l7.9-9L.6 2.5h7l4.8 6.4 5.4-6.4zm-1.2 18h1.9L7.1 4.4H5.1l11.5 16.1z"/></svg></a></li>{%- endif -%}
                  </ul>
                {%- endif -%}
              </div>

            {%- when 'menu' -%}
              <nav class="kmf__col" {{ block.shopify_attributes }} aria-label="{{ block.settings.heading | default: block.settings.menu.title | escape }}">
                <h3>{{ block.settings.heading | default: block.settings.menu.title }}</h3>
                {%- if block.settings.menu != blank -%}
                  <ul class="kmf__links" role="list">
                    {%- for link in block.settings.menu.links -%}
                      <li><a href="{{ link.url }}">{{ link.title }}</a></li>
                    {%- endfor -%}
                  </ul>
                {%- endif -%}
              </nav>

            {%- when 'care' -%}
              <div class="kmf__col kmf__col--wide" {{ block.shopify_attributes }}>
                {%- if block.settings.heading != blank -%}<h3>{{ block.settings.heading }}</h3>{%- endif -%}
                <div class="kmf__care">
                  {%- if block.settings.email != blank -%}
                    <div class="kmf__care-row"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg><a href="mailto:{{ block.settings.email }}">{{ block.settings.email }}</a></div>
                  {%- endif -%}
                  {%- if block.settings.phone != blank -%}
                    <div class="kmf__care-row"><svg viewBox="0 0 24 24"><path d="M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z"/></svg><a href="tel:{{ block.settings.phone | remove: ' ' }}">{{ block.settings.phone }}</a></div>
                  {%- endif -%}
                  {%- if block.settings.hours != blank -%}
                    <div class="kmf__care-row"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span>{{ block.settings.hours }}</span></div>
                  {%- endif -%}
                </div>
              </div>
          {%- endcase -%}
        {%- endfor -%}
      </div>
    {%- endif -%}
  </div>

  <div class="kmf__bar">
    <div class="kmf__wrap kmf__bar-in">
      <p>&copy; {{ 'now' | date: '%Y' }} {{ s.copyright | default: shop.name }}</p>
      {%- if s.show_policies and shop.policies.size > 0 -%}
        <ul class="kmf__policies" role="list">
          {%- for policy in shop.policies -%}
            <li><a href="{{ policy.url }}">{{ policy.title }}</a></li>
          {%- endfor -%}
        </ul>
      {%- endif -%}
      {%- if s.show_payments and pay_types.size > 0 -%}
        <ul class="kmf__pay" role="list" aria-label="Payment methods">
          {%- for type in pay_types -%}
            <li>{{ type | payment_type_svg_tag }}</li>
          {%- endfor -%}
        </ul>
      {%- endif -%}
    </div>
  </div>
</footer>

{% schema %}
{
  "name": "KM Premium Footer",
  "tag": "section",
  "class": "kmf-section",
  "enabled_on": { "groups": ["footer"] },
  "settings": [
    { "type": "header", "content": "Colors" },
    { "type": "color", "id": "color_bg", "label": "Background", "default": "#14213d" },
    { "type": "color", "id": "color_bar", "label": "Bottom bar background", "default": "#0e1830" },
    { "type": "color", "id": "color_text", "label": "Text", "default": "#e5e7eb" },
    { "type": "color", "id": "color_heading", "label": "Headings", "default": "#ffffff" },
    { "type": "color", "id": "color_accent", "label": "Accent", "default": "#f4b630" },
    { "type": "header", "content": "Layout" },
    { "type": "range", "id": "max_width", "label": "Content width", "min": 960, "max": 1600, "step": 20, "unit": "px", "default": 1280 },
    { "type": "range", "id": "text_size", "label": "Text size", "min": 13, "max": 19, "step": 1, "unit": "px", "default": 15 },
    { "type": "range", "id": "padding_main", "label": "Space around the columns", "min": 24, "max": 120, "step": 4, "unit": "px", "default": 56 },
    { "type": "checkbox", "id": "top_line", "label": "Accent line at the top", "default": true },
    { "type": "checkbox", "id": "back_to_top", "label": "Show back-to-top button", "default": true },
    { "type": "header", "content": "Bottom bar" },
    { "type": "text", "id": "copyright", "label": "Copyright name", "info": "Leave empty to use your store name." },
    { "type": "checkbox", "id": "show_policies", "label": "Show policy links", "default": true },
    { "type": "checkbox", "id": "show_payments", "label": "Show payment icons", "default": true },
    { "type": "text", "id": "payment_list", "label": "Choose payment icons (optional)", "info": "Leave empty to show your store's own payment methods. Or list them, e.g. visa, master, american_express, paypal, apple_pay, google_pay, shopify_pay, klarna" },
    { "type": "header", "content": "Social links", "info": "Shown in the brand column." },
    { "type": "url", "id": "instagram", "label": "Instagram" },
    { "type": "url", "id": "facebook", "label": "Facebook" },
    { "type": "url", "id": "tiktok", "label": "TikTok" },
    { "type": "url", "id": "pinterest", "label": "Pinterest" },
    { "type": "url", "id": "youtube", "label": "YouTube" },
    { "type": "url", "id": "x", "label": "X (Twitter)" }
  ],
  "blocks": [
    {
      "type": "benefit",
      "name": "Benefit (top bar)",
      "limit": 4,
      "settings": [
        { "type": "select", "id": "icon", "label": "Icon", "default": "truck", "options": [
          { "value": "truck", "label": "Delivery truck" },
          { "value": "return", "label": "Returns" },
          { "value": "lock", "label": "Secure lock" },
          { "value": "chat", "label": "Support chat" },
          { "value": "gift", "label": "Gift" },
          { "value": "leaf", "label": "Leaf (natural)" },
          { "value": "star", "label": "Star" },
          { "value": "heart", "label": "Heart" }
        ] },
        { "type": "text", "id": "title", "label": "Title", "default": "Free shipping" },
        { "type": "text", "id": "text", "label": "Text", "default": "On orders over $50" }
      ]
    },
    {
      "type": "brand",
      "name": "Brand column",
      "limit": 1,
      "settings": [
        { "type": "image_picker", "id": "logo", "label": "Logo (optional)" },
        { "type": "range", "id": "logo_width", "label": "Logo width", "min": 60, "max": 300, "step": 10, "unit": "px", "default": 160 },
        { "type": "text", "id": "title", "label": "Store name", "info": "Shown when there is no logo. Leave empty to use your store name." },
        { "type": "richtext", "id": "text", "label": "About text", "default": "<p>Tell customers who you are and what you sell in one or two short sentences.</p>" },
        { "type": "checkbox", "id": "show_social", "label": "Show social icons", "default": true }
      ]
    },
    {
      "type": "menu",
      "name": "Menu column",
      "settings": [
        { "type": "text", "id": "heading", "label": "Heading", "info": "Leave empty to use the menu name." },
        { "type": "link_list", "id": "menu", "label": "Menu", "default": "footer" }
      ]
    },
    {
      "type": "care",
      "name": "Customer care column",
      "limit": 1,
      "settings": [
        { "type": "text", "id": "heading", "label": "Heading", "default": "Customer care" },
        { "type": "text", "id": "email", "label": "Email" },
        { "type": "text", "id": "phone", "label": "Phone" },
        { "type": "text", "id": "hours", "label": "Opening hours", "default": "Mon–Fri, 9am–5pm" }
      ]
    }
  ],
  "presets": [
    {
      "name": "KM Premium Footer",
      "blocks": [
        { "type": "benefit", "settings": { "icon": "truck", "title": "Free shipping", "text": "On orders over $50" } },
        { "type": "benefit", "settings": { "icon": "return", "title": "Easy returns", "text": "30-day return policy" } },
        { "type": "benefit", "settings": { "icon": "lock", "title": "Secure checkout", "text": "Encrypted payments" } },
        { "type": "benefit", "settings": { "icon": "chat", "title": "Real support", "text": "Friendly help, fast replies" } },
        { "type": "brand" },
        { "type": "menu", "settings": { "heading": "Shop", "menu": "main-menu" } },
        { "type": "menu", "settings": { "heading": "Help", "menu": "footer" } },
        { "type": "care" }
      ]
    }
  ]
}
{% endschema %}
