/* Agroteknik — yeni üst menü (1.1.3) */

/* Temanın menüsünü gizle */
body.agt-hdr-on .top_panel,
body.agt-hdr-on .menu_mobile,
body.agt-hdr-on .menu_mobile_overlay { display: none !important; }

#agt-hdr-root { --h-ink: #10291f; --h-text: #4a5d53; --h-green: #1d6b47; --h-green-2: #2e8b57; --h-dark: #0d3b2e; --h-tint: #f3f8f4; --h-border: #d5e4d9; --h-red: #d71920; --h-red-d: #b3141a; --h-lime: #b5e48c; display: contents; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#agt-hdr-root *, #agt-hdr-root *::before, #agt-hdr-root *::after { box-sizing: border-box; }
#agt-hdr-root a { text-decoration: none; box-shadow: none; }
#agt-hdr-root ul { list-style: none; margin: 0; padding: 0; }
#agt-hdr-root li::before, #agt-hdr-root li::marker { content: none; }
#agt-hdr-root .agt-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.agt-hdr__wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Bilgi şeridi */
.agt-topbar { background: var(--h-dark); color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.agt-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.agt-topbar__msg { margin: 0 !important; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); }
.agt-topbar__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(181, 228, 140, .16); color: var(--h-lime); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.agt-topbar__links { display: flex; gap: 20px; }
.agt-topbar__links a { display: inline-flex; align-items: center; gap: 7px; color: #fff !important; font-weight: 600; }
.agt-topbar__links a:hover { color: var(--h-lime) !important; }
.agt-topbar__links .agt-ico { width: 15px; height: 15px; color: var(--h-lime); }

/* Ana çubuk */
.agt-hdr { position: sticky; top: 0; z-index: 9990; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--h-border); transition: box-shadow .25s; }
body.admin-bar .agt-hdr { top: 32px; }
.agt-hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(13, 59, 46, .45); }
.agt-hdr__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.agt-hdr__brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.agt-hdr__logo { display: block; height: 46px; width: auto; }

/* Masaüstü menü */
.agt-hdr__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.agt-nav { display: flex; align-items: center; gap: 4px; }
.agt-nav > li { position: relative; }
.agt-nav > li > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 26px 14px; font-size: 15.5px; font-weight: 600; color: var(--h-ink) !important; white-space: nowrap; }
.agt-nav > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; border-radius: 2px; background: var(--h-green-2); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.agt-nav > li:hover > a, .agt-nav > li:focus-within > a, .agt-nav > li.current-menu-item > a, .agt-nav > li.current-menu-ancestor > a, .agt-nav > li.current-menu-parent > a { color: var(--h-green) !important; }
.agt-nav > li:hover > a::after, .agt-nav > li.current-menu-item > a::after, .agt-nav > li.current-menu-ancestor > a::after, .agt-nav > li.current-menu-parent > a::after { transform: scaleX(1); }
.agt-nav > li.menu-item-has-children > a::before { content: ""; order: 2; width: 7px; height: 7px; margin-left: 2px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.agt-nav .sub-menu { position: absolute; top: 100%; left: 50%; min-width: 290px; padding: 10px; background: #fff; border: 1px solid var(--h-border); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(13, 59, 46, .4); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s; }
.agt-nav > li:hover > .sub-menu, .agt-nav > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.agt-nav .sub-menu:has(> li:nth-child(6)) { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); column-gap: 6px; min-width: 560px; }
.agt-nav .sub-menu a { display: block; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--h-ink) !important; transition: background-color .15s, color .15s; }
.agt-nav .sub-menu a:hover, .agt-nav .sub-menu a:focus-visible, .agt-nav .sub-menu .current-menu-item > a { background: var(--h-tint); color: var(--h-green) !important; }

