/* Site Header - slider üzerinde, transparent, sticky (ss 2) */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	transition: background 0.3s, border-color 0.3s;
}

body.admin-bar .site-header {
	top: 32px;
}

.site-header.is-sticky {
	position: fixed;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1620px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	gap: 1.5rem;
}

/* Logo - solda */
.header-logo {
	flex-shrink: 0;
}

.header-logo a {
	display: block;
	line-height: 0;
}

.site-logo {
	height: 40px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
}

/* Menü - ortada */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu li {
	margin: 0;
}

.primary-menu a {
	color: #fff;
	font-family: "Urbanist", sans-serif;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
}

.primary-menu a:hover {
	color: rgba(255, 255, 255, 0.9);
}

/* Sağ taraf - Sepet, Hesabım, Kayıt Ol */
.header-actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	color: #fff;
	text-decoration: none;
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s;
}

.header-icon-link:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.header-icon-img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.header-icon-link:hover .header-icon-img {
	filter: brightness(0) invert(1);
}

.header-icon-cart {
	margin-right: 0;
}

.header-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	background: #f97316;
	color: #fff;
	font-family: "Urbanist", sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
}

.header-btn-register {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: #f97316;
	color: #fff !important;
	font-family: "Urbanist", sans-serif;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	border-radius: 50px;
	box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
	transition: background 0.2s, box-shadow 0.2s;
}

.header-btn-register:hover {
	background: #ea580c;
	box-shadow: 0 0 24px rgba(249, 115, 22, 0.5);
}

/* Mobil menü toggle - sadece 1199px ve altında görünür */
.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
}

.mobile-menu-toggle-icon {
	display: block;
	filter: brightness(0) invert(1);
}

.site-header.is-sticky .mobile-menu-toggle-icon {
	filter: brightness(0) invert(1);
}

/* Mobil menü panel */
.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
	pointer-events: none;
}

.mobile-menu.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.mobile-menu-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 320px;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-inner {
	transform: translateX(0);
}

.mobile-menu-close {
	align-self: flex-end;
	width: 44px;
	height: 44px;
	margin: 0.5rem 0.5rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: #333;
	cursor: pointer;
}

.mobile-menu-nav {
	flex: 1;
	padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu-list li {
	margin: 0;
	border-bottom: 1px solid #eee;
}

.mobile-menu-list a {
	display: block;
	padding: 0.875rem 0;
	font-family: "Urbanist", sans-serif;
	font-size: 1.0625rem;
	font-weight: 500;
	color: #111;
	text-decoration: none;
}

.mobile-menu-list a:hover {
	color: #2563eb;
}

.mobile-menu-actions {
	padding: 1.5rem;
	border-top: 1px solid #eee;
}

.mobile-menu-actions .header-btn-register {
	display: block;
	text-align: center;
}

body.has-mobile-menu-open {
	overflow: hidden;
}

/* 1199px ve altında masaüstü menü gizle, mobil toggle göster */
@media (max-width: 1199px) {
	.main-navigation,
	.header-actions {
		display: none !important;
	}

	.mobile-menu-toggle {
		display: flex;
	}
}
