/*Containers*/
header {
	--h-bgr-hsl: 23, 5%, 9%;
	--h-bgr: hsl(23, 5%, 9%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	width: 100%;
	box-sizing: border-box;
	top: 0;
	left: 0;
	z-index: 100;
	pointer-events: none;
}

#h-pan {
	width: 100%;
	padding: 0 3rem;
	box-sizing: border-box;
	top: 0;
	left: 0;
	transition: padding 0.3s;
}

.open #h-pan {
	padding: 0 7rem;
}

#h-pan.fixed,
#h-pan.h-open {
	position: fixed !important;
}

#h-pan.fixed {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

#h-bgr {
	background-color: hsl(var(--h-bgr-hsl), 0.8);
	backdrop-filter: blur(3px);
	transition: opacity 0.4s, background-color 0.4s;
}

#h-pan.h-open #h-bgr,
#h-pan.fixed #h-bgr {
	opacity: 1 !important;
}

#h-pan.h-open #h-bgr {
	background-color: hsl(var(--h-bgr-hsl), 1);
}

.h-nav-bar {
	box-sizing: border-box;
	white-space: nowrap;
}

#h-nav-lef {
	width: calc(50%);
}
#h-nav-rig {
	width: calc(50%);
}

/*Logo*/
#h-logo {
	display: inline-block;
	background-size: contain;
	background-position: center;
	width: 4rem;
	height: 4rem;
	padding: 1rem 0;
	margin-right: 1rem;
	transition: background-image 0.4s;
}

/*Name and search*/
.h-name {
	top: 5px;
	font-size: 1.4rem;
	text-transform: uppercase;
	transition: color 0.4s;
}

#h-srch {
	margin-left: -1rem;
	font-size: 0;
	white-space: nowrap;
	overflow: hidden;
}

#h-srch .h-name-box {
	max-width: 100%;
	overflow: hidden;
	transition: max-width 0.1s 0.3s;
}

#h-srch .h-name {
	font-size: 22px;
}

#h-srch-ico-box {
	display: inline-block;
	border-width: 0;
	border-style: solid;
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	transition: border 0.2s;
	cursor: pointer;
}

#h-srch-ico {
	background-size: 20px;
	background-position: center;
	width: 100%;
	height: 100%;
}

#h-srch-ico-box .bgr {
	opacity: 0;
	transition: opacity 0.4s;
}

#h-srch-inp-box {
	display: inline-block;
	width: 0;
	overflow: hidden;
	transition: width 0.4s;
	vertical-align: middle;
}

#h-srch-inp {
	background-color: #f2f3f5;
	border: 1px solid #e6e7eb;
	border-width: 1px 1px 1px 0;
	width: 100%;
	height: 50px;
	padding: 0 15px;
	font-family: var(--font-text);
	box-sizing: border-box;
}

#h-srch-cbx:checked ~ #h-srch-ico-box {
	border-width: 1px;
}
#h-srch-cbx:checked ~ #h-srch-ico-box .bgr {
	opacity: 1;
}
#h-srch-cbx:checked ~ #h-srch-inp-box {
	width: 250px;
}
#h-srch-cbx:checked ~ .h-name-box {
	max-width: 0;
	transition: max-width 0.1s;
}

/*Links*/
.h-link {
	display: inline-block;
	margin: 0 2rem;
	vertical-align: middle;
}

.h-link-txt {
	font-size: 14px;
	letter-spacing: 0.1em;
	line-height: 80px;
	transition: color 0.3s;
}

.h-link-txt a {
	display: block;
}

.h-drop-ico {
	font-size: 0.8em;
	vertical-align: top;
}

/*Dropdown menu*/
.h-drop {
	background: transparent;
	width: 230px;
	max-height: 0;
	position: absolute;
	top: 100%;
	left: calc(50% - 115px);
	box-sizing: border-box;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
	z-index: 1;
}

.h-link:hover .h-drop,
#nav_prof:hover .h-drop {
	max-height: 300px;
	transition: max-height 0.4s ease-in;
}

.h-drop-link {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	transition: background 0.2s, color 0.2s;
}

.h-drop-link a {
	display: block;
	padding: 1em 1em;
}

/*Cart*/
#h-cart {
	background-position: center;
	background-size: contain;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 0 1rem;
}

