<?php

if ( ! defined( 'ABSPATH' ) ) {
    return array();
}

return array(
    'title'         => __( 'Taxonomy Archive Page', 'ai-eshop-optimizer' ),
    'description'   => _x( 'Generic per-term archive: hero, sidebar (filters), main column (3-col product grid), per-term footer copy. Auto-detects queried taxonomy.', 'Block pattern description', 'ai-eshop-optimizer' ),
    'categories'    => array( 'aieo' ),
    'keywords'      => array( 'taxonomy', 'archive', 'need', 'tag' ),
    'viewportWidth' => 1280,
    'content'       => '<!-- wp:group {"align":"full","layout":{"type":"constrained","wideSize":"1440px"},"style":{"spacing":{"padding":{"top":"24px","bottom":"60px"},"blockGap":"24px"}}} -->
<div class="wp-block-group alignfull" style="padding-top:24px;padding-bottom:60px">

    <!-- wp:breadcrumbs {"showHomeItem":true} /-->

    <!-- wp:aieo/taxonomy-archive-hero {"showCounts":true,"showHeadline":true} /-->

    <!-- Mobile-only FiboFilters bar — same approach as brand-archive. -->
    <!-- wp:group {"className":"aieo-tax-archive-mobile-bar","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
    <div class="wp-block-group aieo-tax-archive-mobile-bar">
        <!-- wp:fibofilters/filters {"layout":"mobile"} /-->
    </div>
    <!-- /wp:group -->

    <!-- wp:columns {"className":"aieo-tax-archive-cols","style":{"spacing":{"blockGap":{"top":"32px","left":"32px"}}}} -->
    <div class="wp-block-columns aieo-tax-archive-cols">

        <!-- wp:column {"width":"260px","className":"aieo-tax-archive-sidebar"} -->
        <div class="wp-block-column aieo-tax-archive-sidebar" style="flex-basis:260px">
            <!-- wp:fibofilters/filters {"layout":"vertical"} /-->
            <!-- wp:aieo/taxonomy-related-articles {"layout":"vertical","limit":3} /-->
        </div>
        <!-- /wp:column -->

        <!-- wp:column {"className":"aieo-tax-archive-main"} -->
        <div class="wp-block-column aieo-tax-archive-main">

            <!-- wp:woocommerce/product-collection {"queryId":11,"query":{"perPage":12,"pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","inherit":true},"displayLayout":{"type":"flex","columns":3,"shrinkColumns":true},"className":"aieo-tax-archive-products"} -->
                <!-- wp:woocommerce/product-template -->
                    <!-- wp:woocommerce/product-image {"imageSizing":"thumbnail","aspectRatio":"4/5"} /-->
                    <!-- wp:post-title {"level":3,"isLink":true} /-->
                    <!-- wp:woocommerce/product-price /-->
                    <!-- wp:aieo/product-card-swatches /-->
                <!-- /wp:woocommerce/product-template -->

                <!-- wp:query-no-results -->
                    <!-- wp:paragraph -->
                    <p>' . esc_html__( 'No products found in this archive.', 'ai-eshop-optimizer' ) . '</p>
                    <!-- /wp:paragraph -->
                <!-- /wp:query-no-results -->
            <!-- /wp:woocommerce/product-collection -->

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

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

    <!-- Editorial / SEO footer slot (rendered by aieo/taxonomy-archive-hero
         when the queried taxonomy has a footer_text in its extras table —
         currently pa_need + product_cat). The block emits empty when the
         column is unset, so this stays inert on tags. -->
    <!-- wp:aieo/taxonomy-archive-footer /-->

</div>
<!-- /wp:group -->',
);
