<?php
$mobile_accessories_shop_color_scheme_css = '';
$mobile_accessories_shop_first_color = get_theme_mod('mobile_accessories_shop_first_color');
$mobile_accessories_shop_second_color = get_theme_mod('mobile_accessories_shop_second_color');
$mobile_accessories_shop_third_color = get_theme_mod('mobile_accessories_shop_third_color');
$mobile_accessories_shop_fourth_color = get_theme_mod('mobile_accessories_shop_fourth_color');
$mobile_accessories_shop_fifth_color = get_theme_mod('mobile_accessories_shop_fifth_color');

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

if ($mobile_accessories_shop_first_color) {
    $mobile_accessories_shop_color_scheme_css .= ':root {';
    $mobile_accessories_shop_color_scheme_css .= '--first-theme-color: ' . esc_attr($mobile_accessories_shop_first_color) . ' !important;';
    $mobile_accessories_shop_color_scheme_css .= '} ';
}

/*------------------ Global Second Color -----------*/

if ($mobile_accessories_shop_second_color) {
    $mobile_accessories_shop_color_scheme_css .= ':root {';
    $mobile_accessories_shop_color_scheme_css .= '--second-theme-color: ' . esc_attr($mobile_accessories_shop_second_color) . ' !important;';
    $mobile_accessories_shop_color_scheme_css .= '} ';
}

/*------------------ Global Third Color -----------*/

if ($mobile_accessories_shop_third_color) {
    $mobile_accessories_shop_color_scheme_css .= ':root {';
    $mobile_accessories_shop_color_scheme_css .= '--third-theme-color: ' . esc_attr($mobile_accessories_shop_third_color) . ' !important;';
    $mobile_accessories_shop_color_scheme_css .= '} ';
}

/*------------------ Global Fourth Color -----------*/

if ($mobile_accessories_shop_fourth_color) {
    $mobile_accessories_shop_color_scheme_css .= ':root {';
    $mobile_accessories_shop_color_scheme_css .= '--fourth-theme-color: ' . esc_attr($mobile_accessories_shop_fourth_color) . ' !important;';
    $mobile_accessories_shop_color_scheme_css .= '} ';
}

/*------------------ Global Fifth Color -----------*/

if ($mobile_accessories_shop_fifth_color) {
    $mobile_accessories_shop_color_scheme_css .= ':root {';
    $mobile_accessories_shop_color_scheme_css .= '--fifth-theme-color: ' . esc_attr($mobile_accessories_shop_fifth_color) . ' !important;';
    $mobile_accessories_shop_color_scheme_css .= '} ';
}

$mobile_accessories_shop_banner = get_theme_mod('mobile_accessories_shop_banner', false);
if($mobile_accessories_shop_banner != true){
    $mobile_accessories_shop_color_scheme_css .='.page-template-template-home-page .main-header{';
    $mobile_accessories_shop_color_scheme_css .='margin-bottom: 10px;';
    $mobile_accessories_shop_color_scheme_css .='}';
} 

//---------------------------------Logo-Max-height--------- 
$mobile_accessories_shop_logo_width = get_theme_mod('mobile_accessories_shop_logo_width', 200);
if($mobile_accessories_shop_logo_width != false){
    $mobile_accessories_shop_color_scheme_css .='.mobile-accessories-shop-logo img{';
      $mobile_accessories_shop_color_scheme_css .='width: '.esc_html($mobile_accessories_shop_logo_width).'px;';
    $mobile_accessories_shop_color_scheme_css .='}';
}

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

$mobile_accessories_shop_woo_product_img_border_radius = get_theme_mod('mobile_accessories_shop_woo_product_img_border_radius');
if($mobile_accessories_shop_woo_product_img_border_radius != false){
    $mobile_accessories_shop_color_scheme_css .='.woocommerce-shop.woocommerce .product-content .product-image img{';
    $mobile_accessories_shop_color_scheme_css .='border-radius: '.esc_attr($mobile_accessories_shop_woo_product_img_border_radius).'px;';
    $mobile_accessories_shop_color_scheme_css .='}';
}  

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

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

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

$mobile_accessories_shop_footer_bg_image = get_theme_mod('mobile_accessories_shop_footer_bg_image');
if($mobile_accessories_shop_footer_bg_image != false){
    $mobile_accessories_shop_color_scheme_css .='#footer{';
        $mobile_accessories_shop_color_scheme_css .='background: url('.esc_attr($mobile_accessories_shop_footer_bg_image).');';
        $mobile_accessories_shop_color_scheme_css .= 'background-size: cover;';  
    $mobile_accessories_shop_color_scheme_css .='}';
}

/*--------------------------- Footer image position -------------------*/

