<?php

    $stylish_fashion_shop_theme_css= "";

    /*--------------------------- Scroll to top positions -------------------*/

    $stylish_fashion_shop_scroll_position = get_theme_mod( 'stylish_fashion_shop_scroll_top_position','Right');
    if($stylish_fashion_shop_scroll_position == 'Right'){
        $stylish_fashion_shop_theme_css .='#button{';
            $stylish_fashion_shop_theme_css .='right: 20px;';
        $stylish_fashion_shop_theme_css .='}';
    }else if($stylish_fashion_shop_scroll_position == 'Left'){
        $stylish_fashion_shop_theme_css .='#button{';
            $stylish_fashion_shop_theme_css .='left: 20px;';
        $stylish_fashion_shop_theme_css .='}';
    }else if($stylish_fashion_shop_scroll_position == 'Center'){
        $stylish_fashion_shop_theme_css .='#button{';
            $stylish_fashion_shop_theme_css .='right: 50%;left: 50%;';
        $stylish_fashion_shop_theme_css .='}';
    }


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

    $stylish_fashion_shop_global_color = get_theme_mod('stylish_fashion_shop_global_color');

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

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

    $stylish_fashion_shop_slider_img_height = get_theme_mod('stylish_fashion_shop_slider_img_height');
    if($stylish_fashion_shop_slider_img_height != false){
        $stylish_fashion_shop_theme_css .='.slider-box img{';
            $stylish_fashion_shop_theme_css .='height: '.esc_attr($stylish_fashion_shop_slider_img_height).';';
        $stylish_fashion_shop_theme_css .='}';
    }

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

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

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

    $stylish_fashion_shop_woo_product_border_radius = get_theme_mod('stylish_fashion_shop_woo_product_border_radius', 0);
    if($stylish_fashion_shop_woo_product_border_radius != false){
        $stylish_fashion_shop_theme_css .='.woocommerce ul.products li.product a img{';
            $stylish_fashion_shop_theme_css .='border-radius: '.esc_attr($stylish_fashion_shop_woo_product_border_radius).'px;';
        $stylish_fashion_shop_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    $stylish_fashion_shop_footer_bg_image = get_theme_mod('stylish_fashion_shop_footer_bg_image');
    if($stylish_fashion_shop_footer_bg_image != false){
        $stylish_fashion_shop_theme_css .='#colophon{';
            $stylish_fashion_shop_theme_css .='background: url('.esc_attr($stylish_fashion_shop_footer_bg_image).');';
        $stylish_fashion_shop_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    /*---------------- Logo CSS ----------------------*/
    $stylish_fashion_shop_logo_title_font_size = get_theme_mod( 'stylish_fashion_shop_logo_title_font_size');
    $stylish_fashion_shop_logo_tagline_font_size = get_theme_mod( 'stylish_fashion_shop_logo_tagline_font_size');
    if( $stylish_fashion_shop_logo_title_font_size != '') {
        $stylish_fashion_shop_theme_css .='#masthead .navbar-brand a{';
            $stylish_fashion_shop_theme_css .='font-size: '. $stylish_fashion_shop_logo_title_font_size. 'px;';
        $stylish_fashion_shop_theme_css .='}';
    }
    if( $stylish_fashion_shop_logo_tagline_font_size != '') {
        $stylish_fashion_shop_theme_css .='#masthead .navbar-brand p{';
            $stylish_fashion_shop_theme_css .='font-size: '. $stylish_fashion_shop_logo_tagline_font_size. 'px;';
        $stylish_fashion_shop_theme_css .='}';
    }

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

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

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

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

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

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

    /*------------------ Slider CSS -------------------*/
    $stylish_fashion_shop_slider_opacity_setting = get_theme_mod( 'stylish_fashion_shop_slider_opacity_setting',false);
    $stylish_fashion_shop_image_opacity_color = get_theme_mod( 'stylish_fashion_shop_image_opacity_color');
    $stylish_fashion_shop_slider_opacity = get_theme_mod( 'stylish_fashion_shop_slider_opacity');
    if( $stylish_fashion_shop_slider_opacity_setting != false) {
        $stylish_fashion_shop_theme_css .='.slider-image img{';
            $stylish_fashion_shop_theme_css .='opacity: '. $stylish_fashion_shop_slider_opacity. ';';
        $stylish_fashion_shop_theme_css .='}';
        if( $stylish_fashion_shop_image_opacity_color != '') {
            $stylish_fashion_shop_theme_css .='#top-slider .slider-image{';
                $stylish_fashion_shop_theme_css .='background-color: '. $stylish_fashion_shop_image_opacity_color. ';';
            $stylish_fashion_shop_theme_css .='}';
        }
    } else {
        $stylish_fashion_shop_theme_css .='.slider-image img{';
            $stylish_fashion_shop_theme_css .='opacity: 1;';
        $stylish_fashion_shop_theme_css .='}';
    }

    /*------------------ Footer CSS -------------------*/
    $stylish_fashion_shop_footer_bg_color = get_theme_mod( 'stylish_fashion_shop_footer_bg_color');
    if($stylish_fashion_shop_footer_bg_color != '' ){
        $stylish_fashion_shop_theme_css .='#colophon {';
            $stylish_fashion_shop_theme_css .='background-color: '.esc_attr($stylish_fashion_shop_footer_bg_color).'; ';
        $stylish_fashion_shop_theme_css .='}';
    }

    $stylish_fashion_shop_footer_content_color = get_theme_mod( 'stylish_fashion_shop_footer_content_color');
    if($stylish_fashion_shop_footer_content_color != ''){
        $stylish_fashion_shop_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {';
            $stylish_fashion_shop_theme_css .='color: '.esc_attr($stylish_fashion_shop_footer_content_color).';';
        $stylish_fashion_shop_theme_css .='}';
    }

    /*------------------ Copyright CSS -------------------*/
    $stylish_fashion_shop_copyright_text_color = get_theme_mod( 'stylish_fashion_shop_copyright_text_color');
    if($stylish_fashion_shop_copyright_text_color != ''){
        $stylish_fashion_shop_theme_css .='#colophon .site-info a, #colophon .site-info span {';
            $stylish_fashion_shop_theme_css .='color: '.esc_attr($stylish_fashion_shop_copyright_text_color).';';
        $stylish_fashion_shop_theme_css .='}';
    }

    /*--------------------------- Featured Image Border Radius -------------------*/

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

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

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

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

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

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

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

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

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