<?php

$fashion_designer_studio_custom_style= "";

/*---------------------------Scroll-top-position -------------------*/
$fashion_designer_studio_scroll_options = get_theme_mod( 'fashion_designer_studio_scroll_options','right_align');

if($fashion_designer_studio_scroll_options == 'right_align'){

$fashion_designer_studio_custom_style .='.scrollup{';

	$fashion_designer_studio_custom_style .='';

$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_scroll_options == 'center_align'){

$fashion_designer_studio_custom_style .='.scrollup{';

	$fashion_designer_studio_custom_style .='right: 0; left:0; margin: 0 auto; top:85% !important';

$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_scroll_options == 'left_align'){

$fashion_designer_studio_custom_style .='.scrollup{';

	$fashion_designer_studio_custom_style .='right: auto; left:5%; margin: 0 auto';

$fashion_designer_studio_custom_style .='}';
}

// sticky-header

	if (false === get_option('fashion_designer_studio_sticky_header')) {
	    add_option('fashion_designer_studio_sticky_header', 'off');
	}

	// Define the custom CSS based on the 'fashion_designer_studio_sticky_header' option

	if (get_option('fashion_designer_studio_sticky_header', 'off') !== 'on') {
	    $fashion_designer_studio_custom_style .= '.menu_header.fixed {';
	    $fashion_designer_studio_custom_style .= 'position: static;';
	    $fashion_designer_studio_custom_style .= '}';
	}

	if (get_option('fashion_designer_studio_sticky_header', 'off') !== 'off') {
	    $fashion_designer_studio_custom_style .= '.menu_header.fixed {';
	    $fashion_designer_studio_custom_style .= 'position: fixed; background: var(--theme-color-white); box-shadow: 0px 3px 10px 2px #eee;';
	    $fashion_designer_studio_custom_style .= '}';

	    $fashion_designer_studio_custom_style .= '.admin-bar .fixed {';
	    $fashion_designer_studio_custom_style .= ' margin-top: 32px;';
	    $fashion_designer_studio_custom_style .= '}';
	}

/*---------------------------text-transform-------------------*/

$fashion_designer_studio_text_transform = get_theme_mod( 'fashion_designer_studio_menu_text_transform','CAPITALISE');

if($fashion_designer_studio_text_transform == 'CAPITALISE'){

$fashion_designer_studio_custom_style .='nav#top_gb_menu ul li a{';

	$fashion_designer_studio_custom_style .='text-transform: capitalize ;';

$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_text_transform == 'UPPERCASE'){

$fashion_designer_studio_custom_style .='nav#top_gb_menu ul li a{';

	$fashion_designer_studio_custom_style .='text-transform: uppercase ;';

$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_text_transform == 'LOWERCASE'){

$fashion_designer_studio_custom_style .='nav#top_gb_menu ul li a{';

	$fashion_designer_studio_custom_style .='text-transform: lowercase ;';

$fashion_designer_studio_custom_style .='}';
}

/*-------------------------Slider-content-alignment-------------------*/

$fashion_designer_studio_slider_content_alignment = get_theme_mod( 'fashion_designer_studio_slider_content_alignment','LEFT-ALIGN');

if($fashion_designer_studio_slider_content_alignment == 'LEFT-ALIGN'){

$fashion_designer_studio_custom_style .='#slider .carousel-caption{';

	$fashion_designer_studio_custom_style .='text-align:left; right: 30%; left: 15%;';

$fashion_designer_studio_custom_style .='}';

$fashion_designer_studio_custom_style .='@media screen and (max-width:991px){';

$fashion_designer_studio_custom_style .='#slider .carousel-caption{';

    $fashion_designer_studio_custom_style .='right: 20%; left: 15%';
    
$fashion_designer_studio_custom_style .='} }';


}else if($fashion_designer_studio_slider_content_alignment == 'CENTER-ALIGN'){

$fashion_designer_studio_custom_style .='#slider .carousel-caption{';

	$fashion_designer_studio_custom_style .='text-align:center; right: 15%; left: 15%;';

$fashion_designer_studio_custom_style .='}';


}else if($fashion_designer_studio_slider_content_alignment == 'RIGHT-ALIGN'){

$fashion_designer_studio_custom_style .='#slider .carousel-caption{';

	$fashion_designer_studio_custom_style .='text-align:right; right: 15%; left: 30%;';

$fashion_designer_studio_custom_style .='}';

$fashion_designer_studio_custom_style .='@media screen and (max-width:991px){';

$fashion_designer_studio_custom_style .='#slider .carousel-caption{';

    $fashion_designer_studio_custom_style .='right: 15%; left: 20%';
    
$fashion_designer_studio_custom_style .='} }';

}

//--------------------Logo max-width----------------------------

