<?php

$pest_control_lite_custom_css = '';


// $pest_control_lite_is_dark_mode_enabled = get_theme_mod( 'pest_control_lite_is_dark_mode_enabled', false );

// if ( $pest_control_lite_is_dark_mode_enabled ) {

//     $pest_control_lite_custom_css .= 'body,.fixed-header,tr:nth-child(2n+2) {';
//     $pest_control_lite_custom_css .= 'background: #000;';
//     $pest_control_lite_custom_css .= '}';

//     $pest_control_lite_custom_css .= '.some {';
//     $pest_control_lite_custom_css .= 'background: #000 !important;';
//     $pest_control_lite_custom_css .= '}';

// 	$pest_control_lite_custom_css .= '.timing h6,h6.catno,.sticky .post-content{';
//     $pest_control_lite_custom_css .= 'color: #000';
//     $pest_control_lite_custom_css .= '}';

// 	$pest_control_lite_custom_css .= 'h5.product-text a,#featured-product p.price,.card-header a,.comment-content.card-block p,.post-box.sticky a{';
//     $pest_control_lite_custom_css .= 'color: #000 !important';
//     $pest_control_lite_custom_css .= '}';

//     $pest_control_lite_custom_css .= '.some{';
//     $pest_control_lite_custom_css .= 'background: #fff;';
//     $pest_control_lite_custom_css .= '}';

//     $pest_control_lite_custom_css .= '.some {';
//     $pest_control_lite_custom_css .= 'background: #fff !important;';
//     $pest_control_lite_custom_css .= '}';
	

//     $pest_control_lite_custom_css .= 'body,h1,h2,h3,h4,h5,p,#main-menu ul li a,.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,a,li.menu-item-has-children:after{';
//     $pest_control_lite_custom_css .= 'color: #fff;';
//     $pest_control_lite_custom_css .= '}';

//     $pest_control_lite_custom_css .= 'a.wc-block-components-product-name, .wc-block-components-product-name,.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
// .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
// .wc-block-components-totals-item__label,.wc-block-components-totals-item__value,
// .wc-block-components-product-metadata .wc-block-components-product-metadata__description>p,
// .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
// .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
// .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
// .wc-block-components-quantity-selector,table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
// .wc-block-components-product-price__value.is-discounted,del.wc-block-components-product-price__regular,.logo a,.logo span,#main-menu ul li.current-menu-item > a, #main-menu ul li.current_page_item > a,.about-cat h5 a,#main-menu ul li a:hover{';
//     $pest_control_lite_custom_css .= 'color: #fff !important;';
//     $pest_control_lite_custom_css .= '}';

// 	$pest_control_lite_custom_css .= '.post-box{';
//     $pest_control_lite_custom_css .= '    border: 1px solid rgb(229 229 229 / 48%)';
//     $pest_control_lite_custom_css .= '}';

//     $pest_control_lite_custom_css .= '#site-navigationn{';
//     $pest_control_lite_custom_css .= ' background: linear-gradient(to right, #000 75%, #ffeeee 75%)';
//     $pest_control_lite_custom_css .= '}';
// }

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

	$pest_control_lite_text_transform = get_theme_mod( 'menu_text_transform_pest_control_lite','CAPITALISE');
	
    if($pest_control_lite_text_transform == 'CAPITALISE'){

		$pest_control_lite_custom_css .='#main-menu ul li a{';

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

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='#main-menu ul li a{';

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

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='#main-menu ul li a{';

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

		$pest_control_lite_custom_css .='}';
	}

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

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

    if($pest_control_lite_menu_zoom == 'None'){

		$pest_control_lite_custom_css .='#main-menu ul li a{';

			$pest_control_lite_custom_css .='';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='#main-menu ul li a:hover{';

			$pest_control_lite_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: #222222;';

		$pest_control_lite_custom_css .='}';
	}


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

	$pest_control_lite_container_width = get_theme_mod('pest_control_lite_container_width');

			$pest_control_lite_custom_css .='body, .fixed-header{';

				$pest_control_lite_custom_css .='width: '.esc_attr($pest_control_lite_container_width).'%; margin: auto;';

			$pest_control_lite_custom_css .='}';

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


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

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

				$pest_control_lite_custom_css .='.blog_box{';

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

				$pest_control_lite_custom_css .='}';


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

				$pest_control_lite_custom_css .='.blog_box{';

					$pest_control_lite_custom_css .='text-align:center; right:30%; left:30%;';

				$pest_control_lite_custom_css .='}';


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

				$pest_control_lite_custom_css .='.blog_box{';

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

				$pest_control_lite_custom_css .='}';

			}

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

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

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

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

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

		$pest_control_lite_custom_css .='}';


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

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

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

		$pest_control_lite_custom_css .='}';


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

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

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

		$pest_control_lite_custom_css .='}';

	}

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


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

		if($pest_control_lite_related_product_setting == false){

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

				$pest_control_lite_custom_css .='display: none;';

			$pest_control_lite_custom_css .='}';
		}

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

	$pest_control_lite_slider_opacity_color = get_theme_mod( 'pest_control_lite_slider_opacity_color','0.5');

	if($pest_control_lite_slider_opacity_color == '0'){

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.1';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.2';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.3';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.4';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.5';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.6';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.7';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.8';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:0.9';

		$pest_control_lite_custom_css .='}';

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

		$pest_control_lite_custom_css .='.blog_inner_box img{';

			$pest_control_lite_custom_css .='opacity:unset';

		$pest_control_lite_custom_css .='}';

		}

		/*---------------------------Woocommerce Pagination Alignment Settings-------------------*/

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

	if($pest_control_lite_woocommerce_pagination_position == 'Left'){

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

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

		$pest_control_lite_custom_css .='}';

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

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

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

		$pest_control_lite_custom_css .='}';

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

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

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

		$pest_control_lite_custom_css .='}';
	}

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

$pest_control_lite_first_color = get_theme_mod('pest_control_lite_first_color');
$pest_control_lite_second_color = get_theme_mod('pest_control_lite_second_color');

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

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

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

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