*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	font-size: 16px;
	background-color: #c7c7c7;
	color: #000000;
}

html,
body,
#root {
	width: 100%;
	height: 100%;
}

img {
	width: 100%;
	height: auto;
}

#wrapper {
	margin: 0 auto;
	width: 100%;
	min-height: 100%;
	max-width: 1160px;
	background-color: #ffffff;
}

main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0 32px;
}

header {
	user-select: none;
	position: sticky;
	display: block;
	top: 0;
	z-index: 999;
	padding: 0 24px;
}

.header-top {
	padding-top: 4px;
	display: flex;
	width: 100%;
	background-color: #ffffff;
	overflow: hidden;
	position: relative;
}

.header-spacer {
	height: 12px;
	background-color: #ffffff;
	background: linear-gradient(#ffffff 20%, #ffffff00 100%);
	pointer-events: none;
	z-index: 1;
}

.logo {
	width: 65px;
	height: 65px;
	padding: 4px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
}

.logo:hover {
	background-color: #e48902;
}

.logo img {
  height: 100%;
  width: auto;
}

.logotextHolder {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-shrink: 1;
	overflow: hidden;
}

.logotext {
	font-size: 1em;
	font-weight: lighter;
	overflow: hidden;
	text-overflow: ellipsis;
}

.flex-grow {
	flex-grow: 1;
}

header input,
header label {
	display: none;
}

/* NAVIGATION */
nav {
	padding-top: 6px;
	display: block;
	background-color: #ffffff;
	z-index: 2;
}

.backdrop {
	background-color: #000000;
	display: none;
	opacity: 0.3;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
}

nav ul {
	list-style-type: none;
}

nav > ul {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

nav > ul > li {
	position: relative;
	flex: 1 1 0;
	text-align: center;
}

nav > ul > li > a {
	border: 1px solid #121212;
	text-transform: uppercase;
	border-radius: 18px;
}

.submenu {
	display: none;
	position: absolute;
	flex-direction: column;
	width: 100%;
	top: 100%;
	z-index: 3;
}

nav > ul > li:not(:first-child) > .submenu {
	width: 100%;
}

.submenu li {
	display: block;
	width: 100%;
}

nav > ul > li:hover .submenu {
	display: flex;
}

nav > ul > li:hover > a.withsub {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.submenu > li > a {
	border: 1px solid #121212;
	border-top: none;
}

.submenu > li:last-child > a {
	border-bottom-left-radius: 18px;
	border-bottom-right-radius: 18px;
}

nav a {
	display: block;
	padding: 5px;
	color: #000000;
	background: #ffffff;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}

nav a.active,
nav a.active1 {
	background-color: #e48902;
}

nav a:not(.active):hover {
	background-color: #fbe7b2;
}

/* ICONS */
.icons {
	position: relative;
	white-space: nowrap;
	display: flex;
	flex-shrink: 0;
}

.icons > a {
	border-radius: 12px;
	overflow: hidden;
	width: 65px;
	height: 65px;
	background-size: 50%;
	background-position: center;
	background-repeat: no-repeat;
	padding-top: 48px;
	font-size: 0.625em;
	text-align: center;
	text-decoration: none;
	color: #000000;	
}

.icons > a:hover {
	background-color: #e48902;
	text-decoration: none;
	color: #000000;
}

.badge {
	font-size: 0.75em;
	width: 20px;
	height: 20px;
	position: absolute;
	top: 8px;
	right: 8px;
	color: #ffffff;
	background-color: #2a7e0e;
	border-radius: 50%;
	border: 1px solid #ffffff;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.qr .badge {
	background-color: #023e6e;
	width: 34px;
	height: 34px;
	font-size: 0.875em;
	line-height: 1.675em;
	color: #ffffff;
	top: 4px;
	right: 4px;
}

.usersets {
	position: relative;
	background-image: url("./img/icons/usersets.png");
	background-image: url("./img/icons/usersets.svg");
}

.qr {
	position: relative;
	background-image: url("./img/icons/qr.png");
	background-image: url("./img/icons/qr.svg");
}

.cart {
	position: relative;
	background-image: url("./img/icons/cart.png");
	background-image: url("./img/icons/cart.svg");
}

.login {
	background-image: url("./img/icons/login03.png");
	background-image: url("./img/icons/login03.svg");
	background-size: 55% !important;
}

.logout {
	background-image: url("./img/icons/logout03.png");
	background-image: url("./img/icons/logout03.svg");
	background-size: 55% !important;
}

.account {
	background-image: url("./img/icons/account.png");
	background-image: url("./img/icons/account.svg");
}

@media screen and (max-width: 1300px) {
	#wrapper {
		max-width: unset;
	}
}

@media screen and (max-width: 1000px) {
	main {
		padding: 0 12px;
	}
	header {
		padding: 0 6px;
	}
	nav a {
		font-size: 0.875em;
	}
	nav > ul {
		gap: 6px;
	}
}

@media screen and (max-width: 800px) {
	nav a {
		font-size: 0.75em;
	}
}

@media screen and (max-width: 600px) {
	main {
		padding: 0 6px;
	}
	header {
		padding: 0;
	}
	.header-top {
		padding: 0;
		height: 56px;
	}
	.header-spacer {
		border-top: 1px solid #121212;
		height: 4px;
	}
	.logotext {
		padding-bottom: 1px;
		font-size: 0.875em;
	}
	.logo {
		border-radius: 0;
		width: 56px;
		height: 56px;
		padding: 5px 0 0 0;
	}
	.account {
		display: none;
	}
	.icons {
		padding-right: 56px;
	}
	.icons > a {
		width: 56px;
		height: 56px;
		border-radius: 0;
		padding-top: 40px;
		font-size: 0.625em;
	}
	.icons > a:hover {
		background-color: #e48902;
		border-top: 0;
		border-bottom: 0;
	}
	.badge {
		font-size: 0.75em;
		width: 18px;
		height: 18px;
		top: 8px;
		right: 8px;
	}
	nav {
		padding-top: 0;
		margin-top: 1px;
		position: absolute;
		display: none;
		width: 100%;
		overflow-y: auto;
		max-height: calc(100vh - 56px);
	}
	nav ul,
	nav ul li {
		width: 100%;
		flex-direction: column;
		gap: 0;
	}
	nav a {
		padding: 10px;
	}
	nav a.active1 {
		background: #fbe7b2;
	}
	nav > ul > li {
		text-align: left;
	}
	nav > ul > li a {
		border-top: none !important;
		border-left: none !important;
		border-right: none !important;
		border-radius: 0px !important;
	}
	.submenu {
		display: flex;
		position: static;
		text-align: left;
		opacity: 1;
		width: 100% !important;
		left: 0px !important;
	}
  	.submenu a {
		padding-left: 25px;
	}
	header input,
	header label {
		display: block;
		cursor: pointer;
		position: absolute;
		top: 0;
		right: 0;
		width: 56px;
		height: 56px;
	}
	header input {
		z-index: 1;
		opacity: 0;
	}
	header label {
		padding-top: 40px;
		font-size: 0.625em;
		background-color: #ffffff;
		background-image: url("./img/icons/menu.png");
		background-image: url("./img/icons/menu.svg");
		background-size: 75%;
		background-position: center;
		background-repeat: no-repeat;
		text-align: center;
	}
	header input:checked + label {
		background-color: #e48902;
	}
	header input:checked ~ nav {
		display: block;
	}
	header input:checked ~ .backdrop {
		display: block;
	}
	header input:hover + label {
		background-color: #e48902;
	}
	header input:checked {
		position: fixed;
		width: 100%;
		height: 100%;
	}
}

@media screen and (max-width: 400px) {
	.usersets {
		display: none;
	}
	.logotext {
		font-size: 0.75em;
	}
	.header-top {
		height: 46px;
	}
	.logo {
		width: 46px;
		height: 46px;
		padding: 5px 0 0 0;
	}
	.icons {
		padding-right: 46px;
	}
	.icons > a {
		width: 46px;
		height: 46px;
		padding-top: 34px;
		font-size: 0.5em;
	}
	.badge {
		font-size: 0.625em;
		width: 14px;
		height: 14px;
		top: 8px;
		right: 8px;
	}
	header input,
	header label {
		width: 46px;
		height: 46px;
		padding-top: 34px;
		font-size: 0.5em;
	}
	nav {
		max-height: calc(100vh - 46px);
	}
}

@media screen and (max-width: 300px) {
	.logotext {
		display: none;
	}
}
