<?php 

	$perfect_ecommerce_store_custom_style = '';

	// Logo Size
	$perfect_ecommerce_store_logo_top_padding = get_theme_mod('perfect_ecommerce_store_logo_top_padding');
	$perfect_ecommerce_store_logo_bottom_padding = get_theme_mod('perfect_ecommerce_store_logo_bottom_padding');
	$perfect_ecommerce_store_logo_left_padding = get_theme_mod('perfect_ecommerce_store_logo_left_padding');
	$perfect_ecommerce_store_logo_right_padding = get_theme_mod('perfect_ecommerce_store_logo_right_padding');

	if( $perfect_ecommerce_store_logo_top_padding != '' || $perfect_ecommerce_store_logo_bottom_padding != '' || $perfect_ecommerce_store_logo_left_padding != '' || $perfect_ecommerce_store_logo_right_padding != ''){
		$perfect_ecommerce_store_custom_style .=' .logo {';
			$perfect_ecommerce_store_custom_style .=' padding-top: '.esc_attr($perfect_ecommerce_store_logo_top_padding).'px; padding-bottom: '.esc_attr($perfect_ecommerce_store_logo_bottom_padding).'px; padding-left: '.esc_attr($perfect_ecommerce_store_logo_left_padding).'px; padding-right: '.esc_attr($perfect_ecommerce_store_logo_right_padding).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_logo_size = get_theme_mod('perfect_ecommerce_store_logo_size');
	if( $perfect_ecommerce_store_logo_size != '') {
		if($perfect_ecommerce_store_logo_size == 100) {
			$perfect_ecommerce_store_custom_style .=' .custom-logo-link img {';
				$perfect_ecommerce_store_custom_style .=' width: 350px;';
			$perfect_ecommerce_store_custom_style .=' }';
		} else if($perfect_ecommerce_store_logo_size >= 10 && $perfect_ecommerce_store_logo_size < 100) {
			$perfect_ecommerce_store_custom_style .=' .custom-logo-link img {';
				$perfect_ecommerce_store_custom_style .=' width: '.esc_attr($perfect_ecommerce_store_logo_size).'%;';
			$perfect_ecommerce_store_custom_style .=' }';
		}
	}

	// Header Animations
	$perfect_ecommerce_store_dropdown_anim = get_theme_mod('perfect_ecommerce_store_dropdown_anim');

	if ( $perfect_ecommerce_store_dropdown_anim != '') {
		$perfect_ecommerce_store_custom_style .=' .nav-menu ul ul {';
			$perfect_ecommerce_store_custom_style .=' animation:'.esc_attr($perfect_ecommerce_store_dropdown_anim).' 1s ease;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	// Product section padding
	$perfect_ecommerce_store_product_section_padding = get_theme_mod('perfect_ecommerce_store_product_section_padding');

	if( $perfect_ecommerce_store_product_section_padding != ''){
		$perfect_ecommerce_store_custom_style .=' #our-products {';
			$perfect_ecommerce_store_custom_style .=' padding-top: '.esc_attr($perfect_ecommerce_store_product_section_padding).'px; padding-bottom: '.esc_attr($perfect_ecommerce_store_product_section_padding).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_product_img_hight = get_theme_mod('perfect_ecommerce_store_product_img_hight');

	if( $perfect_ecommerce_store_product_img_hight != ''){
		$perfect_ecommerce_store_custom_style .=' #our-products img.attachment-post-thumbnail {';
			$perfect_ecommerce_store_custom_style .=' height: '.esc_attr($perfect_ecommerce_store_product_img_hight).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	// Site Title Font Size
	$perfect_ecommerce_store_site_title_font_size = get_theme_mod('perfect_ecommerce_store_site_title_font_size');
	if( $perfect_ecommerce_store_site_title_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' .logo h1.site-title, .logo p.site-title {';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_site_title_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	// Site Tagline Font Size
	$perfect_ecommerce_store_site_tagline_font_size = get_theme_mod('perfect_ecommerce_store_site_tagline_font_size');
	if( $perfect_ecommerce_store_site_tagline_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' .logo p.site-description {';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_site_tagline_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	// Copyright padding
	$perfect_ecommerce_store_copyright_padding = get_theme_mod('perfect_ecommerce_store_copyright_padding');

	if( $perfect_ecommerce_store_copyright_padding != ''){
		$perfect_ecommerce_store_custom_style .=' .site-info {';
			$perfect_ecommerce_store_custom_style .=' padding-top: '.esc_attr($perfect_ecommerce_store_copyright_padding).'px; padding-bottom: '.esc_attr($perfect_ecommerce_store_copyright_padding).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_copyright_color = get_theme_mod('perfect_ecommerce_store_copyright_color');

	if ( $perfect_ecommerce_store_copyright_color != '') {
		$perfect_ecommerce_store_custom_style .=' .site-info a {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_copyright_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_copyrightbg_color = get_theme_mod('perfect_ecommerce_store_copyrightbg_color');

	if ( $perfect_ecommerce_store_copyrightbg_color != '') {
		$perfect_ecommerce_store_custom_style .=' .copyright {';
			$perfect_ecommerce_store_custom_style .=' background-color:'.esc_attr($perfect_ecommerce_store_copyrightbg_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	//Slider color
	$perfect_ecommerce_store_slider_opacity = get_theme_mod('perfect_ecommerce_store_slider_opacity');
	if ( $perfect_ecommerce_store_slider_opacity != '') {
		$perfect_ecommerce_store_custom_style .=' #slider img {';
			$perfect_ecommerce_store_custom_style .=' opacity:'.esc_attr($perfect_ecommerce_store_slider_opacity).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_mtitle_font_size = get_theme_mod('perfect_ecommerce_store_slider_mtitle_font_size');

	if( $perfect_ecommerce_store_slider_mtitle_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' #slider .inner_carousel h1 {';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_slider_mtitle_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_title_font_size = get_theme_mod('perfect_ecommerce_store_slider_title_font_size');

	if( $perfect_ecommerce_store_slider_title_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' .blocks-sec .blocks strong a{';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_slider_title_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_text_font_size = get_theme_mod('perfect_ecommerce_store_slider_text_font_size');

	if( $perfect_ecommerce_store_slider_text_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' .blocks-sec .blocks p {';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_slider_text_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_color = get_theme_mod('perfect_ecommerce_store_slider_color');
	if ( $perfect_ecommerce_store_slider_color != '') {
		$perfect_ecommerce_store_custom_style .=' #slider .inner_carousel h1 {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_slider_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_btn_color = get_theme_mod('perfect_ecommerce_store_slider_btn_color');
	$perfect_ecommerce_store_slider_btnbg_color = get_theme_mod('perfect_ecommerce_store_slider_btnbg_color');
	if ( $perfect_ecommerce_store_slider_btn_color != '') {
		$perfect_ecommerce_store_custom_style .=' #slider .read-btn a.blogbutton-small {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_slider_btn_color).'; background-color:'.esc_attr($perfect_ecommerce_store_slider_btnbg_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_btnhvr_color = get_theme_mod('perfect_ecommerce_store_slider_btnhvr_color');
	$perfect_ecommerce_store_slider_btnhvrbg_color = get_theme_mod('perfect_ecommerce_store_slider_btnhvrbg_color');
	if ( $perfect_ecommerce_store_slider_btnhvr_color != '') {
		$perfect_ecommerce_store_custom_style .=' #slider .read-btn a.blogbutton-small:hover {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_slider_btnhvr_color).'; background-color:'.esc_attr($perfect_ecommerce_store_slider_btnhvrbg_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_slider_np_color = get_theme_mod('perfect_ecommerce_store_slider_np_color');
	$perfect_ecommerce_store_slider_npbdr_color = get_theme_mod('perfect_ecommerce_store_slider_npbdr_color');
	if ( $perfect_ecommerce_store_slider_np_color != '') {
		$perfect_ecommerce_store_custom_style .=' #slider .carousel-control-next-icon, #slider .carousel-control-prev-icon {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_slider_np_color).'; border-color:'.esc_attr($perfect_ecommerce_store_slider_npbdr_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	//Feature product color
	$perfect_ecommerce_store_block_color = get_theme_mod('perfect_ecommerce_store_block_color');
	if ( $perfect_ecommerce_store_block_color != '') {
		$perfect_ecommerce_store_custom_style .=' .blocks-sec .blocks strong a {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_block_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_block_text_color = get_theme_mod('perfect_ecommerce_store_block_text_color');
	if ( $perfect_ecommerce_store_block_text_color != '') {
		$perfect_ecommerce_store_custom_style .=' .blocks-sec .blocks p {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_block_text_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_feature_product_color = get_theme_mod('perfect_ecommerce_store_feature_product_color');
	if ( $perfect_ecommerce_store_feature_product_color != '') {
		$perfect_ecommerce_store_custom_style .=' .blocks-sec .blocks strong a {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_feature_product_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_featured_title_font_size = get_theme_mod('perfect_ecommerce_store_featured_title_font_size');

	if( $perfect_ecommerce_store_featured_title_font_size != ''){
		$perfect_ecommerce_store_custom_style .=' .pro-title strong {';
			$perfect_ecommerce_store_custom_style .=' font-size: '.esc_attr($perfect_ecommerce_store_featured_title_font_size).'px;';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	//Sale color
	$perfect_ecommerce_store_sale_color = get_theme_mod('perfect_ecommerce_store_sale_color');

	if ( $perfect_ecommerce_store_sale_color != '') {
		$perfect_ecommerce_store_custom_style .=' .topbar,.menu-sec {';
			$perfect_ecommerce_store_custom_style .=' background-color:'.esc_attr($perfect_ecommerce_store_sale_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_menu_color = get_theme_mod('perfect_ecommerce_store_menu_color');

	if ( $perfect_ecommerce_store_menu_color != '') {
		$perfect_ecommerce_store_custom_style .=' .nav-menu ul li a {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_menu_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_searchtext_color = get_theme_mod('perfect_ecommerce_store_searchtext_color');
	if ( $perfect_ecommerce_store_searchtext_color != '') {
		$perfect_ecommerce_store_custom_style .=' .woocommerce-product-search input.search-field {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_searchtext_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_searchbg_color = get_theme_mod('perfect_ecommerce_store_searchbg_color');
	if ( $perfect_ecommerce_store_searchbg_color != '') {
		$perfect_ecommerce_store_custom_style .=' .woocommerce-product-search input.search-field {';
			$perfect_ecommerce_store_custom_style .=' background-color:'.esc_attr($perfect_ecommerce_store_searchbg_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_searchiconbg_color = get_theme_mod('perfect_ecommerce_store_searchiconbg_color');
	if ( $perfect_ecommerce_store_searchiconbg_color != '') {
		$perfect_ecommerce_store_custom_style .=' .woocommerce-product-search button {';
			$perfect_ecommerce_store_custom_style .=' background-color:'.esc_attr($perfect_ecommerce_store_searchiconbg_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}


	//footer css
	$perfect_ecommerce_store_footer_widgets_title_color = get_theme_mod('perfect_ecommerce_store_footer_widgets_title_color');
	if ( $perfect_ecommerce_store_footer_widgets_title_color != '') {
		$perfect_ecommerce_store_custom_style .=' h3.widget-title {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_footer_widgets_title_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}

	$perfect_ecommerce_store_footer_widgets_text_color = get_theme_mod('perfect_ecommerce_store_footer_widgets_text_color');
	if ( $perfect_ecommerce_store_footer_widgets_text_color != '') {
		$perfect_ecommerce_store_custom_style .=' .site-footer .widget-area ul li a {';
			$perfect_ecommerce_store_custom_style .=' color:'.esc_attr($perfect_ecommerce_store_footer_widgets_text_color).';';
		$perfect_ecommerce_store_custom_style .=' }';
	}