<?php
$shoes_footwear_custom_css = "";
$shoes_footwear_primary_color = get_theme_mod('shoes_footwear_primary_color');

/*------------------ Primary Global Color -----------*/

if ($shoes_footwear_primary_color) {
  $shoes_footwear_custom_css .= ':root {';
  $shoes_footwear_custom_css .= '--primary-color: ' . esc_attr($shoes_footwear_primary_color) . ' !important;';
  $shoes_footwear_custom_css .= '} ';
}

/*-------------------- Scroll Top Alignment-------------------*/

$shoes_footwear_scroll_top_alignment = get_theme_mod( 'shoes_footwear_scroll_top_alignment','right-align');

if($shoes_footwear_scroll_top_alignment == 'right-align'){
$shoes_footwear_custom_css .='#button{';
	$shoes_footwear_custom_css .='right: 3%;';
$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_scroll_top_alignment == 'center-align'){
$shoes_footwear_custom_css .='#button{';
	$shoes_footwear_custom_css .='right:0; left:0; margin: 0 auto;';
$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_scroll_top_alignment == 'left-align'){
$shoes_footwear_custom_css .='#button{';
	$shoes_footwear_custom_css .='left: 3%;';
$shoes_footwear_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$shoes_footwear_archive_pagination_alignment = get_theme_mod( 'shoes_footwear_archive_pagination_alignment','left-align');

if($shoes_footwear_archive_pagination_alignment == 'right-align'){
$shoes_footwear_custom_css .='.pagination{';
	$shoes_footwear_custom_css .='justify-content: end;';
$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_archive_pagination_alignment == 'center-align'){
$shoes_footwear_custom_css .='.pagination{';
	$shoes_footwear_custom_css .='justify-content: center;';
$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_archive_pagination_alignment == 'left-align'){
$shoes_footwear_custom_css .='.pagination{';
	$shoes_footwear_custom_css .='justify-content: start;';
$shoes_footwear_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$shoes_footwear_resp_scroll_top = get_theme_mod( 'shoes_footwear_resp_scroll_top',true);
if($shoes_footwear_resp_scroll_top == true && get_theme_mod( 'shoes_footwear_scroll_to_top',true) != true){
	$shoes_footwear_custom_css .='#button.show{';
		$shoes_footwear_custom_css .='visibility:hidden !important;';
	$shoes_footwear_custom_css .='} ';
}
if($shoes_footwear_resp_scroll_top == true){
	$shoes_footwear_custom_css .='@media screen and (max-width:575px) {';
	$shoes_footwear_custom_css .='#button.show{';
		$shoes_footwear_custom_css .='visibility:visible !important;';
	$shoes_footwear_custom_css .='} }';
}else if($shoes_footwear_resp_scroll_top == false){
	$shoes_footwear_custom_css .='@media screen and (max-width:575px){';
	$shoes_footwear_custom_css .='#button.show{';
		$shoes_footwear_custom_css .='visibility:hidden !important;';
	$shoes_footwear_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

$shoes_footwear_resp_loader = get_theme_mod('shoes_footwear_resp_loader',false);
if($shoes_footwear_resp_loader == true && get_theme_mod('shoes_footwear_header_preloader',false) == false){
	$shoes_footwear_custom_css .='@media screen and (min-width:575px){
		.preloader{';
		$shoes_footwear_custom_css .='display:none !important;';
	$shoes_footwear_custom_css .='} }';
}

if($shoes_footwear_resp_loader == false){
	$shoes_footwear_custom_css .='@media screen and (max-width:575px){
		.preloader{';
		$shoes_footwear_custom_css .='display:none !important;';
	$shoes_footwear_custom_css .='} }';
}

// Scroll to top button shape 

$shoes_footwear_scroll_border_radius = get_theme_mod( 'shoes_footwear_scroll_to_top_radius','curved-box');
if($shoes_footwear_scroll_border_radius == 'box'){
	$shoes_footwear_custom_css .='#button{';
		$shoes_footwear_custom_css .='border-radius: 0px;';
	$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_scroll_border_radius == 'curved-box'){
	$shoes_footwear_custom_css .='#button{';
		$shoes_footwear_custom_css .='border-radius: 4px;';
	$shoes_footwear_custom_css .='}';
}
else if($shoes_footwear_scroll_border_radius == 'circle'){
	$shoes_footwear_custom_css .='#button{';
		$shoes_footwear_custom_css .='border-radius: 50%;';
	$shoes_footwear_custom_css .='}';
}

// Footer Background Image Attachment 

$shoes_footwear_footer_attachment = get_theme_mod( 'shoes_footwear_background_attachment','scroll');
if($shoes_footwear_footer_attachment == 'fixed'){
	$shoes_footwear_custom_css .='.site-footer{';
		$shoes_footwear_custom_css .='background-attachment: fixed;';
	$shoes_footwear_custom_css .='}';
}elseif ($shoes_footwear_footer_attachment == 'scroll'){
	$shoes_footwear_custom_css .='.site-footer{';
		$shoes_footwear_custom_css .='background-attachment: scroll;';
	$shoes_footwear_custom_css .='}';
}

// Menu Hover Style	

$shoes_footwear_menus_item = get_theme_mod( 'shoes_footwear_menus_style','None');
if($shoes_footwear_menus_item == 'None'){
	$shoes_footwear_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$shoes_footwear_custom_css .='';
	$shoes_footwear_custom_css .='}';
}else if($shoes_footwear_menus_item == 'Zoom In'){
	$shoes_footwear_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$shoes_footwear_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$shoes_footwear_custom_css .='}';

	$shoes_footwear_custom_css .= '.main-navigation ul ul li a:hover {';
	$shoes_footwear_custom_css .= 'margin-left: 20px;';
	$shoes_footwear_custom_css .= '}';
}

// Post Content Alignment

$shoes_footwear_blog_layout_option = get_theme_mod( 'shoes_footwear_blog_layout_option','Left');
if($shoes_footwear_blog_layout_option == 'Left'){
	$shoes_footwear_custom_css .='.post{';
		$shoes_footwear_custom_css .='text-align: left;';
	$shoes_footwear_custom_css .='}';
}elseif ($shoes_footwear_blog_layout_option == 'Right'){
	$shoes_footwear_custom_css .='.post{';
		$shoes_footwear_custom_css .='text-align: right;';
	$shoes_footwear_custom_css .='}';
}elseif ($shoes_footwear_blog_layout_option == 'Center'){
	$shoes_footwear_custom_css .='.post{';
		$shoes_footwear_custom_css .='text-align: center;';
	$shoes_footwear_custom_css .='}';
}