<?php

    $watch_store_shop_theme_css= "";

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

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

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

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

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

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

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

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

    /*---------------------------Width Layout -------------------*/

    $watch_store_shop_width_option = get_theme_mod( 'watch_store_shop_width_option','Full Width');
    if($watch_store_shop_width_option == 'Boxed Width'){
        $watch_store_shop_theme_css .='body{';
            $watch_store_shop_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
        $watch_store_shop_theme_css .='}';
        $watch_store_shop_theme_css .='.scrollup i{';
            $watch_store_shop_theme_css .='right: 100px;';
        $watch_store_shop_theme_css .='}';
        $watch_store_shop_theme_css .='.page-template-custom-home-page .home-page-header{';
            $watch_store_shop_theme_css .='padding: 0px 40px 0 10px;';
        $watch_store_shop_theme_css .='}';
    }else if($watch_store_shop_width_option == 'Wide Width'){
        $watch_store_shop_theme_css .='body{';
            $watch_store_shop_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
        $watch_store_shop_theme_css .='}';
        $watch_store_shop_theme_css .='.scrollup i{';
            $watch_store_shop_theme_css .='right: 30px;';
        $watch_store_shop_theme_css .='}';
    }else if($watch_store_shop_width_option == 'Full Width'){
        $watch_store_shop_theme_css .='body{';
            $watch_store_shop_theme_css .='max-width: 100%;';
        $watch_store_shop_theme_css .='}';
    }

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

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

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

    $watch_store_shop_first_color = get_theme_mod('watch_store_shop_first_color');

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

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

    $watch_store_shop_heading_color = get_theme_mod('watch_store_shop_heading_color');
    $watch_store_shop_heading_font_family = get_theme_mod('watch_store_shop_heading_font_family');
    $watch_store_shop_heading_font_size = get_theme_mod('watch_store_shop_heading_font_size');
    if($watch_store_shop_heading_color != false || $watch_store_shop_heading_font_family != false || $watch_store_shop_heading_font_size != false){
        $watch_store_shop_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, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, #colophon h5, .sidebar h5{';
            $watch_store_shop_theme_css .='color: '.esc_attr($watch_store_shop_heading_color).'!important; 
            font-family: '.esc_attr($watch_store_shop_heading_font_family).'!important;
            font-size: '.esc_attr($watch_store_shop_heading_font_size).'px !important;';
        $watch_store_shop_theme_css .='}';
    }

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

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

    /*---------------- Header CSS ----------------------*/
    $watch_store_shop_banner_section_setting = get_theme_mod( 'watch_store_shop_banner_section_setting',false);
    if( $watch_store_shop_banner_section_setting != true) {
        $watch_store_shop_theme_css .='.page-template-home-template .socialmedia{';
            $watch_store_shop_theme_css .='background:linear-gradient(180deg, var(--first-color); 0%, var(--first-color) 100%); position:static;';
        $watch_store_shop_theme_css .='}';
    }