/* ==========================================================================
   index_new.css — Yeni header denemesi (sadece index_new.php'de yüklenir)
   Eski hamburger menü kaldırıldı; nav linkleri üst header'da TUREX AVM
   butonunun soluna ikon-üstte / yazı-altta tile'lar olarak yerleştirildi.
   Aktif sayfaları etkilemez.
   ========================================================================== */

/* --- Üst header'da, kullanıcı kutusu ile TUREX AVM arasında menü --- */
.main-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	flex: 1;
	gap: 4px;
}

/* Her menü öğesi: ikon üstte, kısa etiket altta */
.main-nav__item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	min-width: 65px;
	height: 56px;
	padding: 6px 9px;
	border-radius: 3px;
	background: #3a7c96;
	color: #fff;
	border: 1px solid #3a7c96;
	text-decoration: none;
	transition: color .18s ease, background .18s ease, border-color .18s ease,
		box-shadow .18s ease, transform .18s ease;
}

.main-nav__item:hover,
.main-nav__item:focus {
	color: #fff;
	border-color: #336d84;
	background: #336d84;
	box-shadow: 0 6px 14px rgba(58, 124, 150, .30);
	transform: translateY(-1px);
	text-decoration: none;
}

.main-nav__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
}

.main-nav__icon i {
	font-size: 19px;
	line-height: 1;
}

/* Vadesi geçmiş kapanmamış fatura adedi rozeti (Ekstre menüsü) */
.main-nav__badge {
	position: absolute;
	top: -7px;
	right: -11px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 8px;
	background: #e53935;
	color: #fff;
	font: 700 10px/16px "Barlow", sans-serif;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}

.main-nav__label {
	display: block;
	font: 600 11px/1 "Barlow", sans-serif;
	letter-spacing: .1px;
	white-space: nowrap;
}

/* Aktif sayfa */
.main-nav__item.is-active {
	background: #285a6e;
	color: #fff;
	border-color: #285a6e;
	box-shadow: 0 6px 14px rgba(40, 90, 110, .28);
}

.main-nav__item.is-active:hover {
	color: #fff;
	background: #21505f;
}

/* Ödeme grubu (yeşil) */
.main-nav__item--pay {
	color: #fff;
	background: #0c9648;
	border-color: #0c9648;
}

.main-nav__item--pay:hover,
.main-nav__item--pay:focus {
	background: #0a7d3c;
	border-color: #0a7d3c;
	box-shadow: 0 6px 14px rgba(12, 150, 72, .30);
}

.main-nav__item--pay.is-active {
	background: #0a7d3c;
	color: #fff;
	border-color: #0a7d3c;
}

.main-nav__item--pay.is-active:hover,
.main-nav__item--pay.is-active:focus {
	background: #096e35;
	color: #fff;
}

/* Ayraç */
.main-nav__sep {
	width: 1px;
	height: 36px;
	align-self: center;
	background: #c4c5c6;
	margin: 0 5px;
	flex: 0 0 auto;
}

/* --- Neon kare buton: nav tile görünümü + dönen neon kenar
       (Turex AVM ile aynı 'rotate-neon' animasyonu) --- */
.nav-neon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	min-width: 100px;
	height: 56px;
	padding: 3px;
	border-radius: 6px;
	overflow: hidden;
	isolation: isolate;
	background: transparent;
	text-decoration: none;
	transition: box-shadow .18s ease, transform .18s ease;
}
.nav-neon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 220%;
	height: 220%;
	background: conic-gradient(transparent, #39ff14, #39ff14, transparent 30%);
	animation: rotate-neon 4s linear infinite;
	z-index: -1;
}
.nav-neon__inner {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 4px 14px;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: background-color .18s ease;
}
.nav-neon:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.nav-neon__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1cac53;
}
.nav-neon__icon svg {
	width: 27px;
	height: 27px;
}
.nav-neon__label {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	font: 600 13px/1 "Barlow", sans-serif;
}
.nav-neon__word {
	color: #101010;
	font-weight: 600;
}
.nav-neon__word-avm {
	color: #1cac53;
	font-weight: 900;
}

