<?php
/**
 * Bosa Bakery Theme Customizer
 *
 * @package Bosa Bakery
 */

/**
 * Add Bosa Header Footer info for Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function bosa_bakery_header_footer_info_section( $wp_customize ) {

	// Load custom section functions.
	require get_template_directory() . '/inc/customizer/header-footer-info-section.php';

	// Register custom section types.
	$wp_customize->register_section_type( 'Bosa_Bakery_Header_Footer_Info_Section' );

	// Add sections.
	$args = array(
		'title'    => esc_html__( "Bosa now supports ElementsKit Header and Footer Builder.", 'bosa-bakery' ),
		'text'    => esc_html__( "You can easily customize your header and footer directly with the Elementor editor.", 'bosa-bakery' ),
		'note'    => esc_html__( "Note: If the options below are not functioning as expected, it is likely because the header and footer in your selected demo were built using ElementsKit Header and Footer Builder.", 'bosa-bakery' ),
		'link'    => esc_html__( "For more information, please refer to our", 'bosa-bakery' ),
		'url_text'    => esc_html__( "documentation.", 'bosa-bakery' ),
		'url'  => 'https://bosathemes.com/docs/bosa/how-to-setup-recommended-plugins-features/elementskit-how-to-set-up-header-footer-with-the-builder/',
		'priority'  => 1,
	);

	$header_args = array_merge( $args, array(
		'panel'		=> 'bosa_bakery_header_options',
	) );

	$footer_args = array_merge( $args, array(
		'panel'		=> 'bosa_bakery_footer_options',
	) );

	$wp_customize->add_section(
		new Bosa_Bakery_Header_Footer_Info_Section(
			$wp_customize,
			'bosa_bakery_header_info',
			$header_args,
		)
	);
	$wp_customize->add_section(
		new Bosa_Bakery_Header_Footer_Info_Section(
			$wp_customize,
			'bosa_bakery_footer_info',
			$footer_args,
		)
	);
}
add_action( 'customize_register', 'bosa_bakery_header_footer_info_section' );

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function bosa_bakery_customize_register( $wp_customize ) {

	// Load custom control functions.
	require get_template_directory() . '/inc/customizer/controls.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound

	// Register custom section types.
	$wp_customize->register_section_type( 'Bosa_Bakery_Customize_Section_Upsell' );

	// Register sections.
	$wp_customize->add_section(
		new Bosa_Bakery_Customize_Section_Upsell(
			$wp_customize,
			'bosa_bakery_theme_upsell',
			array(
				'title'    => esc_html__( 'Bosa Pro', 'bosa-bakery' ),
				'pro_text' => esc_html__( 'Upgrade To Pro', 'bosa-bakery' ),
				'pro_url'  => 'https://bosathemes.com/bosa-pro',
				'priority'  => 1,
			)
		)
	);
}
add_action( 'customize_register', 'bosa_bakery_customize_register' );

/**
 * Restructures WooCommerce product catalog customizer options.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function bosa_bakery_woocommerce_customizer_structure( $wp_customize ) {

	if ( class_exists( 'WooCommerce') ) {
		$wp_customize->get_control( 'woocommerce_shop_page_display' )->priority  = '600';
		$wp_customize->get_control( 'woocommerce_category_archive_display' )->priority  = '610';
		$wp_customize->get_control( 'woocommerce_default_catalog_orderby' )->priority  = '620';
	}
}
add_action( 'customize_register', 'bosa_bakery_woocommerce_customizer_structure', 15 );

/**
 * Enqueue style for custom customize control.
 */
add_action( 'customize_controls_enqueue_scripts', 'bosa_bakery_custom_customize_enqueue' );
function bosa_bakery_custom_customize_enqueue() {
	wp_enqueue_style( 'bosa-bakery-customize-controls', get_template_directory_uri() . '/inc/customizer/customizer.css' );
}

/**
 * Render the site title for the selective refresh partial.
 *
 * @return void
 */
function bosa_bakery_customize_partial_blogname() {
	echo esc_html( get_bloginfo( 'name' ) );
}

/**
 * Render the site tagline for the selective refresh partial.
 *
 * @return void
 */
function bosa_bakery_customize_partial_blogdescription() {
	echo esc_html( get_bloginfo( 'description' ) );
}

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function bosa_bakery_customize_preview_js() {
	wp_enqueue_script( 'bosa-bakery-customizer', get_template_directory_uri() . '/inc/customizer/customizer.js', array( 'customize-preview' ), '20151215', true );
}
add_action( 'customize_preview_init', 'bosa_bakery_customize_preview_js' );

function bosa_bakery_customize_getting_js() {
	wp_enqueue_script( 'bosa-bakery-customizer-getting-started', get_template_directory_uri() . '/inc/getting-started/getting-started.js', array( 'customize-controls', 'jquery' ), true );
}
add_action( 'customize_controls_enqueue_scripts', 'bosa_bakery_customize_getting_js' );


/**
 * Sanitize checkboxes
 */

function bosa_bakery_sanitize_checkbox( $input ){
	if ( $input === true ) {
        return true;
    } else {
        return false;
    }
}

/**
 * Sanitize Selects
 */
function bosa_bakery_sanitize_select( $input, $setting ){
          
    $input = sanitize_key($input);

    $choices = $setting->manager->get_control( $setting->id )->choices;
                      
    return ( array_key_exists( $input, $choices ) ? $input : $setting->default );                
      
}

/**
 * Item Segement section callback
 */
function bosa_bakery_is_enable_item_segments() {
	$value = get_theme_mod( 'bosa_bakery_disable_item_segments_section', true );

	if ( $value ) {
		return false;
	} else {
		return true;
	} 
}

/**
 * Redemption codes section callback
 */
function bosa_bakery_is_enable_redemption_codes() {
	$value = get_theme_mod( 'bosa_bakery_disable_redemption_codes_section', true );

	if ( $value ) {
		return false;
	} else {
		return true;
	}  
}

/**
 * Feedbacks section callback
 */
function bosa_bakery_is_enable_feedbacks_section() {
	$value = get_theme_mod( 'bosa_bakery_disable_feedbacks_section', true );

	if ( $value ) {
		return false;
	} else {
		return true;
	} 
}

