<?php

    $electronics_appliances_theme_css= "";

    /*--------------------------- Scroll To Top Positions -------------------*/

    $electronics_appliances_scroll_position = get_theme_mod( 'electronics_appliances_scroll_top_position','Right');
    if($electronics_appliances_scroll_position == 'Right'){
        $electronics_appliances_theme_css .='#button{';
            $electronics_appliances_theme_css .='right: 20px;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_scroll_position == 'Left'){
        $electronics_appliances_theme_css .='#button{';
            $electronics_appliances_theme_css .='left: 20px; right:auto;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_scroll_position == 'Center'){
        $electronics_appliances_theme_css .='#button{';
            $electronics_appliances_theme_css .='right: auto;left: 50%; transform: translateX(-50%);';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Scroll To Top Border Radius -------------------*/

    $electronics_appliances_scroll_to_top_border_radius = get_theme_mod('electronics_appliances_scroll_to_top_border_radius');
    $electronics_appliances_scroll_bg_color = get_theme_mod('electronics_appliances_scroll_bg_color');
    $electronics_appliances_scroll_color = get_theme_mod('electronics_appliances_scroll_color');
    $electronics_appliances_scroll_font_size = get_theme_mod('electronics_appliances_scroll_font_size');
    if($electronics_appliances_scroll_to_top_border_radius != false || $electronics_appliances_scroll_bg_color != false || $electronics_appliances_scroll_color != false || $electronics_appliances_scroll_font_size != false){
        $electronics_appliances_theme_css .='#colophon a#button{';
            $electronics_appliances_theme_css .='border-radius: '.esc_attr($electronics_appliances_scroll_to_top_border_radius).'px; background-color: '.esc_attr($electronics_appliances_scroll_bg_color).'; color: '.esc_attr($electronics_appliances_scroll_color).' !important; font-size: '.esc_attr($electronics_appliances_scroll_font_size).'px;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Slider Image Opacity -------------------*/
    $electronics_appliances_slider_opacity_setting = get_theme_mod( 'electronics_appliances_slider_opacity_setting',true);
    $electronics_appliances_image_opacity_color = get_theme_mod( 'electronics_appliances_image_opacity_color');
    $electronics_appliances_slider_opacity = get_theme_mod( 'electronics_appliances_slider_opacity');
    if( $electronics_appliances_slider_opacity_setting != false) {
        $electronics_appliances_theme_css .='#top-slider .slider-box img{';
            $electronics_appliances_theme_css .='opacity: '. $electronics_appliances_slider_opacity. ';';
        $electronics_appliances_theme_css .='}';
        if( $electronics_appliances_image_opacity_color != '') {
            $electronics_appliances_theme_css .='#top-slider .slider-box {';
                $electronics_appliances_theme_css .='background-color: '. $electronics_appliances_image_opacity_color. ';';
            $electronics_appliances_theme_css .='}';
        }
    } else {
        $electronics_appliances_theme_css .='#top-slider .slider-box img{';
            $electronics_appliances_theme_css .='opacity: 1;';
        $electronics_appliances_theme_css .='}';
    }

    /*---------------------------Slider Height ------------*/

    $electronics_appliances_slider_img_height = get_theme_mod('electronics_appliances_slider_img_height');
    if($electronics_appliances_slider_img_height != false){
        $electronics_appliances_theme_css .='#top-slider .owl-carousel .owl-item img{';
            $electronics_appliances_theme_css .='height: '.esc_attr($electronics_appliances_slider_img_height).';';
        $electronics_appliances_theme_css .='}';
    }

    /*---------------- Single post Settings ------------------*/

    $electronics_appliances_single_post_navigation_show_hide = get_theme_mod('electronics_appliances_single_post_navigation_show_hide',true);
    if($electronics_appliances_single_post_navigation_show_hide != true){
        $electronics_appliances_theme_css .='.nav-links{';
            $electronics_appliances_theme_css .='display: none;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Product Image Box Shadow -------------------*/

    $electronics_appliances_woo_product_image_box_shadow = get_theme_mod('electronics_appliances_woo_product_image_box_shadow',0);
    if($electronics_appliances_woo_product_image_box_shadow != false){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product a img{';
            $electronics_appliances_theme_css .='box-shadow: '.esc_attr($electronics_appliances_woo_product_image_box_shadow).'px '.esc_attr($electronics_appliances_woo_product_image_box_shadow).'px '.esc_attr($electronics_appliances_woo_product_image_box_shadow).'px #cccccc;';
        $electronics_appliances_theme_css .='}';
    }

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

    $electronics_appliances_product_sale = get_theme_mod( 'electronics_appliances_woocommerce_product_sale','Right');
    if($electronics_appliances_product_sale == 'Right'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='left: auto; right: 15px;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_product_sale == 'Left'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='left: 15px; right: auto;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_product_sale == 'Center'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='right: 50%;left: 50%;';
        $electronics_appliances_theme_css .='}';
    }

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

    $electronics_appliances_product_sale = get_theme_mod( 'electronics_appliances_woocommerce_product_sale','Right');
    if($electronics_appliances_product_sale == 'Right'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='left: auto; right: 15px;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_product_sale == 'Left'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='left: 15px; right: auto;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_product_sale == 'Center'){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='right: 50%;left: 50%;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Border Radius -------------------*/

    $electronics_appliances_woo_product_sale_border_radius = get_theme_mod('electronics_appliances_woo_product_sale_border_radius');
    if($electronics_appliances_woo_product_sale_border_radius != false){
        $electronics_appliances_theme_css .='.woocommerce ul.products li.product .onsale{';
            $electronics_appliances_theme_css .='border-radius: '.esc_attr($electronics_appliances_woo_product_sale_border_radius).'px;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Woocommerce Related Products -------------------*/

    $electronics_appliances_woocommerce_related_product_show_hide = get_theme_mod('electronics_appliances_woocommerce_related_product_show_hide',true);
    if($electronics_appliances_woocommerce_related_product_show_hide != true){
        $electronics_appliances_theme_css .='.related.products{';
            $electronics_appliances_theme_css .='display: none;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $electronics_appliances_single_post_page_image_box_shadow = get_theme_mod('electronics_appliances_single_post_page_image_box_shadow',0);
    if($electronics_appliances_single_post_page_image_box_shadow != false){
        $electronics_appliances_theme_css .='.single-post .entry-header img{';
            $electronics_appliances_theme_css .='box-shadow: '.esc_attr($electronics_appliances_single_post_page_image_box_shadow).'px '.esc_attr($electronics_appliances_single_post_page_image_box_shadow).'px '.esc_attr($electronics_appliances_single_post_page_image_box_shadow).'px #cccccc;';
        $electronics_appliances_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $electronics_appliances_single_post_page_image_border_radius = get_theme_mod('electronics_appliances_single_post_page_image_border_radius', 0);
    if($electronics_appliances_single_post_page_image_border_radius != false){
        $electronics_appliances_theme_css .='.single-post .entry-header img{';
            $electronics_appliances_theme_css .='border-radius: '.esc_attr($electronics_appliances_single_post_page_image_border_radius).'px;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Footer Background Image Position -------------------*/

    $electronics_appliances_footer_bg_image_position = get_theme_mod( 'electronics_appliances_footer_bg_image_position','scroll');
    if($electronics_appliances_footer_bg_image_position == 'fixed'){
        $electronics_appliances_theme_css .='#colophon, .footer-widgets{';
            $electronics_appliances_theme_css .='background-attachment: fixed !important; background-position: center !important;';
        $electronics_appliances_theme_css .='}';
    }elseif ($electronics_appliances_footer_bg_image_position == 'scroll'){
        $electronics_appliances_theme_css .='#colophon, .footer-widgets{';
            $electronics_appliances_theme_css .='background-attachment: scroll !important; background-position: center !important;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Footer Widget Heading Alignment -------------------*/

    $electronics_appliances_footer_widget_heading_alignment = get_theme_mod( 'electronics_appliances_footer_widget_heading_alignment','Left');
    if($electronics_appliances_footer_widget_heading_alignment == 'Left'){
        $electronics_appliances_theme_css .='#colophon h5, h5.footer-column-widget-title{';
        $electronics_appliances_theme_css .='text-align: left;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_footer_widget_heading_alignment == 'Center'){
        $electronics_appliances_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $electronics_appliances_theme_css .='text-align: center;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_footer_widget_heading_alignment == 'Right'){
        $electronics_appliances_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $electronics_appliances_theme_css .='text-align: right;';
        $electronics_appliances_theme_css .='}';
    }

    /*-------------------- Global First Color -------------------*/

    $electronics_appliances_first_color = get_theme_mod('electronics_appliances_first_color');
    $electronics_appliances_second_color = get_theme_mod('electronics_appliances_second_color');

    if ($electronics_appliances_first_color) {
        $electronics_appliances_theme_css .= ':root {';
        $electronics_appliances_theme_css .= '--first-color: ' . esc_attr($electronics_appliances_first_color) . ' !important;';
        $electronics_appliances_theme_css .= '} ';
    }

    if ($electronics_appliances_second_color) {
        $electronics_appliances_theme_css .= ':root {';
        $electronics_appliances_theme_css .= '--second-color: ' . esc_attr($electronics_appliances_second_color) . ' !important;';
        $electronics_appliances_theme_css .= '} ';
    }

     /*--------------------------- Footer Background Color -------------------*/

    $electronics_appliances_footer_background_color = get_theme_mod('electronics_appliances_footer_background_color');
    if($electronics_appliances_footer_background_color != false){
        $electronics_appliances_theme_css .='.footer-widgets{';
            $electronics_appliances_theme_css .='background-color: '.esc_attr($electronics_appliances_footer_background_color).' !important;';
        $electronics_appliances_theme_css .='}';
    }

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

    $electronics_appliances_footer_bg_image = get_theme_mod('electronics_appliances_footer_bg_image');
    if($electronics_appliances_footer_bg_image != false){
        $electronics_appliances_theme_css .='#colophon, .footer-widgets{';
            $electronics_appliances_theme_css .='background: url('.esc_attr($electronics_appliances_footer_bg_image).');';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Copyright Background Color -------------------*/

    $electronics_appliances_copyright_background_color = get_theme_mod('electronics_appliances_copyright_background_color');
    if($electronics_appliances_copyright_background_color != false){
        $electronics_appliances_theme_css .='.footer_info{';
            $electronics_appliances_theme_css .='background-color: '.esc_attr($electronics_appliances_copyright_background_color).' !important;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Post Page Image Border Radius -------------------*/

    $electronics_appliances_post_page_image_border_radius = get_theme_mod('electronics_appliances_post_page_image_border_radius', 0);
    if($electronics_appliances_post_page_image_border_radius != false){
        $electronics_appliances_theme_css .='.article-box img{';
            $electronics_appliances_theme_css .='border-radius: '.esc_attr($electronics_appliances_post_page_image_border_radius).'px;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Post Page Image Box Shadow -------------------*/

    $electronics_appliances_post_page_image_box_shadow = get_theme_mod('electronics_appliances_post_page_image_box_shadow',0);
    if($electronics_appliances_post_page_image_box_shadow != false){
        $electronics_appliances_theme_css .='.article-box img{';
            $electronics_appliances_theme_css .='box-shadow: '.esc_attr($electronics_appliances_post_page_image_box_shadow).'px '.esc_attr($electronics_appliances_post_page_image_box_shadow).'px '.esc_attr($electronics_appliances_post_page_image_box_shadow).'px #cccccc;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Site Title And Tagline Color -------------------*/

    $electronics_appliances_logo_title_color = get_theme_mod('electronics_appliances_logo_title_color');
    if($electronics_appliances_logo_title_color != false){
        $electronics_appliances_theme_css .='p.site-title a, .navbar-brand a{';
            $electronics_appliances_theme_css .='color: '.esc_attr($electronics_appliances_logo_title_color).' !important;';
        $electronics_appliances_theme_css .='}';
    }

    $electronics_appliances_logo_tagline_color = get_theme_mod('electronics_appliances_logo_tagline_color');
    if($electronics_appliances_logo_tagline_color != false){
        $electronics_appliances_theme_css .='.logo p.site-description, .navbar-brand p{';
            $electronics_appliances_theme_css .='color: '.esc_attr($electronics_appliances_logo_tagline_color).'  !important;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $electronics_appliances_footer_widget_content_alignment = get_theme_mod( 'electronics_appliances_footer_widget_content_alignment','Left');
    if($electronics_appliances_footer_widget_content_alignment == 'Left'){
        $electronics_appliances_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $electronics_appliances_theme_css .='text-align: left;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_footer_widget_content_alignment == 'Center'){
        $electronics_appliances_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $electronics_appliances_theme_css .='text-align: center;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_footer_widget_content_alignment == 'Right'){
        $electronics_appliances_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $electronics_appliances_theme_css .='text-align: right;';
        $electronics_appliances_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $electronics_appliances_copyright_content_alignment = get_theme_mod( 'electronics_appliances_copyright_content_alignment','Center');
    if($electronics_appliances_copyright_content_alignment == 'Left'){
        $electronics_appliances_theme_css .='.footer-menu-left{';
        $electronics_appliances_theme_css .='text-align: left;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_copyright_content_alignment == 'Center'){
        $electronics_appliances_theme_css .='.footer-menu-left{';
            $electronics_appliances_theme_css .='text-align: center;';
        $electronics_appliances_theme_css .='}';
    }else if($electronics_appliances_copyright_content_alignment == 'Right'){
        $electronics_appliances_theme_css .='.footer-menu-left{';
            $electronics_appliances_theme_css .='text-align: right;';
        $electronics_appliances_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $electronics_appliances_nav_menu = get_theme_mod( 'electronics_appliances_nav_menu_text_transform','Uppercase');
    if($electronics_appliances_nav_menu == 'Capitalize'){
        $electronics_appliances_theme_css .='.main-navigation .menu > li > a{';
            $electronics_appliances_theme_css .='text-transform:Capitalize;';
        $electronics_appliances_theme_css .='}';
    }
    if($electronics_appliances_nav_menu == 'Lowercase'){
        $electronics_appliances_theme_css .='.main-navigation .menu > li > a{';
            $electronics_appliances_theme_css .='text-transform:Lowercase;';
        $electronics_appliances_theme_css .='}';
    }
    if($electronics_appliances_nav_menu == 'Uppercase'){
        $electronics_appliances_theme_css .='.main-navigation .menu > li > a{';
            $electronics_appliances_theme_css .='text-transform:Uppercase;';
        $electronics_appliances_theme_css .='}';
    }

    $electronics_appliances_menu_font_size = get_theme_mod( 'electronics_appliances_menu_font_size');
    if($electronics_appliances_menu_font_size != ''){
        $electronics_appliances_theme_css .='.main-navigation .menu > li > a{';
            $electronics_appliances_theme_css .='font-size: '.esc_attr($electronics_appliances_menu_font_size).'px;';
        $electronics_appliances_theme_css .='}';
    }

    $electronics_appliances_nav_menu_font_weight = get_theme_mod( 'electronics_appliances_nav_menu_font_weight',500);
    if($electronics_appliances_menu_font_size != ''){
        $electronics_appliances_theme_css .='.main-navigation .menu > li > a{';
            $electronics_appliances_theme_css .='font-weight: '.esc_attr($electronics_appliances_nav_menu_font_weight).';';
        $electronics_appliances_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/

    $electronics_appliances_slider_content_layout = get_theme_mod( 'electronics_appliances_slider_content_layout','Left');
    if($electronics_appliances_slider_content_layout == 'Left'){
        $electronics_appliances_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $electronics_appliances_theme_css .='text-align : left;';
        $electronics_appliances_theme_css .='}';
    }
    if($electronics_appliances_slider_content_layout == 'Center'){
        $electronics_appliances_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $electronics_appliances_theme_css .='text-align : center;';
        $electronics_appliances_theme_css .='}';
    }
    if($electronics_appliances_slider_content_layout == 'Right'){
        $electronics_appliances_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $electronics_appliances_theme_css .='text-align : right;';
        $electronics_appliances_theme_css .='}';
    }