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

/**
 * Izolační test — widget bez závislostí na pluginu.
 */
class ElementSell_Stub_Widget extends \Elementor\Widget_Base {

    /**
     * @return string
     */
    public function get_name() {
        return 'elementsell_test_icon';
    }

    /**
     * @return string
     */
    public function get_title() {
        return '🔴 ElementSell TEST';
    }

    /**
     * @return string
     */
    public function get_icon() {
        return 'eicon-star';
    }

    /**
     * @return array
     */
    public function get_categories() {
        return [ 'basic', 'general' ];
    }

    /**
     * @return void
     */
    protected function register_controls() {
        // Prázdné — izolační test.
    }

    /**
     * @return void
     */
    protected function render() {
        echo '<div class="elementsell-stub-widget" style="padding:12px;background:#ff0000;color:#fff;font-weight:bold;">ElementSell TEST widget</div>';
    }
}
