<?php 
    $seo_specialist_custom_css = '';

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

    $seo_specialist_enable_slider = get_theme_mod('seo_specialist_enable_slider', 0);
    
    if ($seo_specialist_enable_slider == false) {
        $seo_specialist_custom_css .= '.page-template-revolution-home .header-menu-box{';
            $seo_specialist_custom_css .= 'position: static;';
        $seo_specialist_custom_css .= '}';
        $seo_specialist_custom_css .= '.page-template-revolution-home .headermain{';
            $seo_specialist_custom_css .= 'margin-bottom:5em;';
        $seo_specialist_custom_css .= '}';
    }

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

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

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

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

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

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

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

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

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

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

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

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

    $seo_specialist_primary_color = get_theme_mod('seo_specialist_primary_color', '#00c7ac'); // Add a fallback if the color isn't set

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

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

    $seo_specialist_secondary_color = get_theme_mod('seo_specialist_secondary_color', '#001c27'); // Add a fallback if the color isn't set

    if ($seo_specialist_secondary_color) {
        $seo_specialist_custom_css .= ':root {';
        $seo_specialist_custom_css .= '--secondary-color: ' . esc_attr($seo_specialist_secondary_color) . ';';
        $seo_specialist_custom_css .= '}';
    }
    
    /*----------------Enable/Disable Breadcrumbs -------------------*/

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

    if($seo_specialist_enable_breadcrumbs == 0){
        $seo_specialist_custom_css .='.seo-specialist-breadcrumbs, nav.woocommerce-breadcrumb{';
            $seo_specialist_custom_css .='display: none;';
        $seo_specialist_custom_css .='}';
    }