<?php

    $beauty_cosmetic_store_theme_css= "";

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

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

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

    $beauty_cosmetic_store_global_color = get_theme_mod('beauty_cosmetic_store_global_color');

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

    /*-------------------- Heading typography -------------------*/

    $beauty_cosmetic_store_heading_color = get_theme_mod('beauty_cosmetic_store_heading_color');
    $beauty_cosmetic_store_heading_font_family = get_theme_mod('beauty_cosmetic_store_heading_font_family');
    $beauty_cosmetic_store_heading_font_size = get_theme_mod('beauty_cosmetic_store_heading_font_size');
    if($beauty_cosmetic_store_heading_color != false || $beauty_cosmetic_store_heading_font_family != false || $beauty_cosmetic_store_heading_font_size != false){
        $beauty_cosmetic_store_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #colophon h5, .sidebar h5, .article-box h3.entry-title, .slider-inner-box h2, #top-slider .slider-inner-box h2, #top-slider h3.main-heading, .featured h3.main-heading, .ser-content h4, .featured h4.main-heading, #top-slider h4.main-text, #top-slider .right-image-box h5.left-text-heading, #top-slider .left-text-box-2 h5, #top-slider .left-text-box-3 h5, #top-slider .left-text-box-4 h5, .featured h6.team-designation{';
            $beauty_cosmetic_store_theme_css .='color: '.esc_attr($beauty_cosmetic_store_heading_color).'!important; 
            font-family: '.esc_attr($beauty_cosmetic_store_heading_font_family).'!important;
            font-size: '.esc_attr($beauty_cosmetic_store_heading_font_size).'px !important;';
        $beauty_cosmetic_store_theme_css .='}';
    }

    $beauty_cosmetic_store_paragraph_color = get_theme_mod('beauty_cosmetic_store_paragraph_color');
    $beauty_cosmetic_store_paragraph_font_family = get_theme_mod('beauty_cosmetic_store_paragraph_font_family');
    $beauty_cosmetic_store_paragraph_font_size = get_theme_mod('beauty_cosmetic_store_paragraph_font_size');
    if($beauty_cosmetic_store_paragraph_color != false || $beauty_cosmetic_store_paragraph_font_family != false || $beauty_cosmetic_store_paragraph_font_size != false){
        $beauty_cosmetic_store_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $beauty_cosmetic_store_theme_css .='color: '.esc_attr($beauty_cosmetic_store_paragraph_color).'!important; 
            font-family: '.esc_attr($beauty_cosmetic_store_paragraph_font_family).'!important;
            font-size: '.esc_attr($beauty_cosmetic_store_paragraph_font_size).'px !important;';
        $beauty_cosmetic_store_theme_css .='}';
    }

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

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

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

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

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

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

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

    /*------------------ Slider CSS -------------------*/
    $beauty_cosmetic_store_slider_opacity_setting = get_theme_mod( 'beauty_cosmetic_store_slider_opacity_setting',false);
    $beauty_cosmetic_store_image_opacity_color = get_theme_mod( 'beauty_cosmetic_store_image_opacity_color');
    $beauty_cosmetic_store_slider_opacity = get_theme_mod( 'beauty_cosmetic_store_slider_opacity');
    if( $beauty_cosmetic_store_slider_opacity_setting != false) {
        $beauty_cosmetic_store_theme_css .='.slider-box img{';
            $beauty_cosmetic_store_theme_css .='opacity: '. $beauty_cosmetic_store_slider_opacity. ';';
        $beauty_cosmetic_store_theme_css .='}';
        if( $beauty_cosmetic_store_image_opacity_color != '') {
            $beauty_cosmetic_store_theme_css .='.slider-box{';
                $beauty_cosmetic_store_theme_css .='background-color: '. $beauty_cosmetic_store_image_opacity_color. '; border-radius: 20px;';
            $beauty_cosmetic_store_theme_css .='}';
        }
    } else {
        $beauty_cosmetic_store_theme_css .='.slider-box img{';
            $beauty_cosmetic_store_theme_css .='opacity: 1;';
        $beauty_cosmetic_store_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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


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

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

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

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

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

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