<?php
namespace Sifency\Traits;
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Repeater;
use Elementor\Utils;
use Elementor\Group_Control_Typography;
use Elementor\Group_Control_Background;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Box_Shadow;

trait Sifency_Products_Controls {
	protected function add_sifency_products_controls( $args = [] ) {

        $this->start_controls_section('section_query', ['label' => __('Query', 'sifency-addons')]);

        $this->add_control('source', [
            'label' => __('Source', 'sifency-addons'),
            'type' => Controls_Manager::SELECT,
            'default' => 'latest',
            'options' => [
                'latest' => __('Latest Products', 'sifency-addons'),
                'sale' => __('Sale', 'sifency-addons'),
                'featured' => __('Featured', 'sifency-addons'),
                'manual_selection' => __('Manual Selection', 'sifency-addons'),
            ]
        ]);
        
        $this->add_control('manual_products', [
			'label' => __( 'Search & Select Products', 'sifency-addons' ),
			'type' => \Elementor\Controls_Manager::SELECT2,
			'multiple' => true,
			'label_block' => true,
			'options' => array_reduce(get_posts(['post_type' => 'product', 'posts_per_page' => -1]), function($carry, $item) {
                $carry[$item->ID] = $item->post_title;
                return $carry;
            }, []),
            'condition' => ['source' => 'manual_selection']
		] );

        $this->add_control('include_categories', [
            'label' => __('Include Categories', 'sifency-addons'),
            'type' => Controls_Manager::SELECT2,
            'multiple' => true,
            'label_block' => true,
            'options' => $this->_get_tax_terms('product_cat'),
            'condition' => ['source!' => 'manual_selection']
        ]);

        $this->add_control('exclude_categories', [
            'label' => __('Exclude Categories', 'sifency-addons'),
            'type' => Controls_Manager::SELECT2,
            'multiple' => true,
            'label_block' => true,
            'options' => $this->_get_tax_terms('product_cat'),
            'condition' => ['source!' => 'manual_selection']
        ]);

        $this->add_control('posts_per_page', ['label' => __('Products per Page', 'sifency-addons'), 'type' => Controls_Manager::NUMBER, 'default' => 3]);
        
        $this->add_control('orderby', ['label' => __('Order By', 'sifency-addons'), 'type' => Controls_Manager::SELECT, 'default' => 'date', 'options' => ['date' => __('Date', 'sifency-addons'), 'title' => __('Title', 'sifency-addons'), 'price' => __('Price', 'sifency-addons'), 'rand' => __('Random', 'sifency-addons'), 'sales' => __('Popularity (Sales)', 'sifency-addons')]]);
        
        $this->add_control('order', ['label' => __('Order', 'sifency-addons'), 'type' => Controls_Manager::SELECT, 'default' => 'DESC', 'options' => ['ASC' => 'ASC', 'DESC' => 'DESC']]);
        
        $this->end_controls_section();

        $this->start_controls_section('section_layout', ['label' => __('Layout', 'sifency-addons')]);
        
        $this->add_responsive_control('columns', [
            'label' => __('Columns', 'sifency-addons'),
            'type' => Controls_Manager::SELECT,
            'options' => ['1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'],
            'desktop_default' => '4',
            'tablet_default' => '2',
            'mobile_default' => '1',
            'selectors' => [
                '{{WRAPPER}} .sifency-products-grid ul.products' => 'grid-template-columns: repeat({{VALUE}}, 1fr);',
            ],
        ]);
        
        $this->add_responsive_control('column_gap', [
            'label' => __('Column Gap', 'sifency-addons'),
            'type' => Controls_Manager::SLIDER,
            'size_units' => ['px', 'em', '%'],
            'range' => ['px' => ['min' => 0, 'max' => 100]],
            'default' => ['unit' => 'px', 'size' => 10],
            'selectors' => [
                '{{WRAPPER}} .sifency-products-grid ul.products' => 'column-gap: {{SIZE}}{{UNIT}};',
            ],
        ]);
        
        $this->add_responsive_control('row_gap', [
            'label' => __('Row Gap', 'sifency-addons'),
            'type' => Controls_Manager::SLIDER,
            'size_units' => ['px', 'em', '%'],
            'range' => ['px' => ['min' => 0, 'max' => 100]],
            'default' => ['unit' => 'px', 'size' => 0],
            'selectors' => [
                '{{WRAPPER}} .sifency-products-grid ul.products' => 'row-gap: {{SIZE}}{{UNIT}};',
            ],
        ]);

        $this->add_control('pagination_show', [
            'label' => __('Show Pagination', 'sifency-addons'),
            'type' => Controls_Manager::SWITCHER,
            'label_on' => __('Yes', 'sifency-addons'),
            'label_off' => __('No', 'sifency-addons'),
            'return_value' => 'yes',
            'default' => 'no',
        ]);
        
        $this->end_controls_section();

        $this->start_controls_section('section_box_style', ['label' => __('Product Box', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        
        $this->start_controls_tabs('box_style_tabs');

        $this->start_controls_tab('box_normal', ['label' => __('Normal', 'sifency-addons')]);
        $this->add_control('box_bg_color', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} ul.products li.product' => 'background-color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Border::get_type(), ['name' => 'box_border', 'selector' => '{{WRAPPER}} ul.products li.product']);
        $this->add_group_control(Group_Control_Box_Shadow::get_type(), ['name' => 'box_shadow', 'selector' => '{{WRAPPER}} ul.products li.product']);
        $this->end_controls_tab();

        $this->start_controls_tab('box_hover', ['label' => __('Hover', 'sifency-addons')]);
        $this->add_control('box_bg_color_hover', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} ul.products li.product:hover' => 'background-color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Border::get_type(), ['name' => 'box_border_hover', 'selector' => '{{WRAPPER}} ul.products li.product:hover']);
        $this->add_group_control(Group_Control_Box_Shadow::get_type(), ['name' => 'box_shadow_hover', 'selector' => '{{WRAPPER}} ul.products li.product:hover']);
        $this->add_control('box_hover_transition', ['label' => __('Transition Duration', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'range' => ['px' => ['max' => 3, 'step' => 0.1]], 'selectors' => ['{{WRAPPER}} ul.products li.product' => 'transition: all {{SIZE}}s;']]);
        $this->end_controls_tab();
        
        $this->end_controls_tabs();

        $this->add_responsive_control('box_border_radius', ['label' => __('Border Radius', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => ['{{WRAPPER}} ul.products li.product' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'], 'separator' => 'before']);
        $this->add_responsive_control('box_padding', ['label' => __('Padding', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => ['{{WRAPPER}} ul.products li.product' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};']]);
        $this->add_responsive_control('content_align', ['label' => __('Content Align', 'sifency-addons'), 'type' => Controls_Manager::CHOOSE, 'options' => ['left' => ['title' => __('Left', 'sifency-addons'), 'icon' => 'eicon-text-align-left'], 'center' => ['title' => __('Center', 'sifency-addons'), 'icon' => 'eicon-text-align-center'], 'right' => ['title' => __('Right', 'sifency-addons'), 'icon' => 'eicon-text-align-right']], 'selectors' => ['{{WRAPPER}} ul.products li.product' => 'text-align: {{VALUE}};']]);
        
        $this->end_controls_section();

        $this->start_controls_section('section_image_style', ['label' => __('Image', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_group_control(Group_Control_Border::get_type(), ['name' => 'image_border', 'selector' => '{{WRAPPER}} ul.products li.product a img']);
        $this->add_responsive_control('image_border_radius', ['label' => __('Border Radius', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => ['{{WRAPPER}} ul.products li.product a img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};']]);
        $this->add_responsive_control('image_spacing', ['label' => __('Spacing', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em'], 'selectors' => ['{{WRAPPER}} ul.products li.product a img' => 'margin-bottom: {{SIZE}}{{UNIT}};']]);
        $this->add_responsive_control(
            'image_width',
            [
                'label' => __('Width', 'sifency-addons'),
                'type' => Controls_Manager::SLIDER,
                'size_units' => ['px', '%', 'vw'],
                'range' => [
                    'px' => [
                        'min' => 10,
                        'max' => 1000,
                    ],
                    '%' => [
                        'min' => 1,
                        'max' => 100,
                    ],
                    'vw' => [
                        'min' => 1,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} ul.products li.product a img' => 'width: {{SIZE}}{{UNIT}};',
                ],
            ]
        );

        $this->add_responsive_control(
            'image_height',
            [
                'label' => __('Height', 'sifency-addons'),
                'type' => Controls_Manager::SLIDER,
                'size_units' => ['px', 'vh'],
                'range' => [
                    'px' => [
                        'min' => 10,
                        'max' => 1000,
                    ],
                    'vh' => [
                        'min' => 1,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} ul.products li.product a img' => 'height: {{SIZE}}{{UNIT}}; object-fit: cover;',
                ],
            ]
        );
        $this->end_controls_section();
        

        $this->start_controls_section('section_title_style', ['label' => __('Title', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'title_typography', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .woocommerce-loop-product__title']);
        $this->add_responsive_control('title_spacing', ['label' => __('Spacing', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .woocommerce-loop-product__title' => 'margin-bottom: {{SIZE}}{{UNIT}};']]);
        
        $this->start_controls_tabs('title_color_tabs');
        $this->start_controls_tab('title_normal', ['label' => __('Normal', 'sifency-addons')]);
        $this->add_control('title_color', ['label' => __('Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .woocommerce-loop-product__title' => 'color: {{VALUE}};']]);
        $this->end_controls_tab();
        $this->start_controls_tab('title_hover', ['label' => __('Hover', 'sifency-addons')]);
        $this->add_control('title_color_hover', ['label' => __('Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .woocommerce-loop-product__title:hover' => 'color: {{VALUE}};']]);
        $this->end_controls_tab();
        $this->end_controls_tabs();
        
        $this->end_controls_section();

        $this->start_controls_section('section_rating_style', ['label' => __('Rating', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('show_rating', ['label' => __('Show Rating', 'sifency-addons'), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'label_on' => __('Show', 'sifency-addons'), 'label_off' => __('Hide', 'sifency-addons')]);
        $this->add_control('star_color', ['label' => __('Star Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .star-rating span::before' => 'color: {{VALUE}} !important;'], 'condition' => ['show_rating' => 'yes']]);
        $this->add_control('empty_star_color', ['label' => __('Empty Star Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .star-rating::before' => 'color: {{VALUE}} !important;'], 'condition' => ['show_rating' => 'yes']]);
        $this->add_responsive_control('star_size', ['label' => __('Star Size', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => ['px' => ['min' => 0, 'max' => 50]], 'selectors' => ['{{WRAPPER}} .star-rating' => 'font-size: {{SIZE}}{{UNIT}};'], 'condition' => ['show_rating' => 'yes']]);
        $this->add_responsive_control('rating_spacing', ['label' => __('Spacing', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em'], 'selectors' => ['{{WRAPPER}} .star-rating' => 'margin-bottom: {{SIZE}}{{UNIT}};'], 'condition' => ['show_rating' => 'yes']]);
        $this->end_controls_section();
        
        $this->start_controls_section('section_price_style', ['label' => __('Price', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'price_typography', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .price']);
        $this->add_control('price_color', ['label' => __('Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .price' => 'color: {{VALUE}};']]);
        $this->add_responsive_control('price_spacing', ['label' => __('Spacing', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .price' => 'margin-bottom: {{SIZE}}{{UNIT}};']]);
        $this->end_controls_section();

        $this->start_controls_section('section_button_style', ['label' => __('Button', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'button_typography', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .button']);
        $this->add_responsive_control('button_padding', ['label' => __('Padding', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};']]);
        $this->add_responsive_control('button_margin', ['label' => __('Margin', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};']]);
        $this->add_responsive_control('button_border_radius', ['label' => __('Border Radius', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};']]);
        
        $this->start_controls_tabs('button_style_tabs');
        $this->start_controls_tab('button_normal', ['label' => __('Normal', 'sifency-addons')]);
        $this->add_control('button_text_color', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button' => 'color: {{VALUE}};']]);
        $this->add_control('button_bg_color', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button' => 'background-color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Border::get_type(), ['name' => 'button_border', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .button']);
        $this->end_controls_tab();

        $this->start_controls_tab('button_hover', ['label' => __('Hover', 'sifency-addons')]);
        $this->add_control('button_text_color_hover', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button:hover' => 'color: {{VALUE}};']]);
        $this->add_control('button_bg_color_hover', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .button:hover' => 'background-color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Border::get_type(), ['name' => 'button_border_hover', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .button:hover']);
        $this->end_controls_tab();
        $this->end_controls_tabs();

        $this->end_controls_section();

        $this->start_controls_section('section_badge_style', ['label' => __('Sale Badge', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('show_badge', ['label' => __('Show Badge', 'sifency-addons'), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'label_on' => __('Show', 'sifency-addons'), 'label_off' => __('Hide', 'sifency-addons')]);
        $this->add_control('badge_bg_color', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .onsale' => 'background-color: {{VALUE}};'], 'condition' => ['show_badge' => 'yes']]);
        $this->add_control('badge_text_color', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .onsale' => 'color: {{VALUE}};'], 'condition' => ['show_badge' => 'yes']]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'badge_typography', 'selector' => '{{WRAPPER}} .woocommerce ul.products li.product .onsale', 'condition' => ['show_badge' => 'yes']]);
        $this->add_responsive_control('badge_border_radius', ['label' => __('Border Radius', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .onsale' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'], 'condition' => ['show_badge' => 'yes']]);
        $this->add_responsive_control('badge_padding', ['label' => __('Padding', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .onsale' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'], 'condition' => ['show_badge' => 'yes']]);
        $this->add_responsive_control('badge_margin', ['label' => __('Margin', 'sifency-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => ['{{WRAPPER}} .woocommerce ul.products li.product .onsale' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'], 'condition' => ['show_badge' => 'yes']]);
        $this->end_controls_section();
        
        $this->start_controls_section('section_pagination_style', ['label' => __('Pagination', 'sifency-addons'), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => ['pagination_show' => 'yes']]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'pagination_typography', 'selector' => '{{WRAPPER}} .sifency-pagination .page-numbers']);
        $this->add_responsive_control('pagination_alignment', ['label' => __('Alignment', 'sifency-addons'), 'type' => Controls_Manager::CHOOSE, 'options' => ['flex-start' => ['title' => __('Left', 'sifency-addons'), 'icon' => 'eicon-text-align-left'], 'center' => ['title' => __('Center', 'sifency-addons'), 'icon' => 'eicon-text-align-center'], 'flex-end' => ['title' => __('Right', 'sifency-addons'), 'icon' => 'eicon-text-align-right']], 'selectors' => ['{{WRAPPER}} .sifency-pagination' => 'justify-content: {{VALUE}};']]);
        $this->add_responsive_control('pagination_spacing_top', ['label' => __('Top Spacing', 'sifency-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em'], 'range' => ['px' => ['min' => 0, 'max' => 100]], 'selectors' => ['{{WRAPPER}} .sifency-pagination' => 'margin-top: {{SIZE}}{{UNIT}};']]);
        
        $this->start_controls_tabs('pagination_style_tabs');
        $this->start_controls_tab('pagination_normal', ['label' => __('Normal', 'sifency-addons')]);
        $this->add_control('pagination_text_color', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers' => 'color: {{VALUE}};']]);
        $this->add_control('pagination_bg_color', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers' => 'background-color: {{VALUE}};']]);
        $this->end_controls_tab();

        $this->start_controls_tab('pagination_hover', ['label' => __('Hover', 'sifency-addons')]);
        $this->add_control('pagination_text_color_hover', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers:hover' => 'color: {{VALUE}};']]);
        $this->add_control('pagination_bg_color_hover', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers:hover' => 'background-color: {{VALUE}};']]);
        $this->end_controls_tab();

        $this->start_controls_tab('pagination_active', ['label' => __('Active', 'sifency-addons')]);
        $this->add_control('pagination_text_color_active', ['label' => __('Text Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers.current' => 'color: {{VALUE}};']]);
        $this->add_control('pagination_bg_color_active', ['label' => __('Background Color', 'sifency-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .sifency-pagination .page-numbers.current' => 'background-color: {{VALUE}};']]);
        $this->end_controls_tab();
        $this->end_controls_tabs();

        $this->end_controls_section();
	}
}