function bosa_bakery_customizer_structure( $wp_customize ) {

	// Blog Homepage Options
	$wp_customize->add_panel( 'bosa_bakery_blog_homepage_options', array(
	    'title' 	 => esc_html__( 'Blog Homepage', 'bosa-bakery' ),
	    'priority'	 => 120,
	    'capability' => 'edit_theme_options',
	) );

	// Responsive
	$wp_customize->add_section( 'bosa_bakery_blog_page_responsive', array(
	    'title'		 => esc_html__( 'Responsive', 'bosa-bakery' ),
	    'description'    => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please
	    	click on below Tablet or Mobile Icons to see changes.', 'bosa-bakery' ),
	    'panel' 	 => 'bosa_bakery_blog_homepage_options',
	    'priority'	 => 50,
	    'capability' => 'edit_theme_options',
	) );

	// Blog Item Segments
	$wp_customize->add_section( 'bosa_bakery_blog_item_segments', array(
	    'title'          => esc_html__( 'Item Segments', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => 26,
	) );

	$wp_customize->add_setting( 'bosa_bakery_disable_item_segments_section', array(
	    'default' 			=> true,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_item_segments_section', array(
	    'label'        => esc_html__( 'Disable Item Segments Section', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'section'      => 'bosa_bakery_blog_item_segments',
		'priority'	   => 10, 
	) );

	$wp_customize->add_setting('bosa_bakery_item_list_title_one', array(
		'default'=>'',
		'sanitize_callback'=>'sanitize_text_field',
	));

	$wp_customize->add_control('bosa_bakery_item_list_title_one', array(
		'label'     => esc_html__( 'Item Title One', 'bosa-bakery' ),
		'section'	=> 'bosa_bakery_blog_item_segments',
		'type'		=> 'text',
		'priority'	=> 20,
	));

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_one', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_one',
			array(
				'label'           => esc_html__( 'Image One', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 30
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_one', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_one', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category One', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 40,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_two', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_two',
			array(
				'label'           => esc_html__( 'Image Two', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 50
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_two', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_two', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Two', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 60,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_three', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_three',
			array(
				'label'           => esc_html__( 'Image Three', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 70
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_three', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_three', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Three', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 80,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_four', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_four',
			array(
				'label'           => esc_html__( 'Image Four', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 90
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_four', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_four', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Four', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 100,
	) );

	$wp_customize->add_setting('bosa_bakery_item_list_title_two', array(
		'default'=>'',
		'sanitize_callback'=>'sanitize_text_field',
	));

	$wp_customize->add_control('bosa_bakery_item_list_title_two', array(
		'label'     => esc_html__( 'Product Title Two', 'bosa-bakery' ),
		'section'	=> 'bosa_bakery_blog_item_segments',
		'type'		=> 'text',
		'priority'	=> 110,
	));

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_five', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_five',
			array(
				'label'           => esc_html__( 'Image Five', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 120
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_five', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_five', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Five', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 130,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_six', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_six',
			array(
				'label'           => esc_html__( 'Image Six', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 140
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_six', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_six', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Six', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 150,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_seven', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_seven',
			array(
				'label'           => esc_html__( 'Image Seven', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 160
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_seven', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_seven', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Seven', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 170,
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_item_image_eight', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_item_image_eight',
			array(
				'label'           => esc_html__( 'Image Eight', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_item_segments',
				'mime_type'       => 'image',
				'priority'	      => 180
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_item_list_eight', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_item_list_eight', array(
		'type' 			=> 'select',
		'section' 		=> 'bosa_bakery_blog_item_segments',
		'label' 		=> esc_html__( 'Select Category Eight', 'bosa-bakery' ),
		'choices'     	=> bosa_bakery_get_post_categories(),
		'priority'		=> 190,
	) );

	// responsive item segments
	$wp_customize->add_setting( 'bosa_bakery_disable_mobile_item_segments', array(
	    'default' => false,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_mobile_item_segments', array(
	    'label'        => esc_html__( 'Disable Item Segments', 'bosa-bakery' ),
	    'type' => 'checkbox',
	    'priority' => 26,
	    'section' => 'bosa_bakery_blog_page_responsive',
	    'active_callback' => 'bosa_bakery_is_enable_item_segments',
	) );

	//Redemption Codes
	$wp_customize->add_section( 'bosa_bakery_blog_redemption_codes', array(
	    'title'          => esc_html__( 'Redemption Codes', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => 27,	
	) );

	$wp_customize->add_setting( 'bosa_bakery_disable_redemption_codes_section', array(
	    'default' 			=> true,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_redemption_codes_section', array(
	    'label' 	=> esc_html__( 'Disable Redemption Codes Section', 'bosa-bakery' ),
	    'type' 		=> 'checkbox',
	    'priority'	=> 10,
	    'section' 	=> 'bosa_bakery_blog_redemption_codes', 
	) );

	$wp_customize->add_setting( 'bosa_bakery_blog_code_one', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_code_one',
			array(
				'label'           => esc_html__( 'Code One Image', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_redemption_codes',
				'mime_type'       => 'image',
				'priority'	      => 20
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_blog_code_two', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_code_two',
			array(
				'label'           => esc_html__( 'Code Two Image', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_redemption_codes',
				'mime_type'       => 'image',
				'priority'	      => 30
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_blog_code_three', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );

	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_code_three',
			array(
				'label'           => esc_html__( 'Code Three Image', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_redemption_codes',
				'mime_type'       => 'image',
				'priority'	      => 40
			)
		)
	);

	$wp_customize->add_setting( 'bosa_bakery_blog_code_four', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	) );
	
	$wp_customize->add_control( 
		new WP_Customize_Media_Control( 
			$wp_customize, 
			'bosa_bakery_blog_code_four',
			array(
				'label'           => esc_html__( 'Code Four Image', 'bosa-bakery' ),
				'section'         => 'bosa_bakery_blog_redemption_codes',
				'mime_type'       => 'image',
				'priority'	      => 50
			)
		)
	);
	// responsive redemption code
	$wp_customize->add_setting( 'bosa_bakery_disable_mobile_redemption_codes', array(
	    'default' => false,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_mobile_redemption_codes', array(
	    'label'        => esc_html__( 'Disable Redemption Codes', 'bosa-bakery' ),
	    'type' => 'checkbox',
	    'priority' => 27,
	    'section' => 'bosa_bakery_blog_page_responsive',
	    'active_callback' => 'bosa_bakery_is_enable_redemption_codes',
	) );

	// Blog Feedbacks
	$wp_customize->add_section( 'bosa_bakery_blog_feedbacks', array(
	    'title'          => esc_html__( 'Feedbacks', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => 28,	
	) );

	$wp_customize->add_setting( 'bosa_bakery_disable_feedbacks_section', array(
	    'default' 			=> true,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_feedbacks_section', array(
	    'label' 	=> __( 'Disable Feedbacks Section', 'bosa-bakery' ),
	    'type' 		=> 'checkbox',
	    'priority'	=> 10,
	    'section' 	=> 'bosa_bakery_blog_feedbacks', 
	) );

	$wp_customize->add_setting( 'bosa_bakery_feedbacks_page_one', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_feedbacks_page_one', array(
		'label'       => esc_html__( 'Page 1', 'bosa-bakery' ),
		'type'        => 'select',
		'section'     => 'bosa_bakery_blog_feedbacks',
		'placeholder' => esc_html__( 'Select Page 1', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_pages(),
		'priority'	  => 20,
	) );

	$wp_customize->add_setting( 'bosa_bakery_feedbacks_page_two', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_feedbacks_page_two', array(
		'label'       => esc_html__( 'Page 2', 'bosa-bakery' ),
		'type'        => 'select',
		'section'     => 'bosa_bakery_blog_feedbacks',
		'placeholder' => esc_html__( 'Select Page 2', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_pages(),
		'priority'	  => 30,
	) );

	$wp_customize->add_setting( 'bosa_bakery_feedbacks_page_three', array(
		'sanitize_callback' => 'bosa_bakery_sanitize_select',
		'default' 			=> '',
	) );

	$wp_customize->add_control( 'bosa_bakery_feedbacks_page_three', array(
		'label'       => esc_html__( 'Page 3', 'bosa-bakery' ),
		'type'        => 'select',
		'section'     => 'bosa_bakery_blog_feedbacks',
		'placeholder' => esc_html__( 'Select Page 3', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_pages(),
		'priority'	  => 40,
	) );

	// responsive feedbacks
	$wp_customize->add_setting( 'bosa_bakery_disable_mobile_feedbacks', array(
	    'default' => false,
	    'sanitize_callback' => 'bosa_bakery_sanitize_checkbox',
	) );

	$wp_customize->add_control( 'bosa_bakery_disable_mobile_feedbacks', array(
	    'label'        => esc_html__( 'Disable Feedbacks', 'bosa-bakery' ),
	    'type' => 'checkbox',
	    'priority' => 28,
	    'section' => 'bosa_bakery_blog_page_responsive',
	    'active_callback' => 'bosa_bakery_is_enable_feedbacks_section',
	) );
}
add_action( 'customize_register', 'bosa_bakery_customizer_structure', 15 );

/**
 * Kirki Customizer
 *
 * @return void
 */
add_action( 'init' , 'bosa_bakery_kirki_fields', 999, 1 );

function bosa_bakery_kirki_fields(){

	/**
	* If kirki is not installed do not run the kirki fields
	*/

	if ( !class_exists( 'Kirki' ) ) {
		return;
	}

	Kirki::add_config( 'bosa-bakery', array(
		'capability'  => 'edit_theme_options',
		'option_type' => 'theme_mod',
	) );

	// Site Identity - Title & Tagline
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Logo Image Width', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_logo_width',
		'section'      => 'bosa_bakery_title_tagline',
		'transport'    => 'postMessage',
		'priority'     => '8',
		'default'      => 270,
		'choices'      => array(
			'min'  => 50,
			'max'  => 270,
			'step' => 5,
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Site Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_site_title',
		'section'      => 'bosa_bakery_title_tagline',
		'priority'     => '10',
		'default'      => false,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Site Tagline', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_site_tagline',
		'section'      => 'bosa_bakery_title_tagline',
		'priority'     => '20',
		'default'      => false,
	) );

	// Colors Options
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Body Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_body_text_color',
		'section'      => 'colors',
		'default'      => '#333333',
		'priority'     => '20',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),

	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'General Heading Text Color (H1 - H6)', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_heading_text_color',
		'section'      => 'colors',
		'default'      => '#030303',
		'priority'     => '30',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),

	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'General Link Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_general_link_color',
		'section'      => 'colors',
		'default'      => '#a6a6a6',
		'priority'     => '35',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Page and Single Post Title', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_header_textcolor',
		'section'      => 'colors',
		'default'      => '#101010',
		'priority'     => '40',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Primary Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_primary_color',
		'section'      => 'colors',
		'default'      => '#382E1E',
		'priority'     => '50',
	) );
	
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_hover_color',
		'section'      => 'colors',
		'default'     => '#130F09',
		'priority'    => '60',
	) );

	// Header Options
	Kirki::add_panel( 'bosa_bakery_header_options', array(
	    'title' => esc_html__( 'Header', 'bosa-bakery' ),
	    'priority' => '10',
	) );

	// Header Style Options
	Kirki::add_section( 'bosa_bakery_header_style_options', array(
	    'title'      => esc_html__( 'Style', 'bosa-bakery' ),
	    'panel'      => 'bosa_bakery_header_options',	   
	    'capability' => 'edit_theme_options',
	    'priority'   => '30',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Header Layouts', 'bosa-bakery' ),
		'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_header_layout',
		'section'     => 'bosa_bakery_header_style_options',
		'default'     => 'header_one',
		'priority'	  => '40',
		'choices'     => apply_filters( 'bosa_bakery_header_layout_filter', array(
			'header_one'    => get_template_directory_uri() . '/assets/images/header-layout-1.png',
			'header_two'    => get_template_directory_uri() . '/assets/images/header-layout-2.png',
			'header_three'  => get_template_directory_uri() . '/assets/images/header-layout-3.png',
			'header_fourteen'   => get_stylesheet_directory_uri() . '/assets/images/header-layout-14.png'
		) ),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Top Header Section', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_top_header_section',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => false,
		'priority'	   => '50',
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_header_two_home_separator',
	    'section'     => 'bosa_bakery_header_style_options',
	    'default'     => esc_html__( 'Transparent Header Options', 'bosa-bakery' ),
	    'priority'	  => '60',
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
		),
	) );

	// Header two 
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Site Logo', 'bosa-bakery' ),
		'description'  => esc_html__( 'Fully white or light color with image dimensions 320 by 120 pixels is recommended.', 'bosa-bakery' ),
		'type'         => 'image',
		'settings'     => 'bosa_bakery_header_separate_logo',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	  =>  '70',
		'choices'     => array(
			'save_as' => 'id',
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Site Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_title_color_transparent_header',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#ffffff',
		'priority'	   => '80',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Site Tagline Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_tagline_color_transparent_header',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#e6e6e6',
		'priority'	   => '90',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_tagline',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Top Header Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_transparent_header_top_background_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '100',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Top Header Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_transparent_header_top_header_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#ffffff',
		'priority'	   => '110',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Top Header Text Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_hover_color_transparent_header',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	   => '120',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Bottom Header Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_transparent_header_bottom_background_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '130',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Menu Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_content_color_transparent_header',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#ffffff',
		'priority'	   => '140',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Bottom Header Text Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_content_hover_color_transparent_header',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	   => '150',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_header_two_general_separator',
	    'section'     => 'bosa_bakery_header_style_options',
	    'default'     => esc_html__( 'Non Transparent Header Options', 'bosa-bakery' ),
	    'priority'	  => '160',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Header Site Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_title_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#030303',
		'priority'	   => '170',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Header Site Tagline Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_tagline_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#767676',
		'priority'	   => '180',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_tagline',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Top Header Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_header_background_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '190',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Top Header Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_header_text_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#333333',
		'priority'	   => '200',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Top Header Text Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_header_text_link_hover_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	  =>  '210',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Top Header Section Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_top_header_border',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => false,
		'priority'	   => '220',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Mid Header Background Color', 'bosa-bakery' ),
		'description'  => esc_html__( 'It can be used as a transparent background color over image.', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_mid_header_background_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '230',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_three' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Mid Header Text Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_mid_header_text_link_hover_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	   => '240',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_three' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Mid Header Section Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mid_header_border',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => false,
		'priority'	   => '250',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_three' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Bottom Header Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_header_background_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	  =>  '260',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Bottom Header Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_header_text_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#333333',
		'priority'	   => '270',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Non Transparent Bottom Header Text Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_header_text_link_hover_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	   =>  '280',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Sub Menu Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_sub_menu_link_hover_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#130F09',
		'priority'	   =>  '290',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Header Height (in px)', 'bosa-bakery' ),
		'description' => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices.
		', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_header_image_height',
		'section'     => 'bosa_bakery_header_style_options',
		'transport'   => 'postMessage',
		'default'     => 100,
		'priority'	  => '300',
		'choices'     => array(
			'min'  => 50,
			'max'  => 1200,
			'step' => 10,
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_contact_details_separator',
	    'section'     => 'bosa_bakery_header_style_options',
	    'default'     => esc_html__( 'Contact Details Options', 'bosa-bakery' ),
	    'priority'	  => '310',
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

    // Contact Detail Options
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Contact Details', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_contact_detail',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => false,
		'priority'	   => '320',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	// Header contact labels for header 14
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Contact Detail Icon color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_header_icon_color',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '#B7B7B7',
		'priority'	   => '330',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_fourteen' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Phone Number Label', 'bosa-bakery' ),
		'type'         => 'text',
		'settings'     => 'bosa_bakery_header_phone_label',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => "",
		'priority'	   => '340',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_fourteen' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Phone Number', 'bosa-bakery' ),
		'type'         => 'text',
		'settings'     => 'bosa_bakery_contact_phone',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '350',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Email', 'bosa-bakery' ),
		'type'         => 'text',
		'settings'     => 'bosa_bakery_contact_email',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '360',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Address', 'bosa-bakery' ),
		'type'         => 'text',
		'settings'     => 'bosa_bakery_contact_address',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => '',
		'priority'	   => '370',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_header_button_separator',
	    'section'     => 'bosa_bakery_header_style_options',
	    'default'     => esc_html__( 'Header Button Options', 'bosa-bakery' ),
	    'priority'	  => '380',
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	// Header button
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Header Buttons', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_header_button',
		'section'      => 'bosa_bakery_header_style_options',
		'default'      => false,
		'priority'	   => '390',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Header Buttons', 'bosa-bakery' ),
		'type'         => 'repeater',
		'settings'     => 'bosa_bakery_header_button_repeater',
		'section'      => 'bosa_bakery_header_style_options',
		'priority'	   => '400',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Button', 'bosa-bakery' ),
		),
		'default' => array(
			array(
				'header_btn_type' 			=> 'button-outline',
				'header_btn_bg_color'		=> '#382E1E',
				'header_btn_border_color'	=> '#1a1a1a',
				'header_btn_text_color'		=> '#1a1a1a',
				'header_btn_hover_color'	=> '#130F09',
				'header_btn_text' 			=> '',
				'header_btn_link' 			=> '',
				'header_btn_target'			=> true,
				'header_btn_radius'			=> 0,
			),		
		),
		'fields' => array(
			'header_btn_type' => array(
				'label'       => esc_html__( 'Button Type', 'bosa-bakery' ),
				'type'        => 'select',
				'default'     => 'button-outline',
				'choices'  	  => array(
					'button-primary' => esc_html__( 'Background Button', 'bosa-bakery' ),
					'button-outline' => esc_html__( 'Border Button', 'bosa-bakery' ),
					'button-text'    => esc_html__( 'Text Only Button', 'bosa-bakery' ),
				),
			),
			'header_btn_bg_color' 	=> array(
				'label'       		=> esc_html__( 'Non Transparent Header Button Background Color', 'bosa-bakery' ),
				'description' 		=> esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#382E1E',
			),
			'header_btn_border_color' 	=> array(
				'label'      	 		=> esc_html__( 'Non Transparent Header Button Border Color', 'bosa-bakery' ),
				'description' 			=> esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'       		 	=> 'text',
				'default'     			=> '#1a1a1a',
			),
			'header_btn_text_color' => array(
				'label'       		=> esc_html__( 'Non Transparent Header Button Text Color', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#1a1a1a',
			),
			'header_btn_hover_color' => array(
				'label'       		=> esc_html__( 'Non Transparent Header Button Hover Color', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#130F09',
			),
			'header_btn_text' => array(
				'label'       => esc_html__( 'Button Text', 'bosa-bakery' ),
				'type'        => 'text',
				'default' 	  => '',
			),
			'header_btn_link' => array(
				'label'       => esc_html__( 'Button Link', 'bosa-bakery' ),
				'type'        => 'text',
				'default' 	  => '',
			),
			'header_btn_target' => array(
				'label'       	=> esc_html__( 'Open Link in New Window', 'bosa-bakery' ),	
				'type'        	=> 'checkbox',
				'default'	  	=> true,
			),
			'header_btn_radius' => array(
				'label'       	=> esc_html__( 'Button Radius (px)', 'bosa-bakery' ),
				'type'        	=> 'number',
				'default'	  	=> 0,
				'choices'     	=> array(
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				),
			),	
		),
		'choices' => array(
			'limit' => 2,
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Buttons', 'bosa-bakery' ),
		'type'         => 'repeater',
		'settings'     => 'bosa_bakery_transparent_header_button_repeater',
		'section'      => 'bosa_bakery_header_style_options',
		'priority'	   => '410',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Button', 'bosa-bakery' ),
		),
		'default' => array(
			array(
				'transparent_header_btn_type' 				=> 'button-outline',
				'transparent_header_home_btn_bg_color'		=> '#382E1E',
				'transparent_header_home_btn_border_color'	=> '#ffffff',
				'transparent_header_home_btn_text_color'	=> '#ffffff',
				'transparent_header_btn_bg_color'			=> '#382E1E',
				'transparent_header_btn_border_color'		=> '#1a1a1a',
				'transparent_header_btn_text_color'			=> '#1a1a1a',
				'transparent_header_btn_hover_color'		=> '#130F09',
				'transparent_header_btn_text' 				=> '',
				'transparent_header_btn_link' 				=> '',
				'transparent_header_btn_target'				=> true,
				'transparent_header_btn_radius'				=> 0,
			),		
		),
		'fields' => array(
			'transparent_header_btn_type' => array(
				'label'       => esc_html__( 'Button Type', 'bosa-bakery' ),
				'type'        => 'select',
				'default'     => 'button-outline',
				'choices'  	  => array(
					'button-primary' => esc_html__( 'Background Button', 'bosa-bakery' ),
					'button-outline' => esc_html__( 'Border Button', 'bosa-bakery' ),
					'button-text'    => esc_html__( 'Text Only Button', 'bosa-bakery' ),
				),
			),
			'transparent_header_home_btn_bg_color' 	=> array(
				'label'       		=> esc_html__( 'Transparent Header Button Background Color', 'bosa-bakery' ),
				'description' 		=> esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#382E1E',
			),
			'transparent_header_home_btn_border_color' 	=> array(
				'label'      	 		=> esc_html__( 'Transparent Header Button Border Color', 'bosa-bakery' ),
				'description' 			=> esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'       		 	=> 'text',
				'default'     			=> '#ffffff',
			),
			'transparent_header_home_btn_text_color' => array(
				'label'       		=> esc_html__( 'Transparent Header Button Text Color', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#ffffff',
			),
			'transparent_header_btn_bg_color' 	=> array(
				'label'       		=> esc_html__( 'Non Transparent Header Button Background Color', 'bosa-bakery' ),
				'description' 		=> esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#382E1E',
			),
			'transparent_header_btn_border_color' 	=> array(
				'label'      	 		=> esc_html__( 'Non Transparent Header Button Border Color', 'bosa-bakery' ),
				'description' 			=> esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'       		 	=> 'text',
				'default'     			=> '#1a1a1a',
			),
			'transparent_header_btn_text_color' => array(
				'label'       		=> esc_html__( 'Non Transparent Header Button Text Color', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#1a1a1a',
			),
			'transparent_header_btn_hover_color' => array(
				'label'       		=> esc_html__( 'Button Hover Color', 'bosa-bakery' ),
				'type'        		=> 'text',
				'default'     		=> '#130F09',
			),
			'transparent_header_btn_text' => array(
				'label'       => esc_html__( 'Button Text', 'bosa-bakery' ),
				'type'        => 'text',
				'default' 	  => '',
			),
			'transparent_header_btn_link' => array(
				'label'       => esc_html__( 'Button Link', 'bosa-bakery' ),
				'type'        => 'text',
				'default' 	  => '',
			),
			'transparent_header_btn_target' => array(
				'label'       	=> esc_html__( 'Open Link in New Window', 'bosa-bakery' ),	
				'type'        	=> 'checkbox',
				'default'	  	=> true,
			),
			'transparent_header_btn_radius' => array(
				'label'       	=> esc_html__( 'Button Radius (px)', 'bosa-bakery' ),
				'type'        	=> 'number',
				'default'	  	=> 0,
				'choices'     	=> array(
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				),
			),	
		),
		'choices' => array(
			'limit' => 1,
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Search', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_search_icon',
		'section'     => 'bosa_bakery_header_style_options',
		'default'     => false,
		'priority'	  => '420',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Hamburger Widget Menu Icon', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_hamburger_menu_icon',
		'section'     => 'bosa_bakery_header_style_options',
		'default'     => false,
		'priority'	  =>  '430',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Header Buttons Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_header_buttons_font_control',
		'section'      => 'bosa_bakery_header_style_options',
		'priority'	   => '440',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '600',
			'font-size'      => '14px',
			'text-transform' => 'none',
			'line-height'    => '1',
		),
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.site-header .header-btn a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
		),
	) );

	// Header contact labels typography for header 14

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Contact Label Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_contact_label_font_control',
		'section'      => 'bosa_bakery_header_style_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '13px',
			'text-transform' => 'none',
			'line-height'    => '1.6',
		),
		'priority'	  => '450',
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => array( '.header-fourteen .bottom-contact a span' ),
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Contact Content Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_contact_content_font_control',
		'section'      => 'bosa_bakery_header_style_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '16px',
			'text-transform' => 'none',
			'line-height'    => '1.6',
		),
		'priority'	  => '460',
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => array( '.header-fourteen .bottom-contact a' ),
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_fourteen' ),
			),
		),
	) );

	// Header Media Options
	Kirki::add_section( 'bosa_bakery_header_wrap_media_options', array(
	    'title'      => esc_html__( 'Media', 'bosa-bakery' ),
	    'panel'      => 'bosa_bakery_header_options',	   
	    'capability' => 'edit_theme_options',
	    'priority'   => '30',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Header Image Slider', 'bosa-bakery' ),
		'description' => esc_html__( 'Recommended image size 1920x550 pixel. Add only one image to make header banner.', 'bosa-bakery' ),
		'type'        => 'repeater',
		'section'     => 'bosa_bakery_header_wrap_media_options',
		'row_label' => array(
			'type'  => 'text',
		),
		'button_label' => esc_html__('Add New Image', 'bosa-bakery' ),
		'settings'     => 'bosa_bakery_header_image_slider',
		'default'      => array(
				array(
					'slider_item' 	=> '',
					)			
		),
		'fields' => array(
			'slider_item' => array(
				'label'       => esc_html__( 'Image', 'bosa-bakery' ),
				'type'        => 'image',
				'default'     => '',
				'choices'     => array(
					'save_as' => 'id',
				),
			)
		),
		'choices' => array(
			'limit' => 2,
		),
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_header_image_size',
		'section'     => 'bosa_bakery_header_wrap_media_options',
		'default'     => 'full',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_header_image_size',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	  =>  30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Slide Effect', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_header_slider_effect',
		'section'     => 'bosa_bakery_header_wrap_media_options',
		'default'     => 'fade',
		'choices'  => array(
			'fade'             => esc_html__( 'Fade', 'bosa-bakery' ),
			'horizontal-slide' => esc_html__( 'Slide', 'bosa-bakery' ),
		),
		'priority'	  =>  40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Fade Control Time ( in sec )', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_slider_header_fade_control',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => 5,
		'choices' => array(
				'min' => '3',
				'max' => '60',
				'step'=> '1',
		),
		'priority'	  =>  50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_slider_effect',
				'operator' => '==',
				'value'    => 'fade',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Arrows', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_header_slider_arrows',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => false,
		'priority'	  =>  60,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Dots', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_header_slider_dots',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => false,
		'priority'	  =>  70,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Auto Play', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_header_slider_autoplay',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => true,
		'priority'	  =>  80,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Auto Play Timeout ( in sec )', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_slider_header_autoplay_speed',
		'section'      => 'bosa_bakery_header_wrap_media_options',
		'default'      => 4,
		'choices' => array(
				'min' => '1',
				'max' => '60',
				'step'=> '1',
		),
		'priority'	  =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_slider_autoplay',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Parallax Scrolling', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_parallax_scrolling',
		'section'     => 'bosa_bakery_header_wrap_media_options',
		'default'     => true,
		'priority'	  =>  100,
	) );

	// Header Elements Options
	Kirki::add_section( 'bosa_bakery_header_elements_options', array(
	    'title'      => esc_html__( 'Elements', 'bosa-bakery' ),
	    'panel'      => 'bosa_bakery_header_options',	   
	    'capability' => 'edit_theme_options',
	    'priority'   => '30',
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_fixed_header_separator',
	    'section'     => 'bosa_bakery_header_elements_options',
	    'default'     => esc_html__( 'Fixed Header Options', 'bosa-bakery' ),
	    'priority'	  =>  10,
	) );
	
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Fixed Header', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_fixed_header',
		'section'     => 'bosa_bakery_header_elements_options',
		'default'     => true,
		'priority'	  =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Logo', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_fixed_header_logo',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => false,
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Separate Logo for Fixed Header', 'bosa-bakery' ),
		'description'  => esc_html__( 'Image dimensions 320 by 120 pixels is recommended. It will change in fixed header only.', 'bosa-bakery' ),
		'type'         => 'image',
		'settings'     => 'bosa_bakery_fixed_header_separate_logo',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'choices'     => array(
			'save_as' => 'id',
		),
		'priority'	  =>  40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header_logo',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' ),
			),
		),

	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Logo Image Width', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_fixed_header_logo_width',
		'section'      => 'bosa_bakery_header_elements_options',
		'transport'    => 'postMessage',
		'default'      => 270,
		'choices'      => array(
			'min'  => 50,
			'max'  => 270,
			'step' => 5,
		),
		'priority'	  =>  50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header_logo',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Site Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_fixed_header_site_title',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => false,
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Site Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_title_color_fixed_header',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header_site_title',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Site Tagline', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_fixed_header_site_tagline',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => false,
		'priority'	  =>  80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_tagline',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Site Tagline Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_site_tagline_color_fixed_header',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header_site_tagline',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_site_tagline',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bg_color_fixed_header',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  100,	
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_text_color_fixed_header',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  110,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Text Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_text_hover_color_fixed_header',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Button Background Color', 'bosa-bakery' ),
		'description'  => esc_html__( 'For background button type only.', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_fixed_header_button_background_color',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  130,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Button Border Color', 'bosa-bakery' ),
		'description'  => esc_html__( 'For border button type only.', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_fixed_header_button_border_color',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Fixed Header Button Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_fixed_header_button_text_color',
		'section'      => 'bosa_bakery_header_elements_options',
		'default'      => '',
		'priority'	  =>  150,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Responsive
	Kirki::add_section( 'bosa_bakery_header_responsive', array(
	    'title'      => esc_html__( 'Responsive', 'bosa-bakery' ),
	    'description'    => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please
	    	click on below Tablet or Mobile Icons to see changes.', 'bosa-bakery' ),
	    'capability' => 'edit_theme_options',
	    'priority'   => '80',
	    'panel'      => 'bosa_bakery_header_options',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Top Header Menu Section', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_top_header',
		'section'      => 'bosa_bakery_header_responsive',
		'default'      => false,
		'priority'	   =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(	
		'label'       => esc_html__( 'Top Header Bar Name', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_top_bar_name',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => esc_html__( 'TOP MENU', 'bosa-bakery' ),
		'priority'	  =>  20,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_mobile_top_header',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Header Menu Text', 'bosa-bakery' ),
		'type'         => 'text',
		'settings'     => 'bosa_bakery_responsive_header_menu_text',
		'section'      => 'bosa_bakery_header_responsive',
		'default'      => esc_html__( 'MENU', 'bosa-bakery' ),
		'priority'	   =>  30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Top Header Section Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_top_header_border',
		'section'      => 'bosa_bakery_header_responsive',
		'default'      => false,
		'priority'	   =>  40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Mid Header Section Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_mid_header_border',
		'section'      => 'bosa_bakery_header_responsive',
		'default'      => false,
		'priority'	   =>  50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_three', 'header_fourteen' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Fixed Header', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_fixed_header',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => true,
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_fixed_header',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Header Secondary Menu', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_secondary_menu',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => false,
		'priority'	  =>  70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_three' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_mobile_top_header',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Header Contact Details', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_contact_details',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => false,
		'priority'	  =>  80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_contact_detail',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two', 'header_fourteen' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_mobile_top_header',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Header Search', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_search_icon',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => false,
		'priority'	  =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_search_icon',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_mobile_top_header',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Header Buttons', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_header_buttons',
		'section'     => 'bosa_bakery_header_responsive',
		'default'     => false,
		'priority'	  =>  100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_button',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => 'contains',
				'value'    => array( 'header_one', 'header_two' , 'header_fourteen'),
			),
			array(
				'setting'  => 'bosa_bakery_disable_mobile_top_header',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );


	// Theme Skin Options
	Kirki::add_section( 'bosa_bakery_skins_options', array(
	    'title'      => esc_html__( 'Site Skins', 'bosa-bakery' ),
	    'description' => esc_html__( 'All color options except primary color will be overridden by the theme in dark and B&W skin.', 'bosa-bakery' ),
	    'capability' => 'edit_theme_options',
	    'priority'   => '80',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Select Theme Skin', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_skin_select',
		'section'     => 'bosa_bakery_skins_options',
		'default'     => 'default',
		'priority'	  =>  10,
		'choices'  => array(
			'default'    => esc_html__( 'Default', 'bosa-bakery' ),
			'dark'       => esc_html__( 'Dark', 'bosa-bakery' ),
			'blackwhite' => esc_html__( 'Black & White', 'bosa-bakery' ),
		)
	) );

	// Social Media Options
	Kirki::add_panel( 'bosa_bakery_social_media_options', array(
	    'title'          => esc_html__( 'Social Media', 'bosa-bakery' ),
	    'priority'       => '96',
	) );

	Kirki::add_section( 'bosa_bakery_social_media_elements_options', array(
	    'title'          => esc_html__( 'Elements', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '10',
	    'panel'			 => 'bosa_bakery_social_media_options',		
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable from Header', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_header_social_links',
		'section'      => 'bosa_bakery_social_media_elements_options',
		'default'      => false,
		'priority'	   =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable from Footer', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_footer_social_links',
		'section'      => 'bosa_bakery_social_media_elements_options',
		'default'      => false,
		'priority'	   =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Footer Social Icons Size', 'bosa-bakery' ),
		'description' => esc_html__( 'Only applicable to the footer social icons.', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_social_icons_size',
		'section'     => 'bosa_bakery_social_media_elements_options',
		'transport'   => 'postMessage',
		'default'     => 15,
		'choices'     => array(
			'min'  => 10,
			'max'  => 100,
			'step' => 1,
		),
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_footer_social_links',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Social Links', 'bosa-bakery' ),
		'type'        => 'repeater',
		'description' => esc_html__( 'By default, Social Icons will appear in both header and footer section.', 'bosa-bakery' ),
		'section'     => 'bosa_bakery_social_media_elements_options',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Social Link', 'bosa-bakery' ),
		),
		'settings' => 'bosa_bakery_social_media_links',
		'default' => array(
			array(
				'icon' 		=> '',
				'link' 		=> '',
				'target' 	=> true,
				),		
		),
		'fields' => array(
			'icon' => array(
				'label'       => esc_html__( 'Fontawesome Icon', 'bosa-bakery' ),
				'type'        => 'text',
				'description' => esc_html__( 'Input Icon name. For Example:- fab fa-facebook For more icons https://fontawesome.com/icons?d=gallery&m=free', 'bosa-bakery' ),
			),
			'link' => array(
				'label'       => esc_html__( 'Link', 'bosa-bakery' ),
				'type'        => 'text',
			),
			'target' => array(
				'label'       => esc_html__( 'Open Link in New Window', 'bosa-bakery' ),
				'type'        => 'checkbox',
				'default' 	  => true,
			),			
		),
		'choices' => array(
			'limit' => 20,
		),
		'priority' =>  40,
	) );

	// Responsive
	Kirki::add_section( 'bosa_bakery_social_responsive', array(
	    'title'          => esc_html__( 'Responsive', 'bosa-bakery' ),
	    'description'    => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please
	    	click on below Tablet or Mobile Icons to see changes.', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '20',
	    'panel'			 => 'bosa_bakery_social_media_options',		
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Social Icons from Header', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_social_icons_header',
		'section'     => 'bosa_bakery_social_responsive',
		'default'     => false,
		'priority'	  =>  10,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_header_social_links',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Social Icons from Footer', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_social_icons_footer',
		'section'     => 'bosa_bakery_social_responsive',
		'default'     => false,
		'priority'	  =>  20,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_footer_social_links',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	//Typography Options
	Kirki::add_section( 'bosa_bakery_typography', array(
	    'title'          => esc_html__( 'Typography', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '95',
	    'reset'          => 'typography',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Site Title', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_site_title_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '22px',
			'text-transform' => 'none',
		),
		'priority'	  =>  10,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.site-header .site-branding .site-title',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Site Description', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_site_description_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '14px',
			'text-transform' => 'none',
		),
		'priority'	  =>  20,
		'transport'   => 'auto',
		'output'   => array(
			array(
				'element' => '.site-header .site-branding .site-description',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Main Menu', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_menu_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'font-size'      => '15px',
			'text-transform' => 'uppercase',
			'variant'        => '600',
			'line-height'    => '1.5',
		),
		'priority'	  =>  30,
		'transport'   => 'auto',
		'output'   => array(
			array(
				'element' => array( '.main-navigation ul.menu li a', '.slicknav_menu .slicknav_nav li a' )
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_main_menu_description_info',
	    'section'     => 'bosa_bakery_typography',
	    'default'     => esc_html__( 'Below Main Menu Description setting will work after enabling description section in the menu. Please check https://bosathemes.com/docs/bosa/how-to-setup/how-to-setup-menu-description Documentation for more information.', 'bosa-bakery' ),
	    'priority'	  =>  40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Main Menu Description', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_menu_description_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'font-size'      => '11px',
			'text-transform' => 'none',
			'variant'        => 'regular',
			'line-height'    => '1.3',
		),
		'priority'	  =>  50,
		'transport'   => 'auto',
		'output'   => array(
			array(
				'element' => array( '.main-navigation .menu-description, .slicknav_menu .menu-description' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Body', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_body_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '15px',
		),
		'priority'	  =>  60,
		'transport'   => 'auto',
		'output' => array( 
			array(
				'element' => 'body',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'General Title (H1 - H6)', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_general_title_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Poppins',
			'text-transform' => 'none',
		),
		'priority'	  =>  70,
		'transport'   => 'auto',
		'output'   => array(
			array(
				'element' => array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ),
			),
		),	
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Page & Single Post Title', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_page_title_font_control',
		'section'      => 'bosa_bakery_typography',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '48px',
			'text-transform' => 'none',
		),
		'priority'	  =>  80,
		'transport'   => 'auto',
		'output'   => array(
			array(
				'element' => array( '.page-title' ),
			),
		),
	) );

	// Site Layouts Options
	Kirki::add_panel( 'bosa_bakery_site_layout_options', array(
	    'title' => esc_html__( 'Site Layouts', 'bosa-bakery' ),
	    'priority' => '90',
	) );

	Kirki::add_section( 'bosa_bakery_site_layout_style_options', array(
	    'title'          => esc_html__( 'Style', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_site_layout_options',
	    'capability'     => 'edit_theme_options',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Site Layouts', 'bosa-bakery' ),
		'description' => esc_html__( 'Default / Box / Frame / Full / Extend', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_site_layout',
		'section'     => 'bosa_bakery_site_layout_style_options',
		'default'     => 'default',
		'choices'  => array(
			'default' => get_template_directory_uri() . '/assets/images/default-layout.png',
			'box'     => get_template_directory_uri() . '/assets/images/box-layout.png',
			'frame'   => get_template_directory_uri() . '/assets/images/frame-layout.png',
			'full'    => get_template_directory_uri() . '/assets/images/full-layout.png',
			'extend'  => get_template_directory_uri() . '/assets/images/extend-layout.png',
		),
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_box_frame_background_color',
		'section'      => 'bosa_bakery_site_layout_style_options',
		'default'      => '',
		'priority'	   =>  20,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_site_layout',
				'operator' => 'contains',
				'value'    => array( 'box', 'frame' ),
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image', 'bosa-bakery' ),
		'type'         => 'image',
		'settings'     => 'bosa_bakery_box_frame_background_image',
		'section'      => 'bosa_bakery_site_layout_style_options',
		'default'      => '',
		'choices'     => array(
			'save_as' => 'id',
		),
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_site_layout',
				'operator' => 'contains',
				'value'    => array( 'box', 'frame' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_box_frame_image_size',
		'section'      => 'bosa_bakery_site_layout_style_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	   =>  40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_site_layout',
				'operator' => 'contains',
				'value'    => array( 'box', 'frame' ),
			),
		),
	) );

	Kirki::add_section( 'bosa_bakery_site_layout_elements_options', array(
	    'title'          => esc_html__( 'Elements', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_site_layout_options',
	    'capability'     => 'edit_theme_options',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Site Layouts (Box & Frame) Shadow', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_site_layout_shadow',
		'section'      => 'bosa_bakery_site_layout_elements_options',
		'default'      => false,
		'priority'	   =>  10,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_site_layout',
				'operator' => 'contains',
				'value'    => array( 'box', 'frame' ),
			),
		),
	) );

	// Sidebar Options
	Kirki::add_section( 'bosa_bakery_sidebar_options', array(
	    'title'          => esc_html__( 'Sidebar', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '98',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Sidebar Layouts', 'bosa-bakery' ),
		'description' => esc_html__( 'Right / Left / Both / None', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_sidebar_settings',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => 'right',
		'choices'  => array(
			'right'      => get_template_directory_uri() . '/assets/images/right-sidebar.png',
			'left'       => get_template_directory_uri() . '/assets/images/left-sidebar.png',
			'right-left' => get_template_directory_uri() . '/assets/images/right-left-sidebar.png',
			'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png',
		),
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widget Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_sidebar_widget_title_font_control',
		'section'      => 'bosa_bakery_sidebar_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '500',
			'font-size'      => '16px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.4',
		),
		'priority'	  =>  20,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.sidebar .widget .widget-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Sidebar Widget Title Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_sidebar_widget_title_border',
		'section'      => 'bosa_bakery_sidebar_options',
		'default'      => false,
		'priority'	   =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Sticky Position', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_sticky_sidebar',
		'section'      => 'bosa_bakery_sidebar_options',
		'default'      => false,
		'priority'	   =>  40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in Blog Page', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_blog_page',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => false,
		'priority'	  =>  50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in Single Post', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_single_post',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => false,
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in Page', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_page',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => true,
		'priority'	  =>  70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in WooCommerce', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_woocommerce_page',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => false,
		'priority'	  =>  80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in WooCommerce Shop', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_woocommerce_shop',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => false,
		'priority'	  =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_sidebar_woocommerce_page',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Sidebar in WooCommerce Single Product', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_sidebar_woocommerce_single',
		'section'     => 'bosa_bakery_sidebar_options',
		'default'     => false,
		'priority'	  =>  100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_sidebar_settings',
				'operator' => 'contains',
				'value'    => array( 'right', 'left', 'right-left' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_sidebar_woocommerce_page',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Footer Options
	Kirki::add_panel( 'bosa_bakery_footer_options', array(
	    'title' => esc_html__( 'Footer', 'bosa-bakery' ),
	    'priority' => '110',
	) );

	// Footer Widgets Options
	Kirki::add_section( 'bosa_bakery_footer_widgets_options', array(
	    'title'          => esc_html__( 'Footer Widgets', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_footer_options',
	    'capability'     => 'edit_theme_options',
	    'priority' 		 => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Footer Widget Area', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_footer_widget',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => false,
		'priority'	   =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Footer Widget Title Border', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_footer_widget_title_border',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => false,
		'priority'	   =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Footer Widget Item List Border ', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_footer_widget_list_item_border',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => false,
		'priority'	   =>  30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Widget Columns Layouts', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_footer_widget_layout',
		'section'     => 'bosa_bakery_footer_widgets_options',
		'default'     => 'footer_widget_layout_one',
		'choices'  => array(
			'footer_widget_layout_one'    => get_template_directory_uri() . '/assets/images/widget-layout-1.png',
			'footer_widget_layout_two'    => get_template_directory_uri() . '/assets/images/widget-layout-2.png',
			'footer_widget_layout_three'    => get_template_directory_uri() . '/assets/images/widget-layout-3.png',
			'footer_widget_layout_four' => get_template_directory_uri() . '/assets/images/widget-layout-4.png',
		),
		'priority'	   =>  40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Footer Widget Area Top Padding(in px)', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_footer_widget_area_top_padding',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => 0,
		'priority'	   =>  50,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Footer Widget Area Bottom Padding(in px)', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_footer_widget_area_bottom_padding',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => 50,
		'priority'	   =>  60,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Background Color', 'bosa-bakery' ),
		'description'  => esc_html__( 'It can be used as a transparent background color over image.', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_footer_background_color',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => '',
		'priority'	   =>  70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widget Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_footer_widget_title_color',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => '#030303',
		'priority'	   =>  80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widgets Link Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_footer_widget_link_color',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => '#656565',
		'priority'	   =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widgets Content Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_footer_widget_content_color',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => '#656565',
		'priority'	   =>  100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widgets Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_top_footer_widget_link_hover_color',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'      => '#130F09',
		'priority'	   =>  110,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Widget Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_footer_widget_title_font_control',
		'section'      => 'bosa_bakery_footer_widgets_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '500',
			'font-size'      => '18px',
			'text-transform' => 'none',
			'line-height'    => '1.4',
		),
		'priority'	  =>  120,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.site-footer .widget .widget-title',
			),
		),
	) );

	// Footer Style Options
	Kirki::add_section( 'bosa_bakery_footer_style_options', array(
	    'title'          => esc_html__( 'Style', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_footer_options',
	    'capability'     => 'edit_theme_options',
	    'priority' 		 => 20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Bottom Footer Area', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_bottom_footer',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => false,
		'priority'	   => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Footer Layouts', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_footer_layout',
		'section'     => 'bosa_bakery_footer_style_options',
		'default'     => 'footer_one',
		'choices'  	  => apply_filters( 'bosa_bakery_footer_layout_filter', array(
			'footer_one'   => get_template_directory_uri() . '/assets/images/footer-layout-1.png',
			'footer_two'   => get_template_directory_uri() . '/assets/images/footer-layout-2.png',
			'footer_three' => get_template_directory_uri() . '/assets/images/footer-layout-3.png',
		) ),
		'priority'	   => 20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Bottom Footer Area Top Padding(in px)', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_bottom_footer_area_top_padding',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => 30,
		'priority'	   => 30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Bottom Footer Area Bottom Padding(in px)', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_bottom_footer_area_bottom_padding',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => 30,
		'priority'	   => 40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Color', 'bosa-bakery' ),
		'description'  => esc_html__( 'It can be used as a transparent background color over image.', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_footer_background_color',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => '',
		'priority'	   => 50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_footer_text_color',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => '#656565',
		'priority'	   => 60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Text Link Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_footer_text_link_color',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => '#383838',
		'priority'	   => 70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Text Link Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_bottom_footer_text_link_hover_color',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => '#130F09',
		'priority'	   => 80,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Bottom Footer Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_footer_style_font_control',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '14px',
			'text-transform' => 'none',
			'line-height'    => '1.6',
		),
		'priority'	   => 90,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => array( '.site-footer .site-info', '.site-footer .footer-menu ul li a' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Select Image', 'bosa-bakery' ),
		'type'         => 'image',
		'settings'     => 'bosa_bakery_bottom_footer_image',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => '',
		'choices'     => array(
			'save_as' => 'id',
		),
		'priority'	   => 100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_footer_layout',
				'operator' => 'contains',
				'value'    => array( 'footer_one', 'footer_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'    => esc_html__( 'Image Link', 'bosa-bakery' ),
		'type'     => 'link',
		'settings' => 'bosa_bakery_bottom_footer_image_link',
		'section'  => 'bosa_bakery_footer_style_options',
		'default'  => '',
		'priority'	   => 110,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_footer_layout',
				'operator' => 'contains',
				'value'    => array( 'footer_one', 'footer_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'    => esc_html__( 'Image Target', 'bosa-bakery' ),
		'description' => esc_html__( 'If enabled, the page will be open in an another browser tab.', 'bosa-bakery' ),
		'type'     => 'checkbox',
		'settings' => 'bosa_bakery_bottom_footer_image_target',
		'section'  => 'bosa_bakery_footer_style_options',
		'default'  => true,
		'priority'	   => 120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_footer_layout',
				'operator' => 'contains',
				'value'    => array( 'footer_one', 'footer_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Image Width', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_bottom_footer_image_width',
		'section'      => 'bosa_bakery_footer_style_options',
		'transport'    => 'postMessage',
		'default'      => 270,
		'choices'      => array(
			'min'  => 10,
			'max'  => 1140,
			'step' => 5,
		),
		'priority'	   => 130,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_footer_layout',
				'operator' => 'contains',
				'value'    => array( 'footer_one', 'footer_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_bottom_footer_image_size',
		'section'     => 'bosa_bakery_footer_style_options',
		'default'     => 'full',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	   => 140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_footer_layout',
				'operator' => 'contains',
				'value'    => array( 'footer_one', 'footer_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Footer Menu', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_footer_menu',
		'section'      => 'bosa_bakery_footer_style_options',
		'default'      => false,
		'priority'	   => 150,
	) );

	// Media Footer Options
	Kirki::add_section( 'bosa_bakery_media_footer_options', array(
	    'title'          => esc_html__( 'Media', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_footer_options',
	    'capability'     => 'edit_theme_options',
	    'priority' 		 => 30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Select Background Image', 'bosa-bakery' ),
		'description' => esc_html__( 'Recommended image size 1920x550 pixel.', 'bosa-bakery' ),
		'type'        => 'image',
		'settings'    => 'bosa_bakery_footer_image',
		'section'     => 'bosa_bakery_media_footer_options',
		'default'      => '',
		'choices'     => array(
			'save_as' => 'id',
		),
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_footer_image_size',
		'section'     => 'bosa_bakery_media_footer_options',
		'default'     => 'full',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_footer_image_size',
		'section'      => 'bosa_bakery_media_footer_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	   =>  30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Parallax Scrolling', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_footer_parallax_scrolling',
		'section'     => 'bosa_bakery_media_footer_options',
		'default'     => true,
		'priority'	  =>  40,
	) );

	// Footer Elements Options
	Kirki::add_section( 'bosa_bakery_elements_footer_options', array(
	    'title'          => esc_html__( 'Elements', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_footer_options',
	    'capability'     => 'edit_theme_options',
	    'priority' 		 => 40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Scroll to Top', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_scroll_top',
		'section'     => 'bosa_bakery_elements_footer_options',
		'default'     => false,
		'priority'	  =>  10,
	) );

	// Responsive
	Kirki::add_section( 'bosa_bakery_footer_responsive', array(
	    'title'          => esc_html__( 'Responsive', 'bosa-bakery' ),
	    'description'    => esc_html__( 'These options will only apply to Tablet and Mobile devices. Please
	    	click on below Tablet or Mobile Icons to see changes.', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'panel'			 => 'bosa_bakery_footer_options',
	    'priority' 		 => 50,		
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Footer Widget Area', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_responsive_footer_widget',
		'section'     => 'bosa_bakery_footer_responsive',
		'default'     => false,
		'priority'	  =>  10,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_footer_widget',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Scroll Top', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_scroll_top',
		'section'     => 'bosa_bakery_footer_responsive',
		'default'     => true,
		'priority'	  =>  20,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_scroll_top',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	// Blog Homepage Options

	// Main Banner / Post Slider 
	Kirki::add_section( 'bosa_bakery_main_slider_options', array(
	    'title'          => esc_html__( 'Banner / Post Slider', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => '10',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Section', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_main_slider',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Slider / Banner', 'bosa-bakery' ),
		'type'        => 'radio-buttonset',
		'settings'    => 'bosa_bakery_main_slider_controls',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'slider',
		'choices'  => array(
			'slider' => esc_html__( 'Slider', 'bosa-bakery' ),
			'banner' => esc_html__( 'Banner', 'bosa-bakery' ),

		),
		'priority'	  =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Height (in px)', 'bosa-bakery' ),
		'description' => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices.
		', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_main_slider_height',
		'section'     => 'bosa_bakery_main_slider_options',
		'transport'   => 'postMessage',
		'default'     => 550,
		'choices'     => array(
			'min'  => 50,
			'max'  => 1500,
			'step' => 10,
		),
		'priority'	  =>  30,
	) );

	// Slider settings
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_slider_image_size',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'bosa-bakery-1370-550',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Category', 'bosa-bakery' ),
		'description' => esc_html__( 'Recent posts will show if any category is not chosen. Recommended posts containing feature images size with 1920x940 pixel.', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_slider_category',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select category', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_post_categories(),
		'priority'	  =>  50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Slider Layout', 'bosa-bakery' ),
		'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_main_slider_layout',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'main_slider_one',
		'choices'     => apply_filters( 'bosa_bakery_slider_layout_filter', array(
			'main_slider_one'    => get_template_directory_uri() . '/assets/images/slider-layout-1.png',
		) ),
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'type'        => 'color',
		'label'       => esc_html__( 'Slider Background Color', 'bosa-bakery' ),
		'settings'    => 'bosa_bakery_background_color_main_slider',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '',
		'priority'	  =>  70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_slider_post_title_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#ffffff',
		'priority'	   =>  80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_slider_post_category_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#ebebeb',
		'priority'	   =>  90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_slider_post_meta_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#ebebeb',
		'priority'	   =>  100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_slider_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_slider_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_slider_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Icon Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_slider_post_meta_icon_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  110,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_slider_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_slider_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_slider_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_slider_post_text_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#ffffff',
		'priority'	   =>  120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_excerpt',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'type'        => 'color',
		'label'       => esc_html__( 'Hover Color', 'bosa-bakery' ),
		'settings'    => 'bosa_bakery_separate_hover_color_for_main_slider',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '#130F09',
		'priority'	  =>  130,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_main_slider_image_size',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	   =>  140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Width Controls', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_slider_width_controls',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'full',
		'choices'  => array(
			'full'   => esc_html__( 'Full', 'bosa-bakery' ),
			'boxed'  => esc_html__( 'Boxed', 'bosa-bakery' ),
		),
		'priority'	  =>  150,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Slide Effect', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_main_slider_effect',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'fade',
		'choices'  => array(
			'fade'             => esc_html__( 'Fade', 'bosa-bakery' ),
			'horizontal-slide' => esc_html__( 'Slide', 'bosa-bakery' ),
		),
		'priority'	  =>  160,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Fade Control Time ( in sec )', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_slider_fade_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => 5,
		'choices' => array(
				'min' => '3',
				'max' => '60',
				'step'=> '1',
		),
		'priority'	   =>  170,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_main_slider_effect',
				'operator' => '==',
				'value'    => 'fade',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Content Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_main_slider_content_alignment',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'center',
		'choices'  => array(
			'center' => esc_html__( 'Center', 'bosa-bakery' ),
			'left'   => esc_html__( 'Left', 'bosa-bakery' ),
			'right'  => esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	  =>  180,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Display Slider on', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_display_main_slider_on',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'below_header',
		'choices'  => array(
			'below_header'            => esc_html__( 'Below Header', 'bosa-bakery' ),
			'below_featured_posts' => esc_html__( 'Below Featured Posts', 'bosa-bakery' ),
		),
		'priority'	  =>  190,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Arrows', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_slider_arrows',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => false,
		'priority'	   =>  200,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Dots', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_slider_dots',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => false,
		'priority'	   =>  210,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Auto Play', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_slider_autoplay',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => true,
		'priority'	   =>  220,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Auto Play Timeout ( in sec )', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_slider_autoplay_speed',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => 4,
		'choices' => array(
				'min' => '1',
				'max' => '60',
				'step'=> '1',
		),
		'priority'	   =>  230,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_disable_slider_autoplay',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post View Number', 'bosa-bakery' ),
		'description'  => esc_html__( 'Number of posts to show.', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_slider_posts_number',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => 6,
		'choices' => array(
				'min' => '1',
				'max' => '20',
				'step' => '1',
		),
		'priority'	   =>  240,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Title', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_title',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,	
		'priority'	  =>  250,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_slider_title_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '50px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.4',
		),
		'priority'	  =>  260,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable category', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_category',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  270,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );	

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Category Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_slider_cat_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '400',
			'font-size'      => '15px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.6',
		),
		'priority'	  =>  280,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-header .cat-links a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_category',
				'operator' => '==',
				'value'    => false,
				),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Date', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_date',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  290,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Author', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_author',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  300,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Comments Link', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_comment',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  310,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Meta Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_slider_meta_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1.6',
		),
		'priority'	  =>  320,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-meta a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				array(
				'setting'  => 'bosa_bakery_hide_slider_date',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_slider_author',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_slider_comment',
				'operator' => '==',
				'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Excerpt', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_excerpt',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  330,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Excerpt Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_slider_excerpt_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '400',
			'font-size'      => '15px',
			'text-transform' => 'initial',
			'line-height'    => '1.8',
		),
		'priority'	  =>  340,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-text p',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_excerpt',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Excerpt Length', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_slider_excerpt_length',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 25,
		'choices' => array(
			'min' => '5',
			'max' => '100',
			'step' => '5',
		),
		'priority'	  =>  350,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_slider_excerpt',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Slider Button', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_slider_button',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  360,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Slider Button', 'bosa-bakery' ),
		'type'        => 'repeater',
		'settings'    => 'bosa_bakery_main_slider_button_repeater',
		'section'     => 'bosa_bakery_main_slider_options',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Button', 'bosa-bakery' ),
		),
		'default' => array(
			array(
				'slider_btn_type' 			=> 'button-outline',
				'slider_btn_bg_color' 		=> '#382E1E',
				'slider_btn_border_color' 	=> '#ffffff',
				'slider_btn_text_color' 	=> '#ffffff',
				'slider_btn_hover_color' 	=> '#130F09',
				'slider_btn_text' 			=> '',
				'slider_btn_radius' 		=> 0,
			),		
		),
		'fields' => array(
			'slider_btn_type' => array(
				'label'       => esc_html__( 'Button Type', 'bosa-bakery' ),
				'type'        => 'select',
				'default'     => 'button-outline',
				'choices'  => array(
					'button-primary' => esc_html__( 'Background Button', 'bosa-bakery' ),
					'button-outline' => esc_html__( 'Border Button', 'bosa-bakery' ),
					'button-text'    => esc_html__( 'Text Only Button', 'bosa-bakery' ),
				),
			),
			'slider_btn_bg_color' => array(
				'label'       => esc_html__( 'Button Background Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#382E1E',
			),
			'slider_btn_border_color' => array(
				'label'       => esc_html__( 'Button Border Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#ffffff',
			),
			'slider_btn_text_color' => array(
				'label'       => esc_html__( 'Button Text Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#ffffff',
			),
			'slider_btn_hover_color' => array(
				'label'       => esc_html__( 'Button Hover Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#130F09',
			),
			'slider_btn_text' => array(
				'label'       => esc_html__( 'Text', 'bosa-bakery' ),
				'type'        => 'text',
				'default'	  => '',
			),
			'slider_btn_radius' => array(
				'label'       => esc_html__( 'Button Radius (px)', 'bosa-bakery' ),
				'type'        => 'number',
				'default'	  => 0,
				'choices'     => array(
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				),
			),
		),
		'choices' => array(
			'limit' => 1,
		),
		'priority'	  =>  370,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_button',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Slider Button Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_slider_button_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '500',
			'font-size'      => '15px',
			'text-transform' => 'capitalize',
			'line-height'    => '1',
		),
		'priority'	  =>  380,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .slide-inner .banner-content .button-container a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'slider',
			),
			array(
				'setting'  => 'bosa_bakery_hide_slider_button',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Banner settings
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_banner_image_size',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'bosa-bakery-1920-550',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  390,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'type'        => 'color',
		'label'       => esc_html__( 'Banner Background Color', 'bosa-bakery' ),
		'settings'    => 'bosa_bakery_background_color_main_banner',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '',
		'priority'	  =>  400,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_banner_title_color',
		'section'	   => 'bosa_bakery_main_slider_options',
		'default'      => '#ffffff',
		'priority'	   =>  410,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_title',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Subtitle Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_banner_subtitle_color',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => '#ffffff',
		'priority'	   =>  420,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_subtitle',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Select Image', 'bosa-bakery' ),
		'description' => esc_html__( 'Recommended image size 1920x940 pixel.', 'bosa-bakery' ),
		'type'        => 'image',
		'settings'    => 'bosa_bakery_banner_image',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'	  => '',
		'priority'	  =>  430,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
		'choices'     => array(
			'save_as' => 'id',
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_main_banner_image_size',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	   =>  440,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Width Controls', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_banner_width_controls',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'full',
		'choices'  => array(
			'full'   => esc_html__( 'Full', 'bosa-bakery' ),
			'boxed'  => esc_html__( 'Boxed', 'bosa-bakery' ),
		),
		'priority'	  =>  450,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Content Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_main_banner_content_alignment',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'center',
		'choices'  => array(
			'center' => esc_html__( 'Center', 'bosa-bakery' ),
			'left'   => esc_html__( 'Left', 'bosa-bakery' ),
			'right'  => esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	  =>  460,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Display Banner on', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_display_banner_on',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => 'below_header',
		'choices'  => array(
			'below_header'            => esc_html__( 'Below Header', 'bosa-bakery' ),
			'below_featured_posts' => esc_html__( 'Below Featured Posts', 'bosa-bakery' ),
		),
		'priority'	  =>  470,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Title', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_banner_title',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  480,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_banner_title',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '',
		'priority'	  =>  490,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_title',
				'operator' => '==',
				'value'    => false,
			),
		),
		'partial_refresh' => array(
			'bosa_bakery_banner_title' => array(
				'selector'        => '.banner_title',
				'render_callback' => 'bosa_bakery_get_banner_title',
			)
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_banner_title_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '50px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.4',
		),
		'priority'	  =>  500,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Subtitle', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_banner_subtitle',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  510,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Subtitle', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_banner_subtitle',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => '',
		'priority'	  =>  520,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_subtitle',
				'operator' => '==',
				'value'    => false,
			),
		),
		'partial_refresh' => array(
			'bosa_bakery_banner_subtitle' => array(
				'selector'        => '.banner_subtitle',
				'render_callback' => 'bosa_bakery_get_banner_subtitle',
			)
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Subtitle Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_banner_subtitle_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '400',
			'font-size'      => '15px',
			'text-transform' => 'initial',
			'line-height'    => '1.8',
		),
		'priority'	  =>  530,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .entry-subtitle',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_subtitle',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Banner Buttons', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_banner_buttons',
		'section'     => 'bosa_bakery_main_slider_options',
		'default'     => false,
		'priority'	  =>  540,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Banner Buttons', 'bosa-bakery' ),
		'type'        => 'repeater',
		'settings'    => 'bosa_bakery_main_banner_buttons_repeater',
		'section'     => 'bosa_bakery_main_slider_options',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Button', 'bosa-bakery' ),
		),
		'default' => array(
			array(
				'banner_btn_type' 			=> 'button-outline',
				'banner_btn_bg_color' 		=> '#382E1E',
				'banner_btn_border_color' 	=> '#ffffff',
				'banner_btn_text_color' 	=> '#ffffff',
				'banner_btn_hover_color' 	=> '#130F09',
				'banner_btn_text' 			=> '',
				'banner_btn_link' 			=> '',
				'banner_btn_target'			=> true,
				'banner_btn_radius' 		=> 0,
			),		
		),
		'fields' => array(
			'banner_btn_type' => array(
				'label'       => esc_html__( 'Button Type', 'bosa-bakery' ),
				'type'        => 'select',
				'default'     => 'button-outline',
				'choices'  => array(
					'button-primary' => esc_html__( 'Background Button', 'bosa-bakery' ),
					'button-outline' => esc_html__( 'Border Button', 'bosa-bakery' ),
					'button-text'    => esc_html__( 'Text Only Button', 'bosa-bakery' ),
				),
			),
			'banner_btn_bg_color' => array(
				'label'       => esc_html__( 'Button Background Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#382E1E',
			),
			'banner_btn_border_color' => array(
				'label'       => esc_html__( 'Button Border Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#ffffff',
			),
			'banner_btn_text_color' => array(
				'label'       => esc_html__( 'Button Text Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#ffffff',
			),
			'banner_btn_hover_color' => array(
				'label'       => esc_html__( 'Button Hover Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#130F09',
			),
			'banner_btn_text' => array(
				'label'       => esc_html__( 'Text', 'bosa-bakery' ),
				'type'        => 'text',
				'default'	  => '',
			),
			'banner_btn_link' => array(
				'label'       => esc_html__( 'Link', 'bosa-bakery' ),
				'type'        => 'text',
				'default'	  => '',	
			),
			'banner_btn_target' => array(
				'label'       => esc_html__( 'Open Link in New Window', 'bosa-bakery' ),
				'type'        => 'checkbox',
				'default'	  => true,	
			),
			'banner_btn_radius' => array(
				'label'       => esc_html__( 'Button Radius (px)', 'bosa-bakery' ),
				'type'        => 'number',
				'default'	  => 0,
				'choices'     => array(
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				),
			),
		),
		'choices' => array(
			'limit' => 1,
		),
		'priority'	  =>  550,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_buttons',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Banner Button Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_main_banner_button_font_control',
		'section'      => 'bosa_bakery_main_slider_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '500',
			'font-size'      => '15px',
			'text-transform' => 'capitalize',
			'line-height'    => '1',
		),
		'priority'	  =>  560,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-banner .banner-content .button-container a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_main_slider_controls',
				'operator' => '==',
				'value'    => 'banner',
			),
			array(
				'setting'  => 'bosa_bakery_disable_banner_buttons',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Featured Posts Options
	Kirki::add_section( 'bosa_bakery_feature_posts_options', array(
	    'title'          => esc_html__( 'Featured Posts', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => '20',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Featured Posts Section', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_feature_posts_section',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => false,
		'priority'	   =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_feature_posts_section_title',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => true,
		'priority'	   =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_feature_posts_section_title',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => '',
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_feature_posts_section_title_font_control',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '24px',
			'text-transform' => 'none',
			'line-height'    => '1.2',
		),
		'priority'	  =>  40,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-feature-posts-area .section-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Description', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_feature_posts_section_description',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => true,
		'priority'	   =>  50,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Description', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_feature_posts_section_description',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => '',
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Description Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_feature_posts_section_description_font_control',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '16px',
			'text-transform' => 'none',
			'line-height'    => '1.8',
		),
		'priority'	  =>  70,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-feature-posts-area .section-title-wrap p',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title and Description Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_feature_posts_section_title_desc_alignment',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'left',
		'choices'     => array(
			'left'	 	=> esc_html__( 'Left', 'bosa-bakery' ),
			'center'  	=> esc_html__( 'Center', 'bosa-bakery' ),   
			'right'		=> esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	  	  =>  80,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_feature_posts_section_title',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_disable_feature_posts_section_description',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Layout', 'bosa-bakery' ),
		'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_feature_posts_section_layouts',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'feature_one',
		'choices'     => apply_filters( 'bosa_bakery_feature_posts_section_layouts_filter', array(
			'feature_one'    => get_template_directory_uri() . '/assets/images/feature-post-layout-1.png',
		) ),
		'priority'	  =>  90,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_title_color',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_category_bgcolor',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#382E1E',
		'priority'	   =>  110,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_featured_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_category_color',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_featured_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_meta_color',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  130,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Icon Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_meta_icon_color',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_featured_posts_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_featured_post_hover_color',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => '#130F09',
		'priority'	   =>  150,
	) );


	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Columns', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_feature_posts_columns',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'three_columns',
		'placeholder' => esc_attr__( 'Select category', 'bosa-bakery' ),
		'choices'  => array(
			'one_column'    => esc_html__( '1 Column', 'bosa-bakery' ),
			'two_columns'   => esc_html__( '2 Columns', 'bosa-bakery' ),
			'three_columns' => esc_html__( '3 Columns', 'bosa-bakery' ),
			'four_columns'  => esc_html__( '4 Columns', 'bosa-bakery' ),
		),
		'priority'	   =>  160,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Category', 'bosa-bakery' ),
		'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_feature_posts_category',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select category', 'bosa-bakery' ), 
		'choices'     => bosa_bakery_get_post_categories(),
		'priority'	   =>  170,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Featured Posts Overlay Opacity', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_feature_posts_overlay_opacity',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 4,
		'choices' => array(
			'min' => '0',
			'max' => '9',
			'step' => '1',
		),
		'priority'	   =>  180,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post View Number', 'bosa-bakery' ),
		'description'  => esc_html__( 'Number of posts to show.', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_feature_posts_posts_number',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => 6,
		'choices' => array(
			'min' => '1',
			'max' => '48',
			'step' => '1',
		),
		'priority'	   =>  190,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Height (in px)', 'bosa-bakery' ),
		'description'  => esc_html__( 'This option will only apply to Desktop. Please click on below Desktop Icon to see changes. Automatically adjust by theme default in the responsive devices.
		', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_feature_posts_height',
		'section'      => 'bosa_bakery_feature_posts_options',
		'transport'    => 'postMessage',
		'default'      => 250,
		'choices' => array(
			'min' => '100',
			'max' => '1200',
			'step' => '10',
		),
		'priority'	   =>  200,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_feature_post_image_size',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'bosa-bakery-420-300',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  210,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Background Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_feature_posts_image_size',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'	   =>  220,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Posts Border Radius (px)', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_feature_posts_radius',
		'section'     => 'bosa_bakery_feature_posts_options',
		'transport'	  => 'postMessage', 
		'default'     =>  0,
		'choices'     => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'	   =>  230,
	) );

		Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Post Text Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_feature_posts_text_alignment',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'text-left',
		'choices'     => array(
			'text-left'	 	=> esc_html__( 'Left', 'bosa-bakery' ),
			'text-center'  	=> esc_html__( 'Center', 'bosa-bakery' ),   
			'text-right'	=> esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	   =>  240,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Post Content Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_feature_posts_title_alignment',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => 'align-bottom',
		'choices'     => array(
			'align-top'	 	=> esc_html__( 'Top', 'bosa-bakery' ),
			'align-center'  => esc_html__( 'Center', 'bosa-bakery' ),   
			'align-bottom'  => esc_html__( 'Bottom', 'bosa-bakery' ),
		),
		'priority'	   =>  250,
	) ); 

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Title', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_feature_posts_title',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  260,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_feature_posts_font_control',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '500',
			'font-size'      => '18px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.4',
		),
		'priority'	  =>  270,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.post .feature-posts-content .feature-posts-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Title Divider', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_feature_title_divider',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  280,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_title',
				'operator' => '==',
				'value'    => false,
			),
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Posts category', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_featured_posts_category',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  290,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_featured_posts_cat_font_control',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1',
		),
		'priority'	  =>  300,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.post .feature-posts-content .cat-links a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_featured_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Date', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_featured_posts_date',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  310,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Author', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_featured_posts_author',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  320,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Comment', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_featured_posts_comment',
		'section'     => 'bosa_bakery_feature_posts_options',
		'default'     => false,
		'priority'	  =>  330,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_featured_posts_meta_font_control',
		'section'      => 'bosa_bakery_feature_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1.6',
		),
		'priority'	  =>  340,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.post .feature-posts-content .entry-meta a',
			),
		),
		'active_callback' => array(
			array(
				array(
				'setting'  => 'bosa_bakery_hide_featured_posts_date',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_featured_posts_author',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_featured_posts_comment',
				'operator' => '==',
				'value'    => false,
				),
			),
		),
	) );

	// Latest Posts Options
	Kirki::add_section( 'bosa_bakery_latest_posts_options', array(
	    'title'          => esc_html__( 'Latest Posts', 'bosa-bakery' ),
	    'description'    => esc_html__( 'More options are available in Blog Page Section.', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => '30',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Latest Posts Section From Homepage', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_latest_posts_section',
		'section'     => 'bosa_bakery_latest_posts_options',
		'default'     => false,
		'priority'	  =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_latest_posts_section_title',
		'section'      => 'bosa_bakery_latest_posts_options',
		'default'      => true,
		'priority'	   =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_latest_posts_section_title',
		'section'     => 'bosa_bakery_latest_posts_options',
		'default'     => '',
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_latest_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_latest_posts_section_title_font_control',
		'section'      => 'bosa_bakery_latest_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '24px',
			'text-transform' => 'none',
			'line-height'    => '1.2',
		),
		'priority'	  =>  40,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-post-area .section-title-wrap .section-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_latest_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Description', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_latest_posts_section_description',
		'section'      => 'bosa_bakery_latest_posts_options',
		'default'      => true,
		'priority'	   =>  50,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Description', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_latest_posts_section_description',
		'section'     => 'bosa_bakery_latest_posts_options',
		'default'     => '',
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_latest_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Description Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_latest_posts_section_description_font_control',
		'section'      => 'bosa_bakery_latest_posts_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '16px',
			'text-transform' => 'none',
			'line-height'    => '1.8',
		),
		'priority'	  =>  70,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-post-area .section-title-wrap p',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_latest_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title and Description Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_latest_posts_section_title_desc_alignment',
		'section'     => 'bosa_bakery_latest_posts_options',
		'default'     => 'left',
		'choices'     => array(
			'left'	 	=> esc_html__( 'Left', 'bosa-bakery' ),
			'center'  	=> esc_html__( 'Center', 'bosa-bakery' ),   
			'right'		=> esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	   =>  80,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_latest_posts_section_title',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_disable_latest_posts_section_description',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Category', 'bosa-bakery' ),
		'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_latest_posts_category',
		'section'     => 'bosa_bakery_latest_posts_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select category', 'bosa-bakery' ), 
		'choices'     => bosa_bakery_get_post_categories(),
		'priority'	  =>  90,
	) );

	// Highlighted Posts Options
	Kirki::add_section( 'bosa_bakery_highlight_posts_options', array(
	    'title'          => esc_html__( 'Highlighted Posts', 'bosa-bakery' ),
	    'panel'          => 'bosa_bakery_blog_homepage_options',
	    'capability'     => 'edit_theme_options',
	    'priority'       => '40',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Highlighted Posts Section', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_section',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => false,
		'priority'	   =>  10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_section_title',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => true,
		'priority'	   =>  20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_highlight_posts_section_title',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => '',
		'priority'	  =>  30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_highlight_posts_section_title_font_control',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '600',
			'font-size'      => '24px',
			'text-transform' => 'none',
			'line-height'    => '1.2',
		),
		'priority'	  =>  40,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-highlight-post .section-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_section_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Section Description', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_section_description',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => true,
		'priority'	   =>  50,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Description', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_highlight_posts_section_description',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => '',
		'priority'	  =>  60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Section Description Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_highlight_posts_section_description_font_control',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => 'regular',
			'font-size'      => '16px',
			'text-transform' => 'none',
			'line-height'    => '1.8',
		),
		'priority'	  =>  70,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.section-highlight-post .section-title-wrap p',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_section_description',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Title and Description Alignment', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_highlight_posts_section_title_desc_alignment',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => 'left',
		'choices'     => array(
			'left'	 	=> esc_html__( 'Left', 'bosa-bakery' ),
			'center'  	=> esc_html__( 'Center', 'bosa-bakery' ),   
			'right'		=> esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'	   => 80,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_highlight_posts_section_title',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_disable_highlight_posts_section_description',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Section Layout', 'bosa-bakery' ),
		'description' => esc_html__( 'Select layout & scroll below to change its options', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_highlight_posts_section_layouts',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => 'highlighted_one',
		'choices'     => array(
			'highlighted_one'    => get_template_directory_uri() . '/assets/images/highlight-layout-1.png',
			'highlighted_two'    => get_template_directory_uri() . '/assets/images/highlight-layout-2.png',
		),
		'priority'	   =>  90,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Category', 'bosa-bakery' ),
		'description' => esc_html__( 'Recent posts will show if any category is not chosen.', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_highlight_posts_category',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select category', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_post_categories(),
		'priority'	  =>  100,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_highlight_post_image_size',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'	  =>  110,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_title_color',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#030303',
		'priority'	   =>  120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );
	
	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_category_bgcolor',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#382E1E',
		'priority'	   =>  130,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_highlight_posts_section_layouts',
				'operator' => '==',
				'value'    => 'highlighted_one',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_category_color',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#FFFFFF',
		'priority'	   =>  140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_meta_color',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#7a7a7a',
		'priority'	   =>  150,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Icon Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_meta_icon_color',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#382E1E',
		'priority'	   =>  160,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_highlight_posts_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),

	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_highlight_post_hover_color',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => '#130F09',
		'priority'	   =>  170,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Post Border Radius (px)', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'     => 'bosa_bakery_highlight_posts_radius',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'transport'   => 'postMessage',
		'default'      =>  0,
		'choices'     => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'	   =>  180,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Slider Columns', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_highlight_posts_slides_show',
 		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => 3,
		'priority'	   => 190,
		'choices' => array(
			'min' => '2',
			'max' => '4',
			'step'=> '1',
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Arrows', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_arrows',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => false,
		'priority'	   => 200,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Dots', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_dots',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => false,
		'priority'	   => 210,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Slider Auto Play', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_highlight_posts_autoplay',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => true,
		'priority'	   => 220,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Slider Auto Play Timeout ( in sec )', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_highlight_posts_autoplay_speed',
 		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => 4,
		'choices' => array(
			'min' => '1',
			'max' => '60',
			'step'=> '1',
		),
		'priority'	   => 230,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_autoplay',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Slider Post View Number', 'bosa-bakery' ),
		'description'  => esc_html__( 'Number of posts to show.', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_highlight_posts_posts_number',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'      => 6,
		'choices' => array(
			'min' => '1',
			'max' => '20',
			'step' => '1',
		),
		'priority'	   => 240,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post category', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_category',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 250,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_highlight_posts_cat_font_control',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1',
		),
		'priority'	  => 260,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.highlight-post-slider .post .cat-links a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Title', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_title',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 270,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_highlight_posts_title_font_control',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '500',
			'font-size'      => '18px',
			'text-transform' => 'none',
			'line-height'    => '1.4',
		),
		'priority'	  => 280,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.highlight-post-slider .post .entry-content .entry-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Date', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_date',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 290,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Author', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_author',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 300,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Comment', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_comment',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 310,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_highlight_posts_meta_font_control',
		'section'      => 'bosa_bakery_highlight_posts_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1.6',
		),
		'priority'	  => 320,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.highlight-post-slider .post .entry-meta a',
			),
		),
		'active_callback' => array(
			array(
				array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_date',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_author',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_highlight_posts_comment',
				'operator' => '==',
				'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Image', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_highlight_posts_image',
		'section'     => 'bosa_bakery_highlight_posts_options',
		'default'     => false,
		'priority'	  => 330,
	) );

	// Responsive
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Main Slider / Banner', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_mobile_main_slider',
		'section'     => 'bosa_bakery_blog_page_responsive',
		'default'     => false,
		'priority'	  => 10,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_main_slider',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Featured Posts', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_feature_posts',
		'section'      => 'bosa_bakery_blog_page_responsive',
		'default'      => false,
		'priority'	   => 20,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_feature_posts_section',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Latest Posts', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_latest_posts',
		'section'      => 'bosa_bakery_blog_page_responsive',
		'default'      => false,
		'priority'	   => 30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_latest_posts_section',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Highlighted Posts', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_mobile_highlight_posts',
		'section'      => 'bosa_bakery_blog_page_responsive',
		'default'      => false,
		'priority'	   => 40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_disable_highlight_posts_section',
				'operator' => '=',
				'value'    => false,
			),
		),
	) );


	// Blog Page Options
    Kirki::add_panel( 'bosa_bakery_blog_page_options', array(
	    'title'          => esc_html__( 'Blog Page', 'bosa-bakery' ),
	    'priority'       => '130',
	) );

    // Blog Page Style Options
	Kirki::add_section( 'bosa_bakery_blog_page_style_options', array(
	    'title'      => esc_html__( 'Style', 'bosa-bakery' ),
	    'panel'      => 'bosa_bakery_blog_page_options',	   
	    'capability' => 'edit_theme_options',
	    'priority'   => '10',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Post Layouts', 'bosa-bakery' ),
		'description' => esc_html__( 'Grid / List / Single', 'bosa-bakery' ),
		'type'        => 'radio-image',
		'settings'    => 'bosa_bakery_archive_post_layout',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => 'list',
		'choices'  	  => apply_filters( 'bosa_bakery_archive_post_layout_filter', array(
			'grid'           => get_template_directory_uri() . '/assets/images/grid-layout.png',
			'list'           => get_template_directory_uri() . '/assets/images/list-layout.png',
			'single'         => get_template_directory_uri() . '/assets/images/single-layout.png',
		) ),
		'priority'    => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Post View Number', 'bosa-bakery' ),
		'description' => esc_html__( 'Number of posts to show.', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_archive_post_per_page',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => 10,
		'choices'  => array(
			'min' => '0',
			'max' => '20',
			'step' => '1',
		),
		'priority'    => 20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_post_image_size',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => '',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'    => 30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Posts Border Radius (px)', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_latest_posts_radius',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     =>  0,
		'transport'   => 'postMessage',
		'choices'     => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_title_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#101010',
		'priority'     => 50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_post_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_category_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#382E1E',
		'priority'     => 60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_meta_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#7a7a7a',
		'priority'     => 70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				array(
					'setting'  => 'bosa_bakery_hide_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Icon Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_meta_icon_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#382E1E',
		'priority'     => 80,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_hide_date',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_author',
					'operator' => '==',
					'value'    => false,
				),
				array(
					'setting'  => 'bosa_bakery_hide_comment',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_text_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#333333',
		'priority'     => 90,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_hide_blog_page_excerpt',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Hover Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_blog_post_hover_color',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'      => '#130F09',
		'priority'     => 100,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Title', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_post_title',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 110,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_blog_post_title_font_control',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '500',
			'font-size'      => '21px',
			'text-transform' => 'none',
			'line-height'    => '1.4',
		),
		'priority'    => 120,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '#primary article .entry-title',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_post_title',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Category', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_category',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 130,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Category Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_blog_post_cat_font_control',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'uppercase',
			'line-height'    => '1.6',
		),
		'priority'    => 140,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '#primary .post .entry-content .entry-header .cat-links a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_category',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Date', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_date',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 150,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Author', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_author',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 160,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Comments Link', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_comment',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 170,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Meta Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_blog_post_meta_font_control',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'  => array(
			'font-family'    => 'Poppins',
			'variant'        => '400',
			'font-size'      => '13px',
			'text-transform' => 'capitalize',
			'line-height'    => '1.6',
		),
		'priority'    => 180,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '#primary .entry-meta',
			),
		),
		'active_callback' => array(
			array(
				array(
				'setting'  => 'bosa_bakery_hide_date',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_author',
				'operator' => '==',
				'value'    => false,
				),
				array(
				'setting'  => 'bosa_bakery_hide_comment',
				'operator' => '==',
				'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Excerpt', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_blog_page_excerpt',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => false,
		'priority'    => 190,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Excerpt Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_blog_post_excerpt_font_control',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '400',
			'font-size'      => '15px',
			'text-transform' => 'initial',
			'line-height'    => '1.8',
		),
		'priority'    => 200,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '#primary .entry-text p',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_blog_page_excerpt',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Excerpt Length', 'bosa-bakery' ),
		'description' => esc_html__( 'Select number of words to display in excerpt', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_post_excerpt_length',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => 15,
		'choices' => array(
			'min'  => '5',
			'max'  => '60',
			'step' => '5',
		),
		'priority'    => 210,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_blog_page_excerpt',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Post Button', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_post_button',
		'section'     => 'bosa_bakery_blog_page_style_options',
		'default'     => true,
		'priority'    => 220,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Button', 'bosa-bakery' ),
		'type'         => 'repeater',
		'settings'     => 'bosa_bakery_blog_page_button_repeater',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'row_label' => array(
			'type'  => 'text',
			'value' => esc_html__( 'Button', 'bosa-bakery' ),
		),
		'default' => array(
			array(
				'blog_btn_type' 		=> 'button-text',
				'blog_btn_bg_color'		=> '#382E1E',
				'blog_btn_border_color'	=> '#1a1a1a',
				'blog_btn_text_color'	=> '#1a1a1a',
				'blog_btn_hover_color'	=> '#130F09',
				'blog_btn_text' 		=> '',
				'blog_btn_radius'		=> 0,
			),		
		),
		'priority'    => 230,
		'fields' => array(
			'blog_btn_type' => array(
				'label'       => esc_html__( 'Button Type', 'bosa-bakery' ),
				'type'        => 'select',
				'default'     => 'button-text',
				'choices'  => array(
					'button-primary' => esc_html__( 'Background Button', 'bosa-bakery' ),
					'button-outline' => esc_html__( 'Border Button', 'bosa-bakery' ),
					'button-text'    => esc_html__( 'Text Only Button', 'bosa-bakery' ),
				),
			),
			'blog_btn_bg_color' => array(
				'label'       => esc_html__( 'Button Background Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For background button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#382E1E',
			),
			'blog_btn_border_color' => array(
				'label'       => esc_html__( 'Button Border Color', 'bosa-bakery' ),
				'description' => esc_html__( 'For border button type only.', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#1a1a1a',
			),
			'blog_btn_text_color' => array(
				'label'       => esc_html__( 'Button Text Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#1a1a1a',
			),
			'blog_btn_hover_color' => array(
				'label'       => esc_html__( 'Button Hover Color', 'bosa-bakery' ),
				'type'        => 'text',
				'default'     => '#130F09',
			),
			'blog_btn_text' => array(
				'label'       => esc_html__( 'Button Text', 'bosa-bakery' ),
				'type'        => 'text',
				'default' 	  => '',
			),
			'blog_btn_radius' => array(
				'label'       => esc_html__( 'Button Radius (px)', 'bosa-bakery' ),
				'type'        => 'number',
				'default'	  => 0,
				'choices'     => array(
					'min'  => 0,
					'max'  => 50,
					'step' => 1,
				),
			),	
		),
		'choices' => array(
			'limit' => 1,
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_post_button',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Post Button Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_blog_post_button_font_control',
		'section'      => 'bosa_bakery_blog_page_style_options',
		'default'  => array(
			'font-family'    => 'Open Sans',
			'variant'        => '600',
			'font-size'      => '14px',
			'text-transform' => 'capitalize',
			'line-height'    => '1.6',
		),
		'priority'    => 240,
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '#primary .post .entry-text .button-container a',
			),
		),
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_post_button',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Blog Page Elements Options
	Kirki::add_section( 'bosa_bakery_blog_page_elements_options', array(
	    'title'      => esc_html__( 'Elements', 'bosa-bakery' ),
	    'panel'      => 'bosa_bakery_blog_page_options',	   
	    'capability' => 'edit_theme_options',
	    'priority'   => '20',
	) );

	Kirki::add_field( 'bosa-bakery',  array(
		'label'       => esc_html__( 'Blog Archive Pages Title', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_disable_blog_page_title',
		'section'     => 'bosa_bakery_blog_page_elements_options',
		'default'     => 'enable_all_pages',
		'choices'     => array(
			'enable_all_pages'  => esc_html__( 'Enable in all', 'bosa-bakery' ),
			'disable_all_pages' => esc_html__( 'Disable from all', 'bosa-bakery' ),
		),
		'priority'    => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Pagination', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_pagination',
		'section'     => 'bosa_bakery_blog_page_elements_options',
		'default'     => false,
		'priority'    => 20,
	) );

	// Single Post Options
	Kirki::add_section( 'bosa_bakery_single_post_options', array(
	    'title'          => esc_html__( 'Single Post', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '140',
	) );

	Kirki::add_field( 'bosa-bakery',  array(
		'label'       => esc_html__( 'Post Title', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_disable_single_post_title',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 'enable_all_pages',
		'choices'     => array(
			'enable_all_pages'    => esc_html__( 'Enable in all', 'bosa-bakery' ),
			'disable_all_pages'   => esc_html__( 'Disable from all', 'bosa-bakery' ),
		),
		'priority'    => 10,
	) );

	Kirki::add_field( 'bosa-bakery',  array(
		'label'       => esc_html__( 'Post Title Position', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_post_title_position',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 'above_feature_image',
		'choices'     => array(
			'below_feature_image' => esc_html__( 'Below Feature Image', 'bosa-bakery' ),
			'above_feature_image' => esc_html__( 'Top of the Page', 'bosa-bakery' ),
		),
		'priority'    => 20,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_post',
					'operator' => '==',
					'value'    => true,
				),
				array(
					'setting'  => 'bosa_bakery_header_layout',
					'operator' => '!=',
					'value'    => 'header_two',
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Feature Image', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_single_feature_image',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 'show_in_all_pages',
		'choices' => array(
			'show_in_all_pages'    => esc_html__( 'Show in all Pages', 'bosa-bakery' ),
			'disable_in_all_pages' => esc_html__( 'Disable in all Pages', 'bosa-bakery' ),
		),
		'priority'    => 30,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_post',
					'operator' => '==',
					'value'    => true,
				),
				array(
					'setting'  => 'bosa_bakery_header_layout',
					'operator' => '!=',
					'value'    => 'header_two',
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_single_post_image_size',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 'bosa-bakery-1370-550',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'    => 40,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_single_feature_image',
					'operator' => '==',
					'value'    => 'show_in_all_pages',
				),
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_post',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Transparent Header', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_transparent_header_post',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => true,
		'priority'    => 50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Transparent Header Banner Height (in px)', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_transparent_header_banner_post_height',
		'section'     => 'bosa_bakery_single_post_options',
		'transport'   => 'postMessage',
		'default'     => 400,
		'choices'     => array(
			'min'  => 50,
			'max'  => 1500,
			'step' => 10,
		),
		'priority'    => 60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_post',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Banner Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_transparent_header_banner_post_size',
		'section'      => 'bosa_bakery_single_post_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'    => 70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_post',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Transparent Header Banner Overlay Opacity', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_transparent_header_banner_post_opacity',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 4,
		'choices' => array(
			'min' => '0',
			'max' => '9',
			'step' => '1',
		),
		'priority'    => 80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_post',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Date', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_single_post_date',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 90,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Comments Link', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_single_post_comment',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 100,
	) );
	
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable category', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_single_post_category',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 110,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Tag Links', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_single_post_tag_links',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 120,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Author', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_single_post_author',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 130,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Author Section Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_single_post_author_title',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => esc_html__( 'About the Author', 'bosa-bakery' ),
		'priority'    => 140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_single_post_author',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Related Posts', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_hide_related_posts',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => false,
		'priority'    => 150,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Related Posts Section Title', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_related_posts_title',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => esc_html__( 'You may also like these', 'bosa-bakery' ),
		'priority'    => 160,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_related_posts',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'description' => esc_html__( 'For related posts.', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_related_post_image_size',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 'bosa-bakery-420-300',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'    => 170,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_related_posts',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Related Posts Items', 'bosa-bakery' ),
		'description' => esc_html__( 'Total number of related posts to show.', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_related_posts_count',
		'section'     => 'bosa_bakery_single_post_options',
		'default'     => 4,
		'choices' => array(
			'min' => '1',
			'max' => '12',
			'step' => '1',
		),
		'priority'    => 180,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_hide_related_posts',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// Pages Options
	Kirki::add_section( 'bosa_bakery_pages_options', array(
	    'title'          => esc_html__( 'Pages', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '150',
	) );

	Kirki::add_field( 'bosa-bakery',  array(
		'label'       => esc_html__( 'Page Title', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_disable_page_title',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => 'disable_front_page',
		'choices'     => array(
			'disable_all_pages'   => esc_html__( 'Disable from all', 'bosa-bakery' ),
			'enable_all_pages'    => esc_html__( 'Enable in all', 'bosa-bakery' ),
			'disable_front_page'  => esc_html__( 'Disable from frontpage only', 'bosa-bakery' ),
		),
		'priority'    => 10,
	) );

	Kirki::add_field( 'bosa-bakery',  array(
		'label'       => esc_html__( 'Page Title Position', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_page_title_position',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => 'above_feature_image',
		'choices'     => array(
			'below_feature_image' => esc_html__( 'Below Feature Image', 'bosa-bakery' ),
			'above_feature_image' => esc_html__( 'Top of the Page', 'bosa-bakery' ),
		),
		'priority'    => 20,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_page',
					'operator' => '==',
					'value'    => true,
				),
				array(
					'setting'  => 'bosa_bakery_header_layout',
					'operator' => '!=',
					'value'    => 'header_two',
				),
			),
		),
	) );
	
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Feature Image', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_page_feature_image',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => 'show_in_all_pages',
		'choices' => array(
			'show_in_all_pages'    => esc_html__( 'Show in all Pages', 'bosa-bakery' ),
			'disable_in_all_pages' => esc_html__( 'Disable in all Pages', 'bosa-bakery' ),
			'disable_in_frontpage' => esc_html__( 'Disable in Frontpage only', 'bosa-bakery' ),
			'show_in_frontpage'    => esc_html__( 'Show in Frontpage only', 'bosa-bakery' ),
		),
		'priority'    => 30,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_page',
					'operator' => '==',
					'value'    => true,
				),
				array(
					'setting'  => 'bosa_bakery_header_layout',
					'operator' => '!=',
					'value'    => 'header_two',
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_pages_image_size',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => 'bosa-bakery-1370-550',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'    => 40,
		'active_callback' => array(
			array(
				array(
					'setting'  => 'bosa_bakery_page_feature_image',
					'operator' => 'contains',
					'value'    => array( 'show_in_all_pages', 'show_in_frontpage', 'disable_in_frontpage' ),
				),
				array(
					'setting'  => 'bosa_bakery_disable_transparent_header_page',
					'operator' => '==',
					'value'    => false,
				),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Transparent Header', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_transparent_header_page',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => true,
		'priority'    => 50,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Transparent Header Banner Height (in px)', 'bosa-bakery' ),
		'type'        => 'slider',
		'settings'    => 'bosa_bakery_transparent_header_banner_page_height',
		'section'     => 'bosa_bakery_pages_options',
		'transport'   => 'postMessage',
		'default'     => 400,
		'choices'     => array(
			'min'  => 50,
			'max'  => 1500,
			'step' => 10,
		),
		'priority'    => 60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_page',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Transparent Header Banner Image Size', 'bosa-bakery' ),
		'type'         => 'radio',
		'settings'     => 'bosa_bakery_transparent_header_banner_page_size',
		'section'      => 'bosa_bakery_pages_options',
		'default'      => 'cover',
		'choices'      => array(
			'cover'    => esc_html__( 'Cover', 'bosa-bakery' ),
			'pattern'  => esc_html__( 'Pattern / Repeat', 'bosa-bakery' ),
			'norepeat' => esc_html__( 'No Repeat', 'bosa-bakery' ),
		),
		'priority'    => 70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_page',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Transparent Header Banner Overlay Opacity', 'bosa-bakery' ),
		'type'        => 'number',
		'settings'    => 'bosa_bakery_transparent_header_banner_page_opacity',
		'section'     => 'bosa_bakery_pages_options',
		'default'     => 4,
		'choices' => array(
			'min' => '0',
			'max' => '9',
			'step' => '1',
		),
		'priority'    => 80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_header_layout',
				'operator' => '==',
				'value'    => 'header_two',
			),
			array(
				'setting'  => 'bosa_bakery_disable_transparent_header_page',
				'operator' => '==',
				'value'    => false,
			),
		),
	) );

	// 404 Error Page
	Kirki::add_section( 'bosa_bakery_error404_options', array(
	    'title'          => esc_html__( '404 Page', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '160',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Image', 'bosa-bakery' ),
		'description' => esc_html__( 'Recommended image size 360x200 pixel.', 'bosa-bakery' ),
		'type'        => 'image',
		'settings'    => 'bosa_bakery_error404_image',
		'section'     => 'bosa_bakery_error404_options',
		'default'     => '',
		'choices'     => array(
			'save_as' => 'id',
		),
		'priority'    => 10,
	) );
	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Choose Image Size', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_render_error404_image_size',
		'section'     => 'bosa_bakery_error404_options',
		'default'     => 'full',
		'placeholder' => esc_html__( 'Select Image Size', 'bosa-bakery' ),
		'choices'     => bosa_bakery_get_intermediate_image_sizes(),
		'priority'    => 20,
	) );

	// Preloader Options
	Kirki::add_section( 'bosa_bakery_preloader_options', array(
	    'title'          => esc_html__( 'Preloader', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '170',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Disable Preloading', 'bosa-bakery' ),
		'type'        => 'checkbox',
		'settings'    => 'bosa_bakery_disable_preloader',
		'section'     => 'bosa_bakery_preloader_options',
		'default'     => false,
		'priority'    => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Preloading Animations', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_preloader_animation',
		'section'     => 'bosa_bakery_preloader_options',
		'default'     => 'animation_one',
		'choices'  => array(
			'animation_one'       => esc_html__( 'Animation One', 'bosa-bakery' ),
			'animation_two'       => esc_html__( 'Animation Two', 'bosa-bakery' ),
			'animation_three'     => esc_html__( 'Animation Three', 'bosa-bakery' ),
			'animation_four'      => esc_html__( 'Animation Four', 'bosa-bakery' ),
			'animation_five'      => esc_html__( 'Animation Five', 'bosa-bakery' ),
		),
		'priority'    => 20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Image Width', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_preloader_custom_image_width',
		'section'      => 'bosa_bakery_preloader_options',
		'transport'    => 'postMessage',
		'default'      => 40,
		'choices'      => array(
			'min'  => 10,
			'max'  => 200,
			'step' => 1,
		),
		'priority'    => 30,
	) );


	// Breadcrumbs
	Kirki::add_section( 'bosa_bakery_breadcrumbs_options', array(
	    'title'          => esc_html__( 'Breadcrumbs', 'bosa-bakery' ),
	    'capability'     => 'edit_theme_options',
	    'priority'       => '180',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Breadcrumbs', 'bosa-bakery' ),
		'type'        => 'select',
		'settings'    => 'bosa_bakery_breadcrumbs_controls',
		'section'     => 'bosa_bakery_breadcrumbs_options',
		'default'     => 'show_in_all_page_post',
		'choices'  => array(
			'disable_in_all_pages'     => esc_html__( 'Disable in all Pages Only', 'bosa-bakery' ),
			'disable_in_all_page_post' => esc_html__( 'Disable in all Pages & Posts', 'bosa-bakery' ),
			'show_in_all_page_post'    => esc_html__( 'Show in all Pages & Posts', 'bosa-bakery' ),
		),
		'priority'    => 10,
	) );

	// WooCommerce

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'General / Style', 'bosa-bakery' ),
		'type'        => 'radio-buttonset',
		'settings'    => 'bosa_bakery_woocommerce_product_catalog_tabs',
		'section'     => 'woocommerce_product_catalog',
		'default'     => 'product_catalog_general_tab',
		'choices'  => array(
			'product_catalog_general_tab'     => esc_html__( 'General', 'bosa-bakery' ),
			'product_catalog_style_tab'     => esc_html__( 'Style', 'bosa-bakery' ),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Shop Page Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_shop_page_title',
		'section'      => 'woocommerce_product_catalog',
		'default'      => false,
		'priority'     => 10,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_product_card_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Product Wrapper Options', 'bosa-bakery' ),
	    'priority'    => 20,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Product Layout Type', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_woocommerce_product_layout_type',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'product_layout_grid',
		'choices'		=> array(
			'product_layout_grid'		=> get_template_directory_uri() . '/assets/images/product-layout-type-one.png',
			'product_layout_list'		=> get_template_directory_uri() . '/assets/images/product-layout-type-two.png',
		),
		'priority'      => 30,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Product Card Layout', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_woocommerce_product_card_layout',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'product_layout_one',
		'choices'		=> array(
			'product_layout_one'		=> get_template_directory_uri() . '/assets/images/product-card-layout-one.png',
			'product_layout_two'		=> get_template_directory_uri() . '/assets/images/product-card-layout-two.png',
		),
		'priority'      => 40,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Text Alignment', 'bosa-bakery' ),
		'type'			=> 'select',
		'settings'		=> 'bosa_bakery_woocommerce_product_card_text_alignment',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'text-center',
		'choices'		=> array(
			'text-left'		=> esc_html__( 'Left', 'bosa-bakery' ),
			'text-center'	=> esc_html__( 'Center', 'bosa-bakery' ),
			'text-right'	=> esc_html__( 'Right', 'bosa-bakery' ),
		),
		'priority'       => 50,
		'transport'		 => 'postMessage',
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Products Per Row', 'bosa-bakery' ),
		'description'  => esc_html__( 'How many products should be shown per row?', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_woocommerce_shop_product_column',
		'section'      => 'woocommerce_product_catalog',
		'default'      => 3,
		'choices' => array(
			'min' => '1',
			'max' => '4',
			'step'=> '1',
		),
		'priority'     => 60,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_layout_type',
				'operator' => '==',
				'value'    => 'product_layout_grid',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Products Per Row', 'bosa-bakery' ),
		'description'  => esc_html__( 'How many products should be shown per row?', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_woocommerce_shop_list_column',
		'section'      => 'woocommerce_product_catalog',
		'default'      => 2,
		'choices' => array(
			'min' => '1',
			'max' => '3',
			'step'=> '1',
		),
		'priority'     => 70,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_layout_type',
				'operator' => '==',
				'value'    => 'product_layout_list',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Product Display Per Page', 'bosa-bakery' ),
		'type'         => 'number',
		'settings'     => 'bosa_bakery_woocommerce_product_per_page',
		'section'      => 'woocommerce_product_catalog',
		'default'      => 9,
		'choices' => array(
			'min' => '1',
			'max' => '60',
			'step'=> '1',
		),
		'priority'    => 80,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Rating', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_shop_page_rating',
		'section'      => 'woocommerce_product_catalog',
		'default'      => false,
		'priority'     => 85,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_add_to_cart_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Add To Cart Button Options', 'bosa-bakery' ),
	    'priority'    => 90,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Add To Cart Button Layout', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_woocommerce_add_to_cart_button',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'cart_button_two',
		'choices'		=> array(
			'cart_button_one'		=> get_template_directory_uri() . '/assets/images/cart-button-one.png',
			'cart_button_two'		=> get_template_directory_uri() . '/assets/images/cart-button-two.png',
			'cart_button_three'		=> get_template_directory_uri() . '/assets/images/cart-button-three.png',
			'cart_button_four'		=> get_template_directory_uri() . '/assets/images/cart-button-four.png',
		),
		'priority'      => 100,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_icon_group_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Icon Group Options', 'bosa-bakery' ),
	    'priority'    => 110,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Icon Group Layout', 'bosa-bakery' ),
		'description'	=> esc_html__( 'Yith WooCommerce Compare, Wishlist and Quick View are grouped together. Install these plugins to use this option.', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_icon_group_layout',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'group_layout_one',
		'choices'		=> array(
			'group_layout_one'		=> get_template_directory_uri() . '/assets/images/iconbox-layout-one.png',
			'group_layout_two'		=> get_template_directory_uri() . '/assets/images/iconbox-layout-two.png',
			'group_layout_three'	=> get_template_directory_uri() . '/assets/images/iconbox-layout-three.png',
			'group_layout_four'		=> get_template_directory_uri() . '/assets/images/iconbox-layout-four.png',
		),
		'priority'      => 120,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_sale_tag_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Sale Tag Options', 'bosa-bakery' ),
	    'priority'    => 130,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Sale Tag Layout', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_woocommerce_sale_tag_layout',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'sale_tag_layout_one',
		'choices'		=> array(
			'sale_tag_layout_one'		=> get_template_directory_uri() . '/assets/images/product-badge-style-one.png',
			'sale_tag_layout_two'		=> get_template_directory_uri() . '/assets/images/product-badge-style-two.png',
		),
		'priority'      => 140,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => '!=',
				'value'    => 'group_layout_four',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Sale Badge Text', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_woocommerce_sale_badge_text',
		'section'     => 'woocommerce_product_catalog',
		'default'     => esc_html__( 'Sale!', 'bosa-bakery' ),
		'priority'    => 150,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Enable Sale Badge Percentage', 'bosa-bakery' ),
		'description' => esc_html__( 'Replaces sale badge text with sale percent.', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_enable_sale_badge_percent',
		'section'      => 'woocommerce_product_catalog',
		'default'      => false,
		'priority'     => 160,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'       => esc_html__( 'Sale Badge Percentage Text', 'bosa-bakery' ),
		'description' => esc_html__( 'Input text to accompany with percentage {value} tag. Example: {value}% OFF!', 'bosa-bakery' ),
		'type'        => 'text',
		'settings'    => 'bosa_bakery_woocommerce_sale_badge_percent',
		'section'     => 'woocommerce_product_catalog',
		'default'     => esc_html__( '-{value}%', 'bosa-bakery' ),
		'priority'    => 170,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_general_tab',
			),
			array(
				'setting'  => 'bosa_bakery_enable_sale_badge_percent',
				'operator' => '==',
				'value'    => true,
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_product_card_style_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Product Wrapper Options', 'bosa-bakery' ),
	    'priority'    => 210,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'			=> esc_html__( 'Product Card Style', 'bosa-bakery' ),
		'type'			=> 'radio-image',
		'settings'		=> 'bosa_bakery_woocommerce_product_card_style',
		'section'		=> 'woocommerce_product_catalog',
		'default'		=> 'card_style_one',
		'choices'		=> array(
			'card_style_one'		=> get_template_directory_uri() . '/assets/images/product-card-style-one.png',
			'card_style_two'		=> get_template_directory_uri() . '/assets/images/product-card-style-two.png',
			'card_style_three'		=> get_template_directory_uri() . '/assets/images/product-card-style-three.png',
		),
		'priority'    => 220,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Product Image Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_shop_menu_image_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 200,
			'step' => 1,
		),
		'priority'    => 230,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Product Card Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_shop_product_card_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 200,
			'step' => 1,
		),
		'priority'    => 240,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_card_style',
				'operator' => 'contains',
				'value'    => array( 'card_style_two', 'card_style_three' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_add_to_cart_style_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Add To Cart Button Options', 'bosa-bakery' ),
	    'priority'    => 250,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_add_to_cart_bg_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#333333',
		'priority'    => 260,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_add_to_cart_white_bg_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#ffffff',
		'priority'    => 260,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_four' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_add_to_cart_text_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#ffffff',
		'priority'    => 270,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_two' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_add_to_cart_black_text_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#333333',
		'priority'    => 270,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_three' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_cart_four_black_text_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#333333',
		'priority'     => 270,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_four' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_add_cart_button_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 280,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_two', 'cart_button_four' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Spacing', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_cart_four_diagonal_spacing',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 10,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 290,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => 'contains',
				'value'    => array( 'cart_button_four' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_icon_group_style_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Icon Group Options', 'bosa-bakery' ),
	    'priority'    => 300,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_icon_group_bg_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#ffffff',
		'priority'    => 303,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_icon_group_text_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#383838',
		'priority'    => 305,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_icon_group_one_border_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 100,
		'choices'      => array(
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		),
		'priority'    => 310,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => '==',
				'value'    => 'group_layout_one',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_icon_group_two_border_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 310,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => '==',
				'value'    => 'group_layout_two',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_icon_group_three_border_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 310,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => '==',
				'value'    => 'group_layout_three',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_icon_group_four_border_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 100,
		'choices'      => array(
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		),
		'priority'    => 310,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => '==',
				'value'    => 'group_layout_four',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Icon Group Spacing', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_icon_group_diagonal_spacing',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 10,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 320,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_icon_group_layout',
				'operator' => 'contains',
				'value'    => array( 'group_layout_three', 'group_layout_four' ),
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
	    'type'        => 'custom',
	    'settings'    => 'bosa_bakery_sale_tag_style_separator',
	    'section'     => 'woocommerce_product_catalog',
	    'default'     => esc_html__( 'Sale Tag Options', 'bosa-bakery' ),
	    'priority'    => 330,
	    'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Sale Tag Background Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_sale_tag_bg_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#382E1E',
		'priority'    => 340,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Sale Tag Text Color', 'bosa-bakery' ),
		'type'         => 'color',
		'settings'     => 'bosa_bakery_sale_tag_text_color',
		'section'      => 'woocommerce_product_catalog',
		'default'      => '#ffffff',
		'priority'    => 350,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_skin_select',
				'operator' => 'contains',
				'value'    => array( 'default', 'blackwhite' ),
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Sale Button Border Radius', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_sale_button_border_radius',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 0,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 360,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Sale Button Spacing', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_sale_button_diagonal_spacing',
		'section'      => 'woocommerce_product_catalog',
		'transport'    => 'postMessage',
		'default'      => 8,
		'choices'      => array(
			'min'  => 0,
			'max'  => 50,
			'step' => 1,
		),
		'priority'    => 370,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Product Title Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_shop_product_title_font_control',
		'section'      => 'woocommerce_product_catalog',
		'default'  => array(
			'font-family'     => 'Poppins',
			'variant'         => '400',
			'font-style'      => 'normal',
			'font-size'       => '15px',
			'text-transform'  => 'none',
			'line-height'     => '1.4',
			'letter-spacing'  => '0',
			'text-decoration' => 'none',
			'color'			  => '',
		),
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.woocommerce ul.products li.product .woocommerce-loop-product__title',
			),
		),
		'priority'    => 380,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Product Price Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_shop_product_price_font_control',
		'section'      => 'woocommerce_product_catalog',
		'default'  => array(
			'font-family'     => 'Open Sans',
			'variant'         => '700',
			'font-style'      => 'normal',
			'font-size'       => '16px',
			'text-transform'  => 'none',
			'line-height'     => '1.3',
			'letter-spacing'  => '0',
			'text-decoration' => 'none',
			'color'			  => '',
		),
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.woocommerce ul.products li.product .price .amount',
			),
		),
		'priority'    => 390,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
		),
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Add to Cart Button Typography', 'bosa-bakery' ),
		'type'         => 'typography',
		'settings'     => 'bosa_bakery_shop_cart_button_font_control',
		'section'      => 'woocommerce_product_catalog',
		'default'  => array(
			'font-family'     => 'Poppins',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'font-size'       => '14px',
			'text-transform'  => 'none',
			'line-height'     => '1.5',
			'letter-spacing'  => '0',
		),
		'transport'   => 'auto',
		'output'      => array(
			array(
				'element' => '.woocommerce .product-inner .button, .woocommerce .product-inner .added_to_cart',
			),
		),
		'priority'    => 400,
		'active_callback' => array(
			array(
				'setting'  => 'bosa_bakery_woocommerce_product_catalog_tabs',
				'operator' => '==',
				'value'    => 'product_catalog_style_tab',
			),
			array(
				'setting'  => 'bosa_bakery_woocommerce_add_to_cart_button',
				'operator' => '!=',
				'value'    => array( 'cart_button_four' ),
			),
		),
	) );

	Kirki::add_section( 'bosa_bakery_woocommerce_single_product', array(
	    'title'      => esc_html__( 'Single Products', 'bosa-bakery' ),
	    'panel'      => 'woocommerce',	   
	    'capability' => 'edit_theme_options',
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Image Zoom / Magnification', 'bosa-bakery' ),
		'description'  => esc_html__( 'Every slider step changes 10% zoom to the previous zoom level. For example: 1.1 zoom level is now 110% zoom.', 'bosa-bakery' ),
		'type'         => 'slider',
		'settings'     => 'bosa_bakery_single_product_iamge_magnify',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => 1,
		'choices'      => array(
			'min'  => 0,
			'max'  => 3,
			'step' => 0.1,
		),
		'priority'     => 10,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Single Product Page Title', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_title',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => true,
		'priority'     => 20,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Breadcrumbs', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_breadcrumbs',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 30,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable SKU', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_sku',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 40,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Category', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_category',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 50,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Tags', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_tags',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 60,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Product Tabs', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_tabs',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 70,
	) );

	Kirki::add_field( 'bosa-bakery', array(
		'label'        => esc_html__( 'Disable Related Products', 'bosa-bakery' ),
		'type'         => 'checkbox',
		'settings'     => 'bosa_bakery_disable_single_product_related_products',
		'section'      => 'bosa_bakery_woocommerce_single_product',
		'default'      => false,
		'priority'     => 80,
	) );
}