<?php 
    $health_coach_services_custom_css = '';

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

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

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

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

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

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

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

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

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

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

    $health_coach_services_footer_attachment = get_theme_mod( 'health_coach_services_background_attachment','scroll');
    if($health_coach_services_footer_attachment == 'fixed'){
        $health_coach_services_custom_css .='.footer-top{';
            $health_coach_services_custom_css .='background-attachment: fixed;';
        $health_coach_services_custom_css .='}';
    }elseif ($health_coach_services_footer_attachment == 'scroll'){
        $health_coach_services_custom_css .='.footer-top{';
            $health_coach_services_custom_css .='background-attachment: scroll;';
        $health_coach_services_custom_css .='}';
    }

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

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

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

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


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

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

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

    /*-------------------- Secondary Color -------------------*/

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

    if ($health_coach_services_secondary_color) {
        $health_coach_services_custom_css .= ':root {';
        $health_coach_services_custom_css .= '--secondary-color: ' . esc_attr($health_coach_services_secondary_color) . ';';
        $health_coach_services_custom_css .= '}';
    }	

    /*-------------------- Tertiary Color -------------------*/

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

    if ($health_coach_services_tertiary_color) {
        $health_coach_services_custom_css .= ':root {';
        $health_coach_services_custom_css .= '--tertiary-color: ' . esc_attr($health_coach_services_tertiary_color) . ';';
        $health_coach_services_custom_css .= '}';
    }	


    /*--------------------------- slider-------------------*/

    $health_coach_services_enable_slider = get_theme_mod('health_coach_services_enable_slider', 0);
    
    if ($health_coach_services_enable_slider == false) {
    }


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

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

    if($health_coach_services_enable_breadcrumbs == 0){
        $health_coach_services_custom_css .='.health-coach-services-breadcrumbs, nav.woocommerce-breadcrumb{';
            $health_coach_services_custom_css .='display: none;';
        $health_coach_services_custom_css .='}';
    }