#h-cart-num {
	background: #e00003;
	border-radius: 100%;
	width: 0.8rem;
	position: absolute;
	bottom: 14px;
	left: 14px;
	color: #fff;
	font-size: 13px;
	line-height: 0.8rem;
	text-align: center;
}

/*Login & profile*/
#h-user-ico {
	display: block;
	background-color: #ddd;
	background-position: center;
	background-size: cover;
	border: 2px solid #8b8b8b;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	transition: border 0.1s;
}

.h-log-txt {
	margin-left: 2rem;
	display: inline-block;
	font-size: 13px;
	transition: color 0.4s, background 0.4s, border 0.4s;
}

.h-log-txt.main {
	padding: 0 1.7rem;
	border-width: 1px;
	border-style: solid;
	letter-spacing: 0.2em;
	line-height: calc(3rem - 2px);
}

/*Mobile icon*/
#h-icoM-box {
	display: inline-block;
	width: 65px;
	height: 65px;
	cursor: pointer;
	pointer-events: all;
}

.h-icoM-line {
	width: 25px;
	height: 3px;
	position: absolute;
	top: calc(50% - 2px);
	right: 0;
	transition: background 0.4s, transform 0.4s;
}

.h-icoM-rot {
	width: 100%;
	height: 100%;
	transform: rotate(0deg);
	transition: background 0.4s, transform 0.4s;
}

#h-icoM-line1 {
	transform: translateY(-10px);
	transition: background 0.4s, transform 0.4s 0.4s;
}

#h-icoM-line3 {
	transform: translateY(10px);
	transition: background 0.4s, transform 0.4s 0.4s;
}

#h-cbxM:checked + #h-icoM-box #h-icoM-line1,
#h-cbxM:checked + #h-icoM-box #h-icoM-line3 {
	transform: translateY(0);
	transition: background 0.4s, transform 0.4s;
}

#h-cbxM:checked + #h-icoM-box #h-icoM-line1 .h-icoM-rot {
	transform: rotate(45deg);
	transition: background 0.4s, transform 0.4s 0.4s;
}
#h-cbxM:checked + #h-icoM-box #h-icoM-line3 .h-icoM-rot {
	transform: rotate(-45deg);
	transition: background 0.4s, transform 0.4s 0.4s;
}

#h-icoM-line2 {
	opacity: 1;
	transition: opacity 0.4s;
}

#h-cbxM:checked + #h-icoM-box #h-icoM-line2 {
	opacity: 0;
}

/* Mobile menu */
#h-navM {
	display: grid;
	align-items: center;
	width: 100%;
	height: calc(100% - 142px);
	overflow: hidden;
	overflow-y: auto;
	position: fixed;
	top: 142px;
	left: -100%;
	z-index: 1;
	background-color: var(--h-bgr);
	pointer-events: all;
	transition: background 0.4s, left 0.3s, top 0.3s;
}

#h-cbxM:checked ~ #h-navM {
	left: 0;
	transition: background-color 0.4s, left 0.3s 0.3s, top 0.3s;
}

#h-mob-over {
	display: none;
}

#h-cbxM:checked ~ #h-navM #h-mob-over {
	display: block;
}

#h-mob-shw {
	opacity: 0.3;
	background-color: #ebe0aa;
	width: 100%;
	height: calc(100% - 142px);
	position: fixed;
	top: 142px;
	left: -100%;
	z-index: 1;
	transition: left 0.4s 0.3s;
}

#h-cbxM:checked ~ #h-mob-shw {
	left: 0;
	transition: left 0.4s;
}

#h-navM-bgr {
	background-position: bottom;
}

#h-contM {
	display: grid;
	opacity: 0;
	height: calc(100% - 2rem);
	transform: translateX(-4rem);
	transition: opacity 0.4s 0.6s, transform 0.4s 0.5s;
}

#h-cbxM:checked ~ #h-navM #h-contM {
	opacity: 1;
	transform: translateX(0);
}

#h-closeM {
	z-index: -1;
}

.h-linkM {
	display: grid;
	place-content: center;
}

.h-linkM-txt {
	display: inline-block;
	font-family: var(--font-main);
	font-size: 1.8rem;
	height: 100%;
	letter-spacing: 0.1em;
	text-align: center;
	transition: color 0.3s, transform 0.3s, opacity 0.3s;
}

.h-linkM-txt:hover {
	color: var(--c1) !important;
}

.h-linkM-txt.blur {
	opacity: 0.3;
}

