/* 
 *
 * Header and Footer Styles for header.php 
 *
 */

/*** PAGE HEADER SECTION ***/

header section#page_header {
	margin: 0 auto;
	width: 1024px;
	height: 166px;		/* allows circles to overlap main menu! */
	text-align: center;
}

header section#page_header div.logo {
	display: inline-block;
	padding-top: 10px;
}

header section#page_header div.logo img {
	width: 480px;
}

/* Responsive */
@media screen and (max-width:820px) {

	header section#page_header {
		width: 820px;
		margin: 0 1%;
	}
}

@media screen and (max-width:420px) {

	header section#page_header {
		width: 400px;
		height: 140px;
	}
	
	header section#page_header div.logo img {
	    width: 350px;
	}
}
@media screen and (max-width:400px) {
	
	header section#page_header {
		width: 380px;
	}
}
@media screen and (max-width:375px) {			/* Responsive */

	header section#page_header {
		width: 365px;
	}

	header section#page_header div.logo img {
	    width: 300px;
	}
}

header section#page_header div.slogan {
	display: inline-block;
	vertical-align: top;
	padding: 50px 20px;
	font-size: 14px;
}

header section#page_header div.contact_info {
	position: relative;	/* position on top of main menu */
	z-index: 90;		/* quick view can overlay */
	float: right;
	padding-right: 20px;
	background: url("../images/header_circles.png");
	background-repeat: no-repeat;
	width: 192px;
	height: 176px;
}

header section#page_header div.contact_info div {					/* center text within circles image */
	padding: 48px 0 0 0;
}

header section#page_header div.contact_info div a.registry_link {	/* center registry text over images*/
	padding: 0 0 10px 4px;
	line-height: 30px;
}

header section#page_header div.contact_info div ul {				/* social media and contact icons */
	display: inline;
	padding: 0;
	list-style-type: none;
}

header section#page_header div.contact_info div ul li {
	display: inline;
}

header section#page_header div.admin_links {
	margin: 0;
	padding: 0;
	vertical-align:top;
}

/* Responsive */
@media screen and (max-width:820px) {
	
	header section#page_header div.slogan {
		display: none;
	}

	header section#page_header div.contact_info {
		padding-right: 40px;
	}
}

@media screen and (max-width:420px) {

	header section#page_header div.contact_info {
		position: absolute;
		top: 28px;
		left: 210px;
		opacity: 0.8;
	}
}

/*** MAIN MENU ***/

header nav#main_menu {
	position: relative;		/* position behind the circles */
	margin: 0 auto;
	padding: 20px 0 0 0px;
	width: 100%;
	height: 35px;
	text-align: center;
	background: #f1f2f1;
	vertical-align: middle;
}

header nav#main_menu ul.nav {
	display: inline;
	padding: 0;
	list-style-type: none;
	font-size: 23px;
	font-family: "LatoBlack", Arial;
	font-weight: 600;
	width: 100%;
}

header nav#main_menu img.responsive_menu,
header nav#main_menu form.responsive_search,
header nav#main_menu div#cart_div_items {
	display: none;
}

header nav#main_menu ul.nav li {
	display: inline;
	border-right: 2px solid #FFFFFF;
}
header nav#main_menu ul.nav li:last-child {
	border-right: none;
}

header nav#main_menu ul.nav li a {
	color: #58595b;
	padding: 14px 17px;
	text-decoration: none;
	text-align: center;
}

header nav#main_menu ul.nav li a:hover {
	color: #B1005D;
}

header nav#main_menu ul.nav li.nav-selected a {
	color: #B1005D;
}

header nav#main_menu ul.nav li a.selected {	 	/* set by javascript */
	color: #B1005D;
}

/* Responsive */
@media screen and (max-width:820px) {

	header nav#main_menu {
		width: 820px;
		margin-left: 1%;
		text-align: left;
	}

	header nav#main_menu ul.nav {
		font-size: 20px;
	}
}
@media screen and (max-width:420px) {

	header nav#main_menu {
		padding: 0px 0 0 20px;
		width: 100%;
		height: 43px;
		text-align: left;
		vertical-align: top;
		z-index: 99;	/* on top of contact info circles */
	}

	header nav#main_menu img.responsive_menu { 
		display: inline;
		margin-top: 10px;
	}

	header nav#main_menu form.responsive_search {
		display: inline;
		float: right;
	}

	header nav#main_menu form.responsive_search button {
		height: 43px;
	}
	
	header nav#main_menu ul.nav {
		display: none;	/* toggle with js */
		position: absolute;
		z-index: 90;
		width: 300px;
		background-color: #f1f2f1;
	}

	header nav#main_menu ul.nav li {
		display: list-item;
		margin: 0 0 10px 0;
		padding: 0 0 6px 0;
	}
	
	header nav#main_menu ul.nav li a {
		padding: 6px 17px;
	}
}


