<?php
/**
 * Product Header Partial
 *
 * Displays product name and optional description for multi-product paywalls.
 * Shared across both classic and compact layouts.
 *
 * @package PostGate
 * @subpackage Templates/Parts
 * @since 1.0.1
 *
 * @var string $product_id          Product ID (for ARIA labeling)
 * @var string $product_name        Product name/title
 * @var string $product_description Optional product description
 */

defined( 'ABSPATH' ) || exit;
?>

<div class="postgate-paywall__product-header">
	<h4 class="postgate-paywall__product-name" id="postgate-product-<?php echo esc_attr( $product_id ); ?>-name">
		<?php echo esc_html( $product_name ); ?>
	</h4>
	<?php if ( ! empty( $product_description ) ) : ?>
		<p class="postgate-paywall__product-description">
			<?php echo esc_html( $product_description ); ?>
		</p>
	<?php endif; ?>
</div>