/*Mobile dropdown*/
.h-dropM-cbx:checked + a .h-linkM-txt {
	color: #fff !important;
}
.h-dropM-cbx:checked + a .h-linkM-bgr,
.h-linkM-txt:hover .h-linkM-bgr {
	opacity: 1;
}

.h-dropM-link {
	opacity: 0;
	display: block;
	border-width: 0;
	border-style: solid;
	height: 0;
	padding-left: 20px;
	font-size: 13px;
	letter-spacing: 0.1em;
	line-height: 60px;
	overflow: hidden;
	transition: opacity 0.4s, border 0.4s, height 0.4s, background 0.4s, color 0.2s;
}

.h-dropM-cbx:checked ~ .h-dropM .h-dropM-link {
	opacity: 1;
	border-width: 0 0 1px 0;
	height: 60px;
}

.h-dropM-link a {
	display: block;
}

/*Open version*/
header.open {
	box-shadow: none;
	position: absolute;
}

.open #h-bgr {
	opacity: 0;
}

/*Cookies*/
#h-cook {
	background-color: #161616;
	width: 100%;
	padding: 10px 1rem;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 10;
	text-align: center;
	box-sizing: border-box;
}

#h-cook-txt {
	display: inline-block;
	color: #ddd;
	font-size: 13px;
	vertical-align: middle;
}

#h-cook-btn {
	background-color: transparent;
	border: 1px solid #ddd;
	padding: 3px 0.6rem;
	margin: 10px 10px;
	color: #ddd;
	font-size: 11px;
	vertical-align: middle;
	cursor: pointer;
}

/* Responsive */
@media only screen and (max-width: 1400px) {
	#h-pan {
		padding-left: 3rem !important;
		padding-right: 3rem !important;
	}

	#h-logo {
		width: 4rem;
		height: 4rem;
	}
}

@media only screen and (max-width: 550px) {
	#h-pan {
		padding-left: 2rem !important;
		padding-right: 2rem !important;
	}

	#h-contM {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.h-linkM-txt {
		font-size: 1.5rem;
	}
}

/* Light version */
.light .h-name,
.light .h-link-txt,
.light .h-log-txt,
.light .h-linkM-txt {
	color: #333;
}

.light .h-linkM-txt:hover {
	color: var(--c3) !important;
}

.light #h-logo {
	background-image: url(../../assets/logo/logo_simple_blk.png);
}

.light #h-mob-shw {
	background-color: #ebe0aa;
}
.light #h-navM-bgr {
	opacity: 0.2;
	background-image: url(../../templates/img/header/bgr_wht.jpg);
}
.light .h-dropM-link {
	color: #666;
	border-color: #ddd;
}

.light .h-icoM-rot {
	background-color: #333;
}

.light #h-srch-ico {
	background-image: url(../../assets/icons/actions/srch_blk.png);
}
.light #h-cart {
	background-image: url(../../assets/icons/buy/cart_blk.png);
}
.light #h-cart.bag {
	background-image: url(../../assets/icons/buy/bag_blk.png);
}

.light #h-bgr,
.light #h-navM {
	background-color: #fff !important;
}

/* Dark version */
.dark .h-name,
.dark .h-link-txt,
.dark .h-log-txt,
.dark .h-linkM-txt {
	color: #eee;
}

.dark #h-logo {
	background-image: url(../../assets/logo/logo_simple_wht.png);
}

.dark #h-mob-shw {
	background-color: #3d4b36;
}
.dark #h-navM-bgr {
	opacity: 0.05;
	background-image: url(../../templates/img/header/bgr_blk.jpg);
}
.dark .h-dropM-link {
	color: #ccc;
	border-color: #2f5072;
}

.dark .h-icoM-rot {
	background-color: #eee;
}

.dark #h-srch-ico {
	background-image: url(../../assets/icons/actions/srch_wht.png);
}
.dark #h-cart {
	background-image: url(../../assets/icons/buy/cart_wht.png);
}
.dark #h-cart.bag {
	background-image: url(../../assets/icons/buy/bag_wht.png);
}

/*****/
.h-name-box {
	height: 2rem;
	overflow: hidden;
}

.h-name {
	font-size: 1.2rem;
	font-weight: bold;
	letter-spacing: 0.2em;
	line-height: 2rem;
	transition: transform 0.3s;
}

.fixed .h-name {
	transform: translateY(-2rem);
}

@media (max-width: 550px) {
	.h-name {
		font-size: 0.9rem;
	}
}
