{
  "name": "Morrow product hero",
  "tag": "section",
  "class": "section-morrow-product-hero",
  "settings": [
    {
      "type": "product",
      "id": "product",
      "label": "Product",
      "info": "Optional on a product template; the current product is used when this is blank."
    },
    {
      "type": "header",
      "content": "Layout"
    },
    {
      "type": "select",
      "id": "media_position",
      "label": "Media position",
      "options": [
        {
          "value": "left",
          "label": "Left"
        },
        {
          "value": "right",
          "label": "Right"
        }
      ],
      "default": "left"
    },
    {
      "type": "select",
      "id": "media_ratio",
      "label": "Media ratio",
      "options": [
        {
          "value": "portrait",
          "label": "Portrait"
        },
        {
          "value": "square",
          "label": "Square"
        },
        {
          "value": "landscape",
          "label": "Landscape"
        }
      ],
      "default": "portrait"
    },
    {
      "type": "select",
      "id": "image_fit",
      "label": "Image fit",
      "options": [
        {
          "value": "cover",
          "label": "Cover"
        },
        {
          "value": "contain",
          "label": "Contain"
        }
      ],
      "default": "cover"
    },
    {
      "type": "checkbox",
      "id": "sticky_content",
      "label": "Keep product details visible on desktop",
      "default": true
    },
    {
      "type": "checkbox",
      "id": "eager_load_image",
      "label": "Prioritize the initially visible image",
      "info": "Enable when this section is above the fold. Avoid enabling on sections lower on the page.",
      "default": true
    },
    {
      "type": "checkbox",
      "id": "update_url",
      "label": "Update the URL when the variant changes",
      "info": "Usually enable only on a product template.",
      "default": false
    },
    {
      "type": "checkbox",
      "id": "show_currency_code",
      "label": "Show currency code",
      "default": false
    },
    {
      "type": "select",
      "id": "heading_tag",
      "label": "Product title heading",
      "options": [
        {
          "value": "h1",
          "label": "H1"
        },
        {
          "value": "h2",
          "label": "H2"
        }
      ],
      "default": "h1"
    },
    {
      "type": "range",
      "id": "media_limit",
      "label": "Maximum media items",
      "min": 1,
      "max": 12,
      "step": 1,
      "default": 8
    },
    {
      "type": "range",
      "id": "max_width",
      "label": "Maximum content width",
      "min": 960,
      "max": 1600,
      "step": 20,
      "unit": "px",
      "default": 1240
    },
    {
      "type": "range",
      "id": "column_gap",
      "label": "Column gap",
      "min": 20,
      "max": 100,
      "step": 4,
      "unit": "px",
      "default": 52
    },
    {
      "type": "range",
      "id": "corner_radius",
      "label": "Media corner radius",
      "min": 0,
      "max": 40,
      "step": 2,
      "unit": "px",
      "default": 10
    },
    {
      "type": "range",
      "id": "padding_top",
      "label": "Top padding",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 48
    },
    {
      "type": "range",
      "id": "padding_bottom",
      "label": "Bottom padding",
      "min": 0,
      "max": 120,
      "step": 4,
      "unit": "px",
      "default": 48
    },
    {
      "type": "header",
      "content": "Colors"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "Background",
      "default": "#f8f8f3"
    },
    {
      "type": "color",
      "id": "text_color",
      "label": "Text",
      "default": "#141614"
    },
    {
      "type": "color",
      "id": "accent_color",
      "label": "Accent",
      "default": "#d9ff63"
    },
    {
      "type": "header",
      "content": "Interface labels"
    },
    {
      "type": "text",
      "id": "add_to_cart_label",
      "label": "Add to cart",
      "default": "Add to cart"
    },
    {
      "type": "text",
      "id": "adding_label",
      "label": "Adding state",
      "default": "Adding\u2026"
    },
    {
      "type": "text",
      "id": "sale_label",
      "label": "Sale badge",
      "default": "Save"
    },
    {
      "type": "text",
      "id": "in_stock_label",
      "label": "In-stock state",
      "default": "In stock"
    },
    {
      "type": "text",
      "id": "sold_out_label",
      "label": "Sold-out state",
      "default": "Sold out"
    },
    {
      "type": "text",
      "id": "unavailable_label",
      "label": "Unavailable state",
      "default": "Unavailable"
    },
    {
      "type": "text",
      "id": "quantity_label",
      "label": "Quantity",
      "default": "Quantity"
    },
    {
      "type": "text",
      "id": "decrease_quantity_label",
      "label": "Decrease quantity",
      "default": "Decrease quantity"
    },
    {
      "type": "text",
      "id": "increase_quantity_label",
      "label": "Increase quantity",
      "default": "Increase quantity"
    },
    {
      "type": "text",
      "id": "variant_fallback_label",
      "label": "Variant fallback",
      "default": "Variant"
    },
    {
      "type": "text",
      "id": "choose_variant_label",
      "label": "Choose variant prompt",
      "default": "Choose a variant"
    },
    {
      "type": "text",
      "id": "media_region_label",
      "label": "Media region",
      "default": "Product media"
    },
    {
      "type": "text",
      "id": "thumbnail_group_label",
      "label": "Thumbnail group",
      "default": "Choose product media"
    },
    {
      "type": "text",
      "id": "media_button_label",
      "label": "Media button",
      "default": "Show media"
    },
    {
      "type": "text",
      "id": "empty_state_heading",
      "label": "Editor empty-state heading",
      "default": "Choose a product"
    },
    {
      "type": "text",
      "id": "empty_state_text",
      "label": "Editor empty-state text",
      "default": "Select a product in this section, or add the section to a product template."
    }
  ],
  "blocks": [
    {
      "type": "eyebrow",
      "name": "Eyebrow",
      "limit": 1,
      "settings": [
        {
          "type": "text",
          "id": "text",
          "label": "Text",
          "default": "Product detail"
        }
      ]
    },
    {
      "type": "title",
      "name": "Product title",
      "limit": 1,
      "settings": [
        {
          "type": "text",
          "id": "heading",
          "label": "Custom title",
          "info": "Leave blank to use the product title."
        }
      ]
    },
    {
      "type": "subtitle",
      "name": "Subtitle",
      "limit": 1,
      "settings": [
        {
          "type": "inline_richtext",
          "id": "text",
          "label": "Text",
          "default": "Product details, made clear."
        }
      ]
    },
    {
      "type": "price",
      "name": "Price",
      "limit": 1,
      "settings": [
        {
          "type": "checkbox",
          "id": "show_compare_price",
          "label": "Show compare-at price",
          "default": true
        },
        {
          "type": "checkbox",
          "id": "show_sale_badge",
          "label": "Show percentage saved",
          "default": true
        },
        {
          "type": "checkbox",
          "id": "show_availability",
          "label": "Show availability",
          "default": true
        }
      ]
    },
    {
      "type": "description",
      "name": "Description",
      "limit": 1,
      "settings": [
        {
          "type": "checkbox",
          "id": "use_custom_description",
          "label": "Use custom description",
          "default": false
        },
        {
          "type": "richtext",
          "id": "custom_description",
          "label": "Custom description",
          "info": "Used only when \u201cUse custom description\u201d is enabled."
        }
      ]
    },
    {
      "type": "benefits",
      "name": "Benefits",
      "limit": 1,
      "settings": [
        {
          "type": "text",
          "id": "heading",
          "label": "Heading",
          "default": "Why it works"
        },
        {
          "type": "richtext",
          "id": "text",
          "label": "Benefits",
          "default": "<ul><li>Add a verified product benefit</li><li>Add a second verified benefit</li><li>Add care or material details</li></ul>"
        }
      ]
    },
    {
      "type": "variant_picker",
      "name": "Variant picker",
      "limit": 1,
      "settings": []
    },
    {
      "type": "quantity",
      "name": "Quantity selector",
      "limit": 1,
      "settings": []
    },
    {
      "type": "buy_buttons",
      "name": "Buy buttons",
      "limit": 1,
      "settings": [
        {
          "type": "checkbox",
          "id": "show_dynamic_checkout",
          "label": "Show dynamic checkout button",
          "default": false
        }
      ]
    },
    {
      "type": "guarantee",
      "name": "Guarantee",
      "limit": 1,
      "settings": [
        {
          "type": "text",
          "id": "heading",
          "label": "Heading",
          "default": "Policy note"
        },
        {
          "type": "text",
          "id": "text",
          "label": "Text",
          "default": "Replace this demo copy with the store\u2019s verified policy."
        }
      ]
    },
    {
      "type": "trust_row",
      "name": "Trust row",
      "limit": 1,
      "settings": [
        {
          "type": "text",
          "id": "item_1",
          "label": "Item 1",
          "default": "Shopify product form"
        },
        {
          "type": "text",
          "id": "item_2",
          "label": "Item 2",
          "default": "Variant-aware media"
        },
        {
          "type": "text",
          "id": "item_3",
          "label": "Item 3",
          "default": "Merchant-editable blocks"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "Morrow product hero",
      "blocks": [
        {
          "type": "eyebrow"
        },
        {
          "type": "title"
        },
        {
          "type": "subtitle"
        },
        {
          "type": "price"
        },
        {
          "type": "description"
        },
        {
          "type": "benefits"
        },
        {
          "type": "variant_picker"
        },
        {
          "type": "quantity"
        },
        {
          "type": "buy_buttons"
        },
        {
          "type": "guarantee"
        },
        {
          "type": "trust_row"
        }
      ]
    }
  ]
}
