<?php

$professional_blogger_custom_css = '';

	/*---------------------------text-transform-------------------*/

	$professional_blogger_text_transform = get_theme_mod( 'menu_text_transform_professional_blogger','CAPITALISE');
    if($professional_blogger_text_transform == 'CAPITALISE'){

		$professional_blogger_custom_css .='.main-navigation ul li a{';

			$professional_blogger_custom_css .='text-transform: capitalize ; font-size: 15px;';

		$professional_blogger_custom_css .='}';

	}else if($professional_blogger_text_transform == 'UPPERCASE'){

		$professional_blogger_custom_css .='.main-navigation ul li a{';

			$professional_blogger_custom_css .='text-transform: uppercase ; font-size: 15px;';

		$professional_blogger_custom_css .='}';

	}else if($professional_blogger_text_transform == 'LOWERCASE'){

		$professional_blogger_custom_css .='.main-navigation ul li a{';

			$professional_blogger_custom_css .='text-transform: lowercase ; font-size: 15px;';

		$professional_blogger_custom_css .='}';
	}

	/*---------------------------menu-zoom-------------------*/

		$professional_blogger_menu_zoom = get_theme_mod( 'professional_blogger_menu_zoom','None');

    if($professional_blogger_menu_zoom == 'None'){

		$professional_blogger_custom_css .='.main-navigation ul li a{';

			$professional_blogger_custom_css .='';

		$professional_blogger_custom_css .='}';

	}else if($professional_blogger_menu_zoom == 'Zoominn'){

		$professional_blogger_custom_css .='.main-navigation ul li a:hover{';

			$professional_blogger_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: var(--first-color);';

		$professional_blogger_custom_css .='}';
	}

	/*---------------------------Container Width-------------------*/

$professional_blogger_container_width = get_theme_mod('professional_blogger_container_width');

		$professional_blogger_custom_css .='body{';

			$professional_blogger_custom_css .='width: '.esc_attr($professional_blogger_container_width).'%; margin: auto';

		$professional_blogger_custom_css .='}';

		/*---------------------------Slider-content-alignment-------------------*/

	$professional_blogger_slider_content_alignment = get_theme_mod( 'professional_blogger_slider_content_alignment','LEFT-ALIGN');

	 if($professional_blogger_slider_content_alignment == 'LEFT-ALIGN'){

			$professional_blogger_custom_css .='.blog_box{';

				$professional_blogger_custom_css .='text-align:left;';

			$professional_blogger_custom_css .='}';


		}else if($professional_blogger_slider_content_alignment == 'CENTER-ALIGN'){

			$professional_blogger_custom_css .='.blog_box{';

				$professional_blogger_custom_css .='text-align:center;';

			$professional_blogger_custom_css .='}';


		}else if($professional_blogger_slider_content_alignment == 'RIGHT-ALIGN'){

			$professional_blogger_custom_css .='.blog_box{';

				$professional_blogger_custom_css .='text-align:right;';

			$professional_blogger_custom_css .='}';

		}

		/*---------------------------Copyright Text alignment-------------------*/

$professional_blogger_copyright_text_alignment = get_theme_mod( 'professional_blogger_copyright_text_alignment','LEFT-ALIGN');

 if($professional_blogger_copyright_text_alignment == 'LEFT-ALIGN'){

		$professional_blogger_custom_css .='.copy-text p{';

			$professional_blogger_custom_css .='text-align:left;';

		$professional_blogger_custom_css .='}';


	}else if($professional_blogger_copyright_text_alignment == 'CENTER-ALIGN'){

		$professional_blogger_custom_css .='.copy-text p{';

			$professional_blogger_custom_css .='text-align:center;';

		$professional_blogger_custom_css .='}';


	}else if($professional_blogger_copyright_text_alignment == 'RIGHT-ALIGN'){

		$professional_blogger_custom_css .='.copy-text p{';

			$professional_blogger_custom_css .='text-align:right;';

		$professional_blogger_custom_css .='}';

	}

	/*---------------------------related Product Settings-------------------*/

