<?php 
	$fashion_outfit_custom_css ='';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if($fashion_outfit_enable_breadcrumbs == 0){
        $fashion_outfit_custom_css .='.fashion-outfit-breadcrumbs, nav.woocommerce-breadcrumb{';
            $fashion_outfit_custom_css .='display: none;';
        $fashion_outfit_custom_css .='}';
    }