<?php
/**
 * Шаблон для отображения содержимого продукта на странице single-product.php
 *
 * Это кастомный шаблон из плагина Watson
 *
 * @package Watson
 * @version 1.0.0
 */

defined( 'ABSPATH' ) || exit;

global $product;

/**
 * Hook: woocommerce_before_single_product.
 *
 * @hooked woocommerce_output_all_notices - 10
 */
do_action( 'woocommerce_before_single_product' );

if ( post_password_required() ) {
	echo get_the_password_form(); // WPCS: XSS ok.
	return;
}
?>
<div id="product-<?php the_ID(); ?>" <?php wc_product_class( 'watson-single-product', $product ); ?>>

	
    
    <div class="watson-product-container container">
        
        <div class="watson-product-gallery-wrapper">
		<?php
		/**
		 * Hook: woocommerce_before_single_product_summary.
		 *
		 * @hooked woocommerce_show_product_sale_flash - 10
		 * @hooked woocommerce_show_product_images - 20
		 */
		do_action( 'woocommerce_before_single_product_summary' );
		?>
	</div>

	<div class="summary entry-summary watson-product-summary">
		<?php
		/**
		 * Hook: woocommerce_single_product_summary.
		 *
		 * @hooked woocommerce_template_single_title - 5
		 * @hooked woocommerce_template_single_rating - 10
		 * @hooked woocommerce_template_single_price - 10
		 * @hooked woocommerce_template_single_excerpt - 20
		 * @hooked woocommerce_template_single_add_to_cart - 30
		 * @hooked woocommerce_template_single_meta - 40
		 * @hooked woocommerce_template_single_sharing - 50
		 * @hooked WC_Structured_Data::generate_product_data() - 60
		 */
		do_action( 'woocommerce_single_product_summary' );
		?>
		
		<div class="watson-product-additional-info">
			<?php
			// Дополнительная информация о продукте, которую можно добавить
			$additional_info = apply_filters( 'watson_product_additional_info', '', $product );
			echo wp_kses_post( $additional_info );
			?>
		</div>
	</div>
        
    </div>

	<div class="watson-product-tabs-wrapper">
        
        <div class="container">
		<?php
		/**
		 * Hook: woocommerce_after_single_product_summary.
		 *
		 * @hooked woocommerce_output_product_data_tabs - 10
		 * @hooked woocommerce_upsell_display - 15
		 * @hooked woocommerce_output_related_products - 20
		 */
		do_action( 'woocommerce_after_single_product_summary' );
		?>
            </div>
	</div>
</div>

<?php do_action( 'woocommerce_after_single_product' ); ?>
