<?php
	
	$farming_store_tp_theme_css = '';

	// 1st color
	$farming_store_tp_color_option_first = get_theme_mod('farming_store_tp_color_option_first', '#70DA40');
	if ($farming_store_tp_color_option_first) {
		$farming_store_tp_theme_css .= ':root {';
		$farming_store_tp_theme_css .= '--color-primary1: ' . esc_attr($farming_store_tp_color_option_first) . ';';
		$farming_store_tp_theme_css .= '}';
	}

	// 2nd color
	$farming_store_tp_color_option_second = get_theme_mod('farming_store_tp_color_option_second', '#0C7735');
	if ($farming_store_tp_color_option_second) {
		$farming_store_tp_theme_css .= ':root {';
		$farming_store_tp_theme_css .= '--color-primary2: ' . esc_attr($farming_store_tp_color_option_second) . ';';
		$farming_store_tp_theme_css .= '}';
	}

	// preloader
	$farming_store_tp_preloader_color1_option = get_theme_mod('farming_store_tp_preloader_color1_option');
	if($farming_store_tp_preloader_color1_option != false){
	$farming_store_tp_theme_css .='.center1{';
		$farming_store_tp_theme_css .='border-color: '.esc_attr($farming_store_tp_preloader_color1_option).' !important;';
	$farming_store_tp_theme_css .='}';
	}
	if($farming_store_tp_preloader_color1_option != false){
	$farming_store_tp_theme_css .='.center1 .ring::before{';
		$farming_store_tp_theme_css .='background: '.esc_attr($farming_store_tp_preloader_color1_option).' !important;';
	$farming_store_tp_theme_css .='}';
	}

	$farming_store_tp_preloader_color2_option = get_theme_mod('farming_store_tp_preloader_color2_option');

	if($farming_store_tp_preloader_color2_option != false){
	$farming_store_tp_theme_css .='.center2{';
		$farming_store_tp_theme_css .='border-color: '.esc_attr($farming_store_tp_preloader_color2_option).' !important;';
	$farming_store_tp_theme_css .='}';
	}
	if($farming_store_tp_preloader_color2_option != false){
	$farming_store_tp_theme_css .='.center2 .ring::before{';
		$farming_store_tp_theme_css .='background: '.esc_attr($farming_store_tp_preloader_color2_option).' !important;';
	$farming_store_tp_theme_css .='}';
	}

	$farming_store_tp_preloader_bg_color_option = get_theme_mod('farming_store_tp_preloader_bg_color_option');

	if($farming_store_tp_preloader_bg_color_option != false){
	$farming_store_tp_theme_css .='.loader{';
		$farming_store_tp_theme_css .='background: '.esc_attr($farming_store_tp_preloader_bg_color_option).';';
	$farming_store_tp_theme_css .='}';
	}

	$farming_store_tp_footer_bg_color_option = get_theme_mod('farming_store_tp_footer_bg_color_option');


	if($farming_store_tp_footer_bg_color_option != false){
	$farming_store_tp_theme_css .='#footer{';
		$farming_store_tp_theme_css .='background: '.esc_attr($farming_store_tp_footer_bg_color_option).';';
	$farming_store_tp_theme_css .='}';
	}

	// logo tagline color
	$farming_store_site_tagline_color = get_theme_mod('farming_store_site_tagline_color');

	if($farming_store_site_tagline_color != false){
	$farming_store_tp_theme_css .='.logo h1 a, .logo p a, .logo p.site-title a{';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_site_tagline_color).';';
	$farming_store_tp_theme_css .='}';
	}

	$farming_store_logo_tagline_color = get_theme_mod('farming_store_logo_tagline_color');
	if($farming_store_logo_tagline_color != false){
	$farming_store_tp_theme_css .='p.site-description{';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_logo_tagline_color).';';
	$farming_store_tp_theme_css .='}';
	}

	// footer widget title color
	$farming_store_footer_widget_title_color = get_theme_mod('farming_store_footer_widget_title_color');
	if($farming_store_footer_widget_title_color != false){
	$farming_store_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_footer_widget_title_color).';';
	$farming_store_tp_theme_css .='}';
	}

	// copyright text color
	$farming_store_footer_copyright_text_color = get_theme_mod('farming_store_footer_copyright_text_color');
	if($farming_store_footer_copyright_text_color != false){
	$farming_store_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_footer_copyright_text_color).'!important;';
	$farming_store_tp_theme_css .='}';
	}

	// header image title color
	$farming_store_header_image_title_text_color = get_theme_mod('farming_store_header_image_title_text_color');
	if($farming_store_header_image_title_text_color != false){
	$farming_store_tp_theme_css .='.box-text h2{';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_header_image_title_text_color).';';
	$farming_store_tp_theme_css .='}';
	}

	// menu color
	$farming_store_menu_color = get_theme_mod('farming_store_menu_color');
	if($farming_store_menu_color != false){
	$farming_store_tp_theme_css .='.main-navigation a{';
	$farming_store_tp_theme_css .='color: '.esc_attr($farming_store_menu_color).';';
	$farming_store_tp_theme_css .='}';
}


//Footer Font Weight
$farming_store_footer_copyright_title_font_weight = get_theme_mod( 'farming_store_footer_copyright_title_font_weight','');
if($farming_store_footer_copyright_title_font_weight == '100'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 100;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '200'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 200;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '300'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 300;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '400'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 400;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '500'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 500;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '600'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 600;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '700'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 700;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '800'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 800;';
$farming_store_tp_theme_css .='}';
}else if($farming_store_footer_copyright_title_font_weight == '900'){
$farming_store_tp_theme_css .='#footer .site-info p {';
    $farming_store_tp_theme_css .='font-weight: 900;';
$farming_store_tp_theme_css .='}';
}