/*** CATALOG MENU: hidden <div> ***/

/* Category Menu */
header section#catalog_menu {
	position: absolute;			/* javascript drop-down */
	margin: 0;
	padding: 10px 0 30px 0px;
	width: 100%;
	min-height: 50px;
	background: #B1005D;
	z-index: 90;
}

header section#catalog_menu div.category {
	width: 70%;		/* Insurance: set by javascript based on main menu width */
	margin:0 auto;
}

header section#catalog_menu div.category ul {
	list-style-type: none;
	margin-block: 0;
	padding-inline: 0;
}

header section#catalog_menu div.category ul li {
	display: inline-block;
	margin: 0 30px 0 0;
	padding: 0;
	border-bottom: 1px solid #FFFFFF;
}

header section#catalog_menu div.category ul li a {
	display: inline-block;
	margin: 12px 0 0 0;			/* bottom=0 for sub-menu display */
	padding: 6px 0 4px 0px;
	width: 172px;
	white-space: nowrap;
	color: #FFFFFF;
	font-size: 1.2em;
	font-weight: 400;
	/* text-transform: uppercase; */
}

header section#catalog_menu div.category ul li a img {	/* icon */
	width: 40px;
	height: 24px;
	padding-right: 6px;
}
	
header section#catalog_menu div.category ul li a:hover {
	text-decoration: none;
}

header section#catalog_menu div.category ul li a.selected {	/* set by javascript */
	color: #B1005D;
	background-color: #f1f2f1;
}

/* Sub-Category Menu */
header section#catalog_menu div.category ul li div.sub_category {
	position: absolute;
	z-index: 90;
	padding: 6px 0 14px 6px;
	margin: 0;
	min-height: 150px;
	max-height: 400px;
	overflow-y: auto;
	overflow-x: clip;
	min-width: 160px;		/* larger than category <a> width */
	max-width: 300px;
	background-color: #f1f2f1;
	/*
	border-right: 2px solid #f1f2f1;
	border-left: 2px solid #f1f2f1;
	border-bottom: 4px solid #f1f2f1;
	*/
}

/* Working ???? */
header section#catalog_menu div.category ul li div.sub_category::-webkit-scrollbar-track {
  background: #a8c399;
}

header section#catalog_menu div.category ul li div.sub_category::-webkit-scrollbar-thumb {
  background: #f1f2f1;
}

header section#catalog_menu div.category ul li div.sub_category ul li {
	display: block;
	padding: 0 20px 0 10px;
	margin: 0;
	width: 100%;
}

header section#catalog_menu div.category ul li div.sub_category ul li a {
	margin: 0;
	padding: 6px 0;
	width: 100%;
	overflow: initial;
	white-space: nowrap;
	border-bottom: none;
	color: #58595B;
	font-size: 1.25em;
	font-weight: 400;
}

header section#catalog_menu div.category ul li div.sub_category ul li a:hover {
	color: #B1005D;
	text-decoration: none;
}

/*** SEARCH BAR SECTION ***/

header section#search_bar {
	position: relative;
	margin: 0 auto;
	padding: 0 0 0 0;
	width: 100%;
	text-align: center;
	background-color: #B1005D;	
}

/* Responsive */
@media screen and (max-width:820px) {
	
	header section#search_bar {
		width: 820px;
		margin-left: 0;
		padding-left: 1%;
		text-align: left;
	}
}
@media screen and (max-width:420px) {
	
	header section#search_bar {
		display: none;
	}
}

/* Search input and buttons */
header section#search_bar form {
	display: inline-block;
	text-align: left;
}

