<?php

$carpenter_workshop_tp_theme_css = "";

//scroll-top-alignmemt
$carpenter_workshop_scroll_position = get_theme_mod( 'carpenter_workshop_scroll_top_position','Right');
if($carpenter_workshop_scroll_position == 'Right'){
$carpenter_workshop_tp_theme_css .='#return-to-top{';
    $carpenter_workshop_tp_theme_css .='right: 20px;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_scroll_position == 'Left'){
$carpenter_workshop_tp_theme_css .='#return-to-top{';
    $carpenter_workshop_tp_theme_css .='left: 20px;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_scroll_position == 'Center'){
$carpenter_workshop_tp_theme_css .='#return-to-top{';
    $carpenter_workshop_tp_theme_css .='right: 50%;left: 50%;';
$carpenter_workshop_tp_theme_css .='}';
}


// site title font size option
$carpenter_workshop_site_title_font_size = get_theme_mod('carpenter_workshop_site_title_font_size', 20);{
$carpenter_workshop_tp_theme_css .='.logo h1 a, .logo p a{';
	$carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_site_title_font_size).'px;';
$carpenter_workshop_tp_theme_css .='}';
}

// site tagline font size option
$carpenter_workshop_site_tagline_font_size = get_theme_mod('carpenter_workshop_site_tagline_font_size', 15);{
$carpenter_workshop_tp_theme_css .='.logo p{';
	$carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_site_tagline_font_size).'px;';
$carpenter_workshop_tp_theme_css .='}';
}

// related post
$carpenter_workshop_related_post_mob = get_theme_mod('carpenter_workshop_related_post_mob', true);
$carpenter_workshop_related_post = get_theme_mod('carpenter_workshop_remove_related_post', true);
$carpenter_workshop_tp_theme_css .= '.related-post-block {';
if ($carpenter_workshop_related_post == false) {
    $carpenter_workshop_tp_theme_css .= 'display: none;';
}
$carpenter_workshop_tp_theme_css .= '}';
$carpenter_workshop_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($carpenter_workshop_related_post == false || $carpenter_workshop_related_post_mob == false) {
    $carpenter_workshop_tp_theme_css .= '.related-post-block { display: none; }';
}
$carpenter_workshop_tp_theme_css .= '}';

// slider btn
$carpenter_workshop_slider_button_mob = get_theme_mod('carpenter_workshop_slider_button_mob', true);
$carpenter_workshop_slider_button = get_theme_mod('carpenter_workshop_slider_button', true);
$carpenter_workshop_tp_theme_css .= '#slider .more-btn {';
if ($carpenter_workshop_slider_button == false) {
    $carpenter_workshop_tp_theme_css .= 'display: none;';
}
$carpenter_workshop_tp_theme_css .= '}';
$carpenter_workshop_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($carpenter_workshop_slider_button == false || $carpenter_workshop_slider_button_mob == false) {
    $carpenter_workshop_tp_theme_css .= '#slider .more-btn { display: none; }';
}
$carpenter_workshop_tp_theme_css .= '}';

//return to header mobile				
$carpenter_workshop_return_to_header_mob = get_theme_mod('carpenter_workshop_return_to_header_mob', true);
$carpenter_workshop_return_to_header = get_theme_mod('carpenter_workshop_return_to_header', true);
$carpenter_workshop_tp_theme_css .= '.return-to-header{';
if ($carpenter_workshop_return_to_header == false) {
    $carpenter_workshop_tp_theme_css .= 'display: none;';
}
$carpenter_workshop_tp_theme_css .= '}';
$carpenter_workshop_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($carpenter_workshop_return_to_header == false || $carpenter_workshop_return_to_header_mob == false) {
    $carpenter_workshop_tp_theme_css .= '.return-to-header{ display: none; }';
}
$carpenter_workshop_tp_theme_css .= '}';

//blog description              
$carpenter_workshop_mobile_blog_description = get_theme_mod('carpenter_workshop_mobile_blog_description', true);
$carpenter_workshop_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($carpenter_workshop_mobile_blog_description == false) {
    $carpenter_workshop_tp_theme_css .= '.blog-description{ display: none; }';
}
$carpenter_workshop_tp_theme_css .= '}';

//footer bg image
$carpenter_workshop_footer_widget_image = get_theme_mod('carpenter_workshop_footer_widget_image');
if($carpenter_workshop_footer_widget_image != false){
$carpenter_workshop_tp_theme_css .='#footer{';
	$carpenter_workshop_tp_theme_css .='background: url('.esc_attr($carpenter_workshop_footer_widget_image).');';
$carpenter_workshop_tp_theme_css .='}';
}

//related products
$carpenter_workshop_related_product = get_theme_mod('carpenter_workshop_related_product',true);
if($carpenter_workshop_related_product == false){
	$carpenter_workshop_tp_theme_css .='.related.products{';
		$carpenter_workshop_tp_theme_css .='display: none;';
	$carpenter_workshop_tp_theme_css .='}';
}