$fashion_designer_studio_logo_max_height = get_theme_mod('fashion_designer_studio_logo_max_height','100');

if($fashion_designer_studio_logo_max_height != false){

$fashion_designer_studio_custom_style .='.custom-logo-link img{';

	$fashion_designer_studio_custom_style .='max-height: '.esc_html($fashion_designer_studio_logo_max_height).'px;';

$fashion_designer_studio_custom_style .='}';
}

//related products
if( get_option( 'fashion_designer_studio_related_product',true) != 'on') {

$fashion_designer_studio_custom_style .='.related.products{';

	$fashion_designer_studio_custom_style .='display: none;';
	
$fashion_designer_studio_custom_style .='}';
}

if( get_option( 'fashion_designer_studio_related_product',true) != 'off') {

$fashion_designer_studio_custom_style .='.related.products{';

	$fashion_designer_studio_custom_style .='display: block;';
	
$fashion_designer_studio_custom_style .='}';
}

// footer text alignment
$fashion_designer_studio_footer_content_alignment = get_theme_mod( 'fashion_designer_studio_footer_content_alignment','CENTER-ALIGN');

if($fashion_designer_studio_footer_content_alignment == 'LEFT-ALIGN'){

$fashion_designer_studio_custom_style .='.site-info{';

	$fashion_designer_studio_custom_style .='text-align:left; padding-left: 30px;';

$fashion_designer_studio_custom_style .='}';

$fashion_designer_studio_custom_style .='.site-info a{';

	$fashion_designer_studio_custom_style .='padding-left: 30px;';

$fashion_designer_studio_custom_style .='}';


}else if($fashion_designer_studio_footer_content_alignment == 'CENTER-ALIGN'){

$fashion_designer_studio_custom_style .='.site-info{';

	$fashion_designer_studio_custom_style .='text-align:center;';

$fashion_designer_studio_custom_style .='}';


}else if($fashion_designer_studio_footer_content_alignment == 'RIGHT-ALIGN'){

$fashion_designer_studio_custom_style .='.site-info{';

	$fashion_designer_studio_custom_style .='text-align:right; padding-right: 30px;';

$fashion_designer_studio_custom_style .='}';

$fashion_designer_studio_custom_style .='.site-info a{';

	$fashion_designer_studio_custom_style .='padding-right: 30px;';

$fashion_designer_studio_custom_style .='}';

}

// slider button
$mobile_button_setting = get_option('fashion_designer_studio_slider_button_mobile_show_hide', '1');
$main_button_setting = get_option('fashion_designer_studio_slider_button_show_hide', '1');

$fashion_designer_studio_custom_style .= '#slider .home-btn {';

if ($main_button_setting == 'off') {
    $fashion_designer_studio_custom_style .= 'display: none;';
}

$fashion_designer_studio_custom_style .= '}';

// Add media query for mobile devices
$fashion_designer_studio_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_button_setting == 'off' || $mobile_button_setting == 'off') {
    $fashion_designer_studio_custom_style .= '#slider .home-btn { display: none; }';
}
$fashion_designer_studio_custom_style .= '}';


// scroll button
$mobile_scroll_setting = get_option('fashion_designer_studio_scroll_enable_mobile', '1');
$main_scroll_setting = get_option('fashion_designer_studio_scroll_enable', '1');

$fashion_designer_studio_custom_style .= '.scrollup {';

if ($main_scroll_setting == 'off') {
    $fashion_designer_studio_custom_style .= 'display: none;';
}

$fashion_designer_studio_custom_style .= '}';

// Add media query for mobile devices
$fashion_designer_studio_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_scroll_setting == 'off' || $mobile_scroll_setting == 'off') {
    $fashion_designer_studio_custom_style .= '.scrollup { display: none; }';
}
$fashion_designer_studio_custom_style .= '}';

// theme breadcrumb
$mobile_breadcrumb_setting = get_option('fashion_designer_studio_enable_breadcrumb_mobile', '1');
$main_breadcrumb_setting = get_option('fashion_designer_studio_enable_breadcrumb', '1');

$fashion_designer_studio_custom_style .= '.archieve_breadcrumb {';

if ($main_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= 'display: none;';
}

$fashion_designer_studio_custom_style .= '}';

// Add media query for mobile devices
$fashion_designer_studio_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_breadcrumb_setting == 'off' || $mobile_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= '.archieve_breadcrumb { display: none; }';
}
$fashion_designer_studio_custom_style .= '}';

// single post and page breadcrumb
$mobile_single_breadcrumb_setting = get_option('fashion_designer_studio_single_enable_breadcrumb_mobile', '1');
$main_single_breadcrumb_setting = get_option('fashion_designer_studio_single_enable_breadcrumb', '1');

