<?php
/**
 * Title: Featured products
 * Slug: larder/featured-products
 * Categories: larder, woocommerce
 * Description: A grid of featured products with decorative divider, hover zoom images, and rating-cart bar.
 * Keywords: featured, products, grid, shop, woocommerce
 */

?>
<!-- wp:group {"align":"full","className":"larder-section-divider","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","right":"var:preset|spacing|30","left":"var:preset|spacing|30"}}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull larder-section-divider has-background-background-color has-background" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--30)">

	<!-- wp:group {"className":"larder-x-decoration","layout":{"type":"default"}} -->
	<div class="wp-block-group larder-x-decoration"></div>
	<!-- /wp:group -->

	<!-- wp:heading {"textAlign":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|10"},"padding":{"top":"1.387em"}}}} -->
	<h2 class="wp-block-heading has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--10);padding-top:1.387em"><?php echo esc_html__( 'Featured products', 'larder' ); ?></h2>
	<!-- /wp:heading -->

	<!-- wp:paragraph {"align":"center","textColor":"muted","fontSize":"small","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
	<p class="has-text-align-center has-muted-color has-text-color has-small-font-size" style="margin-bottom:var(--wp--preset--spacing--50)"><?php echo esc_html__( 'Our hand-picked favorites, fresh from the farm.', 'larder' ); ?></p>
	<!-- /wp:paragraph -->

	<!-- wp:woocommerce/product-collection {"queryId":20,"query":{"perPage":9,"pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","search":"","exclude":[],"inherit":false,"taxQuery":{},"isProductCollectionBlock":true,"featured":true,"woocommerceHandPickedProducts":[]},"displayLayout":{"type":"flex","columns":3},"collection":""} -->
	<div class="wp-block-woocommerce-product-collection"><!-- wp:woocommerce/product-template -->

			<!-- wp:group {"className":"larder-product-card","layout":{"type":"default"}} -->
			<div class="wp-block-group larder-product-card">

				<!-- wp:group {"className":"larder-product-image-wrap","layout":{"type":"default"}} -->
				<div class="wp-block-group larder-product-image-wrap">
					<!-- wp:woocommerce/product-image {"isDescendentOfQueryLoop":true,"aspectRatio":"1/1","showSaleBadge":true,"saleBadgeAlign":"left"} /-->
				</div>
				<!-- /wp:group -->

				<!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"fontWeight":"900"}},"textColor":"heading"} /-->

				<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textColor":"heading","fontSize":"medium"} /-->

				<!-- wp:group {"className":"larder-rating-cart","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
				<div class="wp-block-group larder-rating-cart">
					<!-- wp:woocommerce/product-rating {"isDescendentOfQueryLoop":true} /-->
					<!-- wp:woocommerce/product-button {"isDescendentOfQueryLoop":true,"style":{"typography":{"fontSize":"0.8125rem"}}} /-->
				</div>
				<!-- /wp:group -->

			</div>
			<!-- /wp:group -->

		<!-- /wp:woocommerce/product-template --></div>
	<!-- /wp:woocommerce/product-collection -->

</div>
<!-- /wp:group -->
