<?php

/*---------------------------First highlight color-------------------*/

	$food_grocery_store_color = get_theme_mod('food_grocery_store_color');

	$food_grocery_store_custom_css= "";

	if($food_grocery_store_color != false){
		$food_grocery_store_custom_css .='.search-box button, span.cart-value, .more-btn a, #slider .carousel-control-prev-icon:hover, #slider .carousel-control-next-icon:hover, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, input[type="submit"], #footer-2, #comments a.comment-reply-link, #comments input[type="submit"], #sidebar h3, .pagination span, .pagination a, nav.woocommerce-MyAccount-navigation ul li, .toggle-nav i, .scrollup i,.widget_product_search button, span.cart-value, span.wishlist-counter, #preloader, #footer .wp-block-search .wp-block-search__button, #sidebar .wp-block-search .wp-block-search__button, #sidebar .wp-block-search .wp-block-search__label{';
			$food_grocery_store_custom_css .='background: '.esc_attr($food_grocery_store_color).';';
		$food_grocery_store_custom_css .='}';

		$food_grocery_store_custom_css .='@media screen and (max-width:720px){
				.logo{';
			$food_grocery_store_custom_css .='background: '.esc_attr($food_grocery_store_color).';';
		$food_grocery_store_custom_css .='} }';
	}
	if($food_grocery_store_color != false){
		$food_grocery_store_custom_css .='a, .main-navigation .current_page_item > a, .main-navigation .current-menu-item > a, .main-navigation .current_page_ancestor > a, .main-navigation a:hover, .woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .main-navigation ul.sub-menu a:hover, .post-main-box:hover h2 a, .post-main-box:hover .post-info span a, .post-info:hover a, p.phone_no strong a:hover, .account a:hover,.cart_no a:hover, .wishlist a:hover, .top-bar a:hover, #slider .inner_carousel h1 a:hover, span.woocommerce-Price-amount.amount, #content-vw a, #footer li a:hover, #comments p a{';
			$food_grocery_store_custom_css .='color: '.esc_attr($food_grocery_store_color).';';
		$food_grocery_store_custom_css .='}';
	}
	if($food_grocery_store_color != false){
		$food_grocery_store_custom_css .='.translate_lang .switcher, .switcher .selected a:hover{';
			$food_grocery_store_custom_css .='color: '.esc_attr($food_grocery_store_color).'!important;';
		$food_grocery_store_custom_css .='}';
	}	
	if($food_grocery_store_color != false){
		$food_grocery_store_custom_css .='.search-box form.woocommerce-product-search, .product-cat, .main-navigation ul ul{';
			$food_grocery_store_custom_css .='border-color: '.esc_attr($food_grocery_store_color).';';
		$food_grocery_store_custom_css .='}';

		$food_grocery_store_custom_css .='@media screen and (max-width:720px){
				button.product-btn{';
			$food_grocery_store_custom_css .='border-color: '.esc_attr($food_grocery_store_color).';';
		$food_grocery_store_custom_css .='} }';
	}

	/*---------------------------Width Layout -------------------*/

	$food_grocery_store_theme_lay = get_theme_mod( 'food_grocery_store_width_option','Full Width');
    if($food_grocery_store_theme_lay == 'Boxed'){
		$food_grocery_store_custom_css .='body{';
			$food_grocery_store_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='#middle-header input[type="search"]{';
			$food_grocery_store_custom_css .='width:84.5%';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='#slider{';
			$food_grocery_store_custom_css .='right: 1%;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.scrollup i{';
			$food_grocery_store_custom_css .='right: 100px;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.scrollup.left i{';
			$food_grocery_store_custom_css .='left: 100px;';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Wide Width'){
		$food_grocery_store_custom_css .='body{';
			$food_grocery_store_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.scrollup i{';
			$food_grocery_store_custom_css .='right: 30px;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.scrollup.left i{';
			$food_grocery_store_custom_css .='left: 30px;';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Full Width'){
		$food_grocery_store_custom_css .='body{';
			$food_grocery_store_custom_css .='max-width: 100%;';
		$food_grocery_store_custom_css .='}';
	}

	/*-----------------Slider Content Layout -------------------*/

	$food_grocery_store_theme_lay = get_theme_mod( 'food_grocery_store_slider_content_option','Center');
    if($food_grocery_store_theme_lay == 'Left'){
		$food_grocery_store_custom_css .='#slider .carousel-caption{';
			$food_grocery_store_custom_css .='text-align:left; right: 45%; left: 10%;';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Center'){
		$food_grocery_store_custom_css .='#slider .carousel-caption{';
			$food_grocery_store_custom_css .='text-align:center; right: 25%; left: 25%;';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Right'){
		$food_grocery_store_custom_css .='#slider .carousel-caption{';
			$food_grocery_store_custom_css .='text-align:right; right: 10%; left: 45%;';
		$food_grocery_store_custom_css .='}';
	}

	/*---------------------------Slider Height ------------*/

	$food_grocery_store_slider_height = get_theme_mod('food_grocery_store_slider_height');
	if($food_grocery_store_slider_height != false){
		$food_grocery_store_custom_css .='#slider img{';
			$food_grocery_store_custom_css .='height: '.esc_attr($food_grocery_store_slider_height).';';
		$food_grocery_store_custom_css .='}';
	}

	/*---------------------------Blog Layout -------------------*/

	$food_grocery_store_theme_lay = get_theme_mod( 'food_grocery_store_blog_layout_option','Default');
    if($food_grocery_store_theme_lay == 'Default'){
		$food_grocery_store_custom_css .='.post-main-box{';
			$food_grocery_store_custom_css .='';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Center'){
		$food_grocery_store_custom_css .='.post-main-box, .post-main-box h2, .post-info, .new-text p{';
			$food_grocery_store_custom_css .='text-align:center;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.post-info{';
			$food_grocery_store_custom_css .='margin-top:10px;';
		$food_grocery_store_custom_css .='}';
	}else if($food_grocery_store_theme_lay == 'Left'){
		$food_grocery_store_custom_css .='.post-main-box, .post-main-box h2, .post-info, .new-text p, #our-services p{';
			$food_grocery_store_custom_css .='text-align:Left;';
		$food_grocery_store_custom_css .='}';
		$food_grocery_store_custom_css .='.post-main-box h2{';
			$food_grocery_store_custom_css .='margin-top:10px;';
		$food_grocery_store_custom_css .='}';
	}

	/*----------------Responsive Media -----------------------*/

	$food_grocery_store_resp_slider = get_theme_mod( 'food_grocery_store_resp_slider_hide_show',false);
	if($food_grocery_store_resp_slider == true && get_theme_mod( 'food_grocery_store_slider_arrows', false) == false){
    	$food_grocery_store_custom_css .='#slider{';
			$food_grocery_store_custom_css .='display:none;';
		$food_grocery_store_custom_css .='} ';
	}
    if($food_grocery_store_resp_slider == true){
    	$food_grocery_store_custom_css .='@media screen and (max-width:575px) {';
		$food_grocery_store_custom_css .='#slider{';
			$food_grocery_store_custom_css .='display:block;';
		$food_grocery_store_custom_css .='} }';
	}else if($food_grocery_store_resp_slider == false){
		$food_grocery_store_custom_css .='@media screen and (max-width:575px) {';
		$food_grocery_store_custom_css .='#slider{';
			$food_grocery_store_custom_css .='display:none;';
		$food_grocery_store_custom_css .='} }';
	}

	$food_grocery_store_resp_sidebar = get_theme_mod( 'food_grocery_store_sidebar_hide_show',true);
    if($food_grocery_store_resp_sidebar == true){
    	$food_grocery_store_custom_css .='@media screen and (max-width:575px) {';
		$food_grocery_store_custom_css .='#sidebar{';
			$food_grocery_store_custom_css .='display:block;';
		$food_grocery_store_custom_css .='} }';
	}else if($food_grocery_store_resp_sidebar == false){
		$food_grocery_store_custom_css .='@media screen and (max-width:575px) {';
		$food_grocery_store_custom_css .='#sidebar{';
			$food_grocery_store_custom_css .='display:none;';
		$food_grocery_store_custom_css .='} }';
	}

	$food_grocery_store_resp_scroll_top = get_theme_mod( 'food_grocery_store_resp_scroll_top_hide_show',true);
	if($food_grocery_store_resp_scroll_top == true && get_theme_mod( 'food_grocery_store_footer_scroll',true) != true){
    	$food_grocery_store_custom_css .='.scrollup i{';
			$food_grocery_store_custom_css .='visibility:hidden !important;';
		$food_grocery_store_custom_css .='} ';
	}
    if($food_grocery_store_resp_scroll_top == true){
    	$food_grocery_store_custom_css .='@media screen and (max-width:575px) {';
		$food_grocery_store_custom_css .='.scrollup i{';
			$food_grocery_store_custom_css .='visibility:visible !important;';
		$food_grocery_store_custom_css .='} }';
	}else if($food_grocery_store_resp_scroll_top == false){
		$food_grocery_store_custom_css .='@media screen and (max-width:575px){';
		$food_grocery_store_custom_css .='.scrollup i{';
			$food_grocery_store_custom_css .='visibility:hidden !important;';
		$food_grocery_store_custom_css .='} }';
	}

	/*---------------- Menus Settings ------------------*/

	$food_grocery_store_navigation_menu_font_size = get_theme_mod('food_grocery_store_navigation_menu_font_size');
	if($food_grocery_store_navigation_menu_font_size != false){
		$food_grocery_store_custom_css .='.main-navigation a{';
			$food_grocery_store_custom_css .='font-size: '.esc_attr($food_grocery_store_navigation_menu_font_size).';';
		$food_grocery_store_custom_css .='}';
	}

	/*---------------- Post Settings ------------------*/

	$food_grocery_store_featured_image_border_radius = get_theme_mod('food_grocery_store_featured_image_border_radius', 0);
	if($food_grocery_store_featured_image_border_radius != false){
		$food_grocery_store_custom_css .='.box-image img, .feature-box img{';
			$food_grocery_store_custom_css .='border-radius: '.esc_attr($food_grocery_store_featured_image_border_radius).'px;';
		$food_grocery_store_custom_css .='}';
	}

	/*---------------- Button Settings ------------------*/

	$food_grocery_store_button_padding_top_bottom = get_theme_mod('food_grocery_store_button_padding_top_bottom');
	$food_grocery_store_button_padding_left_right = get_theme_mod('food_grocery_store_button_padding_left_right');
	if($food_grocery_store_button_padding_top_bottom != false || $food_grocery_store_button_padding_left_right != false){
		$food_grocery_store_custom_css .='.post-main-box .more-btn a{';
			$food_grocery_store_custom_css .='padding-top: '.esc_attr($food_grocery_store_button_padding_top_bottom).'!important; 
			padding-bottom: '.esc_attr($food_grocery_store_button_padding_top_bottom).'!important;
			padding-left: '.esc_attr($food_grocery_store_button_padding_left_right).'!important;
			padding-right: '.esc_attr($food_grocery_store_button_padding_left_right).'!important;';
		$food_grocery_store_custom_css .='}';
	}

	$food_grocery_store_button_border_radius = get_theme_mod('food_grocery_store_button_border_radius');
	if($food_grocery_store_button_border_radius != false){
		$food_grocery_store_custom_css .='.post-main-box .more-btn a{';
			$food_grocery_store_custom_css .='border-radius: '.esc_attr($food_grocery_store_button_border_radius).'px;';
		$food_grocery_store_custom_css .='}';
	}

	/*-------------- Copyright Alignment ----------------*/

	$food_grocery_store_copyright_font_size = get_theme_mod('food_grocery_store_copyright_font_size');
	if($food_grocery_store_copyright_font_size != false){
		$food_grocery_store_custom_css .='.copyright p{';
			$food_grocery_store_custom_css .='font-size: '.esc_attr($food_grocery_store_copyright_font_size).';';
		$food_grocery_store_custom_css .='}';
	}

	$food_grocery_store_copyright_alignment = get_theme_mod('food_grocery_store_copyright_alignment');
	if($food_grocery_store_copyright_alignment != false){
		$food_grocery_store_custom_css .='.copyright p{';
			$food_grocery_store_custom_css .='text-align: '.esc_attr($food_grocery_store_copyright_alignment).';';
		$food_grocery_store_custom_css .='}';
	}

	/*------------------ Logo  -------------------*/

	// Site title Font Size
	$food_grocery_store_site_title_font_size = get_theme_mod('food_grocery_store_site_title_font_size');
	if($food_grocery_store_site_title_font_size != false){
		$food_grocery_store_custom_css .='.logo h1, .logo p.site-title{';
			$food_grocery_store_custom_css .='font-size: '.esc_attr($food_grocery_store_site_title_font_size).';';
		$food_grocery_store_custom_css .='}';
	}

	// Site tagline Font Size
	$food_grocery_store_site_tagline_font_size = get_theme_mod('food_grocery_store_site_tagline_font_size');
	if($food_grocery_store_site_tagline_font_size != false){
		$food_grocery_store_custom_css .='.logo p.site-description{';
			$food_grocery_store_custom_css .='font-size: '.esc_attr($food_grocery_store_site_tagline_font_size).';';
		$food_grocery_store_custom_css .='}';
	}

	/*------------------ Preloader Background Color  -------------------*/

	$food_grocery_store_preloader_bg_color = get_theme_mod('food_grocery_store_preloader_bg_color');
	if($food_grocery_store_preloader_bg_color != false){
		$food_grocery_store_custom_css .='#preloader{';
			$food_grocery_store_custom_css .='background-color: '.esc_attr($food_grocery_store_preloader_bg_color).';';
		$food_grocery_store_custom_css .='}';
	}

	$food_grocery_store_preloader_border_color = get_theme_mod('food_grocery_store_preloader_border_color');
	if($food_grocery_store_preloader_border_color != false){
		$food_grocery_store_custom_css .='.loader-line{';
			$food_grocery_store_custom_css .='border-color: '.esc_attr($food_grocery_store_preloader_border_color).'!important;';
		$food_grocery_store_custom_css .='}';
	}