.navbar {
	background-color: var(--black);
	width: 100%;
	height: 50px;
	line-height: 52px;
}
.navbar.small { height: 40px; line-height: 42px; }

.desktop.wide .navbar nav { width: 1200px; }
.desktop .navbar nav { width: 1100px; }

.navbar nav { 
	display: flex; 
	margin: 0 auto; 
	align-content: center; 
	position:relative; 
	height: inherit;
}

.navbar.left nav { align-content: flex-start;  }

.navbar nav a { 
	color: white;
	font-family: "Roboto", sans-serif;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	font-size: 17px;
	letter-spacing: 0.6px;
	position: relative;
}

.navbar.small nav a { font-size: 16px; }

.navbar nav .menu a:not(.no-line)::after {
	position: absolute;
	border-top: 2px solid var(--navbar-hover);
	left:12.5%;
	bottom: -2px;
	width: 75%;
	color: var(--navbar-hover);
	content: "";
	opacity: 0;
	box-shadow: 0 0 8px 0 var(--navbar-hover);
	transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease-in-out;
	transform: scaleX(0);
}

.navbar nav .menu a.active { color: var(--navbar-hover); }

.navbar a.logo { 
	width: 25px;
	height: inherit;
}
.navbar a.logo:before { font-size:var(--navbar-logo-size,26px); transition: color .3s ease-in-out; }

@media (hover: hover) { 
	.navbar a.logo:focus:before,
	.navbar a.logo:hover:before { color:var(--navbar-hover); text-shadow: 0 0 10px var(--prime), 0 0 22px var(--prime-less); }
	.navbar a:focus,
	.navbar a:hover { 
		color:var(--navbar-hover);
		transition: color .3s ease-in-out;
	}
	.navbar nav .menu a:focus:after,
	.navbar nav .menu a:hover:after {
		border-color: var(--navbar-hover);
		transform: scaleX(1);
		opacity: 1;
	}

	#profile_img:hover img {
		border-color: rgba(255,255,255,1);
	}
}

#profile_img img {
	margin-block: 10px;
	border-radius: 50%;
	height: 30px;
	border: 2px solid rgba(255,255,255,.2);
	transition: border-color .3s ease-in-out;
}
#profile_img:after { border-top:0; }

.tablet .navbar a.logo,
.mobile .navbar a.logo { margin:0 auto; }

.navbar nav .menu { 
	margin: 0 auto;
	gap: 40px;
	position: relative;
	list-style: none;
}

.navbar nav .menu li { 
	margin:0; 
	padding:0; 
	line-height: 50px;
}

.navbar.small nav .menu li { line-height: 40px; }

.navbar.small nav .menu {
	display: flex;
	gap: 30px;
}

/* ----~~~~ Sub Menu ~~~~---- */

.nav_submenu {
	position: absolute;
	right: 0;
	background-color: rgba(21, 24, 28, .95);
	top: 50px;
	z-index: 1;
	border-radius: 5px;
	box-shadow: 2px 2px 4px 1px rgba(0,0,0,.3);
	padding: 5px;
	width: max-content;
	display: none;
}
.nav_submenu ul { list-style:none; margin:0; padding:0; }
.nav_submenu li { color:white; background-color: transparent; border-radius: 5px; }
.nav_submenu li a { display:block; font-size:.8em; height: 50px;  line-height: 52px; padding-inline:30px; }

.nav_submenu .aa-list a:before { left:0px; }
@media (hover: hover) { 
	.nav_submenu li:hover { background-color: rgba(255,255,255,.1); }
	.nav_submenu li:hover a { text-shadow: 1px 1px 1px rgba(0,0,0,.5); }
	.nav_submenu .aa-list a:hover:before { left:14px; bottom:-1px; }
	.nav_submenu .aa-list a:focus:before { left:14px; bottom:-1px; }
}


/* ----~~~~ Cart ~~~~---- */

#cart {
	position: absolute;
	right: 0;
	width: 50px;
	height: 50px;
	& a {
		width: inherit;
		height: inherit;
		display: inline-block;
		position: relative;
	    padding: 0;
	    & span {
			background-color: rgba(255,255,255,.4);
			border-radius: 50%;
			font-family: Arial;
			font-size: 12px;
			font-weight: bold;
			display: block;
			position: absolute;
			top: 6px;
			left: 30px;
			padding-inline: 4px;
			height: 20px;
			line-height: 20px;
			letter-spacing: 0px;
			text-align: center;
			width: 20px;
			max-width: 20px;
			color: white !important;
			&.dbl  { width: 22px; max-width: 22px; }
		}
	}
}

body:is(.tablet, .mobile) #cart {
	position: absolute;
	right: 50px;
	width: 50px;
}
