<?php 
	$massage_wellness_retreat_custom_css ='';

    /*--------------------------- Menu Text Transform -------------------*/

    $massage_wellness_retreat_footer_attachment = get_theme_mod( 'massage_wellness_retreat_menu_text_transform','capitalize');
    if($massage_wellness_retreat_footer_attachment == 'uppercase'){
        $massage_wellness_retreat_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $massage_wellness_retreat_custom_css .='text-transform: uppercase;';
        $massage_wellness_retreat_custom_css .='}';
    }elseif ($massage_wellness_retreat_footer_attachment == 'capitalize'){
        $massage_wellness_retreat_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $massage_wellness_retreat_custom_css .='text-transform: capitalize;';
        $massage_wellness_retreat_custom_css .='}';
    }elseif ($massage_wellness_retreat_footer_attachment == 'lowercase'){
        $massage_wellness_retreat_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $massage_wellness_retreat_custom_css .='text-transform: lowercase;';
        $massage_wellness_retreat_custom_css .='}';
    }

    /*----------------Related Product show/hide -------------------*/

    $massage_wellness_retreat_enable_related_product = get_theme_mod('massage_wellness_retreat_enable_related_product',1);

    if($massage_wellness_retreat_enable_related_product == 0){
        $massage_wellness_retreat_custom_css .='.related.products{';
            $massage_wellness_retreat_custom_css .='display: none;';
        $massage_wellness_retreat_custom_css .='}';
    }

    /*----------------blog post content alignment -------------------*/

    $massage_wellness_retreat_blog_Post_content_layout = get_theme_mod( 'massage_wellness_retreat_blog_Post_content_layout','Left');
    if($massage_wellness_retreat_blog_Post_content_layout == 'Left'){
        $massage_wellness_retreat_custom_css .='.ct-post-wrapper .card-item {';
            $massage_wellness_retreat_custom_css .='text-align:start;';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_blog_Post_content_layout == 'Center'){
        $massage_wellness_retreat_custom_css .='.ct-post-wrapper .card-item {';
            $massage_wellness_retreat_custom_css .='text-align:center;';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_blog_Post_content_layout == 'Right'){
        $massage_wellness_retreat_custom_css .='.ct-post-wrapper .card-item {';
            $massage_wellness_retreat_custom_css .='text-align:end;';
        $massage_wellness_retreat_custom_css .='}';
    }

    /*--------------------------- Footer background image -------------------*/

    $massage_wellness_retreat_footer_bg_image = get_theme_mod('massage_wellness_retreat_footer_bg_image');
    if($massage_wellness_retreat_footer_bg_image != false){
        $massage_wellness_retreat_custom_css .= '.footer-top{';
        $massage_wellness_retreat_custom_css .= 'background-image:url(' . esc_url($massage_wellness_retreat_footer_bg_image) . ');';
        $massage_wellness_retreat_custom_css .= 'background-size: cover;';
        $massage_wellness_retreat_custom_css .= 'background-repeat:no-repeat;';
        $massage_wellness_retreat_custom_css .= '}';
    }

    /*--------------------------- Footer Background Image Attachment -------------------*/

    $massage_wellness_retreat_footer_attachment = get_theme_mod( 'massage_wellness_retreat_background_attachment','scroll');
    if($massage_wellness_retreat_footer_attachment == 'fixed'){
        $massage_wellness_retreat_custom_css .='.footer-top{';
            $massage_wellness_retreat_custom_css .='background-attachment: fixed;';
        $massage_wellness_retreat_custom_css .='}';
    }elseif ($massage_wellness_retreat_footer_attachment == 'scroll'){
        $massage_wellness_retreat_custom_css .='.footer-top{';
            $massage_wellness_retreat_custom_css .='background-attachment: scroll;';
        $massage_wellness_retreat_custom_css .='}';
    }

    /*--------------------------- Go to top positions -------------------*/

    $massage_wellness_retreat_go_to_top_position = get_theme_mod( 'massage_wellness_retreat_go_to_top_position','Right');
    if($massage_wellness_retreat_go_to_top_position == 'Right'){
        $massage_wellness_retreat_custom_css .='.footer-go-to-top{';
            $massage_wellness_retreat_custom_css .='right: 20px;';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_go_to_top_position == 'Left'){
        $massage_wellness_retreat_custom_css .='.footer-go-to-top{';
            $massage_wellness_retreat_custom_css .='left: 20px;';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_go_to_top_position == 'Center'){
        $massage_wellness_retreat_custom_css .='.footer-go-to-top{';
            $massage_wellness_retreat_custom_css .='right: 50%;left: 50%;';
        $massage_wellness_retreat_custom_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $massage_wellness_retreat_product_sale = get_theme_mod( 'massage_wellness_retreat_woocommerce_product_sale','Right');
    if($massage_wellness_retreat_product_sale == 'Right'){
        $massage_wellness_retreat_custom_css .='.woocommerce ul.products li.product .onsale{';
            $massage_wellness_retreat_custom_css .='left: auto; ';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_product_sale == 'Left'){
        $massage_wellness_retreat_custom_css .='.woocommerce ul.products li.product .onsale{';
            $massage_wellness_retreat_custom_css .='right: auto;left:0;';
        $massage_wellness_retreat_custom_css .='}';
    }else if($massage_wellness_retreat_product_sale == 'Center'){
        $massage_wellness_retreat_custom_css .='.woocommerce ul.products li.product .onsale{';
            $massage_wellness_retreat_custom_css .='right: 50%; left: 50%; ';
        $massage_wellness_retreat_custom_css .='}';
    }


    /*-------------------- Primary Color -------------------*/

	$massage_wellness_retreat_primary_color = get_theme_mod('massage_wellness_retreat_primary_color', '#446960'); // Add a fallback if the color isn't set

	if ($massage_wellness_retreat_primary_color) {
		$massage_wellness_retreat_custom_css .= ':root {';
		$massage_wellness_retreat_custom_css .= '--primary-color: ' . esc_attr($massage_wellness_retreat_primary_color) . ';';
		$massage_wellness_retreat_custom_css .= '}';
	}	

    /*----------------Enable/Disable Breadcrumbs -------------------*/

    $massage_wellness_retreat_enable_breadcrumbs = get_theme_mod('massage_wellness_retreat_enable_breadcrumbs',1);

    if($massage_wellness_retreat_enable_breadcrumbs == 0){
        $massage_wellness_retreat_custom_css .='.massage-wellness-retreat-breadcrumbs, nav.woocommerce-breadcrumb{';
            $massage_wellness_retreat_custom_css .='display: none;';
        $massage_wellness_retreat_custom_css .='}';
    }