<?php

/**
 * Title: Product Search page
 * Slug: baty/product-search-results
 * Template Types: product-search-results
 * Description: Search page content.
 * Inserter: no
 *
 * @package WordPress
 * @subpackage baty
 * @since baty 1.0
 */

?>

<!-- wp:group {"tagName":"main","className":"product-search-results-content","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|56"}}},"layout":{"inherit":false,"type":"constrained","contentSize":"1720px","wideSize":"1920px"}} -->
<main class="wp-block-group product-search-results-content" style="margin-bottom:var(--wp--preset--spacing--56)"><!-- wp:group {"layout":{"type":"constrained","contentSize":"1720px","wideSize":"1920px"}} -->
    <div class="wp-block-group"><!-- wp:woocommerce/breadcrumbs {"align":""} /--></div>
    <!-- /wp:group -->

    <!-- wp:heading {"style":{"spacing":{"padding":{"bottom":"var:preset|spacing|30"},"margin":{"bottom":"var:preset|spacing|56"}},"border":{"bottom":{"color":"var:preset|color|accent-4","width":"1px"}}},"fontSize":"x-large","fontFamily":"dm-serif"} -->
    <h2 class="wp-block-heading has-dm-serif-font-family has-x-large-font-size" style="border-bottom-color:var(--wp--preset--color--accent-4);border-bottom-width:1px;margin-bottom:var(--wp--preset--spacing--56);padding-bottom:var(--wp--preset--spacing--30)"><?php echo esc_html__('Search Results', 'baty'); ?></h2>
    <!-- /wp:heading -->

    <!-- wp:woocommerce/store-notices {"align":""} /-->

    <!-- wp:group {"layout":{"type":"constrained"}} -->
    <div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained","contentSize":"1200px","wideSize":"1920px"}} -->
        <div class="wp-block-group"><!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search products…","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true,"query":{"post_type":"product"},"style":{"border":{"radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"0px","bottomRight":"0px"}}},"namespace":"woocommerce/product-search"} /--></div>
        <!-- /wp:group -->

        <!-- wp:html -->
        <div class="search-chips">
        </div>
        <!-- /wp:html -->

        <!-- wp:group {"className":"alignwide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
        <div class="wp-block-group alignwide"><!-- wp:woocommerce/product-results-count /-->

            <!-- wp:woocommerce/catalog-sorting /-->
        </div>
        <!-- /wp:group -->

        <!-- wp:woocommerce/product-collection {"queryId":0,"query":{"woocommerceAttributes":[],"woocommerceStockStatus":["instock","outofstock","onbackorder"],"taxQuery":[],"isProductCollectionBlock":true,"perPage":10,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","author":"","search":"{search_query}","exclude":[],"sticky":"","inherit":true},"tagName":"div","displayLayout":{"type":"flex","columns":4,"shrinkColumns":true},"dimensions":{"widthType":"fill","fixedWidth":""},"queryContextIncludes":["collection"],"__privatePreviewState":{"isPreview":false,"previewMessage":"Actual products will vary depending on the page being viewed."}} -->
        <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","style":{"spacing":{"blockGap":"var:preset|spacing|20"}}} -->
            <div class="wp-block-group baty-card"><!-- wp:woocommerce/product-image {"showSaleBadge":false,"imageSizing":"thumbnail","isDescendentOfQueryLoop":true,"style":{"spacing":{"padding":{"right":"0","left":"0"}}}} -->
                <!-- 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"}},"spacing":{"margin":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|20","right":"var:preset|spacing|20"}}}} /-->
                <!-- /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 -->

            <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"center"}} -->
            <!-- wp:query-pagination-previous /-->

            <!-- wp:query-pagination-numbers /-->

            <!-- wp:query-pagination-next /-->
            <!-- /wp:query-pagination -->

            <!-- wp:woocommerce/product-collection-no-results {"align":"wide"} -->
            <!-- wp:group {"style":{"spacing":{"margin":{"bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
            <div class="wp-block-group" style="margin-bottom:0"><!-- wp:image {"id":479,"sizeSlug":"full","linkDestination":"none"} -->
                <figure class="wp-block-image size-full"><img src="<?php echo esc_url(get_theme_file_uri('assets/images/empty_search.png')); ?>" alt="" class="wp-image-479" /></figure>
                <!-- /wp:image -->

                <!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontSize":"x-large"} -->
                <p class="has-x-large-font-size" style="font-style:normal;font-weight:500"><?php echo esc_html__('Oops… No results found!', 'baty'); ?></p>
                <!-- /wp:paragraph -->

                <!-- wp:buttons -->
                <div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline","style":{"border":{"radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"0px","bottomRight":"0px"}}}} -->
                    <div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button" href="/" style="border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px"><?php echo esc_html__('Go to home', 'baty'); ?></a></div>
                    <!-- /wp:button -->
                </div>
                <!-- /wp:buttons -->
            </div>
            <!-- /wp:group -->
            <!-- /wp:woocommerce/product-collection-no-results -->
        </div>
        <!-- /wp:woocommerce/product-collection -->
    </div>
    <!-- /wp:group -->
</main>
<!-- /wp:group -->