(function( $ ) {
	wp.customize.bind( 'ready', function() {

		var optPrefix = '#customize-control-skin_care_products_options-';
		
		// Label
		function skin_care_products_customizer_label( id, title ) {

			// Site Identity

			if ( id === 'custom_logo' || id === 'site_icon' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Global Color Setting

			if ( id === 'skin_care_products_first_color' || id === 'skin_care_products_heading_color' || id === 'skin_care_products_paragraph_color') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// General Setting

			if ( id === 'skin_care_products_scroll_hide' || id === 'skin_care_products_preloader_hide' || id === 'skin_care_products_sticky_header' || id === 'skin_care_products_products_per_row' || id === 'skin_care_products_scroll_top_position' || id === 'skin_care_products_products_per_row' || id === 'skin_care_products_width_option' )  {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Colors

			if ( id === 'skin_care_products_theme_color' || id === 'background_color' || id === 'background_image' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Header Image

			if ( id === 'header_image' || id === 'skin_care_products_post_layout' || id === 'skin_care_products_404_page_main_heading' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Social Icon

			if ( id === 'skin_care_products_facebook_icon' || id === 'skin_care_products_twitter_icon' || id === 'skin_care_products_intagram_icon'|| id === 'skin_care_products_linkedin_icon'|| id === 'skin_care_products_pintrest_icon' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			//  Header

			if ( id === 'skin_care_products_topbar_text' || id === 'skin_care_products_topbar_phone_number' || id === 'skin_care_products_topbar1_wishlist_url' || id === 'skin_care_products_header_search_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}


			// Slider

			if ( id === 'skin_care_products_slider_section_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Products

			if ( id === 'skin_care_products_activities_section_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Footer

			if ( id === 'skin_care_products_footer_widget_content_alignment' || id === 'skin_care_products_show_hide_copyright') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Post Settings

			if ( id === 'skin_care_products_post_page_title' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Single Post Settings

			if ( id === 'skin_care_products_single_post_thumb' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-skin_care_products_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}
			
		}

	    // Site Identity
		skin_care_products_customizer_label( 'custom_logo', 'Logo Setup' );
		skin_care_products_customizer_label( 'site_icon', 'Favicon' );

		// Global Color Setting
		skin_care_products_customizer_label( 'skin_care_products_first_color', 'Global Color' );
		skin_care_products_customizer_label( 'skin_care_products_heading_color', 'Heading Typography' );
		skin_care_products_customizer_label( 'skin_care_products_paragraph_color', 'Paragraph Typography' );

		// General Setting
		skin_care_products_customizer_label( 'skin_care_products_preloader_hide', 'Preloader' );
		skin_care_products_customizer_label( 'skin_care_products_scroll_hide', 'Scroll To Top' );
		skin_care_products_customizer_label( 'skin_care_products_sticky_header', 'Sticky Header' );
		skin_care_products_customizer_label( 'skin_care_products_scroll_top_position', 'Scroll to top Position' );
		skin_care_products_customizer_label( 'skin_care_products_products_per_row', 'woocommerce Setting' );
		skin_care_products_customizer_label( 'skin_care_products_width_option', 'Site Width Layouts' );

		// Colors
		skin_care_products_customizer_label( 'skin_care_products_theme_color', 'Theme Color' );
		skin_care_products_customizer_label( 'background_color', 'Colors' );
		skin_care_products_customizer_label( 'background_image', 'Image' );

		//Header Image
		skin_care_products_customizer_label( 'header_image', 'Header Image' );

		skin_care_products_customizer_label( 'skin_care_products_post_layout', 'Post Layouts Settings' );

		skin_care_products_customizer_label( 'skin_care_products_404_page_main_heading', '404 Page Settings' );

		// Social Icon
		skin_care_products_customizer_label( 'skin_care_products_facebook_icon', 'Facebook' );
		skin_care_products_customizer_label( 'skin_care_products_twitter_icon', 'Twitter' );
		skin_care_products_customizer_label( 'skin_care_products_intagram_icon', 'Intagram' );
		skin_care_products_customizer_label( 'skin_care_products_linkedin_icon', 'Linkedin' );
		skin_care_products_customizer_label( 'skin_care_products_pintrest_icon', 'Pintrest' );

		// Header
		skin_care_products_customizer_label( 'skin_care_products_topbar_text', 'Topbar Text' );
		skin_care_products_customizer_label( 'skin_care_products_topbar_phone_number', 'Phone Number' );
		skin_care_products_customizer_label( 'skin_care_products_header_search_setting', 'Search' );
		skin_care_products_customizer_label( 'skin_care_products_topbar1_wishlist_url', 'Wishlist Url' );

		//Slider
		skin_care_products_customizer_label( 'skin_care_products_slider_section_setting', 'Slider' );

		//Products
		skin_care_products_customizer_label( 'skin_care_products_activities_section_setting', 'Products' );

		//Footer
		skin_care_products_customizer_label( 'skin_care_products_footer_widget_content_alignment', 'Footer' );
		skin_care_products_customizer_label( 'skin_care_products_show_hide_copyright', 'Copyright' );

		//Post setting
		skin_care_products_customizer_label( 'skin_care_products_post_page_title', 'Post Settings' );

		//Single post setting
		skin_care_products_customizer_label( 'skin_care_products_single_post_thumb', 'Single Post Settings' );
	

	});

})( jQuery );
