{% set header_layout = 'compact' %}
{% extends '/layouts/default.twig' %}

{% block site_body %}
    {% include '/blocks/block-slideshow.twig' with {
        layout: 'full'
    } only %}

    {% include '/blocks/block-features.twig' with {
        layout: 'boxed'
    } only %}

    {% include '/blocks/block-products-carousel.twig' with {
        title: 'Featured Products',
        products: products,
        layout: 'grid-5',
        rows: 2,
        groups: [
            {name: 'All', active: true},
            {name: 'Power Tools', active: false},
            {name: 'Hand Tools', active: false},
            {name: 'Plumbing', active: false},
        ]
    } only %}

    {% include '/blocks/block-banner.twig' with {} only %}

    {% include '/blocks/block-products.twig' with {
        title: 'Bestsellers',
        layout: 'large-last',
        products: products
    } only %}

    {% include '/blocks/block-categories.twig' with {
        title: 'Popular Categories',
        layout: 'compact',
        categories: block_categories.categories
    } only %}

    {% include '/blocks/block-products-carousel.twig' with {
        title: 'New Arrivals',
        products: products,
        layout: 'grid-5',
        rows: 1,
        groups: [
            {name: 'All', active: true},
            {name: 'Power Tools', active: false},
            {name: 'Hand Tools', active: false},
            {name: 'Plumbing', active: false},
        ]
    } only %}

    {% include '/blocks/block-posts.twig' with {
        title: 'Latest News',
        layout: 'grid-3',
        posts: posts
    } only %}

    {% include '/blocks/block-brands.twig' with {
        brands: brands
    } only %}

    {% include '/blocks/block-product-columns.twig' with {
        columns: [
            {title: 'Top Rated Products', products: products[0:3]},
            {title: 'Special Offers', products: products[3:3]},
            {title: 'Bestsellers', products: products[6:3]}
        ]
    } only %}
{% endblock %}