<?php

	$grocery_supermarket_chain_pix_theme_css = "";

	// site title and tagline font size option
	$grocery_supermarket_chain_title_font_size = get_theme_mod('grocery_supermarket_chain_title_font_size', 25);{
			$grocery_supermarket_chain_pix_theme_css .='p.site-title a, h1.site-title a {';
	$grocery_supermarket_chain_pix_theme_css .='font-size: '.esc_attr($grocery_supermarket_chain_title_font_size).'px;!important';
			$grocery_supermarket_chain_pix_theme_css .='}';
	}

	// site title and tagline font size option
	$grocery_supermarket_chain_site_tagline_font_size = get_theme_mod('grocery_supermarket_chain_site_tagline_font_size', 15);{
			$grocery_supermarket_chain_pix_theme_css .='p.site-description {';
	$grocery_supermarket_chain_pix_theme_css .='font-size: '.esc_attr($grocery_supermarket_chain_site_tagline_font_size).'px;!important';
			$grocery_supermarket_chain_pix_theme_css .='}';
	}
	
	//Font Weight
	$grocery_supermarket_chain_menu_font_weight = get_theme_mod( 'grocery_supermarket_chain_menu_font_weight','');
	if($grocery_supermarket_chain_menu_font_weight == '100'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 100;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '200'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 200;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '300'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 300;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '400'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 400;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '500'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 500;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '600'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 600;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '700'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 700;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '800'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 800;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_font_weight == '900'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a {';
		$grocery_supermarket_chain_pix_theme_css .='font-weight: 900;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}

	// menu text transform
	$grocery_supermarket_chain_menu_text_tranform = get_theme_mod( 'grocery_supermarket_chain_menu_text_tranform','Capitalize');
	if($grocery_supermarket_chain_menu_text_tranform == 'Uppercase'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a  {';
		$grocery_supermarket_chain_pix_theme_css .='text-transform: uppercase;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_menu_text_tranform == 'Lowercase'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a  {';
		$grocery_supermarket_chain_pix_theme_css .='text-transform: lowercase;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}
	else if($grocery_supermarket_chain_menu_text_tranform == 'Capitalize'){
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a  {';
		$grocery_supermarket_chain_pix_theme_css .='text-transform: capitalize;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}


	//menu font size
	$grocery_supermarket_chain_menu_font_size = get_theme_mod('grocery_supermarket_chain_menu_font_size', 17);{
	$grocery_supermarket_chain_pix_theme_css .='.nav_menu li a ,.main-navigation li.page_item_has_children:after, .main-navigation li.menu-item-has-children:after{';
		$grocery_supermarket_chain_pix_theme_css .='font-size: '.esc_attr($grocery_supermarket_chain_menu_font_size).'px;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}


	//Add Settings and Controls for Scroll top
	$grocery_supermarket_chain_scroll_top_position = get_theme_mod( 'grocery_supermarket_chain_scroll_top_position','Right');
	if($grocery_supermarket_chain_scroll_top_position == 'Right'){
	$grocery_supermarket_chain_pix_theme_css .='#return-to-top{';
	    $grocery_supermarket_chain_pix_theme_css .='right: 20px;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_scroll_top_position == 'Left'){
	$grocery_supermarket_chain_pix_theme_css .='#return-to-top{';
	    $grocery_supermarket_chain_pix_theme_css .='left: 20px;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}else if($grocery_supermarket_chain_scroll_top_position == 'Center'){
	$grocery_supermarket_chain_pix_theme_css .='#return-to-top{';
	    $grocery_supermarket_chain_pix_theme_css .='right: 50%;left: 50%;';
	$grocery_supermarket_chain_pix_theme_css .='}';
	}


	// footer widget option 


	$grocery_supermarket_chain_footer_widget_background_color = get_theme_mod('grocery_supermarket_chain_footer_widget_background_color');
			if ($grocery_supermarket_chain_footer_widget_background_color) {

				$grocery_supermarket_chain_pix_theme_css .= "
					.top-footer {
						background-color: ". esc_attr($grocery_supermarket_chain_footer_widget_background_color) .";
					}
				";
			}

			$grocery_supermarket_chain_footer_widget_background_image = get_theme_mod('grocery_supermarket_chain_footer_widget_background_image');
			if ($grocery_supermarket_chain_footer_widget_background_image) {
				$grocery_supermarket_chain_pix_theme_css .= "
					.top-footer {
						background-image: url(" . esc_url($grocery_supermarket_chain_footer_widget_background_image) . ");
					}
				";
			}