<?php 
    $wildlife_photography_custom_css = '';

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

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

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

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

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

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

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

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

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

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

    $wildlife_photography_footer_attachment = get_theme_mod( 'wildlife_photography_background_attachment','scroll');
    if($wildlife_photography_footer_attachment == 'fixed'){
        $wildlife_photography_custom_css .='.footer-top{';
            $wildlife_photography_custom_css .='background-attachment: fixed;';
        $wildlife_photography_custom_css .='}';
    }elseif ($wildlife_photography_footer_attachment == 'scroll'){
        $wildlife_photography_custom_css .='.footer-top{';
            $wildlife_photography_custom_css .='background-attachment: scroll;';
        $wildlife_photography_custom_css .='}';
    }

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

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

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

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

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

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

    /*-------------------- Tertiary Color -------------------*/

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

    if ($wildlife_photography_tertiary_color) {
        $wildlife_photography_custom_css .= ':root {';
        $wildlife_photography_custom_css .= '--tertiary-color: ' . esc_attr($wildlife_photography_tertiary_color) . ';';
        $wildlife_photography_custom_css .= '}';
    }	


    /*--------------------------- slider-------------------*/

    $wildlife_photography_enable_slider = get_theme_mod('wildlife_photography_enable_slider',0);
    
    if ($wildlife_photography_enable_slider != true) {
        $wildlife_photography_custom_css .= '.page-template-revolution-home .header-menu-box{';
        $wildlife_photography_custom_css .= 'position:static;';
        $wildlife_photography_custom_css .= '}';
    }
    
    /*----------------Enable/Disable Breadcrumbs -------------------*/

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

    if($wildlife_photography_enable_breadcrumbs == 0){
        $wildlife_photography_custom_css .='.wildlife-photography-breadcrumbs, nav.woocommerce-breadcrumb{';
            $wildlife_photography_custom_css .='display: none;';
        $wildlife_photography_custom_css .='}';
    }