/* --- Kur kutusu: Dolar ve Euro alt alta (2 satır) --- */
.new-header-sticky--v2 .new-header .currency {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	padding: 4px 14px;
	height: 45px;
}
.new-header-sticky--v2 .new-header .currency .currency-block {
	height: auto;
}
.new-header-sticky--v2 .new-header .currency .currency-block.dollar {
	border-right: 0;
	padding-right: 0;
	margin-right: 0;
}

/* --- Menüyü header içinde ortala --- */
.new-header-sticky--v2 .new-header .left {
	flex: 1;
}

/* --- Üst bilgi şeridi (firma / iskonto / temsilci + iletişim) --- */
.new-header-sticky--v2 .header-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 18px;
	padding: 6px 18px;
	background: #f4f6f8;
	border-bottom: 1px solid #e6e8eb;
	font: 500 12.5px/1.4 "Barlow", sans-serif;
	color: #4a4a4a;
}
.new-header-sticky--v2 .header-topbar__left,
.new-header-sticky--v2 .header-topbar__right {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 16px;
}
.new-header-sticky--v2 .header-topbar i {
	color: #3a7d97;
	margin-right: 5px;
}
.new-header-sticky--v2 .header-topbar a {
	color: inherit;
	text-decoration: none;
}
.new-header-sticky--v2 .header-topbar a:hover {
	color: #3a7d97;
	text-decoration: none;
}
.new-header-sticky--v2 .header-topbar__seller a {
	font-weight: 700;
	color: #222;
}
.new-header-sticky--v2 .header-topbar__rep strong {
	color: #222;
	font-weight: 700;
}
/* İskonto: gri şeritte öne çıkan yeşil pill */
.new-header-sticky--v2 .header-topbar__discount {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	border-radius: 999px;
	background: #0c9648;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .2px;
}
.new-header-sticky--v2 .header-topbar__discount i {
	color: #fff;
	margin-right: 0;
}

/* --- Duyarlılık: dar ekranda biraz daha sıkıştır --- */
@media (max-width: 1500px) {
	.main-nav {
		gap: 3px;
	}
	.main-nav__item {
		padding: 6px 6px;
	}
	.main-nav__icon i {
		font-size: 18px;
	}
	.main-nav__label {
		font-size: 10px;
	}
	.main-nav__sep {
		margin: 0 3px;
	}
}

/* --- Tablet / mobil: header satıra sarar, menü tam genişlikte
       yatay kaydırılabilir şerit olur (parmakla kaydır) --- */
@media (max-width: 991px) {
	.new-header-sticky--v2 .new-header {
		flex-wrap: wrap;
		row-gap: 8px;
		padding: 8px 10px;
	}
	.new-header-sticky--v2 .new-header .left {
		flex-wrap: wrap;
		row-gap: 8px;
	}
	/* Menü: ayrı bir satırda, tam genişlik, yatay scroll */
	.new-header-sticky--v2 .main-nav {
		order: 10;
		width: 100%;
		margin: 0;
		gap: 6px;
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 2px 0;
		/* kenarlarda kaydırma ipucu için hafif gölge maskesi */
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
	}
	.new-header-sticky--v2 .main-nav::-webkit-scrollbar {
		display: none;
	}
	.new-header-sticky--v2 .main-nav__item {
		flex: 0 0 auto;
	}
	.new-header-sticky--v2 .main-nav__sep {
		height: 44px;
	}
}

/* --- Küçük telefon: tile'ları biraz daralt --- */
@media (max-width: 575px) {
	.new-header-sticky--v2 .new-header .logo img {
		height: 30px;
	}
	.new-header-sticky--v2 .main-nav__item {
		min-width: 52px;
		height: 52px;
		border-radius: 3px;
	}
	.new-header-sticky--v2 .main-nav__icon i {
		font-size: 17px;
	}
	.new-header-sticky--v2 .main-nav__label {
		font-size: 9.5px;
	}
}