//menu font size
$carpenter_workshop_menu_font_size = get_theme_mod('carpenter_workshop_menu_font_size', 15);{
$carpenter_workshop_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after, .main-navigation li.menu-item-has-children:after{';
	$carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_menu_font_size).'px;';
$carpenter_workshop_tp_theme_css .='}';
}

// menu text transform
$carpenter_workshop_menu_text_tranform = get_theme_mod( 'carpenter_workshop_menu_text_tranform','Capitalize');
if($carpenter_workshop_menu_text_tranform == 'Uppercase'){
$carpenter_workshop_tp_theme_css .='.main-navigation a {';
	$carpenter_workshop_tp_theme_css .='text-transform: uppercase;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_menu_text_tranform == 'Lowercase'){
$carpenter_workshop_tp_theme_css .='.main-navigation a {';
	$carpenter_workshop_tp_theme_css .='text-transform: lowercase;';
$carpenter_workshop_tp_theme_css .='}';
}
else if($carpenter_workshop_menu_text_tranform == 'Capitalize'){
$carpenter_workshop_tp_theme_css .='.main-navigation a {';
	$carpenter_workshop_tp_theme_css .='text-transform: capitalize;';
$carpenter_workshop_tp_theme_css .='}';
}

// for header
$carpenter_workshop_slider_arrows = get_theme_mod('carpenter_workshop_slider_arrows');

if($carpenter_workshop_slider_arrows == true){
$carpenter_workshop_tp_theme_css .='.page-template-front-page .top-header{';
	$carpenter_workshop_tp_theme_css .='posititon:static !important;';
$carpenter_workshop_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
	$carpenter_workshop_post_image_round = get_theme_mod('carpenter_workshop_post_image_round', 0);
	if($carpenter_workshop_post_image_round != false){
		$carpenter_workshop_tp_theme_css .='.blog .box-image img{';
			$carpenter_workshop_tp_theme_css .='border-radius: '.esc_attr($carpenter_workshop_post_image_round).'px;';
		$carpenter_workshop_tp_theme_css .='}';
	}

	$carpenter_workshop_post_image_width = get_theme_mod('carpenter_workshop_post_image_width', '');
	if($carpenter_workshop_post_image_width != false){
		$carpenter_workshop_tp_theme_css .='.blog .box-image img{';
			$carpenter_workshop_tp_theme_css .='Width: '.esc_attr($carpenter_workshop_post_image_width).'px;';
		$carpenter_workshop_tp_theme_css .='}';
	}

	$carpenter_workshop_post_image_length = get_theme_mod('carpenter_workshop_post_image_length', '');
	if($carpenter_workshop_post_image_length != false){
		$carpenter_workshop_tp_theme_css .='.blog .box-image img{';
			$carpenter_workshop_tp_theme_css .='height: '.esc_attr($carpenter_workshop_post_image_length).'px;';
		$carpenter_workshop_tp_theme_css .='}';
	}

	// footer widget title font size
	$carpenter_workshop_footer_widget_title_font_size = get_theme_mod('carpenter_workshop_footer_widget_title_font_size', '');{
	$carpenter_workshop_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
		$carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_footer_widget_title_font_size).'px;';
	$carpenter_workshop_tp_theme_css .='}';
	}

	// Copyright text font size
	$carpenter_workshop_footer_copyright_font_size = get_theme_mod('carpenter_workshop_footer_copyright_font_size', '');{
	$carpenter_workshop_tp_theme_css .='#footer .site-info p{';
		$carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_footer_copyright_font_size).'px;';
	$carpenter_workshop_tp_theme_css .='}';
	}

	// copyright padding
	$carpenter_workshop_footer_copyright_top_bottom_padding = get_theme_mod('carpenter_workshop_footer_copyright_top_bottom_padding', '');
	if ($carpenter_workshop_footer_copyright_top_bottom_padding !== '') { 
	    $carpenter_workshop_tp_theme_css .= '.site-info {';
	    $carpenter_workshop_tp_theme_css .= 'padding-top: ' . esc_attr($carpenter_workshop_footer_copyright_top_bottom_padding) . 'px;';
	    $carpenter_workshop_tp_theme_css .= 'padding-bottom: ' . esc_attr($carpenter_workshop_footer_copyright_top_bottom_padding) . 'px;';
	    $carpenter_workshop_tp_theme_css .= '}';
	}

	// copyright position
	$carpenter_workshop_copyright_text_position = get_theme_mod( 'carpenter_workshop_copyright_text_position','Center');
	if($carpenter_workshop_copyright_text_position == 'Center'){
	$carpenter_workshop_tp_theme_css .='#footer .site-info p{';
	$carpenter_workshop_tp_theme_css .='text-align:center;';
	$carpenter_workshop_tp_theme_css .='}';
	}else if($carpenter_workshop_copyright_text_position == 'Left'){
	$carpenter_workshop_tp_theme_css .='#footer .site-info p{';
	$carpenter_workshop_tp_theme_css .='text-align:left;';
	$carpenter_workshop_tp_theme_css .='}';
	}else if($carpenter_workshop_copyright_text_position == 'Right'){
	$carpenter_workshop_tp_theme_css .='#footer .site-info p{';
	$carpenter_workshop_tp_theme_css .='text-align:right;';
	$carpenter_workshop_tp_theme_css .='}';
}

