<?php

/**
 * Title: Products Section
 * Slug: baty/products-section
 * Categories: woocommerce
 * Description: A four columns grid to preview products.
 *
 * @package WordPress
 * @subpackage baty
 * @since baty 1.0
 */

?>

<!-- wp:group {"metadata":{"categories":["woo-commerce","featured-selling"],"patternName":"woocommerce-blocks/product-collection-4-columns","name":"Products Section"},"align":"full","className":"baty-products-grid aos-repeat aos-fade-up aos-delay-100 aos-duration-300  wp-block-baty","layout":{"type":"constrained","justifyContent":"center","contentSize":"1720px","wideSize":"1920px"}} -->
<div class="wp-block-group alignfull aos-repeat aos-fade-up aos-delay-100 aos-duration-300 baty-products-grid wp-block-baty"><!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
    <div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--80)"><!-- wp:group {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
        <div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--50)"><!-- wp:heading {"textAlign":"center","level":4,"style":{"elements":{"link":{"color":{"text":"#5c3d2e"}}},"color":{"text":"#5c3d2e"}},"fontSize":"small","fontFamily":"dm-serif"} -->
            <h4 class="wp-block-heading has-text-align-center has-text-color has-link-color has-dm-serif-font-family has-small-font-size" style="color:#5c3d2e"><?php echo esc_html__('OUR FEATURED PRODUCTS', 'baty'); ?></h4>
            <!-- /wp:heading -->

            <!-- wp:heading {"textAlign":"center","level":3,"style":{"typography":{"fontWeight":"700"},"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"0"}}},"fontSize":"x-large","fontFamily":"dm-serif"} -->
            <h3 class="wp-block-heading has-text-align-center has-dm-serif-font-family has-x-large-font-size" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:0;font-weight:700"><?php echo esc_html__('Trending Products', 'baty'); ?></h3>
            <!-- /wp:heading -->
        </div>
        <!-- /wp:group -->

        <!-- wp:woocommerce/product-collection {"queryId":15,"query":{"perPage":8,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","search":"","exclude":[],"inherit":false,"taxQuery":[],"isProductCollectionBlock":true,"woocommerceOnSale":false,"woocommerceStockStatus":["instock","outofstock","onbackorder"],"woocommerceAttributes":[],"woocommerceHandPickedProducts":[]},"tagName":"div","displayLayout":{"type":"flex","columns":4},"dimensions":{"widthType":"fill","fixedWidth":""},"queryContextIncludes":["collection"],"__privatePreviewState":{"isPreview":false,"previewMessage":"Actual products will vary depending on the page being viewed."},"layout":{"type":"default"}} -->
        <div class="wp-block-woocommerce-product-collection"><!-- wp:woocommerce/product-template -->
            <!-- wp:group {"metadata":{"categories":["woocommerce"],"patternName":"baty/baty-card","name":"Baty card"},"className":"baty-card"} -->
            <div class="wp-block-group baty-card"><!-- wp:woocommerce/product-image {"showSaleBadge":false,"imageSizing":"thumbnail","isDescendentOfQueryLoop":true} -->
                <!-- wp:woocommerce/product-sale-badge {"isDescendentOfQueryLoop":true,"align":"left","textColor":"accent-1","style":{"color":{"background":"#ff0000"},"elements":{"link":{"color":{"text":"var:preset|color|accent-1"}}},"border":{"width":"0px","style":"none","radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"0px","bottomRight":"0px"}}}} /-->
                <!-- /wp:woocommerce/product-image -->

                <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"top"}} -->
                <div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"}} -->
                    <div class="wp-block-group"><!-- wp:post-title {"textAlign":"left","isLink":true,"style":{"typography":{"lineHeight":"1.4"}},"fontSize":"medium"} /-->

                        <!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"left","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
                    </div>
                    <!-- /wp:group -->

                    <!-- wp:woocommerce/product-button {"textAlign":"center","isDescendentOfQueryLoop":true,"fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
                </div>
                <!-- /wp:group -->
            </div>
            <!-- /wp:group -->
            <!-- /wp:woocommerce/product-template -->
        </div>
        <!-- /wp:woocommerce/product-collection -->
    </div>
    <!-- /wp:group -->
</div>
<!-- /wp:group -->