header section#search_bar form div#search_input {
	margin: 0;
	padding: 0;
	display: inline-block;
	width: 100%;	/* fill entire search bar form */
	color: #D1D3D4;
	background: url("../images/search_icon.png");
	background-repeat: no-repeat;
	background-position-x: 6px;
	background-position-y: 8px;
	background-color: #B1005D;	
}

header section#search_bar form div#search_input img#search_icon {
	float: left;
	padding: 8px 0 0 8px;
}

header section#search_bar form div#search_input input.search {
	margin: 10px 0 0 66px;	/* space for background image on left */
	padding: 8px 0 0 0;
	width: 240px;
	line-height: 20px;
	font-size: 17px;
	font-style: italic;
	color: #D1D3D4;
	background-color: #B1005D;
	outline: none;
	border-style: none;
	border-color: #B1005D;
	border-bottom: 2px #D1D3D4 solid;
}

header section#search_bar form div#search_input input.search::placeholder {
	color: #D1D3D4;
}

header section#search_bar form div#search_input div#search_buttons {
	float: right;	/* float right within the search input <div> */
	background-color: #B1005D;
}

header section#search_bar form div#search_input div#search_buttons button {
	margin: 0 10px 0 0;
	padding: 10px 12px;
	width: 100px;
	min-height: 56px;	/* sets the height of the search bar! */
	color: #D1D3D4;
	background-color: #64002D;
	font-family: "LatoBlack", Arial;
	font-weight: 600;
	font-size: 17px;
	border: none;
	outline: none;
}

header section#search_bar form div#search_input div#search_buttons button:hover {
	cursor: pointer;
	color: #f1f2f1;
}

/* Brands wrapper for button and drop-down menu <div> */
header section#search_bar form div#search_input div#search_buttons div#brands_wrapper {
	display: inline-block;
	margin: 0;
	padding: 0;
}

/* Brands drop-down menu <div> */
header section#search_bar form div#search_input div#search_buttons div#brands_wrapper div#brands_list_div {
	position:absolute;
 	margin: 0;
 	padding: 10px 10px 20px 20px;
 	min-width: 20%;
 	max-height: 400px;
 	overflow-y: auto;
	z-index:90;
	color: #FFFFFF;
	background-color: #64002D;
}

header section#search_bar form div#search_input div#search_buttons div#brands_wrapper div#brands_list_div ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

header section#search_bar form div#search_input div#search_buttons div#brands_wrapper div#brands_list_div ul li {
	margin: 0;
	padding: 0 0 4px 0;
}

header section#search_bar form div#search_input div#search_buttons div#brands_wrapper div#brands_list_div ul li a {
	font-size: 1.2em;
	color: #D1D3D4;
}

header section#search_bar form div#search_input div#search_buttons div#brands_wrapper div#brands_list_div ul li a:hover {
	color: #f1f2f1;
	text-decoration: none;
}	

/* cart icon and information */	
header div#cart_div_items {
	float: right;		/* float right within the search bar */
	margin: 0;
	padding: 8px 0 0 34px;	
	min-height: 48px;	/* sets the height of the search bar! */
	min-width: 150px;
	width: 20%;
	font-size: 14px;
	background-color: #58595b;
	color: #dedfe0;
	cursor: pointer;
	text-align: center;
	background-repeat: no-repeat;
	background-position-y: 10px;
	background-position-x: 10px;
}

header div#cart_div_items span.msg {
	display: inline;
}

header div#cart_div_items span.msg_responsive {
	display: none;
}

/* Responsive */
@media screen and (max-width:420px) {

	header nav#main_menu div#cart_div_items {
		display: inline;
		float: right;
		padding: 4px 0 0 6px;
		margin: 0;
		background-size: 20px;
		height: 39px;
		min-height: 39px;
		background-position: 10px;
	}
	
	header div#cart_div_items span.msg {
		display: none;
	}
	
	header div#cart_div_items span.msg_responsive {
		display: inline;
	}
}

header div#cart_div_items a {
	font-size: 0.9em;
	color: #D1D3D4;
}

header div#cart_div_items a:hover {
	color: #f1f2f1;
	text-decoration: none;
}

/*** PAGE FOOTER ***/

footer {
	margin-top: 10px;
	background-color: #e6e7e8;
}
@media screen and (max-width:1024px) {
	footer { width: 1024px;}
}
@media screen and (max-width:820px) {
	footer { width: 820px;}
}
@media screen and (max-width:420px) {
	footer { width: 420px;}
}

