<?php

$packers_movers_company_custom_css = "";

	$packers_movers_company_theme_pagination_options_alignment = get_theme_mod('packers_movers_company_theme_pagination_options_alignment', 'Center');
	if ($packers_movers_company_theme_pagination_options_alignment == 'Center') {
		$packers_movers_company_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$packers_movers_company_custom_css .= 'justify-content: center;margin: 0 auto;';
		$packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_theme_pagination_options_alignment == 'Right') {
		$packers_movers_company_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$packers_movers_company_custom_css .= 'justify-content: right;margin: 0 0 0 auto;';
		$packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_theme_pagination_options_alignment == 'Left') {
		$packers_movers_company_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$packers_movers_company_custom_css .= 'justify-content: left;margin: 0 auto 0 0;';
		$packers_movers_company_custom_css .= '}';
	}

	$packers_movers_company_theme_breadcrumb_enable = get_theme_mod('packers_movers_company_theme_breadcrumb_enable',true);
    if($packers_movers_company_theme_breadcrumb_enable != true){
        $packers_movers_company_custom_css .='nav.breadcrumb-trail.breadcrumbs,nav.woocommerce-breadcrumb{';
            $packers_movers_company_custom_css .='display: none;';
        $packers_movers_company_custom_css .='}';
    }

	$packers_movers_company_theme_breadcrumb_options_alignment = get_theme_mod('packers_movers_company_theme_breadcrumb_options_alignment', 'Left');
	if ($packers_movers_company_theme_breadcrumb_options_alignment == 'Center') {
	    $packers_movers_company_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $packers_movers_company_custom_css .= 'text-align: center !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_theme_breadcrumb_options_alignment == 'Right') {
	    $packers_movers_company_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $packers_movers_company_custom_css .= 'text-align: Right !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_theme_breadcrumb_options_alignment == 'Left') {
	    $packers_movers_company_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $packers_movers_company_custom_css .= 'text-align: Left !important;';
	    $packers_movers_company_custom_css .= '}';
	}

	$packers_movers_company_single_page_content_alignment = get_theme_mod('packers_movers_company_single_page_content_alignment', 'left');
	if ($packers_movers_company_single_page_content_alignment == 'left') {
	    $packers_movers_company_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $packers_movers_company_custom_css .= 'text-align: left !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_single_page_content_alignment == 'center') {
	    $packers_movers_company_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $packers_movers_company_custom_css .= 'text-align: center !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_single_page_content_alignment == 'right') {
	    $packers_movers_company_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $packers_movers_company_custom_css .= 'text-align: right !important;';
	    $packers_movers_company_custom_css .= '}';
	}

	$packers_movers_company_single_post_content_alignment = get_theme_mod('packers_movers_company_single_post_content_alignment', 'left');
	if ($packers_movers_company_single_post_content_alignment == 'left') {
	    $packers_movers_company_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $packers_movers_company_custom_css .= 'text-align: left !important;justify-content: left;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_single_post_content_alignment == 'center') {
	    $packers_movers_company_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $packers_movers_company_custom_css .= 'text-align: center !important;justify-content: center;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_single_post_content_alignment == 'right') {
	    $packers_movers_company_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $packers_movers_company_custom_css .= 'text-align: right !important;justify-content: right;';
	    $packers_movers_company_custom_css .= '}';
	}

	$packers_movers_company_menu_text_transform = get_theme_mod('packers_movers_company_menu_text_transform', 'uppercase');
	if ($packers_movers_company_menu_text_transform == 'Capitalize') {
		$packers_movers_company_custom_css .= '.site-navigation .primary-menu > li a{';
		$packers_movers_company_custom_css .= 'text-transform: Capitalize !important;';
		$packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_menu_text_transform == 'uppercase') {
		$packers_movers_company_custom_css .= '.site-navigation .primary-menu > li a{';
		$packers_movers_company_custom_css .= 'text-transform: uppercase !important;';
		$packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_menu_text_transform == 'lowercase') {
		$packers_movers_company_custom_css .= '.site-navigation .primary-menu > li a{';
		$packers_movers_company_custom_css .= 'text-transform: lowercase !important;';
		$packers_movers_company_custom_css .= '}';
	}


	$packers_movers_company_footer_widget_title_alignment = get_theme_mod('packers_movers_company_footer_widget_title_alignment', 'left');
	if ($packers_movers_company_footer_widget_title_alignment == 'left') {
	    $packers_movers_company_custom_css .= 'h2.widget-title{';
	    $packers_movers_company_custom_css .= 'text-align: left !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_footer_widget_title_alignment == 'center') {
	    $packers_movers_company_custom_css .= 'h2.widget-title{';
	    $packers_movers_company_custom_css .= 'text-align: center !important;';
	    $packers_movers_company_custom_css .= '}';
	} else if ($packers_movers_company_footer_widget_title_alignment == 'right') {
	    $packers_movers_company_custom_css .= 'h2.widget-title{';
	    $packers_movers_company_custom_css .= 'text-align: right !important;';
	    $packers_movers_company_custom_css .= '}';
	}

    $packers_movers_company_show_hide_related_product = get_theme_mod('packers_movers_company_show_hide_related_product',true);
    if($packers_movers_company_show_hide_related_product != true){
        $packers_movers_company_custom_css .='.related.products{';
            $packers_movers_company_custom_css .='display: none;';
        $packers_movers_company_custom_css .='}';
    }

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

	$packers_movers_company_global_color = get_theme_mod('packers_movers_company_global_color', '#ffdc39'); // Add a fallback if the color isn't set

	if ($packers_movers_company_global_color) {
		$packers_movers_company_custom_css .= ':root {';
		$packers_movers_company_custom_css .= '--global-color: ' . esc_attr($packers_movers_company_global_color) . ';';
		$packers_movers_company_custom_css .= '}';
	}

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

	$packers_movers_company_global_colorr = get_theme_mod('packers_movers_company_global_colorr', '#14212a'); // Add a fallback if the color isn't set

	if ($packers_movers_company_global_colorr) {
		$packers_movers_company_custom_css .= ':root {';
		$packers_movers_company_custom_css .= '--global-colorr: ' . esc_attr($packers_movers_company_global_colorr) . ';';
		$packers_movers_company_custom_css .= '}';
	}

	/*-------------------- Content Font -------------------*/

	$packers_movers_company_content_typography_font = get_theme_mod('packers_movers_company_content_typography_font', 'roboto'); // Add a fallback if the color isn't set

	if ($packers_movers_company_content_typography_font) {
		$packers_movers_company_custom_css .= ':root {';
		$packers_movers_company_custom_css .= '--font-main: ' . esc_attr($packers_movers_company_content_typography_font) . ';';
		$packers_movers_company_custom_css .= '}';
	}

	/*-------------------- Heading Font -------------------*/

	$packers_movers_company_heading_typography_font = get_theme_mod('packers_movers_company_heading_typography_font', 'roboto'); // Add a fallback if the color isn't set

	if ($packers_movers_company_heading_typography_font) {
		$packers_movers_company_custom_css .= ':root {';
		$packers_movers_company_custom_css .= '--font-head: ' . esc_attr($packers_movers_company_heading_typography_font) . ';';
		$packers_movers_company_custom_css .= '}';
	}

	$packers_movers_company_columns = get_theme_mod('packers_movers_company_posts_per_columns', 3);
	$packers_movers_company_columns = absint($packers_movers_company_columns);
	if ( $packers_movers_company_columns < 1 || $packers_movers_company_columns > 6 ) {
		$packers_movers_company_columns = 3;
	}
	$packers_movers_company_custom_css .= "
		.site-content .article-wraper-archive {
			grid-template-columns: repeat({$packers_movers_company_columns}, 1fr);
		}
	";

	$packers_movers_company_copyright_alignment = get_theme_mod( 'packers_movers_company_copyright_alignment', 'Default' );
	if ( $packers_movers_company_copyright_alignment === 'Reverse' ) {
		$packers_movers_company_custom_css .= '.site-info .column-row { flex-direction: row-reverse; }';
		$packers_movers_company_custom_css .= '.footer-credits { justify-content: flex-end; }';
		$packers_movers_company_custom_css .= '.footer-copyright { text-align: right; }';
		$packers_movers_company_custom_css .= '.site-info .column.column-3 { text-align: left; }';
	} elseif ( $packers_movers_company_copyright_alignment === 'Center' ) {
		$packers_movers_company_custom_css .= '.site-info .column-row { flex-direction: column; align-items: center; gap: 15px; }';
		$packers_movers_company_custom_css .= '.footer-credits { justify-content: center; }';
		$packers_movers_company_custom_css .= '.footer-copyright { text-align: center; }';
		$packers_movers_company_custom_css .= '.site-info .column.column-3 { text-align: center; }';
	}

	$packers_movers_company_footer_widget_background_color = get_theme_mod('packers_movers_company_footer_widget_background_color');
	if ($packers_movers_company_footer_widget_background_color) {

		$packers_movers_company_custom_css .= "
			.footer-widgetarea {
				background-color: ". esc_attr($packers_movers_company_footer_widget_background_color) .";
			}
		";
	}

	$packers_movers_company_footer_widget_background_image = get_theme_mod('packers_movers_company_footer_widget_background_image');
	if ($packers_movers_company_footer_widget_background_image) {
		$packers_movers_company_custom_css .= "
			.footer-widgetarea {
				background-image: url(" . esc_url($packers_movers_company_footer_widget_background_image) . ");
			}
		";
	}

	$packers_movers_company_copyright_font_size = get_theme_mod('packers_movers_company_copyright_font_size');
	if ($packers_movers_company_copyright_font_size) {

		$packers_movers_company_custom_css .= "
			.footer-copyright {
				font-size: ". esc_attr($packers_movers_company_copyright_font_size) ."px;
			}
		";
	}

	/*-------------------- Menu Color CSS -------------------*/

	$packers_movers_company_header_menus_color = get_theme_mod('packers_movers_company_header_menus_color');
	if($packers_movers_company_header_menus_color != false){
		$packers_movers_company_custom_css .='.site-navigation .primary-menu a{';
			$packers_movers_company_custom_css .='color: '.esc_attr($packers_movers_company_header_menus_color).'!important;';
		$packers_movers_company_custom_css .='}';
	}

	$packers_movers_company_header_menus_hover_color = get_theme_mod('packers_movers_company_header_menus_hover_color');
	if($packers_movers_company_header_menus_hover_color != false){
		$packers_movers_company_custom_css .='.site-navigation .primary-menu a:hover{';
			$packers_movers_company_custom_css .='color: '.esc_attr($packers_movers_company_header_menus_hover_color).'!important;';
		$packers_movers_company_custom_css .='}';
	}

	$packers_movers_company_header_submenus_color = get_theme_mod('packers_movers_company_header_submenus_color');
	if($packers_movers_company_header_submenus_color != false){
		$packers_movers_company_custom_css .='.site-navigation .primary-menu ul.sub-menu li a,.site-navigation .primary-menu li ul li a{';
			$packers_movers_company_custom_css .='color: '.esc_attr($packers_movers_company_header_submenus_color).'!important;';
		$packers_movers_company_custom_css .='}';
	}

	$packers_movers_company_header_submenus_hover_color = get_theme_mod('packers_movers_company_header_submenus_hover_color');
	if($packers_movers_company_header_submenus_hover_color != false){
		$packers_movers_company_custom_css .='.site-navigation .primary-menu > li ul.sub-menu a:hover,.site-navigation .primary-menu li ul li a:hover{';
			$packers_movers_company_custom_css .='color: '.esc_attr($packers_movers_company_header_submenus_hover_color).'!important;';
		$packers_movers_company_custom_css .='}';
	}