/* header.css */
.header {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translate(-50%);
	width: min(1260px, calc(100% - 48px));
	border-radius: 999px;
	z-index: 999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1.1rem 0.5rem 1.35rem;
	background-color: rgba(255, 255, 255, 0.94);
	box-shadow: 0 10px 35px rgba(23, 35, 29, 0.1);
	backdrop-filter: blur(12px);
}

.logo img {
	height: 42px;
}

.nav-center ul {
	display: flex;
	gap: 1.65rem;
}

.nav-center a,
.nav-right a {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--brand-dark);
}

.nav-center a:hover,
.nav-right a:hover {
	color: var(--brand-green-dark);
}
.nav-right ul {
	display: flex;
	gap: 1.1rem;
	align-items: center;
}

.nav-right img {
	height: 20px;
}

.cart-toggle {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.cart-count {
	position: absolute;
	right: -10px;
	top: -10px;
	min-width: 18px;
	height: 18px;
	padding: 1px 4px;
	border-radius: 50%;
	background: var(--brand-orange);
	color: var(--white);
	font-size: 0.7rem;
	line-height: 16px;
	text-align: center;
}

.nav-right a:hover img {
	opacity: 0.7;
}

.cart-toggle:hover img,
.cart-toggle:focus-visible img {
	opacity: 0.7;
}

.nav-container{
	display: flex;
	justify-content: space-between;
	width: 100%;
	align-items: center;
	flex:1;
	margin-left: 4rem;
}

.menu-icon{
	width: 30px;
	height: 30px;
	display: none;
	cursor: pointer;
	position: relative;
	z-index: 1001;
	padding: 0;
	border: 0;
	background: transparent;
}

.menu-icon img{
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
}

.menu-icon:hover img{
	opacity: 0.7;
}

@media (max-width: 1280px){
	.header{
		width: calc(100% - 28px);
		top: 14px;
	}

	.menu-icon{
		display: block;
	}

	.nav-container{
		position: fixed;
		top:0;
		right: -100%;
		width: 200px;
		flex-direction: column;
		padding: 80px 20px 20px;
		background-color: #ffffff;
		gap: 2rem;
		transition: right 0.3s ease;
		align-items: flex-start;
		z-index: 1000;
	}

	.nav-center, .nav-right{
		width: 100%;
		text-align: center;
	}

	.nav-center ul, .nav-right ul{
		flex-direction: column;
		gap: 1.5rem;
		width: 100%;
	}

	.nav-center a, .nav-right a{
		width: 100%;
		border-bottom: 1px solid #eeeeee;
		padding: 0.3rem 0;
		font-size: 1rem;
		display: block;
	}

	.nav-container.is-open{
		right: 0;
	}
	
}