<?php

$auto_parts_supplier_custom_css = '';

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

$auto_parts_supplier_text_transform = get_theme_mod( 'menu_text_transform_auto_parts_supplier','CAPITALISE');
if($auto_parts_supplier_text_transform == 'CAPITALISE'){

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

		$auto_parts_supplier_custom_css .='text-transform: capitalize ;';

	$auto_parts_supplier_custom_css .='}';

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

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

		$auto_parts_supplier_custom_css .='text-transform: uppercase ;';

	$auto_parts_supplier_custom_css .='}';

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

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

		$auto_parts_supplier_custom_css .='text-transform: lowercase ;';

	$auto_parts_supplier_custom_css .='}';
}

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

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

    if($auto_parts_supplier_menu_zoom == 'None'){

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

			$auto_parts_supplier_custom_css .='';

		$auto_parts_supplier_custom_css .='}';

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

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

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

		$auto_parts_supplier_custom_css .='}';
	}

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

$auto_parts_supplier_container_width = get_theme_mod('auto_parts_supplier_container_width');

	$auto_parts_supplier_custom_css .='body{';

		$auto_parts_supplier_custom_css .='width: '.esc_attr($auto_parts_supplier_container_width).'%; margin: auto;';

	$auto_parts_supplier_custom_css .='}';

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

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

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

			$auto_parts_supplier_custom_css .='.blog_box{';

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

			$auto_parts_supplier_custom_css .='}';


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

			$auto_parts_supplier_custom_css .='.blog_box{';

				$auto_parts_supplier_custom_css .='text-align:center; left:0; right:0;';

			$auto_parts_supplier_custom_css .='}';


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

			$auto_parts_supplier_custom_css .='.blog_box{';

				$auto_parts_supplier_custom_css .='text-align:right; left:55%; right:15%';

			$auto_parts_supplier_custom_css .='}';
		}

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

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

	if($auto_parts_supplier_scroll_top_position == 'Right'){

		$auto_parts_supplier_custom_css .='.scroll-up{';

			$auto_parts_supplier_custom_css .='right: 20px;';

		$auto_parts_supplier_custom_css .='}';

	}else if($auto_parts_supplier_scroll_top_position == 'Left'){

		$auto_parts_supplier_custom_css .='.scroll-up{';

			$auto_parts_supplier_custom_css .='left: 20px;';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.scroll-up{';

			$auto_parts_supplier_custom_css .='right: 50%;left: 50%;';

		$auto_parts_supplier_custom_css .='}';
	}

		/*---------------------------Pagination Settings-------------------*/


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

	if($auto_parts_supplier_pagination_setting == false){

		$auto_parts_supplier_custom_css .='.nav-links{';

			$auto_parts_supplier_custom_css .='display: none;';

		$auto_parts_supplier_custom_css .='}';
	}

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


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

	if($auto_parts_supplier_related_product_setting == false){

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

			$auto_parts_supplier_custom_css .='display: none;';

		$auto_parts_supplier_custom_css .='}';
	}

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

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

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

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

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

		$auto_parts_supplier_custom_css .='}';


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

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

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

		$auto_parts_supplier_custom_css .='}';


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

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

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

		$auto_parts_supplier_custom_css .='}';
	}

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

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

	if($auto_parts_supplier_slider_opacity_color == '0'){

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.1';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.2';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.3';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.4';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.5';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.6';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.7';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.8';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:0.9';

		$auto_parts_supplier_custom_css .='}';

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

		$auto_parts_supplier_custom_css .='.blog_inner_box img{';

			$auto_parts_supplier_custom_css .='opacity:unset';

		$auto_parts_supplier_custom_css .='}';

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

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

	if($auto_parts_supplier_woocommerce_pagination_position == 'Left'){

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

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

		$auto_parts_supplier_custom_css .='}';

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

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

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

		$auto_parts_supplier_custom_css .='}';

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

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

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

		$auto_parts_supplier_custom_css .='}';
	}

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

$auto_parts_supplier_first_color = get_theme_mod('auto_parts_supplier_first_color');
$auto_parts_supplier_second_color = get_theme_mod('auto_parts_supplier_second_color');

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

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

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

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