/* Sağ taraf */
.agt-hdr__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.agt-hdr__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--h-border); border-radius: 12px; background: #fff; color: var(--h-ink) !important; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.agt-hdr__icon:hover { border-color: var(--h-green-2); color: var(--h-green) !important; background: var(--h-tint); }
.agt-lang { display: inline-flex; padding: 3px; border: 1px solid var(--h-border); border-radius: 999px; font-size: 13px; font-weight: 700; }
.agt-lang > * { padding: 6px 10px; border-radius: 999px; line-height: 1; color: var(--h-text) !important; }
.agt-lang .is-active { background: var(--h-green); color: #fff !important; }
.agt-lang a:hover { color: var(--h-green) !important; }
.agt-hdr__cta { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; background: var(--h-red); color: #fff !important; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background-color .2s, transform .2s; }
.agt-hdr__cta:hover { background: var(--h-red-d); transform: translateY(-1px); }
.agt-hdr__call, .agt-hdr__burger { display: none; }
.agt-hdr__burger span { display: block; width: 18px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }

/* Arama */
.agt-hdr__search { border-top: 1px solid var(--h-border); background: var(--h-tint); padding: 14px 0; }
.agt-hdr__search form { display: flex; gap: 10px; }
.agt-hdr__search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--h-border); border-radius: 14px; background: #fff; font-size: 16px; color: var(--h-ink); }
.agt-hdr__search input[type="search"]:focus { outline: 2px solid var(--h-green-2); outline-offset: 0; border-color: transparent; }
.agt-hdr__search button { height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--h-green); color: #fff; font-weight: 700; cursor: pointer; }

/* Mobil çekmece */
.agt-drawer[hidden] { display: none; }
.agt-drawer { position: fixed; inset: 0; z-index: 100000; }
.agt-drawer__backdrop { position: absolute; inset: 0; background: rgba(13, 41, 31, .5); }
.agt-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35); animation: agtSlide .25s ease; overflow-y: auto; }
@keyframes agtSlide { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.agt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--h-border); }
.agt-drawer__head .agt-hdr__logo { height: 38px; }
.agt-drawer__nav { padding: 8px 10px; }
.agt-mnav > li { border-bottom: 1px solid var(--h-border); position: relative; }
.agt-mnav a { display: block; padding: 15px 52px 15px 10px; font-size: 17px; font-weight: 700; color: var(--h-ink) !important; }
.agt-mnav .sub-menu { display: none; padding: 0 0 10px 10px; }
.agt-mnav li.is-open > .sub-menu { display: block; }
.agt-mnav .sub-menu a { padding: 10px 12px; font-size: 15.5px; font-weight: 600; color: var(--h-text) !important; border-radius: 10px; }
.agt-mnav .sub-menu a:hover, .agt-mnav .current-menu-item > a { color: var(--h-green) !important; background: var(--h-tint); }
.agt-mnav__toggle { position: absolute; top: 8px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--h-tint); color: var(--h-green); cursor: pointer; }
.agt-mnav__toggle::before { content: ""; display: block; width: 8px; height: 8px; margin: -4px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.agt-mnav li.is-open > .agt-mnav__toggle::before { transform: rotate(-135deg); margin-top: 4px; }
.agt-drawer__foot { margin-top: auto; padding: 18px; display: grid; gap: 10px; border-top: 1px solid var(--h-border); background: var(--h-tint); }
.agt-drawer__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--h-border); background: #fff; font-weight: 700; color: var(--h-ink) !important; overflow-wrap: anywhere; }
.agt-drawer__btn--red { background: var(--h-red); border-color: var(--h-red); color: #fff !important; }
.agt-lang--drawer { justify-self: center; }

/* Mobil alt çubuk */
.agt-mbar { display: none; }

@media (max-width: 1240px) {
	.agt-nav > li > a { padding-left: 10px; padding-right: 10px; font-size: 15px; }
	.agt-nav > li > a::after { left: 10px; right: 10px; }
	.agt-hdr__bar { gap: 14px; }
}
@media (max-width: 1100px) {
	.agt-topbar__msg { display: none; }
	.agt-topbar__inner { justify-content: center; }
	.agt-hdr__nav, .agt-hdr__search-btn, .agt-hdr__actions > .agt-lang { display: none; }
	.agt-hdr__burger, .agt-hdr__call { display: inline-grid; }
	.agt-hdr__actions { margin-left: auto; }
}
@media (max-width: 782px) {
	body.admin-bar .agt-hdr { top: 46px; }
}
@media (max-width: 768px) {
	.agt-topbar { display: none; }
	.agt-hdr__wrap { padding: 0 16px; }
	.agt-hdr__bar { min-height: 64px; }
	.agt-hdr__logo { height: 38px; }
	.agt-hdr__cta { display: none; }
	.agt-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--h-border); box-shadow: 0 -10px 30px -18px rgba(13, 59, 46, .4); }
	.agt-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--h-green) !important; background: #f3f8f4; border: 1px solid var(--h-border); }
	.agt-mbar a.agt-mbar__cta { background: var(--h-red); border-color: var(--h-red); color: #fff !important; }
	body.agt-hdr-on { padding-bottom: 72px; }
}
@media (max-width: 600px) {
	body.admin-bar .agt-hdr { top: 0; }
}
.agt-nav > li.is-touched > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* WhatsApp */
.agt-hdr__wa { color: #fff !important; background: #25d366; border-color: #25d366; }
.agt-hdr__wa:hover { background: #1ebe5b !important; border-color: #1ebe5b !important; color: #fff !important; }
.agt-hdr__wa .agt-ico { width: 20px; height: 20px; }
.agt-drawer__btn--wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.agt-wafab { position: fixed; right: 22px; bottom: 22px; z-index: 9980; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); transition: transform .2s, background-color .2s; }
.agt-wafab:hover { background: #1ebe5b; transform: translateY(-2px); }
.agt-wafab .agt-ico { width: 24px !important; height: 24px !important; }
.agt-mbar a.agt-mbar__wa { background: #25d366; border-color: #25d366; color: #fff !important; }
@media (max-width: 1100px) { .agt-hdr__wa { display: none; } }
@media (max-width: 768px) { .agt-wafab { display: none; } .agt-mbar a { font-size: 14px; gap: 6px; } }

/* 1.2.0 — Kaydırınca üst menü incelir (masaüstü) */
@media (min-width: 769px) {
	.agt-hdr__bar { transition: min-height .25s ease; }
	.agt-hdr__logo { transition: height .25s ease; }
	.agt-nav > li > a { transition: padding .25s ease; }
	.agt-hdr.is-compact .agt-hdr__bar { min-height: 60px; }
	.agt-hdr.is-compact .agt-hdr__logo { height: 36px; }
	.agt-hdr.is-compact .agt-nav > li > a { padding-top: 18px; padding-bottom: 18px; }
	.agt-hdr.is-compact .agt-nav > li > a::after { bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.agt-hdr__bar, .agt-hdr__logo, .agt-nav > li > a { transition: none; }
}