$fashion_designer_studio_custom_style .= '.single_breadcrumb {';

if ($main_single_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= 'display: none;';
}

$fashion_designer_studio_custom_style .= '}';

// Add media query for mobile devices
$fashion_designer_studio_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_single_breadcrumb_setting == 'off' || $mobile_single_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= '.single_breadcrumb { display: none; }';
}
$fashion_designer_studio_custom_style .= '}';

// woocommerce breadcrumb
$mobile_woo_breadcrumb_setting = get_option('fashion_designer_studio_woocommerce_enable_breadcrumb_mobile', '1');
$main_woo_breadcrumb_setting = get_option('fashion_designer_studio_woocommerce_enable_breadcrumb', '1');

$fashion_designer_studio_custom_style .= '.woocommerce-breadcrumb {';

if ($main_woo_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= 'display: none;';
}

$fashion_designer_studio_custom_style .= '}';

// Add media query for mobile devices
$fashion_designer_studio_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_woo_breadcrumb_setting == 'off' || $mobile_woo_breadcrumb_setting == 'off') {
    $fashion_designer_studio_custom_style .= '.woocommerce-breadcrumb { display: none; }';
}
$fashion_designer_studio_custom_style .= '}';

//colors
$color_heading = get_theme_mod('fashion_designer_studio_heading_color', '#1f1f1f');
$color_text = get_theme_mod('fashion_designer_studio_text_color', '#8b8b8b');
$color_fade = get_theme_mod('fashion_designer_studio_primary_fade', '#f7f7f7');
$color_footer_bg = get_theme_mod('fashion_designer_studio_footer_bg', '#1f1f1f');
$color_post_bg = get_theme_mod('fashion_designer_studio_post_bg', '#ffffff');


$fashion_designer_studio_custom_style .= ":root {";
    $fashion_designer_studio_custom_style .= "--theme-color: {$color_heading};";
    $fashion_designer_studio_custom_style .= "--theme-text-color: {$color_text};";
    $fashion_designer_studio_custom_style .= "--theme-primary-fade: {$color_fade};";
    $fashion_designer_studio_custom_style .= "--theme-footer-color: {$color_footer_bg};";
    $fashion_designer_studio_custom_style .= "--theme-color-white: {$color_post_bg};";
$fashion_designer_studio_custom_style .= "}";

$fashion_designer_studio_slider_opacity = get_theme_mod( 'fashion_designer_studio_slider_opacity','0.6');

if($fashion_designer_studio_slider_opacity == '0'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.1'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.1';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.2'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.2';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.3'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.3';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.4'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.4';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.5'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.5';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.6'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.6';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.7'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.7';
$fashion_designer_studio_custom_style .='}';

}else if($fashion_designer_studio_slider_opacity == '0.8'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.8';
$fashion_designer_studio_custom_style .='}';

}
else if($fashion_designer_studio_slider_opacity == '0.9'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 0.9';
$fashion_designer_studio_custom_style .='}';

}
else if($fashion_designer_studio_slider_opacity == '1'){
$fashion_designer_studio_custom_style .='#slider img {';
    $fashion_designer_studio_custom_style .='opacity: 1';
$fashion_designer_studio_custom_style .='}';

}

//-------------------title-font-size----//  
$fashion_designer_studio_site_title_fontsize = get_theme_mod('fashion_designer_studio_site_title_fontsize','25');

if($fashion_designer_studio_site_title_fontsize != false){

$fashion_designer_studio_custom_style .='.fashion-designer-studio-logo h1,.site-title,.site-title a,.fashion-designer-studio-logo h1 a{';

    $fashion_designer_studio_custom_style .='font-size: '.esc_html($fashion_designer_studio_site_title_fontsize).'px;';

$fashion_designer_studio_custom_style .='}';
}

//-------------------tagline-font-size----//  
$fashion_designer_studio_site_tagline_fontsize = get_theme_mod('fashion_designer_studio_site_tagline_fontsize','15');

if($fashion_designer_studio_site_tagline_fontsize != false){

$fashion_designer_studio_custom_style .='p.site-description{';

    $fashion_designer_studio_custom_style .='font-size: '.esc_html($fashion_designer_studio_site_tagline_fontsize).'px;';

$fashion_designer_studio_custom_style .='}';
}

//-------------------menu-font-size----//  
$fashion_designer_studio_menu_fontsize = get_theme_mod('fashion_designer_studio_menu_fontsize','14');

if($fashion_designer_studio_menu_fontsize != false){

$fashion_designer_studio_custom_style .='.gb_nav_menu li a{';

    $fashion_designer_studio_custom_style .='font-size: '.esc_html($fashion_designer_studio_menu_fontsize).'px;';

$fashion_designer_studio_custom_style .='}';
}