<?php 
	$revolution_video_vlog_custom_css ='';

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

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

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

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

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

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

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

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

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

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

    $revolution_video_vlog_product_sale = get_theme_mod( 'revolution_video_vlog_woocommerce_product_sale','Right');
    if($revolution_video_vlog_product_sale == 'Right'){
        $revolution_video_vlog_custom_css .='.woocommerce ul.products li.product .onsale{';
            $revolution_video_vlog_custom_css .='left: auto; ';
        $revolution_video_vlog_custom_css .='}';
    }else if($revolution_video_vlog_product_sale == 'Left'){
        $revolution_video_vlog_custom_css .='.woocommerce ul.products li.product .onsale{';
            $revolution_video_vlog_custom_css .='right: auto;left:0;';
        $revolution_video_vlog_custom_css .='}';
    }else if($revolution_video_vlog_product_sale == 'Center'){
        $revolution_video_vlog_custom_css .='.woocommerce ul.products li.product .onsale{';
            $revolution_video_vlog_custom_css .='right: 50%; left: 50%; ';
        $revolution_video_vlog_custom_css .='}';
    }
    
    /*-------------------- Primary Color -------------------*/

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

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

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

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

    if($revolution_video_vlog_enable_breadcrumbs == 0){
        $revolution_video_vlog_custom_css .='.revolution-video-vlog-breadcrumbs, nav.woocommerce-breadcrumb{';
            $revolution_video_vlog_custom_css .='display: none;';
        $revolution_video_vlog_custom_css .='}';
    }