<?php

    $pet_accessory_store_theme_css= "";

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

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

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

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

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

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

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

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

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

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

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

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

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

    $pet_accessory_store_nav_menu_font_weight = get_theme_mod( 'pet_accessory_store_nav_menu_font_weight');
    if($pet_accessory_store_menu_font_size != ''){
        $pet_accessory_store_theme_css .='.main-navigation .menu > li > a{';
            $pet_accessory_store_theme_css .='font-size: '.esc_attr($pet_accessory_store_nav_menu_font_weight).';';
        $pet_accessory_store_theme_css .='}';
    }

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

    $pet_accessory_store_global_color = get_theme_mod('pet_accessory_store_global_color');

    if($pet_accessory_store_global_color != false){
        $pet_accessory_store_theme_css .='#top-slider a.product-btn,.comment-respond input#submit,.wp-block-button__link,.main-navigation .sub-menu,.sidebar input[type="submit"], .sidebar button[type="submit"],a.btn-text,#top-slider .owl-carousel .owl-nav .owl-prev, #top-slider .owl-carousel .owl-nav .owl-next,.top-info,.featured .owl-carousel .owl-nav .owl-prev:hover, .featured .owl-carousel .owl-nav .owl-next:hover,#colophon,#top-slider .slide-btn a,#button, span.onsale, .pro-button a, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button.alt,.woocommerce a.added_to_cart, .woocommerce ul.products li.product .onsale, .woocommerce span.onsale, .woocommerce .woocommerce-ordering select, .woocommerce-account .woocommerce-MyAccount-navigation ul li, .post-navigation .nav-previous a:hover, .post-navigation .nav-next a:hover, .posts-navigation .nav-previous a:hover, .posts-navigation .nav-next a:hover, .navigation.pagination .nav-links a.current, .navigation.pagination .nav-links a:hover, .navigation.pagination .nav-links span.current, .navigation.pagination .nav-links span:hover, #colophon, .sidebar h5, .sidebar .tagcloud a:hover, p.wp-block-tag-cloud a:hover{';
            $pet_accessory_store_theme_css .='background-color: '.esc_attr($pet_accessory_store_global_color).';';
        $pet_accessory_store_theme_css .='}';
    }

    if($pet_accessory_store_global_color != false){
        $pet_accessory_store_theme_css .='.offer-box-3 h3.offer-2-heading,a,.main-navigation .menu > li > a:hover,.post-navigation .nav-previous a, .post-navigation .nav-next a, .posts-navigation .nav-previous a, .posts-navigation .nav-next a,.article-box h3.entry-title a,span.woo-cat,.top-info .social-link a i:hover, .top-info p.location i,.service-icon i, section.featured span.last_slide_head, p.price, .woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce-message::before, .woocommerce-info::before, .widget a:hover, .widget a:focus, .sidebar ul li a:hover,.featured h4.offer-short-heading{';
            $pet_accessory_store_theme_css .='color: '.esc_attr($pet_accessory_store_global_color).';';
        $pet_accessory_store_theme_css .='}';
    }

    if($pet_accessory_store_global_color != false){
        $pet_accessory_store_theme_css .='.wp-block-button.is-style-outline .wp-block-button__link,.postcat-name{';
            $pet_accessory_store_theme_css .='color: '.esc_attr($pet_accessory_store_global_color).' !important;';
        $pet_accessory_store_theme_css .='}';
    }

    if($pet_accessory_store_global_color != false){
        $pet_accessory_store_theme_css .='.wp-block-button.is-style-outline .wp-block-button__link,.button-header a, #top-slider .slide-btn a, .post-navigation .nav-previous a:hover, .post-navigation .nav-next a:hover, .posts-navigation .nav-previous a:hover, .posts-navigation .nav-next a:hover, .navigation.pagination .nav-links a.current, .navigation.pagination .nav-links a:hover, .navigation.pagination .nav-links span.current, .navigation.pagination .nav-links span:hover{';
            $pet_accessory_store_theme_css .='border-color: '.esc_attr($pet_accessory_store_global_color).';';
        $pet_accessory_store_theme_css .='}';
    }

    if($pet_accessory_store_global_color != false){
        $pet_accessory_store_theme_css .='.woocommerce-message, .woocommerce-info{';
            $pet_accessory_store_theme_css .='border-top-color: '.esc_attr($pet_accessory_store_global_color).';';
        $pet_accessory_store_theme_css .='}';
    }

    $pet_accessory_store_theme_css .='@media screen and (max-width:1000px) {';
        if($pet_accessory_store_global_color != false){
            $pet_accessory_store_theme_css .='.toggle-nav i, .sidenav .closebtn{
            background: '.esc_attr($pet_accessory_store_global_color).';
            }';
        }
    $pet_accessory_store_theme_css .='}';

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

    $pet_accessory_store_heading_color = get_theme_mod('pet_accessory_store_heading_color');
    $pet_accessory_store_heading_font_family = get_theme_mod('pet_accessory_store_heading_font_family');
    $pet_accessory_store_heading_font_size = get_theme_mod('pet_accessory_store_heading_font_size');
    if($pet_accessory_store_heading_color != false || $pet_accessory_store_heading_font_family != false || $pet_accessory_store_heading_font_size != false){
        $pet_accessory_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, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5{';
            $pet_accessory_store_theme_css .='color: '.esc_attr($pet_accessory_store_heading_color).'!important; 
            font-family: '.esc_attr($pet_accessory_store_heading_font_family).'!important;
            font-size: '.esc_attr($pet_accessory_store_heading_font_size).'px !important;';
        $pet_accessory_store_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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