<?php
/**
 * Product Tags Widget
 * Displays product tags for single product pages with links to tag archive pages
 */

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

require_once __DIR__ . '/widget-product-tags/elementor-render.php';

class GGM_Commerce_Widget_Product_Tags extends \GGM_Commerce_Base_Widget {

    public function get_name() {
        return 'ggmc-product-tags';
    }

    public function get_title() {
        return 'Product Tags';
    }

    public function get_icon() {
        return 'eicon-tags';
    }

    public function get_keywords() {
        return ['product', 'tags', 'tag', 'taxonomy', 'ggm-commerce'];
    }

    protected function register_controls() {
        require __DIR__ . '/widget-product-tags/elementor-controls.php';
        require __DIR__ . '/widget-product-tags/elementor-controls-style.php';
    }

    protected function render() {
        ggmc_product_tags_render( $this );
    }

    /**
     * Get default styles for this widget
     * Uses centralized configuration from default-widget-styles.php
     */
    public static function get_static_default_styles() {
        return self::get_defaults_from_config();
    }
}
