<?php

	$electronics_marketplace_first_color = get_theme_mod('electronics_marketplace_first_color');
	$electronics_marketplace_second_color = get_theme_mod('electronics_marketplace_second_color');
	$electronics_marketplace_custom_css ='';

	/*------------------ Global First Color -----------*/

	if ($electronics_marketplace_first_color) {
		$electronics_marketplace_custom_css .= ':root {';
		$electronics_marketplace_custom_css .= '--first-theme-color: ' . esc_attr($electronics_marketplace_first_color) . ' !important;';
		$electronics_marketplace_custom_css .= '} ';
	}

	/*------------------ Global Second Color -----------*/

	if ($electronics_marketplace_second_color) {
		$electronics_marketplace_custom_css .= ':root {';
		$electronics_marketplace_custom_css .= '--second-theme-color: ' . esc_attr($electronics_marketplace_second_color) . ' !important;';
		$electronics_marketplace_custom_css .= '} ';
	}

	// menu font weight
	$ecommerce_solution_font_weight_option_menu = get_theme_mod( 'ecommerce_solution_font_weight_option_menu','500');
	if($ecommerce_solution_font_weight_option_menu != ''){
		$electronics_marketplace_custom_css .='.menu-header .primary-navigation ul li a, .primary-navigation a, .primary-navigation ul li a{';
			$electronics_marketplace_custom_css .='font-weight: '.esc_attr($ecommerce_solution_font_weight_option_menu).';';
		$electronics_marketplace_custom_css .='}';
	}

	// menu settings
	$ecommerce_solution_menu_font_size_option = get_theme_mod('ecommerce_solution_menu_font_size_option');
	$electronics_marketplace_custom_css .='.menu-header .primary-navigation ul li a{';
		$electronics_marketplace_custom_css .='font-size: '.esc_attr($ecommerce_solution_menu_font_size_option).'px;';
	$electronics_marketplace_custom_css .='}';

	// menu top-bottom padding
	$ecommerce_solution_menu_top_bottom_padding = get_theme_mod('ecommerce_solution_menu_top_bottom_padding');
	$electronics_marketplace_custom_css .='.primary-navigation a, .topbar .primary-navigation a{';
		$electronics_marketplace_custom_css .='padding-top: '.esc_attr($ecommerce_solution_menu_top_bottom_padding).'px !important;';
		$electronics_marketplace_custom_css .='padding-bottom: '.esc_attr($ecommerce_solution_menu_top_bottom_padding).'px !important;';
	$electronics_marketplace_custom_css .='}';

	// menu left-right padding
	$ecommerce_solution_menu_left_right_padding = get_theme_mod('ecommerce_solution_menu_left_right_padding');
	$electronics_marketplace_custom_css .='.primary-navigation a, .topbar .primary-navigation a{';
		$electronics_marketplace_custom_css .='padding-left: '.esc_attr($ecommerce_solution_menu_left_right_padding).'px !important;';
		$electronics_marketplace_custom_css .='padding-right: '.esc_attr($ecommerce_solution_menu_left_right_padding).'px !important;';
	$electronics_marketplace_custom_css .='}';

	// Display Sticky Header
	$ecommerce_solution_fixed_header = get_theme_mod( 'ecommerce_solution_display_fixed_header',false);
	if($ecommerce_solution_fixed_header == true && get_theme_mod( 'ecommerce_solution_sticky_header',false) != true){
    	$electronics_marketplace_custom_css .='.fixed-header{';
			$electronics_marketplace_custom_css .='position:static;';
		$electronics_marketplace_custom_css .='} ';
	}
    if($ecommerce_solution_fixed_header == true){
    	$electronics_marketplace_custom_css .='@media screen and (max-width:575px) {';
		$electronics_marketplace_custom_css .='.fixed-header{';
			$electronics_marketplace_custom_css .='position:fixed;';
		$electronics_marketplace_custom_css .='} }';
	}else if($ecommerce_solution_fixed_header == false){
		$electronics_marketplace_custom_css .='@media screen and (max-width:575px){';
		$electronics_marketplace_custom_css .='.fixed-header{';
			$electronics_marketplace_custom_css .='position:static;';
		$electronics_marketplace_custom_css .='} }';
	}

	$ecommerce_solution_woocommerce_product_border_enable = get_theme_mod('ecommerce_solution_woocommerce_product_border_enable',true);
	if($ecommerce_solution_woocommerce_product_border_enable == false){
	$electronics_marketplace_custom_css .='.products li{';
	$electronics_marketplace_custom_css .='border: none !important; box-shadow:none !important;';
	$electronics_marketplace_custom_css .='}';
	}

	$ecommerce_solution_woocommerce_product_padding_top = get_theme_mod('ecommerce_solution_woocommerce_product_padding_top',10);
	$electronics_marketplace_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
	$electronics_marketplace_custom_css .='padding-top: '.esc_attr($ecommerce_solution_woocommerce_product_padding_top).'px !important; padding-bottom: '.esc_attr($ecommerce_solution_woocommerce_product_padding_top).'px !important;';
	$electronics_marketplace_custom_css .='}';

	$ecommerce_solution_woocommerce_product_padding_right = get_theme_mod('ecommerce_solution_woocommerce_product_padding_right',10);
	$electronics_marketplace_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
	$electronics_marketplace_custom_css .='padding-left: '.esc_attr($ecommerce_solution_woocommerce_product_padding_right).'px !important; padding-right: '.esc_attr($ecommerce_solution_woocommerce_product_padding_right).'px !important;';
	$electronics_marketplace_custom_css .='}';

	$ecommerce_solution_woocommerce_product_border_radius = get_theme_mod('ecommerce_solution_woocommerce_product_border_radius',3);
	$electronics_marketplace_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
	$electronics_marketplace_custom_css .='border-radius: '.esc_attr($ecommerce_solution_woocommerce_product_border_radius).'px;';
	$electronics_marketplace_custom_css .='}';

	$ecommerce_solution_woocommerce_product_box_shadow = get_theme_mod('ecommerce_solution_woocommerce_product_box_shadow', 5);
	$electronics_marketplace_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
	$electronics_marketplace_custom_css .='box-shadow: '.esc_attr($ecommerce_solution_woocommerce_product_box_shadow).'px '.esc_attr($ecommerce_solution_woocommerce_product_box_shadow).'px '.esc_attr($ecommerce_solution_woocommerce_product_box_shadow).'px #eee !important;';
	$electronics_marketplace_custom_css .='}';

	//Copyright text color
	$ecommerce_solution_copyright_text_color = get_theme_mod('ecommerce_solution_copyright_text_color');
	$electronics_marketplace_custom_css .='.copyright-wrapper p, .copyright-wrapper p a{';
		$electronics_marketplace_custom_css .='color: '.esc_attr($ecommerce_solution_copyright_text_color).';';
	$electronics_marketplace_custom_css .='}';

	//Copyright background css
	$ecommerce_solution_copyright_text_background = get_theme_mod('ecommerce_solution_copyright_text_background');
	$electronics_marketplace_custom_css .='.copyright-wrapper{';
		$electronics_marketplace_custom_css .='background-color: '.esc_attr($ecommerce_solution_copyright_text_background).';';
	$electronics_marketplace_custom_css .='}';

	//back to top icon color
	$ecommerce_solution_scroll_icon_color = get_theme_mod('ecommerce_solution_scroll_icon_color');
	$electronics_marketplace_custom_css .='#scrollbutton i{';
		$electronics_marketplace_custom_css .='color: '.esc_attr($ecommerce_solution_scroll_icon_color).';';
	$electronics_marketplace_custom_css .='}';

	//back to top icon hover color
	$ecommerce_solution_scroll_icon_hover_color = get_theme_mod('ecommerce_solution_scroll_icon_hover_color');
	$electronics_marketplace_custom_css .='#scrollbutton i:hover{';
		$electronics_marketplace_custom_css .='color: '.esc_attr($ecommerce_solution_scroll_icon_hover_color).';';
	$electronics_marketplace_custom_css .='}';

	//Back to Top Bg Color
	$ecommerce_solution_scroll_icon_background = get_theme_mod('ecommerce_solution_scroll_icon_background');
	$electronics_marketplace_custom_css .='#scrollbutton i{';
		$electronics_marketplace_custom_css .='background-color: '.esc_attr($ecommerce_solution_scroll_icon_background).';';
		$electronics_marketplace_custom_css .='border-color: '.esc_attr($ecommerce_solution_scroll_icon_background).';';
	$electronics_marketplace_custom_css .='}';


	// Fixed Copyright
	$ecommerce_solution_fixed_copyright = get_theme_mod( 'ecommerce_solution_display_fixed_copyright',false);
	if($ecommerce_solution_fixed_copyright == true && get_theme_mod( 'ecommerce_solution_sticky_copyright',false) != true){
    	$electronics_marketplace_custom_css .='.fixed-copyright{';
			$electronics_marketplace_custom_css .='position:static;';
		$electronics_marketplace_custom_css .='} ';
	}
    if($ecommerce_solution_fixed_copyright == true){
    	$electronics_marketplace_custom_css .='@media screen and (max-width:575px) {';
		$electronics_marketplace_custom_css .='.fixed-copyright{';
			$electronics_marketplace_custom_css .='position:fixed;';
		$electronics_marketplace_custom_css .='} }';
	}else if($ecommerce_solution_fixed_copyright == false){
		$electronics_marketplace_custom_css .='@media screen and (max-width:575px){';
		$electronics_marketplace_custom_css .='.fixed-copyright{';
			$electronics_marketplace_custom_css .='position:static;';
		$electronics_marketplace_custom_css .='} }';
	}