<?php

$bakery_cafe_custom_css = '';


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

// if ( $bakery_cafe_is_dark_mode_enabled ) {

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

//     $bakery_cafe_custom_css .= '.main-navigation ul.sub-menu li a {';
//     $bakery_cafe_custom_css .= 'background: #000 !important;';
//     $bakery_cafe_custom_css .= '}';

// 	$bakery_cafe_custom_css .= '.some{';
//     $bakery_cafe_custom_css .= 'color: #000';
//     $bakery_cafe_custom_css .= '}';

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

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

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

//     $bakery_cafe_custom_css .= '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,.logo span,.login-box{';
//     $bakery_cafe_custom_css .= 'color: #fff;';
//     $bakery_cafe_custom_css .= '}';

//     $bakery_cafe_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,a:hover, a:focus, .logo a, .logo span, .main-navigation ul li a, .header-search .open-search-form i, a.cart-customlocation i, .post-meta i, p.slider_btn a:hover, #story h3,li.menu-item-has-children:after,h1.woocommerce-products-header__title.page-title,h2.woocommerce-loop-product__title,h1.product_title.entry-title,div#tab-description h2,section.related.products h2,h2.woocommerce-Reviews-title,h2#reply-title,h2.comments-title,.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price{';
//     $bakery_cafe_custom_css .= 'color: #fff !important;';
//     $bakery_cafe_custom_css .= '}';

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

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

	$bakery_cafe_text_transform = get_theme_mod( 'menu_text_transform_bakery_cafe','UPPERCASE');

    if($bakery_cafe_text_transform == 'CAPITALISE'){

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

			$bakery_cafe_custom_css .='text-transform: capitalize ; font-size: 14px;';

		$bakery_cafe_custom_css .='}';

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

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

			$bakery_cafe_custom_css .='text-transform: uppercase ; font-size: 14px;';

		$bakery_cafe_custom_css .='}';

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

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

			$bakery_cafe_custom_css .='text-transform: lowercase ; font-size: 14px;';

		$bakery_cafe_custom_css .='}';
	}

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

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

    if($bakery_cafe_menu_zoom == 'None'){

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

			$bakery_cafe_custom_css .='';

		$bakery_cafe_custom_css .='}';

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

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

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

		$bakery_cafe_custom_css .='}';
	}

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

	$bakery_cafe_container_width = get_theme_mod('bakery_cafe_container_width');

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

				$bakery_cafe_custom_css .='width: '.esc_attr($bakery_cafe_container_width).'%; margin: auto;';

			$bakery_cafe_custom_css .='}';

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

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

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

				$bakery_cafe_custom_css .='.blog_inner_box{';

					$bakery_cafe_custom_css .='text-align:center; left: 10%; right: 60%;';

				$bakery_cafe_custom_css .='}';


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

				$bakery_cafe_custom_css .='.blog_inner_box{';

					$bakery_cafe_custom_css .='text-align:center; left: 35%; right: 35%;';

				$bakery_cafe_custom_css .='}';


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

				$bakery_cafe_custom_css .='.blog_inner_box{';

					$bakery_cafe_custom_css .='text-align:center; left: 60%; right: 10%;';

				$bakery_cafe_custom_css .='}';

			}

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

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

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

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

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

		$bakery_cafe_custom_css .='}';


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

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

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

		$bakery_cafe_custom_css .='}';


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

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

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

		$bakery_cafe_custom_css .='}';

	}

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


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

	if($bakery_cafe_related_product_setting == false){

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

			$bakery_cafe_custom_css .='display: none;';

		$bakery_cafe_custom_css .='}';
	}

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

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

	if($bakery_cafe_scroll_top_position == 'Right'){

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

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

		$bakery_cafe_custom_css .='}';

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

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

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

		$bakery_cafe_custom_css .='}';

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

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

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

		$bakery_cafe_custom_css .='}';
	}

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


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

	if($bakery_cafe_pagination_setting == false){

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

			$bakery_cafe_custom_css .='display: none;';

		$bakery_cafe_custom_css .='}';
	}

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

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

	if($bakery_cafe_slider_opacity_color == '0'){

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.1';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.2';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.3';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.4';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.5';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.6';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.7';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.8';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:0.9';

		$bakery_cafe_custom_css .='}';

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

		$bakery_cafe_custom_css .='.blog_box img{';

			$bakery_cafe_custom_css .='opacity:unset';

		$bakery_cafe_custom_css .='}';

		}

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

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

	if($bakery_cafe_woocommerce_pagination_position == 'Left'){

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

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

		$bakery_cafe_custom_css .='}';

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

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

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

		$bakery_cafe_custom_css .='}';

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

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

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

		$bakery_cafe_custom_css .='}';
	}

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

$bakery_cafe_first_color = get_theme_mod('bakery_cafe_first_color');

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

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