<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<div id="prodigy-primary" class="prodigy-content-area prodigy-custom-template">
	<main id="prodigy-main">
		<div class="prodigy-page-not-found">
			<div class="prodigy-page-not-found__error"><?php echo esc_html( $error_number ?? '' ); ?></div>
			<h1 class="prodigy-page-not-found__title"><?php echo esc_html( $error_title ?? '' ); ?></h1>
			<?php if ( ! empty( $error_body ) ) : ?>
				<p class="prodigy-page-not-found__txt"><?php echo esc_html( $error_body ); ?></p>
			<?php endif; ?>
			<?php if ( ( $error_number ?? '' ) !== '500' ) : ?>
			<a class="prodigy-main-button prodigy-main-button--link min-w-217"
				href="<?php echo esc_url( get_home_url() ); ?>">
				<?php esc_html_e( 'BACK TO HOMEPAGE', 'prodigy-commerce' ); ?>
			</a>
			<?php endif; ?>
		</div>
	</main>
</div>
