/* HEADER */
body {
	padding-top: 50px;
}
@media (min-width: 992px) {
	body {
		padding-top: 140px;
	}
}

#header {
	-webkit-box-shadow: 0 0 3px 0 #121212;
	box-shadow: 0 0 3px 0 #121212;
	z-index: 10001;
	position: fixed;
	top: 0;
	width: 100%;
	background-color: #232f3e;
}

/* TOPBAR */
#topbar {
	display: none;
	color: #93999d;
	font-size: 14px;
	position: absolute;
	z-index: 1;
	width: 100%;
	height: 50px;
	background-color: white;
}
@media (min-width: 992px) {
	#topbar {
		position: absolute; /* when dynamically dsiplayed */
		height: 40px;
	}
	#header.show-search-desktop #topbar {
		display: block !important; /* override inline css generated from JS */
		position: relative;
		z-index: auto; /* display under the logo */
		background-color: inherit;
	}
}
#topbar .container {
	padding: 0; /* search results 100% screen width */
}
#header #search-container {
    position: relative;
    margin: 0 auto;
    max-width: 1250px;
	padding-left: 50px;
    padding-right: 50px;
}
@media (min-width: 992px) {
	#header #search-container {
		padding-left: 160px;
        padding-right: 160px;
	}
}
#header #search-controls {
	position: relative;
	padding: 7px 0;
}
#header #search-container #search-input {
	padding: 5px 25px 5px 10px;
	background-color: #fff;
	-webkit-border-radius: 14px;
	-moz-border-radius: 14px;
	-ms-border-radius: 14px;
	-o-border-radius: 14px;
	border-radius: 14px;
	height: 36px;
	border: 1px solid gray;

}
@media (min-width: 992px) {
	#header #search-container #search-input {
		height: 26px;
		border: none;
	}
}
#header #search-controls button {
	position: absolute;
	top: 0;
	height: 100%;
	background-color: transparent;
	border: none;
	font-size: 24px;
}
@media (min-width: 992px) {
	#header #search-controls button {
		font-size: 14px;
	}
}
#header #search-controls button:hover {
	color: #f05423;
}
#header #search-controls #button-search {
	right: 5px;
}
#header #search-controls #button-search-hide {
	right: -30px;
}
@media (min-width: 992px) {
	#header.show-search-desktop #topbar #search-controls #button-search-hide {
		display: none;
	}
}
@media (min-width: 992px) {
	#header #search-content {
		position: relative;
	}
}

/* HEADER MAIN */
#header-main {
	background-color: #fff;
	text-align: center;
	position: relative;
	height: 50px;
	padding-top: 5px;
}
@media (min-width: 992px) {
	#header-main {
		height: 60px;
		padding-top: 10px;
	}
}
#header-main .dropdown-menu {
	text-align: left;
}
#header .container {
	position: relative;
}

/* LOGO */
#header-main #logo {
	position: absolute;
    top: -5px;
    left: calc(50% - 75px);
}
#header-main #logo img {
    width: 130px;
    height: 48px;
}
@media (min-width: 992px) {
	#header-main #logo {
		top: -40px;
		left: 9px;
	}
	#header-main #logo img {
		width: 220px;
		height: 82px;
	}
}

/* SEARCH BUTTON */
#header-main #button-search-show {
	position: absolute;
	top: 3px;
	left: 50px;
	cursor: pointer;
	font-size: 24px;
	color: black;
}
@media (min-width: 992px) {
	#header.show-search-desktop #header-main #button-search-show {
		display: none;
	}
}

/* BOX SERVICES (GENERAL) */
.box-services {
	display: inline-block;
}
.box-services, .box-services:hover {
	color: #9b9d9e;
}
.box-services .media-body {
	display: block;
	text-align: left;
}
.box-services .heading {
	display: block;
	color: #353d41;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin: 0;
}
.box-services span.fa,
#header-main #customer-container #customer,
#header-main #cart-button {
    float: left;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	border-radius: 50%;
	display: block;
	width: 40px;
	height: 40px;
	font-size: 24px;
	color: black;
	position: relative;
	line-height: 38px;
	text-align: center;
    margin-right: 6px;
	-webkit-transition: box-shadow 0.2s ease 0s;
	transition: box-shadow 0.2s ease 0s;
}
@media (min-width: 992px) {
	.box-services span.fa {
		font-size: 30px;
		color: white;
	}
}

/* BOX SERVICES (HEADER) */
#header-main .box-services,
#header-main #cart {
    text-align: left;
	display: inline-block;
}
#header-main .box-services {
	float: right;
	font-size: 14px;
}
@media (min-width: 992px) {
	#header-main .box-services {
		float: none;
		margin: 0 10px;
	}
}
#header-main .box-services.info-delivery-1 .fa {
	background: url("../image/box-services-delivery.png") no-repeat;
	border-radius: 0;
}
#header-main .box-services.info-delivery-2 .fa {
	background: url("../image/box-services-order.png") no-repeat;
	border-radius: 0;
}
#header-main .box-services.info-delivery-1, #header-main .box-services.info-delivery-2 {
	display: none;
}
@media (min-width: 992px) {
	#header-main .box-services.info-delivery-1 {
		display: inline-block;
	}
}
@media (min-width: 1200px) {
	#header-main .box-services.info-delivery-2 {
		display: inline-block;
	}
}
#header-main .box-services.info-telephone .media-body {
	display: none;
}
@media (min-width: 992px) {
	#header-main .box-services.info-telephone .media-body {
		display: block;
	}
}

