/* ==========================================================
   8BITCART HEADER
========================================================== */

:root {
	--eightbit-pink: #f5007a;
	--eightbit-pink-dark: #d90069;
	--eightbit-orange: #ff6b35;

	--header-dark: #292929;
	--header-border: #eeeeee;

	--header-height: 120px;
}


/* ==========================================================
   HEADER - FULL WIDTH
========================================================== */

.site-header {
	position: relative;
	z-index: 1000;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;

}


/* ==========================================================
   HELLO ELEMENTOR OVERRIDE
========================================================== */

.site-header:not(.dynamic-header),
.site-header.header-full-width {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* ==========================================================
   GENERIC CONTAINER
========================================================== */

.header-container {
	width: 100%;
	max-width: 1240px;

	margin-left: auto;
	margin-right: auto;

	padding-left: 24px;
	padding-right: 24px;

	box-sizing: border-box;
}


/* ==========================================================
   MAIN HEADER
========================================================== */

.header-main {
	position: relative;
	width: 100%;
    border: none;
	/*border-bottom: 1px solid var(--header-border);*/
}


/* ==========================================================
   MAIN HEADER INNER
========================================================== */

.header-main__inner {
	position: relative;

	width: 100%;
	max-width: none;

	min-height: var(--header-height);

	margin-left: auto;
	margin-right: auto;

	padding-left: max(
		15px,
		calc(5 * (100dvw - 15px) / 1050 + 15px)
	);

	padding-right: max(
		15px,
		calc(5 * (100dvw - 15px) / 1050 + 15px)
	);

	display: flex;
	align-items: center;
	justify-content: space-between;

	box-sizing: border-box;
}


/* ==========================================================
   SEARCH WRAPPER
========================================================== */

.header-search-wrapper {

	/*
	 * NON deve essere position:relative.
	 *
	 * In questo modo .header-search-screen
	 * viene centrato rispetto a .header-main__inner.
	 */

	position: static;

	flex: 0 0 300px;

	display: flex;
	align-items: center;

	margin-right: auto;
}


/* ==========================================================
   SEARCH TOGGLE
========================================================== */

.header-search-toggle {

	position: relative;

	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 23px !important;
	height: 23px;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 0 !important;

	background: transparent !important;

	color: #292929;

	cursor: pointer;

	box-shadow: none !important;

	outline: none;
}


/* Reset hover */

.header-search-toggle:hover {
	background: transparent !important;

	border: 0 !important;

	color: var(--eightbit-pink);

	box-shadow: none !important;
}


/* Reset focus */

.header-search-toggle:focus {
	background: transparent !important;

	border: 0 !important;

	box-shadow: none !important;
}


/* Reset active */

.header-search-toggle:active {
	background: transparent !important;

	border: 0 !important;

	box-shadow: none !important;
}


/* ==========================================================
   SEARCH TOGGLE ICONS
========================================================== */

.header-search-toggle .material-symbols-outlined {

	position: absolute;
	font-size: 25px;
	line-height: 1;
	transition:
		opacity .2s ease,
		transform .2s ease,
		color .2s ease;
}


/* SEARCH */

.header-search-toggle .icon-search {

	opacity: 1;
	transform: scale(1);
}


/* CLOSE */

.header-search-toggle .icon-close-search {
	opacity: 0;
	transform: scale(.7);
}


/* SEARCH HIDDEN */

.header-search-toggle .icon-search.is-hidden {

	opacity: 0;
	transform: scale(.7);
}


/* CLOSE ACTIVE */

.header-search-toggle .icon-close-search.is-active {

	opacity: 1;
	transform: scale(1);
}




/* ==========================================================
   SEARCH SCREEN
========================================================== */

.header-search-screen {

	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(600px, 60vw);
	margin: 0;
	padding: 0;
	z-index: 6;
}


/* ==========================================================
   SEARCH SCREEN OPEN
========================================================== */

.header-search-screen.is-open {

	display: block;
}


/*
 * Il container interno non deve aggiungere
 * padding o limitare la larghezza.
 */

.header-search-screen > .header-container {

	width: 100%;
	max-width: none;

	margin: 0;

	padding: 0;
}


/* ==========================================================
   SEARCH FORM
========================================================== */

.header-search {

	width: 100%;
	height: 44px;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0 14px;

	border-radius: 4px;

	box-sizing: border-box;

	transition:
		background .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}


/* Focus */

.header-search:focus-within {

	background: #ffffff;
	border-color: var(--eightbit-pink);
	box-shadow:
		0 0 0 3px rgba(245, 0, 122, .08);
}


/* Search icon */

.header-search .material-symbols-outlined {

	flex: 0 0 auto;
	/*color: #555555;*/
	font-size: 21px;
	line-height: 1;
}


/* Search input */

.header-search input {

	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 10px;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	color: #292929;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	box-shadow: none !important;
}


/* Placeholder */

.header-search input::placeholder {
	color: #888888;
}

.header-search-screen button[type="submit"]{
    align-self: center;
    display: flex;
}
/*
.header-search-screen button:hover span{
    color: #c36;
}*/





/* ==========================================================
   LOGO
========================================================== */

.site-header__logo {

	position: absolute;

	left: 50%;
	top: 50%;

	transform: translate(-50%, -50%);

	z-index: 5;

	width: max-content;

	margin: 0;
	padding: 0;

	line-height: 0;

	transition:
		opacity .2s ease,
		transform .2s ease;
}


/* Logo link */

.site-header__logo a {

	display: block;
	margin: 0;
	padding: 0;
	text-decoration: none;
}


/* Logo image */

.site-header__logo img {

	display: block;
	width: auto;
	max-width: 340px;
	margin: 0;
}


/* Logo text */

.site-header__logo-text {

	display: block;
	color: var(--eightbit-pink);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}


/* Logo hidden */

.site-header__logo.is-hidden {
	display: none;
}


/* ==========================================================
   ACTIONS
========================================================== */

.site-header__actions {

	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
	flex: 0 0 auto;
	position: relative;
	z-index: 10;
}

.site-header__actions.is-hidden{
    display: none;
}

/* ==========================================================
   HEADER ACTION
========================================================== */

.header-action {

	position: relative;

	display: flex;

	align-items: center;

	gap: 6px;

	margin: 0;
	padding: 0;

	color: #292929;

	text-decoration: none;

	font-family: Arial, Helvetica, sans-serif;

	font-size: 12px;

	font-weight: 500;

	white-space: nowrap;

	transition: color .2s ease;
}


/* Hover */

.header-action:hover {

	color: var(--eightbit-pink);
}


/* Icon */

.header-action > .material-symbols-outlined {

	font-size: 24px;

	line-height: 1;
}


/* ==========================================================
   CART
========================================================== */

.header-cart__icon {

	position: relative;

	display: flex;

	align-items: center;

	justify-content: center;
}


.header-cart__count {

	position: absolute;

	top: -7px;
	right: -8px;

	min-width: 16px;
	height: 16px;

	display: flex;

	align-items: center;

	justify-content: center;

	padding: 0 4px;

	border-radius: 50%;

	/*background: var(--eightbit-pink);*/

	color: #ffffff;

	font-family: Arial, Helvetica, sans-serif;

	font-size: 9px;

	font-weight: 700;

	line-height: 1;

	box-sizing: border-box;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.site-header__nav {

	position: relative;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
	padding: 0;
    border: none;
	/*border-bottom: 2px solid var(--eightbit-pink);*/
	box-sizing: border-box;
    padding: 10px 0px 20px 0px;
}


/* Nav container */

.site-header__nav > .header-container {

	display: block;

	width: 100%;

	max-width: 1240px;

	margin-left: auto;

	margin-right: auto;
}


/* ==========================================================
   MAIN MENU
========================================================== */

.main-menu {

	list-style: none;

	display: flex;

	align-items: center;

	justify-content: center;

	gap: 42px;

	width: 100%;

	margin: 0;

	padding: 0;

	box-sizing: border-box;
}


/* Menu items */

.main-menu li {

	list-style: none;

	margin: 0;

	padding: 0;
}


/* Menu links */

.main-menu a {

	position: relative;

	display: inline-flex;

	align-items: center;
    

	min-height: 52px;

	margin: 0;

	padding: 0;

	color: #292929;

	text-decoration: none;

	font-family: 'Space Grotesk', sans-serif;

	font-size: 13px;

	font-weight: 600;

	letter-spacing: .3px;

	transition: color .2s ease;
}


/* Underline */

.main-menu a::after {

	content: "";

	position: absolute;

	left: 0;

	bottom: 8px;

	width: 0;

	height: 2px;

	background: var(--eightbit-pink);

	transition: width .25s ease;
}


/* Hover/current */
/*
.main-menu a:hover,
.main-menu .current-menu-item > a {

	color: var(--eightbit-pink);
}
*/


/* Underline */
/*
.main-menu a:hover::after,
.main-menu .current-menu-item > a::after {

	width: 100%;
}
*/
.main-menu a {
    /*color: var(--eightbit-pink);
    border: solid 3px var(--eightbit-pink);*/
    border-radius: 5px;
    padding: 2px 5px;
    min-height: unset;
    text-transform: uppercase;
    font-weight: 600;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .current-menu-item > a {
    /*box-shadow: 0px 0px 15px #f5007afc;
    color: #fd7d01;*/
    text-shadow: 0px 0px 2px #ffffff5c;
}


/* ==========================================================
   MOBILE MENU BUTTON
========================================================== */

.mobile-menu-toggle {

	display: none !important;
	position: relative;
	width: 42px;
	height: 42px;
	margin: 0 !important;
	padding: 8px !important;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #292929;
	cursor: pointer;
	box-sizing: border-box;
	z-index: 20;
	box-shadow: none !important;
}


/* Reset tema padre */

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {

	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #292929;
}


/* ==========================================================
   HAMBURGER BARS
========================================================== */

.mobile-menu-toggle span {

	display: block !important;
	position: relative;
	width: 20px !important;
	height: 3px !important;
	margin: 3px auto !important;
	padding: 0 !important;
	/*background-color: #292929 !important;*/
	border: 0 !important;
	opacity: 1 !important;
	box-sizing: border-box;
	transition:
		transform .25s ease,
		opacity .25s ease,
		background-color .25s ease;
}

/*
.mobile-menu-toggle:hover span {

	background-color: var(--eightbit-pink) !important;
}*/


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

	.header-search-wrapper {

		flex-basis: 240px;
	}


	.site-header__actions {

		gap: 16px;
	}


	.header-action__label {

		display: none;
	}


	.main-menu {

		gap: 24px;
	}

    

}


/* ==========================================================
   MOBILE - ≤ 767px
========================================================== */

@media (max-width: 767px) {


	/* ======================================================
	   CONTAINER
	====================================================== */

	.header-container {

		width: 100%;
		max-width: 100%;
		padding-left: 15px;
		padding-right: 15px;
	}


	/* ======================================================
	   MAIN HEADER
	====================================================== */

	.header-main__inner {

		min-height: 78px;
		padding-left: 15px;
		padding-right: 15px;
	}


	/* ======================================================
	   LOGO
	====================================================== */

	.site-header__logo {

		z-index: 5;
	}


	.site-header__logo img {

		max-width: 220px;
		max-height: 99px;
	}


	/* ======================================================
	   SEARCH
	====================================================== */

	.header-search-wrapper {

		flex: 0 0 auto;

		margin-right: auto;
	}


	/*
	 * Il form occupa una porzione maggiore
	 * dello schermo su mobile.
	 */

	.header-search-screen {

		width: calc(100vw - 100px);

		max-width: 500px;
	}


	/* ======================================================
	   ACTIONS
	====================================================== */

	.site-header__actions {

		gap: 8px;

		margin-left: auto;

		z-index: 10;
	}


	.header-action > .material-symbols-outlined {

		font-size: 23px;
	}


	/* ======================================================
	   MOBILE MENU BUTTON
	====================================================== */

	.mobile-menu-toggle {

		display: flex !important;

		flex-direction: column;

		align-items: center;

		justify-content: center;
	}


	/* ======================================================
	   NAVIGATION
	====================================================== */

	.site-header__nav {

		display: none !important;

		/*border-bottom: 2px solid var(--eightbit-pink);*/
	}


	.site-header__nav.is-open {

		display: block !important;
	}


	/* ======================================================
	   MOBILE MENU
	====================================================== */

	.main-menu {

		flex-direction: column;

		align-items: stretch;

		gap: 0;

		padding: 10px 0;
	}


	.main-menu li {

		/*border-bottom: 1px solid #eeeeee;*/
        padding-bottom: 14px;
	}


	.main-menu li:last-child {

		border-bottom: 0;
	}


	.main-menu a {

		display: flex;

		min-height: auto;
        justify-content: center;
		padding: 5px 5px;

		font-size: 15px;
	}


	.main-menu a::after {

		display: none;
	}


	/* ======================================================
	   HAMBURGER → X
	====================================================== */

	.mobile-menu-toggle.is-active span:nth-child(1) {

		transform: translateY(10px) rotate(45deg);
	}


	.mobile-menu-toggle.is-active span:nth-child(2) {

		opacity: 0 !important;
	}


	.mobile-menu-toggle.is-active span:nth-child(3) {

		transform: translateY(-7px) rotate(-45deg);
	}

}


/* ==========================================================
   SMALL MOBILE - ≤ 500px
========================================================== */

@media (max-width: 500px) {

	.header-main__inner {

		min-height: 72px;
	}


	.site-header__logo img {

		max-width: 200px;

		max-height: 90px;
	}


	.site-header__actions {

		gap: 6px;
	}


	.header-action > .material-symbols-outlined {

		font-size: 24px;
	}


	.header-search-screen {

		width: calc(100vw - 90px);
	}

}


/* ==========================================================
   VERY SMALL MOBILE - ≤ 380px
========================================================== */

@media (max-width: 380px) {

	.site-header__logo img {

		max-width: 135px;
	}


	.site-header__actions {

		gap: 4px;
	}


	.header-action > .material-symbols-outlined {

		font-size: 22px;
	}


	.mobile-menu-toggle {

		width: 38px;

		height: 38px;
	}


	.header-search-screen {

		width: calc(100vw - 80px);
	}

}


/* ==========================================================
   HELLO ELEMENTOR - FULL WIDTH
========================================================== */

@media (min-width: 1200px) {

	.site-header,
	.site-header:not(.dynamic-header),
	.site-header.header-full-width {

		width: 100% !important;

		max-width: 100% !important;

		margin-left: 0 !important;

		margin-right: 0 !important;
	}

}