<?php

$fitness_coaching_custom_css = '';


$fitness_coaching_is_dark_mode_enabled = get_theme_mod( 'fitness_coaching_is_dark_mode_enabled', false );

if ( $fitness_coaching_is_dark_mode_enabled ) {

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

    $fitness_coaching_custom_css .= '.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {';
    $fitness_coaching_custom_css .= 'background: #000 !important;';
    $fitness_coaching_custom_css .= '}';

	$fitness_coaching_custom_css .= '.sticky .post-content{';
    $fitness_coaching_custom_css .= 'color: #000';
    $fitness_coaching_custom_css .= '}';

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

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

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

    $fitness_coaching_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{';
    $fitness_coaching_custom_css .= 'color: #fff;';
    $fitness_coaching_custom_css .= '}';

    $fitness_coaching_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 span{';
    $fitness_coaching_custom_css .= 'color: #fff !important;';
    $fitness_coaching_custom_css .= '}';

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

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

	$fitness_coaching_text_transform = get_theme_mod( 'menu_text_transform_fitness_coaching','UPPERCASE');
	
    if($fitness_coaching_text_transform == 'CAPITALISE'){

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

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

		$fitness_coaching_custom_css .='}';

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

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

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

		$fitness_coaching_custom_css .='}';

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

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

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

		$fitness_coaching_custom_css .='}';
	}

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

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

		if($fitness_coaching_menu_zoom == 'None'){

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

				$fitness_coaching_custom_css .='';

			$fitness_coaching_custom_css .='}';

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

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

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

			$fitness_coaching_custom_css .='}';
		}


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

$fitness_coaching_container_width = get_theme_mod('fitness_coaching_container_width');

		$fitness_coaching_custom_css .='body{';

			$fitness_coaching_custom_css .='width: '.esc_attr($fitness_coaching_container_width).'%; margin: auto;';

		$fitness_coaching_custom_css .='}';

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

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

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

			$fitness_coaching_custom_css .='.blog_inner_box{';

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

			$fitness_coaching_custom_css .='}';


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

			$fitness_coaching_custom_css .='.blog_inner_box{';

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

			$fitness_coaching_custom_css .='}';


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

			$fitness_coaching_custom_css .='.blog_inner_box{';

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

			$fitness_coaching_custom_css .='}';

		}

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

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

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

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

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

			$fitness_coaching_custom_css .='}';


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

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

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

			$fitness_coaching_custom_css .='}';


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

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

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

			$fitness_coaching_custom_css .='}';

		}

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


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

	if($fitness_coaching_related_product_setting == false){

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

			$fitness_coaching_custom_css .='display: none;';

		$fitness_coaching_custom_css .='}';
	}

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

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

	if($fitness_coaching_scroll_top_position == 'Right'){

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

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

		$fitness_coaching_custom_css .='}';

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

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

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

		$fitness_coaching_custom_css .='}';

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

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

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

		$fitness_coaching_custom_css .='}';
	}

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


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

	if($fitness_coaching_pagination_setting == false){

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

			$fitness_coaching_custom_css .='display: none;';

		$fitness_coaching_custom_css .='}';
	}

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

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

	if($fitness_coaching_slider_opacity_color == '0'){

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.1';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.2';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.3';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.4';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.5';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.6';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.7';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.8';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:0.9';

		$fitness_coaching_custom_css .='}';

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

		$fitness_coaching_custom_css .='.blog_box img{';

			$fitness_coaching_custom_css .='opacity:unset';

		$fitness_coaching_custom_css .='}';

		}

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

$fitness_coaching_first_color = get_theme_mod('fitness_coaching_first_color');
$fitness_coaching_second_color = get_theme_mod('fitness_coaching_second_color');

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

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

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

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