<?php 
	$kids_activity_center_custom_css ='';

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

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

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

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

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

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

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

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

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

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

    $kids_activity_center_footer_attachment = get_theme_mod( 'kids_activity_center_background_attachment','scroll');
    if($kids_activity_center_footer_attachment == 'fixed'){
        $kids_activity_center_custom_css .='.footer-top{';
            $kids_activity_center_custom_css .='background-attachment: fixed;';
        $kids_activity_center_custom_css .='}';
    }elseif ($kids_activity_center_footer_attachment == 'scroll'){
        $kids_activity_center_custom_css .='.footer-top{';
            $kids_activity_center_custom_css .='background-attachment: scroll;';
        $kids_activity_center_custom_css .='}';
    }

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

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

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

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

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

	$kids_activity_center_primary_color = get_theme_mod('kids_activity_center_primary_color', '#FF8DA6'); // Add a fallback if the color isn't set
	if ($kids_activity_center_primary_color) {
		$kids_activity_center_custom_css .= ':root {';
		$kids_activity_center_custom_css .= '--primary-color: ' . esc_attr($kids_activity_center_primary_color) . ';';
		$kids_activity_center_custom_css .= '}';
	}

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

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

    if($kids_activity_center_enable_breadcrumbs == 0){
        $kids_activity_center_custom_css .='.kids-activity-center-breadcrumbs, nav.woocommerce-breadcrumb{';
            $kids_activity_center_custom_css .='display: none;';
        $kids_activity_center_custom_css .='}';
    }