<?php 
	$senior_care_charity_custom_css ='';

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

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

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

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

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

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

    $senior_care_charity_footer_bg_image = get_theme_mod('senior_care_charity_footer_bg_image');
    if($senior_care_charity_footer_bg_image != false){
        $senior_care_charity_custom_css .='.footer-top{';
            $senior_care_charity_custom_css .='background: url('.esc_attr($senior_care_charity_footer_bg_image).');';
        $senior_care_charity_custom_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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

    if($senior_care_charity_enable_breadcrumbs == 0){
        $senior_care_charity_custom_css .='.senior-care-charity-breadcrumbs, nav.woocommerce-breadcrumb{';
            $senior_care_charity_custom_css .='display: none;';
        $senior_care_charity_custom_css .='}';
    }