$mobile_accessories_shop_footer_img_position = get_theme_mod('mobile_accessories_shop_footer_img_position','center center');
if($mobile_accessories_shop_footer_img_position != false){
    $mobile_accessories_shop_color_scheme_css .='#footer{';
        $mobile_accessories_shop_color_scheme_css .='background-position: '.esc_attr($mobile_accessories_shop_footer_img_position).';';
    $mobile_accessories_shop_color_scheme_css .='}';
}	

/*--------------------------- Shop page pagination -------------------*/

$mobile_accessories_shop_wooproducts_nav = get_theme_mod('mobile_accessories_shop_wooproducts_nav', 'Yes');
if($mobile_accessories_shop_wooproducts_nav == 'No'){
  $mobile_accessories_shop_color_scheme_css .='.woocommerce nav.woocommerce-pagination{';
    $mobile_accessories_shop_color_scheme_css .='display: none;';
  $mobile_accessories_shop_color_scheme_css .='}';
}

/*--------------------------- Related Product -------------------*/

$mobile_accessories_shop_related_product_enable = get_theme_mod('mobile_accessories_shop_related_product_enable',true);
if($mobile_accessories_shop_related_product_enable == false){
  $mobile_accessories_shop_color_scheme_css .='.related.products{';
    $mobile_accessories_shop_color_scheme_css .='display: none;';
  $mobile_accessories_shop_color_scheme_css .='}';
}

/*--------------------------- Scroll to Top Button Shape -------------------*/

$mobile_accessories_shop_scroll_top_shape = get_theme_mod('mobile_accessories_shop_scroll_top_shape', 'circle');
if($mobile_accessories_shop_scroll_top_shape == 'box' ){
    $mobile_accessories_shop_color_scheme_css .='#button{';
        $mobile_accessories_shop_color_scheme_css .=' border-radius: 0%';
    $mobile_accessories_shop_color_scheme_css .='}';
}elseif($mobile_accessories_shop_scroll_top_shape == 'curved' ){
    $mobile_accessories_shop_color_scheme_css .='#button{';
        $mobile_accessories_shop_color_scheme_css .=' border-radius: 20%';
    $mobile_accessories_shop_color_scheme_css .='}';
}elseif($mobile_accessories_shop_scroll_top_shape == 'circle' ){
    $mobile_accessories_shop_color_scheme_css .='#button{';
        $mobile_accessories_shop_color_scheme_css .=' border-radius: 50%;';
    $mobile_accessories_shop_color_scheme_css .='}';
}

/*--------------------------- Menu Typography -------------------*/

$mobile_accessories_shop_theme_lay = get_theme_mod( 'mobile_accessories_shop_menu_text_transform','Capitalize');
if($mobile_accessories_shop_theme_lay == 'Uppercase'){
    $mobile_accessories_shop_color_scheme_css .='.main-nav a{';
        $mobile_accessories_shop_color_scheme_css .='text-transform: uppercase;';
    $mobile_accessories_shop_color_scheme_css .='}';
}else if($mobile_accessories_shop_theme_lay == 'Lowercase'){
    $mobile_accessories_shop_color_scheme_css .='.main-nav a{';
        $mobile_accessories_shop_color_scheme_css .='text-transform: lowercase;';
    $mobile_accessories_shop_color_scheme_css .='}';
}
else if($mobile_accessories_shop_theme_lay == 'Capitalize'){
    $mobile_accessories_shop_color_scheme_css .='.main-nav a{';
        $mobile_accessories_shop_color_scheme_css .='text-transform: capitalize;';
    $mobile_accessories_shop_color_scheme_css .='}';
}

/*--------------------------- Post Layout -------------------*/

$mobile_accessories_shop_blog_layouts = get_theme_mod('mobile_accessories_shop_blog_layout_option_setting', 'Left');
if ($mobile_accessories_shop_blog_layouts == 'Left') {
    $mobile_accessories_shop_color_scheme_css .= '.postsec-list .listarticle{';
    $mobile_accessories_shop_color_scheme_css .= 'text-align:left;';
    $mobile_accessories_shop_color_scheme_css .= '}';
} elseif ($mobile_accessories_shop_blog_layouts == 'Center') {
    $mobile_accessories_shop_color_scheme_css .= '.postsec-list .listarticle{';
    $mobile_accessories_shop_color_scheme_css .= 'text-align:center;';
    $mobile_accessories_shop_color_scheme_css .= '}';
} elseif ($mobile_accessories_shop_blog_layouts == 'Right') {
    $mobile_accessories_shop_color_scheme_css .= '.postsec-list .listarticle{';
    $mobile_accessories_shop_color_scheme_css .= 'text-align:right;';
    $mobile_accessories_shop_color_scheme_css .= '}';
}