<?php 
	$industrial_technology_custom_css ='';

    /*--------------------------- Menu Text Transform -------------------*/

    $industrial_technology_footer_attachment = get_theme_mod( 'industrial_technology_menu_text_transform','uppercase');
    if($industrial_technology_footer_attachment == 'uppercase'){
        $industrial_technology_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $industrial_technology_custom_css .='text-transform: uppercase;';
        $industrial_technology_custom_css .='}';
    }elseif ($industrial_technology_footer_attachment == 'capitalize'){
        $industrial_technology_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $industrial_technology_custom_css .='text-transform: capitalize;';
        $industrial_technology_custom_css .='}';
    }elseif ($industrial_technology_footer_attachment == 'lowercase'){
        $industrial_technology_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $industrial_technology_custom_css .='text-transform: lowercase;';
        $industrial_technology_custom_css .='}';
    }

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

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

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

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

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

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

    $industrial_technology_footer_bg_image = get_theme_mod('industrial_technology_footer_bg_image');
    if($industrial_technology_footer_bg_image != false){
        $industrial_technology_custom_css .= '.footer-top{';
        $industrial_technology_custom_css .= 'background-image:url(' . esc_url($industrial_technology_footer_bg_image) . ');';
        $industrial_technology_custom_css .= 'background-size: cover;';
        $industrial_technology_custom_css .= 'background-repeat:no-repeat;';
        $industrial_technology_custom_css .= '}';
    }

    /*--------------------------- Footer Background Image Attachment -------------------*/

    $industrial_technology_footer_attachment = get_theme_mod( 'industrial_technology_background_attachment','scroll');
    if($industrial_technology_footer_attachment == 'fixed'){
        $industrial_technology_custom_css .='.footer-top{';
            $industrial_technology_custom_css .='background-attachment: fixed;';
        $industrial_technology_custom_css .='}';
    }elseif ($industrial_technology_footer_attachment == 'scroll'){
        $industrial_technology_custom_css .='.footer-top{';
            $industrial_technology_custom_css .='background-attachment: scroll;';
        $industrial_technology_custom_css .='}';
    }

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

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

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

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

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

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

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

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

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

    if($industrial_technology_enable_breadcrumbs == 0){
        $industrial_technology_custom_css .='.industrial-technology-breadcrumbs, nav.woocommerce-breadcrumb{';
            $industrial_technology_custom_css .='display: none;';
        $industrial_technology_custom_css .='}';
    }