/* WISHLIST */
#header-main #wishlist {
	float: left;
	height: 40px;
	margin-right: 6px;
}
#header-main #wishlist-button {
	position: relative;
	width: 40px;
	height: 40px;
	color: #ff6346;
	line-height: 38px;
	font-size: 30px;
	margin-right: 6px;
	cursor: pointer;
}

#header-main #wishlist-button .fa-spinner {
	font-size: 16px;
	display: block;
}

/* CART */
#header-main #cart-container {
	float: right;
	height: 40px;
}
@media (min-width: 992px) {
	#header-main #cart-container {
		float: none;
		position: absolute;
		top: 0;
		right: 9px;
	}
}
#header-main #cart {
	cursor: pointer;
}
#header-main #cart-button {
	background-color: #ff6346;
	font-size: 16px;
	color: white;
	margin-right: 11px;
}
@media (min-width: 480px) {
	#header-main #cart-button {
		margin-right: 6px;
	}
}
#header-main .num-products {
	position: absolute;
	display: block;
	width: 20px;
	height: 20px;
	top: -4px;
	right: -4px;
	background: white;
	color: #E50000;
	font-size: 12px;
	font-weight: bold;
	line-height: 20px;
	border-radius: 50%;
	border: 1px solid #D9D9D9;
}
#header-main #cart .media-body {
	display: none;
	position: relative;
	padding-right: 5px;
}
@media (min-width: 480px) {
	#header-main #cart .media-body {
		display: block;
	}
}
#header-main #cart .price-base {
	font-size: 32px;
	font-weight: bold;
	line-height: 37px;
	color: #ff6346;
}
#header-main #cart .price-precision {
	font-size: 16px;
	font-weight: bold;
	color: #ff6346;
	position: absolute;
	top: 0;
	right: 7px;
}
#header-main #cart .price-currency {
	font-size: 16px;
	line-height: 20px;
	float: right;
	color: black;
	margin: 14px 0 0 4px;
}
#header-main .cart-menu {
	margin-top: 6px;
	width: 360px;
	box-shadow: 2px 2px 4px #DDD;
	right: 2px;
}
@media (min-width: 480px) {
	#header-main .cart-menu {
		right: 11px;
	}
}
@media (min-width: 992px) {
	#header-main .cart-menu {
		margin-top: 11px;
	}
}
#header-main .cart-menu table {
	margin: 0;
}
#header-main .cart-menu td {
	padding: 4px;
}
#header-main .cart-products-container {
	overflow-y: auto;
}
#header-main .cart-products tr:first-of-type td {
	border-top: none;
}
#header-main .cart-products td.product-name a {
	padding-left: 55px;
	height: 50px;
}
#header-main .cart-products td.product-name a img {
	width: 50px;
	height: 50px;
}
#header-main .cart-products td.product-quantity {
	white-space: nowrap;
}
#header-main .cart-products td.product-action {
	vertical-align: top !important;
}
#header-main .cart-products .btn-danger {
	width: 26px;
	height: 26px;
}
#header-main .cart-menu .cart-totals td {
	font-weight: bold;
}
#header-main .cart-menu p {
	padding: 10px 9px;
	margin: 0;
}

/* CUSTOMER */
#header-main #customer-container {
	font-size: 14px;
	cursor: pointer;
	position: relative;
	width: 46px; /* for spinner */
	height: 40px; /* for spinner */
	line-height: 38px;
	float: right;
}
@media (min-width: 992px) {
	#header-main #customer-container {
		color: white;
	}
	#header-main #customer-container #customer {
		display: none;
	}
}
#header-main #customer-container > span.fa.fa-spinner {
	font-size: 16px;
}
#header-main #customer-container #customer-button,
#header-main #customer-container .fa-caret-down,
#header-main #customer-container > a {
	display: none;
}
@media (min-width: 992px) {
	#header-main #customer-container {
	    position: absolute;
	    top: -50px;
	    right: 9px;
		width: auto;
		min-width: 50px; /* align spinner with cart */
		float: none;
		padding: 0 5px;
	}
	#header-main #customer-container #customer-button,
	#header-main #customer-container .fa-caret-down,
	#header-main #customer-container > a {
		display: inline-block;
		height: 40px;
		line-height: 40px;
		color: white;
	}
	#header-main #customer-container > .loginpopup {
		padding-left: 10px;
	}
}
#header-main #customer-container #customer-menu {
	line-height: normal;
	margin-top: 5px;
}
@media (min-width: 992px) {
	#header-main #customer-container #customer-menu {
		margin-top: -1px;
	}
}
#header-main #customer-container #customer-menu > a {
	display: block;
	padding: 4px 10px;
	color: black;
}
#header-main #customer-container #customer-menu > a:hover {
	color: black;
	background-color: #eee;
}
#header-main #customer-container #customer-menu .fa {
	margin-right: 10px;
}

/* HOVER */
#header-main #button-search-show:hover,
.box-services:hover .heading,
.box-services:hover span.fa,
#header-main #customer-container:hover > span.fa-user {
	color: #ff6346;
}

/* OVERLAY */
#cart-overlay, #search-overlay, #supermenu-overlay {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: black;
	opacity: 0.65;
	z-index: -1;
}
@media (min-width: 992px) {
	#hader.show-search-desktop #search-overlay {
		display: none !important; /* override inline css generated from JS */
	}
}

/* SUPERMENU */
#pav-mainnav {
	position: absolute;
	z-index: -2; /* display under cart/search overlay */
	top: 50px;
	width: 100%;
	background-color: inherit;
}
.mn-ul {
	display: none;
}
@media (min-width: 992px) {
	#pav-mainnav {
		position: static;
	}
	.mn-ul {
		display: block;
	}
}
