<?php

$kids_fashion_custom_css = '';


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

// if ( $kids_fashion_is_dark_mode_enabled ) {

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

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

// 	$kids_fashion_custom_css .= '.blog_box h3 a{';
//     $kids_fashion_custom_css .= 'color: #000';
//     $kids_fashion_custom_css .= '}';

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

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

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

//     $kids_fashion_custom_css .= 'body,h1,h2,h3,h4,h5,p,.main-navigation 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,.header-search .open-search-form i{';
//     $kids_fashion_custom_css .= 'color: #fff;';
//     $kids_fashion_custom_css .= '}';

//     $kids_fashion_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,.social-links a, .top-header span,h2.woocommerce-loop-product__title{';
//     $kids_fashion_custom_css .= 'color: #fff !important;';
//     $kids_fashion_custom_css .= '}';

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

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

	$kids_fashion_text_transform = get_theme_mod( 'menu_text_transform_kids_fashion','UPPERCASE');
	
    if($kids_fashion_text_transform == 'CAPITALISE'){

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

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

		$kids_fashion_custom_css .='}';

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

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

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

		$kids_fashion_custom_css .='}';

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

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

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

		$kids_fashion_custom_css .='}';
	}

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

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

		if($kids_fashion_menu_zoom == 'None'){

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

				$kids_fashion_custom_css .='';

			$kids_fashion_custom_css .='}';

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

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

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

			$kids_fashion_custom_css .='}';
		} 

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

$kids_fashion_container_width = get_theme_mod('kids_fashion_container_width');

		$kids_fashion_custom_css .='body{';

			$kids_fashion_custom_css .='width: '.esc_attr($kids_fashion_container_width).'%; margin: auto;';

		$kids_fashion_custom_css .='}';

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

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

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

			$kids_fashion_custom_css .='.blog_box{';

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

			$kids_fashion_custom_css .='}';


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

			$kids_fashion_custom_css .='.blog_box{';

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

			$kids_fashion_custom_css .='}';


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

			$kids_fashion_custom_css .='.blog_box{';

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

			$kids_fashion_custom_css .='}';

		}

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

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

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

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

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

			$kids_fashion_custom_css .='}';


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

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

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

			$kids_fashion_custom_css .='}';


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

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

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

			$kids_fashion_custom_css .='}';

		}

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


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

	if($kids_fashion_related_product_setting == false){

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

			$kids_fashion_custom_css .='display: none;';

		$kids_fashion_custom_css .='}';
	}

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

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

	if($kids_fashion_scroll_top_position == 'Right'){

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

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

		$kids_fashion_custom_css .='}';

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

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

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

		$kids_fashion_custom_css .='}';

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

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

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

		$kids_fashion_custom_css .='}';
	}

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


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

	if($kids_fashion_pagination_setting == false){

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

			$kids_fashion_custom_css .='display: none;';

		$kids_fashion_custom_css .='}';
	}

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

	$kids_fashion_slider_opacity_color = get_theme_mod( 'kids_fashion_slider_opacity_color','0.6');

	if($kids_fashion_slider_opacity_color == '0'){

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.1';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.2';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.3';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.4';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.5';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.6';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.7';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.8';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:0.9';

		$kids_fashion_custom_css .='}';

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

		$kids_fashion_custom_css .='.blog_inner_box img{';

			$kids_fashion_custom_css .='opacity:unset';

		$kids_fashion_custom_css .='}';

		}

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

$kids_fashion_first_color = get_theme_mod('kids_fashion_first_color');
$kids_fashion_second_color = get_theme_mod('kids_fashion_second_color');

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

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

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

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