footer section.content {
	margin: 0 auto 10px auto;
	min-height: 160px;
	padding: 20px 0px 15px 0px;
	background-color: #e6e7e8;
}

footer div.closed {
	width: 100%;
	margin: 0;
	padding: 10px 0 10px 0;
	text-align: center;
	font-weight: 600;	
	background-color: #e6e7e8;
}

footer section.content ul {
	margin: 0;
	padding: 0;
	float: left;
	font-size: .9em;
	list-style: none;
}
	
footer section.content h2 {
	margin: 5px 0 5px 0;
	padding: 0 0 2px 0;
	font-size: .9em;
	line-height: 14px;
	font-weight: 700;
	border-bottom: 2px solid #CC78A5;
}

footer section.content div.logo {
	float: left;
	margin: 0 20px 0 0;
	padding-left: 20px;
	width: 135px;
}

footer section.content article.address {
	float: left;
	margin: 0 8px 0 8px;
	padding: 0 0 0 10px;
	width: 14%;
}

footer section.content article.hours {
	float: left;
	width: 14%;
	margin: 0 8px 0 8px;
	padding: 0 0 0 10px;
}

footer section.content article.policies {
	float: left;
	width: 10%;
	margin: 0 8px 0 8px;
	padding: 0 0 0 10px;
}

footer section.content article.checkout {
	float: left;
	width: 12%;
	margin: 0 8px 0 8px;
	padding: 20px 0 0 0;
}

footer section.content article.buttons {
	float: right;
	width: 20%;
	margin: 0;
	padding: 20px 20px 0 0;
}

footer section.content article.checkout button,
footer section.content article.buttons button {
	margin: 0 0 6px 0;
	padding: 6px 0 6px 0;
	width: 100%;
	background-color: #B1005D;
	color: #FFFFFF;
	border: 0;
}
	
footer section.content article.checkout button:hover,
footer section.content article.buttons button:hover {
	background-color: #64002D;
	cursor: pointer;
}
	
footer section.content article.buttons div {	/* center the social media icons */
	margin: 6px 0 0 20%;	
}

footer section.content article.buttons ul li {	/* social media inline with margin separation */
	float: left;
	margin-right: 20px;
}

/* Responsive */
@media screen and (max-width:820px) {

	footer section.content {
		margin: 0;
	}

	footer section.content article.address {
		width: 20%;
	}
	
	footer section.content article.hours {
		width: 25%;
	}
	
	footer section.content article.policies {
		width: 20%;
	}

	footer section.content article.buttons {
		float: none;
		clear:both;
		width: 100%;
		margin: 0;
		padding: 20px 0 0 0;
		text-align: center;
	}

	footer section.content article.buttons div {	/* center the social media icons */
		width: 100%;
		margin: 10px 32%;
	}

	footer section.content article.checkout button {
		width: 100%;
	}
	footer section.content article.buttons button {
		width: 20%;
	}
}
@media screen and (max-width:420px) {
	
	footer div.clear_float {
		clear: both;
	}
	
	footer section.content article.address {	/* float beside logo */
		width: 30%;
	}
	
	footer section.content article.hours,
	footer section.content article.policies,
	footer section.content article.checkout,
	footer section.content article.buttons {
		float: none;
		clear:both;
		margin: 10px 5%;
		padding: 0 0 0 10px;
		width: initial;
		text-align: left;
	}
	
	footer section.content article.buttons {
		text-align: center;
	}

	footer section.content article.hours h2,
	footer section.content article.policies h2 {
		width: 80%;
	}
	
	footer section.content article.checkout button,
	footer section.content article.buttons button {
		width: 250px;
	}
}

footer section.map_holder {
	overflow: hidden;
	width: 100%;
	margin: 0;
	border-top: 4px solid #CC78A5;
	border-bottom: 4px solid #CC78A5;
}

footer section.copyright {
	background-color: #e6e7e8;
	text-align: center;
	padding: 12px 0 6px 0;
	font-size: .9em;
}

footer section.trace_output {
	margin: 20px auto;
	padding-bottom: 20px;
	width: 90%;
}

footer section.trace_output p {
	padding-bottom: 6px;
	border-bottom: 1px solid #000000;
}
