<?php 
	$travel_tourist_custom_css ='';

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

    if($travel_tourist_enable_breadcrumbs == 0){
        $travel_tourist_custom_css .='.travel-tourist-breadcrumbs, nav.woocommerce-breadcrumb{';
            $travel_tourist_custom_css .='display: none;';
        $travel_tourist_custom_css .='}';
    }

    /*----------------Enable/Disable slider -------------------*/

    $travel_tourist_enable_slider = get_theme_mod('travel_tourist_enable_slider', 0);

    if ( $travel_tourist_enable_slider == 0 ) {
        $travel_tourist_custom_css .= '.page-template-revolution-home .header-menu-box{';
            $travel_tourist_custom_css .= 'position: static;';
        $travel_tourist_custom_css .= '}';
        $travel_tourist_custom_css .= '.page-template-revolution-home .site-header{';
            $travel_tourist_custom_css .= 'background: #F58025; padding-bottom:15px;';
        $travel_tourist_custom_css .= '}';
    }