<?php
/**
 * Single Product Meta
 *
 * Template aligned with WooCommerce 9.7.0
 * @see https://woocommerce.com/document/template-structure/
 * @package Pawfect
 * @version 10.9.1
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

global $product;
?>
<div class="product_meta pawfect-mt-6 pawfect-text-sm pawfect-text-text-light pawfect-border-t pawfect-border-border-color pawfect-pt-6">

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

    <?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( \Automattic\WooCommerce\Enums\ProductType::VARIABLE ) ) ) : ?>

        <span class="sku_wrapper pawfect-block pawfect-mb-2">
            <span class="pawfect-font-bold"><?php esc_html_e( 'SKU:', 'pawfect' ); ?></span> 
            <span class="sku"><?php echo ( $sku = $product->get_sku() ) ? esc_html( $sku ) : esc_html__( 'N/A', 'pawfect' ); ?></span>
        </span>

    <?php endif; ?>

    <?php echo wp_kses_post( wc_get_product_category_list( $product->get_id(), ', ', '<span class="posted_in pawfect-block pawfect-mb-2"><span class="pawfect-font-bold">' . esc_html( _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'pawfect' ) ) . '</span> ', '</span>' ) ); ?>

    <?php echo wp_kses_post( wc_get_product_tag_list( $product->get_id(), ', ', '<span class="tagged_as pawfect-block pawfect-mb-2"><span class="pawfect-font-bold">' . esc_html( _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'pawfect' ) ) . '</span> ', '</span>' ) ); ?>

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

</div>

