/*
Theme Name:	Storefront Child
Theme URI:	http://crystalpaths.samsaralogic.com/wp
Description:	Storefront child theme for Crystalpaths
Author:		George Fox
Author URI:	http://samsaralogic.com
Template:	storefront
Version:	0.1.0
Test Domain:    storefrontchild
*/

/*@import url("../storefront/style.css");*/


@media screen and (min-width: 768px) {
	.site-header .site-branding, 
	.site-header .site-logo-anchor, 
	.site-header .site-logo-link,
	.site-header .custom-logo-link {
		margin-bottom: 0px !important;
		margin-right: 0px !important;
		width: 100% !important; /* Adjust this percentage up or down to make the logo larger or smaller. */
	}

	.site-header {
		background-color: #f8edff !important;
		color: #cfa3dc !important;
		width: 90%;
	}

	.site-header .primary-navigation a {
		color: #8267c7 !important;
	}

	.site-header .primary-navigation ul li a:hover {
		color: #8267c7;
    		background-color: #b7a1ef;
	}

	.site-header .primary-navigation ul.sub-menu li a:hover {
		color: #8267c7;
    		background-color: #b7a1ef;
	}

	h1.entry-title,
	h2,
	h3	 {
		color: #afaeae !important;
	}

}

@media screen and (max-width: 768px) {
	.site-header .site-branding, 
	.site-header .site-logo-anchor, 
	.site-header .site-logo-link, 
	.site-header .custom-logo-link {
		margin-bottom: 0px !important;
		margin-right: 0px !important;
		width: 70% !important; /* Adjust this percentage up or down to make the logo larger or smaller. */
	}

	.site-header {
		background-color: #f8edff !important;
		color: #cfa3dc !important;
	}

	.site-header .primary-navigation a {
		color: #8267c7 !important;
	}

	.site-header .primary-navigation ul li a:hover {
		color: #8267c7;
    		background-color: #b7a1ef;
	}

	.site-header .primary-navigation ul.sub-menu li a:hover {
		color: #8267c7;
    		background-color: #b7a1ef;
	}

	h1.entry-title,
	h2,
	h3	 {
		color: #afaeae !important;
	}

}

function remove_header_from_cart(){
    if( is_cart() ){

        remove_action( 'storefront_page', 'storefront_page_header', 10 );
        remove_action( 'storefront_before_content', 'storefront_header_widget_region', 10 );
        remove_action( 'storefront_header', 'storefront_header_container', 0);
        remove_action( 'storefront_header', 'storefront_skip_links', 5 );
        remove_action( 'storefront_header', 'storefront_site_branding', 20 );
        remove_action( 'storefront_header', 'storefront_secondary_navigation', 30 );
        remove_action( 'storefront_header', 'storefront_product_search', 40 );
        remove_action( 'storefront_header', 'storefront_header_container_close', 41 );
        remove_action( 'storefront_header', 'storefront_primary_navigation_wrapper', 42 );
        remove_action( 'storefront_header', 'storefront_primary_navigation', 50 );
        remove_action( 'storefront_header', 'storefront_header_cart', 60 );
        remove_action( 'storefront_header', 'storefront_primary_navigation_wrapper_close', 68 );
    }
}
add_action('wp_head','remove_header_from_cart');

function remove_footer_from_cart(){
    if( is_cart() ){
        remove_action( 'storefront_footer', 'storefront_footer_widgets', 10 );
        remove_action( 'storefront_footer', 'storefront_credit', 20 );
    }
}
add_action('wp_head','remove_footer_from_cart');