// Header Image title font size
$carpenter_workshop_header_image_title_font_size = get_theme_mod('carpenter_workshop_header_image_title_font_size', '32');{
$carpenter_workshop_tp_theme_css .='.box-text h2{';
    $carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_header_image_title_font_size).'px;';
$carpenter_workshop_tp_theme_css .='}';
}

/*--------------------------- banner image Opacity -------------------*/
    $carpenter_workshop_theme_lay = get_theme_mod( 'carpenter_workshop_header_banner_opacity_color','0.5');
        if($carpenter_workshop_theme_lay == '0'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.1'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.1';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.2'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.2';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.3'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.3';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.4'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.4';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.5'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.5';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.6'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.6';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.7'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.7';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.8'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.8';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '0.9'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:0.9';
            $carpenter_workshop_tp_theme_css .='}';
        }else if($carpenter_workshop_theme_lay == '1'){
            $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
                $carpenter_workshop_tp_theme_css .='opacity:1';
            $carpenter_workshop_tp_theme_css .='}';
        }

    $carpenter_workshop_header_banner_image_overlay = get_theme_mod('carpenter_workshop_header_banner_image_overlay', true);
    if($carpenter_workshop_header_banner_image_overlay == false){
        $carpenter_workshop_tp_theme_css .='.single-page-img, .featured-image{';
            $carpenter_workshop_tp_theme_css .='opacity:1;';
        $carpenter_workshop_tp_theme_css .='}';
    }

    $carpenter_workshop_header_banner_image_ooverlay_color = get_theme_mod('carpenter_workshop_header_banner_image_ooverlay_color', true);
    if($carpenter_workshop_header_banner_image_ooverlay_color != false){
        $carpenter_workshop_tp_theme_css .='.box-image-page{';
            $carpenter_workshop_tp_theme_css .='background-color: '.esc_attr($carpenter_workshop_header_banner_image_ooverlay_color).';';
        $carpenter_workshop_tp_theme_css .='}';
    }


    // Slider Height
    $carpenter_workshop_slider_img_height      = get_theme_mod('carpenter_workshop_slider_img_height');
    // Desktop height
    $carpenter_workshop_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $carpenter_workshop_tp_theme_css .= '#slider img {';
    if ( $carpenter_workshop_slider_img_height ) {
        $carpenter_workshop_tp_theme_css .= 'height: ' . esc_attr( $carpenter_workshop_slider_img_height ) . ';';
    }
    $carpenter_workshop_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $carpenter_workshop_tp_theme_css .= '}';
    $carpenter_workshop_tp_theme_css .= '}';

    //First Cap ( Blog Post )
    $carpenter_workshop_show_first_caps = get_theme_mod('carpenter_workshop_show_first_caps', 'false');
    if($carpenter_workshop_show_first_caps == 'true' ){
    $carpenter_workshop_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter{';
    $carpenter_workshop_tp_theme_css .=' font-size: 55px; font-weight: 600;';
    $carpenter_workshop_tp_theme_css .=' margin-right: 6px;';
    $carpenter_workshop_tp_theme_css .=' line-height: 1;';
    $carpenter_workshop_tp_theme_css .='}';
    }elseif($carpenter_workshop_show_first_caps == 'false' ){
    $carpenter_workshop_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter {';
    $carpenter_workshop_tp_theme_css .='display: none;';
    $carpenter_workshop_tp_theme_css .='}';
    }

    // Menu hover effect
    $carpenter_workshop_menus_item = get_theme_mod( 'carpenter_workshop_menus_item_style','None');
    if($carpenter_workshop_menus_item == 'None'){
        $carpenter_workshop_tp_theme_css .='.main-navigation a:hover{';
            $carpenter_workshop_tp_theme_css .='';
        $carpenter_workshop_tp_theme_css .='}';
    }else if($carpenter_workshop_menus_item == 'Zoom In'){
        $carpenter_workshop_tp_theme_css .='.main-navigation a:hover{';
            $carpenter_workshop_tp_theme_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
        $carpenter_workshop_tp_theme_css .='}';
    }

    
// footer widget letter case
$carpenter_workshop_footer_widget_title_text_tranform = get_theme_mod( 'carpenter_workshop_footer_widget_title_text_tranform','');
if($carpenter_workshop_footer_widget_title_text_tranform == 'Uppercase'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='text-transform: uppercase;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_text_tranform == 'Lowercase'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='text-transform: lowercase;';
$carpenter_workshop_tp_theme_css .='}';
}
else if($carpenter_workshop_footer_widget_title_text_tranform == 'Capitalize'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='text-transform: capitalize;';
$carpenter_workshop_tp_theme_css .='}';
}

//Footer Font Weight
$carpenter_workshop_footer_widget_title_font_weight = get_theme_mod( 'carpenter_workshop_footer_widget_title_font_weight','');
if($carpenter_workshop_footer_widget_title_font_weight == '100'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 100;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '200'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 200;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '300'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 300;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '400'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 400;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '500'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 500;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '600'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 600;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '700'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 700;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '800'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 800;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_font_weight == '900'){
$carpenter_workshop_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $carpenter_workshop_tp_theme_css .='font-weight: 900;';
$carpenter_workshop_tp_theme_css .='}';
}

// footer widget position
$carpenter_workshop_footer_widget_title_position = get_theme_mod( 'carpenter_workshop_footer_widget_title_position','');
if($carpenter_workshop_footer_widget_title_position == 'Right'){
$carpenter_workshop_tp_theme_css .='#footer aside.widget-area{';
$carpenter_workshop_tp_theme_css .='text-align: right;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_position == 'Left'){
$carpenter_workshop_tp_theme_css .='#footer aside.widget-area{';
$carpenter_workshop_tp_theme_css .='text-align: left;';
$carpenter_workshop_tp_theme_css .='}';
}else if($carpenter_workshop_footer_widget_title_position == 'Center'){
$carpenter_workshop_tp_theme_css .='#footer aside.widget-area{';
$carpenter_workshop_tp_theme_css .='text-align: center;';
$carpenter_workshop_tp_theme_css .='}';
}

// Sale Tag Position (Fixed variable name conflict)
$carpenter_workshop_sale_position = get_theme_mod( 'carpenter_workshop_sale_tag_position', 'right' );
if ( $carpenter_workshop_sale_position == 'right' ) {
    $carpenter_workshop_tp_theme_css .= '.woocommerce ul.products li.product .onsale {';
    $carpenter_workshop_tp_theme_css .= 'right: 25px !important; left: auto !important;';
    $carpenter_workshop_tp_theme_css .= '}';
} elseif ( $carpenter_workshop_sale_position == 'left' ) {
    $carpenter_workshop_tp_theme_css .= '.woocommerce ul.products li.product .onsale {';
    $carpenter_workshop_tp_theme_css .= 'left: 25px !important; right:auto !important;';
    $carpenter_workshop_tp_theme_css .= '}';
}

$carpenter_workshop_woocommerce_sale_font_size = get_theme_mod('carpenter_workshop_woocommerce_sale_font_size');
if($carpenter_workshop_woocommerce_sale_font_size != false){
    $carpenter_workshop_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $carpenter_workshop_tp_theme_css .='font-size: '.esc_attr($carpenter_workshop_woocommerce_sale_font_size).'px;';
    $carpenter_workshop_tp_theme_css .='}';
}

$carpenter_workshop_woocommerce_sale_padding_top_bottom = get_theme_mod('carpenter_workshop_woocommerce_sale_padding_top_bottom');
if($carpenter_workshop_woocommerce_sale_padding_top_bottom != false){
    $carpenter_workshop_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $carpenter_workshop_tp_theme_css .='padding-top: '.esc_attr($carpenter_workshop_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($carpenter_workshop_woocommerce_sale_padding_top_bottom).'px;';
    $carpenter_workshop_tp_theme_css .='}';
}

$carpenter_workshop_woocommerce_sale_padding_left_right = get_theme_mod('carpenter_workshop_woocommerce_sale_padding_left_right');
if($carpenter_workshop_woocommerce_sale_padding_left_right != false){
    $carpenter_workshop_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $carpenter_workshop_tp_theme_css .='padding-left: '.esc_attr($carpenter_workshop_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($carpenter_workshop_woocommerce_sale_padding_left_right).'px !important;';
    $carpenter_workshop_tp_theme_css .='}';
}

$carpenter_workshop_woocommerce_sale_border_radius = get_theme_mod('carpenter_workshop_woocommerce_sale_border_radius', 100);
if($carpenter_workshop_woocommerce_sale_border_radius != false){
    $carpenter_workshop_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $carpenter_workshop_tp_theme_css .='border-radius: '.esc_attr($carpenter_workshop_woocommerce_sale_border_radius).'% !important;';
    $carpenter_workshop_tp_theme_css .='}';
}
