<?php 
    $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: url('.esc_attr($health_coach_services_footer_bg_image).');';
        $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 .='}';
    }