$professional_blogger_related_product_setting = get_theme_mod('professional_blogger_related_product_setting',true);

	if($professional_blogger_related_product_setting == false){

		$professional_blogger_custom_css .='.related.products, .related h2{';

			$professional_blogger_custom_css .='display: none;';

		$professional_blogger_custom_css .='}';
	}

		/*---------------------------Scroll to Top Alignment Settings-------------------*/

		$professional_blogger_scroll_top_position = get_theme_mod( 'professional_blogger_scroll_top_position','Right');

		if($professional_blogger_scroll_top_position == 'Right'){
	
			$professional_blogger_custom_css .='.scroll-up{';
	
				$professional_blogger_custom_css .='right: 20px;';
	
			$professional_blogger_custom_css .='}';
	
		}else if($professional_blogger_scroll_top_position == 'Left'){
	
			$professional_blogger_custom_css .='.scroll-up{';
	
				$professional_blogger_custom_css .='left: 20px;';
	
			$professional_blogger_custom_css .='}';
	
		}else if($professional_blogger_scroll_top_position == 'Center'){
	
			$professional_blogger_custom_css .='.scroll-up{';
	
				$professional_blogger_custom_css .='right: 50%;left: 50%;';
	
			$professional_blogger_custom_css .='}';
		}
	
			/*---------------------------Pagination Settings-------------------*/
	
	
	$professional_blogger_pagination_setting = get_theme_mod('professional_blogger_pagination_setting',true);
	
		if($professional_blogger_pagination_setting == false){
	
			$professional_blogger_custom_css .='.nav-links{';
	
				$professional_blogger_custom_css .='display: none;';
	
			$professional_blogger_custom_css .='}';
		}


			/*--------------------------- Slider Opacity -------------------*/

	$professional_blogger_slider_opacity_color = get_theme_mod( 'professional_blogger_slider_opacity_color','unset');

	if($professional_blogger_slider_opacity_color == '0'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.1'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.1';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.2'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.2';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.3'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.3';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.4'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.4';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.5'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.5';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.6'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.6';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.7'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.7';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.8'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.8';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == '0.9'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:0.9';

		$professional_blogger_custom_css .='}';

		}else if($professional_blogger_slider_opacity_color == 'unset'){

		$professional_blogger_custom_css .='.blog_inner_box img{';

			$professional_blogger_custom_css .='opacity:unset';

		$professional_blogger_custom_css .='}';

		}

/*---------------------------woocommerce pagination alignment settings-------------------*/

	$professional_blogger_woocommerce_pagination_position = get_theme_mod( 'professional_blogger_woocommerce_pagination_position','Center');

	if($professional_blogger_woocommerce_pagination_position == 'Left'){

		$professional_blogger_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$professional_blogger_custom_css .='text-align: left;';

		$professional_blogger_custom_css .='}';

	}else if($professional_blogger_woocommerce_pagination_position == 'Center'){

		$professional_blogger_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$professional_blogger_custom_css .='text-align: center;';

		$professional_blogger_custom_css .='}';

	}else if($professional_blogger_woocommerce_pagination_position == 'Right'){

		$professional_blogger_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$professional_blogger_custom_css .='text-align: right;';

		$professional_blogger_custom_css .='}';
	}


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


$professional_blogger_first_color = get_theme_mod('professional_blogger_first_color');
$professional_blogger_second_color = get_theme_mod('professional_blogger_second_color');
$professional_blogger_third_color = get_theme_mod('professional_blogger_third_color');


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

if ($professional_blogger_first_color) {
  $professional_blogger_custom_css .= ':root {';
  $professional_blogger_custom_css .= '--first-color: ' . esc_attr($professional_blogger_first_color) . ' !important;';
  $professional_blogger_custom_css .= '} ';
}

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

if ($professional_blogger_second_color) {
  $professional_blogger_custom_css .= ':root {';
  $professional_blogger_custom_css .= '--second-color: ' . esc_attr($professional_blogger_second_color) . ' !important;';
  $professional_blogger_custom_css .= '} ';
}

/*--- Third Global Color ---*/

if ($professional_blogger_third_color) {
  $professional_blogger_custom_css .= ':root {';
  $professional_blogger_custom_css .= '--third-color: ' . esc_attr($professional_blogger_third_color) . ' !important;';
  $professional_blogger_custom_css .= '} ';
}