<?php
/**
 * FluentCart "product-categories" taxonomy archive template.
 *
 * Without this file (required once the theme declares add_theme_support(
 * 'fluent_cart' ) -- see core/setup.php), WordPress falls back to Edify's
 * archive.php, which is a blog-post grid/list loop and would show blog-post
 * cards instead of an actual product listing.
 *
 * Hook sequence mirrors FluentCart's own fallback-generic-template.php
 * (see app/Modules/Templating/fallback-generic-template.php in the plugin)
 * so behaviour matches what the plugin itself ships, just wrapped in
 * Edify's own header/footer/container instead of the plugin's generic one.
 * fluent_cart/template/before_content also renders the archive title +
 * description, so no separate theme banner/title is added here to avoid a
 * duplicate heading.
 */

get_header();
?>

<div class="page-wrapper">
	<main id="main" class="site-main">
		<div class="container">
			<?php
				do_action( 'fluent_cart/template/before_content' );
				do_action( 'fluent_cart/template/main_content' );
				do_action( 'fluent_cart/template/after_content' );
			?>
		</div>
	</main>
</div>

<?php
get_footer();
