<?php
$cloud_storage_services_color_scheme_css = '';
$cloud_storage_services_first_color = get_theme_mod('cloud_storage_services_first_color');
$cloud_storage_services_second_color = get_theme_mod('cloud_storage_services_second_color');

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

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

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

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

//---------------------------------Logo-Max-height--------- 
$cloud_storage_services_logo_width = get_theme_mod('cloud_storage_services_logo_width', 100);
if($cloud_storage_services_logo_width != false){
    $cloud_storage_services_color_scheme_css .='.cloud-storage-services-logo img{';
      $cloud_storage_services_color_scheme_css .='width: '.esc_html($cloud_storage_services_logo_width).'px;';
    $cloud_storage_services_color_scheme_css .='}';
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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