<?php

  $dry_cleaning_services_first_color = get_theme_mod('dry_cleaning_services_first_color');
  $dry_cleaning_services_second_color = get_theme_mod('dry_cleaning_services_second_color');
  $dry_cleaning_services_color_scheme_css = '';

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

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

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

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

$dry_cleaning_services_color_scheme_css .= '#slider-cat:before {';
$dry_cleaning_services_color_scheme_css .= 'background: linear-gradient(333deg, '.esc_attr($dry_cleaning_services_first_color).' -26%, '.esc_attr($dry_cleaning_services_second_color).' 127696.39%);';
$dry_cleaning_services_color_scheme_css .= '}';

// Sticky Header
$dry_cleaning_services_resp_stickyheader = get_theme_mod( 'dry_cleaning_services_sticky_header',false);
if($dry_cleaning_services_resp_stickyheader != true){
    $dry_cleaning_services_color_scheme_css .='.header-fixed{';
        $dry_cleaning_services_color_scheme_css .='position:static;';
    $dry_cleaning_services_color_scheme_css .='} ';
}
if($dry_cleaning_services_resp_stickyheader == true){
    $dry_cleaning_services_color_scheme_css .='@media screen and (max-width:575px) {';
    $dry_cleaning_services_color_scheme_css .='.header-fixed{';
        $dry_cleaning_services_color_scheme_css .='position:fixed;';
    $dry_cleaning_services_color_scheme_css .='} }';
}else if($dry_cleaning_services_resp_stickyheader == false){
    $dry_cleaning_services_color_scheme_css .='@media screen and (max-width:575px){';
    $dry_cleaning_services_color_scheme_css .='.header-fixed{';
        $dry_cleaning_services_color_scheme_css .='position:static;';
    $dry_cleaning_services_color_scheme_css .='} }';
}

//---------------------------------Logo-Max-height--------- 
  $dry_cleaning_services_logo_width = get_theme_mod('dry_cleaning_services_logo_width');

  if($dry_cleaning_services_logo_width != false){

    $dry_cleaning_services_color_scheme_css .='.dry-cleaning-services-logo img{';

      $dry_cleaning_services_color_scheme_css .='width: '.esc_html($dry_cleaning_services_logo_width).'px;';

    $dry_cleaning_services_color_scheme_css .='}';
  }

  // by default header
  $dry_cleaning_services_slider = get_theme_mod('dry_cleaning_services_slider', true);

  if($dry_cleaning_services_slider != true){

    $dry_cleaning_services_color_scheme_css .='.page-template .mainhead{';

      $dry_cleaning_services_color_scheme_css .='position: static; background-color: #ffffff;';

    $dry_cleaning_services_color_scheme_css .='}';

  }

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

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

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

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

  /*--------------------------- Woocommerce Product Sale Position -------------------*/    

  $dry_cleaning_services_product_sale_position = get_theme_mod( 'dry_cleaning_services_product_sale_position','Left');
  if($dry_cleaning_services_product_sale_position == 'Right'){
      $dry_cleaning_services_color_scheme_css .='.woocommerce ul.products li.product .onsale{';
          $dry_cleaning_services_color_scheme_css .='left:auto !important; right:1em !important;';
      $dry_cleaning_services_color_scheme_css .='}';
  }else if($dry_cleaning_services_product_sale_position == 'Left'){
      $dry_cleaning_services_color_scheme_css .='.woocommerce ul.products li.product .onsale {';
          $dry_cleaning_services_color_scheme_css .='right:auto !important; left:1em !important;';
      $dry_cleaning_services_color_scheme_css .='}';
  }        

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

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

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

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

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

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

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

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

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

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

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

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

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

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