/* =========================================================================
   TABELAMATIK HEADER — Astra header'ını ana temaya DOKUNMADAN modernize eder.
   v1.1 — TÜM kurallar masaüstüne (≥922px) kilitlidir:
   mobil/tablet header'ı Astra'nın orijinal, bozulmamış halidir.
   Kaldırmak için: home-setup.php içindeki 'tm-header' enqueue satırını silin.
   ========================================================================= */

@media (min-width: 922px) {

	/* ---- Yumuşak gölge (sticky yok) ------------------------------------ */

	#masthead.site-header {
		box-shadow: 0 2px 14px rgba(35, 36, 30, .08);
	}

	/* ---- Üst bar: temiz beyaz ------------------------------------------- */

	#masthead .ast-above-header-bar {
		background: #ffffff !important;
		border-bottom: 1px solid #eceade;
	}

	/* Hesabım butonu: hap görünüm */
	#masthead .ast-header-account-wrap,
	#masthead .ast-header-account-link {
		border-radius: 999px;
	}

	#masthead .ast-header-account .ast-header-account-wrap {
		border: 1.5px solid #e3e1d6;
		padding: 6px 16px;
		transition: all .2s ease;
	}

	#masthead .ast-header-account .ast-header-account-wrap:hover {
		border-color: #6b5212;
		background: #faf8f0;
	}

	/* Sepet rozeti: lime */
	#masthead .ast-site-header-cart .count,
	#masthead .ast-site-header-cart .ast-cart-menu-wrap .count,
	#masthead .ast-addon-cart-wrap .ast-count-text {
		background: #cbd50e !important;
		color: #26270e !important;
		font-weight: 800;
	}

	#masthead .ast-site-header-cart a,
	#masthead .ast-header-search .astra-search-icon {
		color: #23241e;
		transition: color .2s ease;
	}

	#masthead .ast-site-header-cart a:hover,
	#masthead .ast-header-search .astra-search-icon:hover {
		color: #6b5212;
	}

	/* ---- Menü barı: koyu altın gradyan ----------------------------------- */

	#masthead .ast-below-header-bar {
		background: linear-gradient(120deg, #a5842c 0%, #8a6c1e 45%, #6b5212 100%) !important;
		border: none;
	}

	/* Astra'nın satır yüksekliği/padding ayarlarını sıfırla —
	   barın yüksekliğini yalnızca link padding'i belirler (~46px) */
	#masthead .ast-below-header-bar,
	#masthead .ast-below-header-bar .ast-builder-grid-row,
	#masthead .ast-below-header-bar [class*="site-header-section"],
	#masthead .site-below-header-wrap {
		min-height: 0 !important;
		height: auto !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	/* Menü hizalaması */
	#masthead .ast-below-header-bar .main-header-menu {
		align-items: center;
	}

	/* Menü linkleri */
	#masthead .ast-below-header-bar .main-header-menu > .menu-item > .menu-link {
		color: rgba(255, 255, 255, .88) !important;
		font-weight: 500;
		font-size: 13.5px;
		letter-spacing: .01em;
		padding: 13px 16px !important;
		line-height: 1.4;
		position: relative;
		transition: color .2s ease;
	}

	/* Menü öğeleri arası ince ayraç çizgisi */
	#masthead .ast-below-header-bar .main-header-menu > .menu-item + .menu-item:not(:last-child) > .menu-link::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 14px;
		background: rgba(255, 255, 255, .25);
	}

	#masthead .ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover {
		color: #ffffff !important;
		background: transparent;
	}

	/* Alt çizgi: metne yakın, ince — altın zeminde beyaz */
	#masthead .ast-below-header-bar .main-header-menu > .menu-item > .menu-link::after {
		content: "";
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 7px;
		height: 2px;
		border-radius: 2px;
		background: #ffffff;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform .25s cubic-bezier(.22, .8, .36, 1);
	}

	#masthead .ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover::after,
	#masthead .ast-below-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link::after,
	#masthead .ast-below-header-bar .main-header-menu > .menu-item.current-menu-ancestor > .menu-link::after {
		transform: scaleX(1);
	}

	/* Aktif sayfa linki */
	#masthead .ast-below-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link {
		color: #ffffff !important;
		font-weight: 600;
	}

	/* B2B linkini öne çıkar (menüdeki son öğe) — kompakt hap */
	#masthead .ast-below-header-bar .main-header-menu > .menu-item:last-child {
		align-self: center;
	}

	#masthead .ast-below-header-bar .main-header-menu > .menu-item:last-child > .menu-link {
		background: transparent;
		border: 1px solid rgba(255, 255, 255, .6);
		border-radius: 999px;
		padding: 6px 15px !important;
		margin-left: 12px;
		line-height: 1.5;
		color: #ffffff !important;
		font-weight: 600;
		transition: all .2s ease;
	}

	#masthead .ast-below-header-bar .main-header-menu > .menu-item:last-child > .menu-link:hover {
		background: #ffffff;
		color: #6b5212 !important;
	}

	#masthead .ast-below-header-bar .main-header-menu > .menu-item:last-child > .menu-link::after {
		display: none;
	}

	/* ---- Açılır alt menüler ---------------------------------------------- */

	#masthead .main-header-menu .sub-menu {
		background: #ffffff;
		border: 1px solid #eceade;
		border-radius: 12px;
		box-shadow: 0 12px 34px rgba(35, 36, 30, .16);
		padding: 8px;
		margin-top: 6px;
		overflow: hidden;
	}

	#masthead .main-header-menu .sub-menu .menu-item > .menu-link {
		color: #26271f !important;
		font-size: 13.5px;
		font-weight: 500;
		border-radius: 8px;
		padding: 10px 14px;
		border: none !important;
		transition: all .18s ease;
	}

	#masthead .main-header-menu .sub-menu .menu-item > .menu-link:hover {
		background: #f2f1ea;
		color: #6b5212 !important;
		padding-left: 18px;
	}

	/* Hareket azaltma tercihi */
	@media (prefers-reduced-motion: reduce) {
		#masthead * { transition-duration: .01ms !important; }
	}
}
