<?php 

  $classic_wedding_color_scheme_gradiant1 = get_theme_mod('classic_wedding_color_scheme_gradiant1');
  $classic_wedding_color_scheme_gradiant2 = get_theme_mod('classic_wedding_color_scheme_gradiant2');
  $classic_wedding_color_scheme_gradiant3 = get_theme_mod('classic_wedding_color_scheme_gradiant3');
  $classic_wedding_color_scheme_css = "";

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

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

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

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

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

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

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

  if($classic_wedding_logo_width != false){

    $classic_wedding_color_scheme_css .='.logo img{';

      $classic_wedding_color_scheme_css .='width: '.esc_html($classic_wedding_logo_width).'px;';

    $classic_wedding_color_scheme_css .='}';
  }

  //---------------------------------slider btn--------- 
  $classic_wedding_button_text = get_theme_mod('classic_wedding_button_text');

  if($classic_wedding_button_text != false){

    $classic_wedding_color_scheme_css .='.slide-btn a{';

      $classic_wedding_color_scheme_css .='visibility:hidden;';

    $classic_wedding_color_scheme_css .='}';
  }

  /*---------------------------Slider Height ------------*/

    $classic_wedding_slider_img_height = get_theme_mod('classic_wedding_slider_img_height');
    if($classic_wedding_slider_img_height != false){
        $classic_wedding_color_scheme_css .='.slidesection img{';
            $classic_wedding_color_scheme_css .='height: '.esc_attr($classic_wedding_slider_img_height).' !important;';
        $classic_wedding_color_scheme_css .='}';
    }

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

    $classic_wedding_footer_bg_image = get_theme_mod('classic_wedding_footer_bg_image');
    if($classic_wedding_footer_bg_image != false){
        $classic_wedding_color_scheme_css .='#footer{';
            $classic_wedding_color_scheme_css .='background: url('.esc_attr($classic_wedding_footer_bg_image).')!important;';
        $classic_wedding_color_scheme_css .='}';
    }

    /*--------------------------- Footer Background Color -------------------*/

    $classic_wedding_footer_bg_color = get_theme_mod('classic_wedding_footer_bg_color');
    if($classic_wedding_footer_bg_color != false){
        $classic_wedding_color_scheme_css .='#footer{';
            $classic_wedding_color_scheme_css .='background-color: '.esc_attr($classic_wedding_footer_bg_color).' !important;';
        $classic_wedding_color_scheme_css .='}';
    }

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

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

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

    $classic_wedding_blog_post_page_image_box_shadow = get_theme_mod('classic_wedding_blog_post_page_image_box_shadow',0);
    if($classic_wedding_blog_post_page_image_box_shadow != false){
        $classic_wedding_color_scheme_css .='.post-thumb img{';
            $classic_wedding_color_scheme_css .='box-shadow: '.esc_attr($classic_wedding_blog_post_page_image_box_shadow).'px '.esc_attr($classic_wedding_blog_post_page_image_box_shadow).'px '.esc_attr($classic_wedding_blog_post_page_image_box_shadow).'px #cccccc;';
        $classic_wedding_color_scheme_css .='}';
    }

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

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


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

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

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

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

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

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

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

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