/* Kars Mehmetbey - masaustu ust kisim (header.tpl KMH bloklari) */
.kmh-top, .kmh-wrap { --kmh-ink: #17211c; --kmh-ink2: #24332c; --kmh-acc: #e7512f; --kmh-acc2: #c93f1f; --kmh-cream: #faf6ef; --kmh-line: #ece4d6; --kmh-gold: #d9a441; --kmh-mute: #8a8f87; font-family: Montserrat, sans-serif; }

/* Bilgi seridi */
.kmh-top { background: var(--kmh-ink); color: #cdd6d0; font-size: 12.5px; }
.kmh-top-in { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.kmh-top-in:before, .kmh-top-in:after { content: none; }
.kmh-top-l { display: flex; align-items: center; gap: 10px; letter-spacing: .2px; white-space: nowrap; }
.kmh-top-l .fa { color: var(--kmh-gold); margin-right: 3px; }
.kmh-dot { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; animation: kmhPulse 2.2s infinite; }
.kmh-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.kmh-top-r { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.kmh-top-r a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: #cdd6d0; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.kmh-top-r a:hover, .kmh-top-r a:focus { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.kmh-top-r .fa { color: var(--kmh-gold); }
@keyframes kmhPulse { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, .55); } 70% { box-shadow: 0 0 0 8px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }

/* Ana bar */
.kmh-sticky { position: relative; z-index: 1000; background: #fff; }
.kmh-sticky.is-fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 10px 30px rgba(23, 33, 28, .12); animation: kmhDrop .28s ease-out; }
@keyframes kmhDrop { from { transform: translateY(-100%); } to { transform: none; } }
.kmh { background: #fff; margin: 0; padding: 0; }
.kmh-in { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; transition: padding .2s; }
.kmh-in:before, .kmh-in:after { content: none; }
.kmh-logo { flex: none; }
.kmh-logo a { display: block; }
.kmh-logo img { display: block; height: 84px; width: auto; max-width: 230px; transition: height .2s; }
.kmh-logo-text { font-size: 22px; font-weight: 800; color: var(--kmh-ink); }
.is-fixed .kmh-in { padding-top: 8px; padding-bottom: 8px; }
.is-fixed .kmh-logo img { height: 50px; }

/* Arama */
.kmh-search { flex: 1 1 auto; min-width: 0; max-width: 620px; margin: 0 auto; }
.kmh-search .autosearch-wrapper { margin: 0; padding: 0; width: 100%; float: none; }
.kmh-search .input-group { display: flex; align-items: center; width: 100%; position: relative; background: var(--kmh-cream); border: 1.5px solid var(--kmh-line); border-radius: 999px; padding: 5px 5px 5px 22px; transition: border-color .2s, box-shadow .2s, background .2s; }
.kmh-search .input-group:hover { border-color: #ddd0bb; }
.kmh-search .input-group:focus-within { background: #fff; border-color: var(--kmh-acc); box-shadow: 0 0 0 4px rgba(231, 81, 47, .12); }
.kmh-search input.search_query { flex: 1 1 auto; float: none; width: auto; min-width: 0; height: 42px; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 14.5px; color: var(--kmh-ink); }
.kmh-search input.search_query::placeholder { color: #9a9a90; opacity: 1; }
.kmh-search .button-search { flex: none; position: static; display: inline-flex; align-items: center; gap: 8px; height: 42px; width: auto; margin: 0; padding: 0 22px; border: 0; border-radius: 999px !important; background: linear-gradient(135deg, #f0643f 0%, #d8431f 100%) !important; color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 6px 14px rgba(231, 81, 47, .28); transition: filter .15s, transform .06s; }
.kmh-search .button-search:after { content: "Ara"; }
.kmh-search .button-search .fa-lg { font-size: 15px; line-height: 1; vertical-align: 0; }
.kmh-search .button-search:hover { filter: brightness(1.07); }
.kmh-search .button-search:active { transform: translateY(1px); }
.kmh-search ul.autosearch { top: calc(100% + 8px) !important; left: 0 !important; right: 0; width: 100%; padding: 8px; border: 1px solid var(--kmh-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(23, 33, 28, .16); }

/* Hesap / favori / sepet */
.kmh-actions { flex: none; display: flex; align-items: center; gap: 14px; }
.kmh-act { position: relative; display: flex; align-items: center; gap: 10px; }
.kmh-act-link { display: flex; align-items: center; gap: 10px; color: var(--kmh-ink); text-decoration: none !important; }
.kmh-ic { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kmh-cream); border: 1px solid var(--kmh-line); color: var(--kmh-ink) !important; font-size: 17px; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.kmh-ic:hover, .kmh-act-link:hover .kmh-ic { background: var(--kmh-ink); border-color: var(--kmh-ink); color: #fff !important; }
.kmh-acc-t { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.kmh-acc-t small { font-size: 11.5px; color: var(--kmh-mute); }
.kmh-acc-t b { font-size: 13.5px; font-weight: 700; color: var(--kmh-ink); }
.kmh-acc-t b a { color: var(--kmh-ink); text-decoration: none; }
.kmh-acc-t b a:hover { color: var(--kmh-acc); }
.kmh-or { color: #c9c2b4; font-weight: 400; }
.kmh-drop { margin-top: 10px; padding: 8px; border: 1px solid var(--kmh-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(23, 33, 28, .14); }
.kmh-drop > li > a { padding: 8px 12px; border-radius: 8px; color: var(--kmh-ink); }
.kmh-drop > li > a .fa { width: 18px; color: var(--kmh-acc); }
.kmh-drop > li > a:hover { background: var(--kmh-cream); color: var(--kmh-ink); }

.kmh-cart #cart { margin: 0; width: auto; float: none; }
.kmh-cart #cart > button { float: none !important; display: inline-flex; align-items: center; gap: 10px; width: auto; height: 50px; margin: 0; padding: 0 18px 0 16px; border: 0; border-radius: 14px; background: var(--kmh-ink) !important; background-image: none !important; color: #fff !important; font-size: 14.5px; font-weight: 700; text-shadow: none; box-shadow: 0 8px 18px rgba(23, 33, 28, .18); transition: background .15s, transform .06s; }
.kmh-cart #cart > button:hover, .kmh-cart #cart > button:focus { background: var(--kmh-acc) !important; outline: 0; }
.kmh-cart #cart > button:active { transform: translateY(1px); }
.kmh-cart #cart > button .fa { margin: 0; font-size: 17px; }
.kmh-cart #cart .badgeAlert, .kmh-cart #cart #cart-total { position: static; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin: 0; padding: 0 6px; border-radius: 999px; background: var(--kmh-acc); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.kmh-cart #cart > button:hover .badgeAlert { background: #fff; color: var(--kmh-acc); }

/* Kategori menusu */
.kmh-nav { background: #fff; border-top: 1px solid var(--kmh-line); border-bottom: 1px solid var(--kmh-line); }
.kmh-nav-in { display: flex; align-items: center; gap: 6px; height: 52px; }
.kmh-nav-in:before, .kmh-nav-in:after { content: none; }
.kmh-nav-home { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--kmh-ink); color: #fff !important; font-size: 16px; text-decoration: none !important; }
.kmh-nav-home:hover { background: var(--kmh-acc); }
.kmh-cats { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kmh-cats::-webkit-scrollbar { display: none; }
.kmh-cats ul { display: flex; margin: 0; padding: 0; list-style: none; white-space: nowrap; background: none; float: none; width: auto; border: 0; }
.kmh-cats ul li { flex: none; float: none; display: block; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0; padding: 0; border: 0 !important; background: none !important; }
.kmh-cats ul li ul { display: none; }
.kmh-cats ul a { position: relative; display: block; padding: 0 14px !important; width: auto !important; height: 52px; line-height: 52px; font-size: 13.5px !important; font-weight: 600; letter-spacing: .2px; color: var(--kmh-ink) !important; text-decoration: none !important; background: none !important; border: 0; }
.kmh-cats ul a:after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--kmh-acc); transform: scaleX(0); transition: transform .2s ease; }
.kmh-cats ul a:hover { color: var(--kmh-acc) !important; }
.kmh-cats ul a:hover:after, .kmh-cats ul a.is-active:after { transform: scaleX(1); }
.kmh-cats ul a.is-active { color: var(--kmh-acc) !important; }
.kmh-cats ul a[href$="indirimdekiler"] { color: var(--kmh-acc) !important; }
.kmh-cats ul a[href$="indirimdekiler"]:before { content: "\f06d"; font-family: FontAwesome; margin-right: 6px; }
.kmh-nav-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #e8f6ee; color: #18794a !important; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background .15s, color .15s; }
.kmh-nav-cta .fa { font-size: 16px; }
.kmh-nav-cta:hover { background: #25d366; color: #fff !important; }

@media (min-width: 992px) and (max-width: 1199px) {
  .kmh-in { gap: 18px; }
  .kmh-logo img { height: 70px; max-width: 180px; }
  .kmh-acc-t small { display: none; }
  .kmh-top-r li:nth-child(2) { display: none; }
  .kmh-nav-cta { display: none; }
  .kmh-cats ul a { padding: 0 8px !important; font-size: 12.5px !important; }
  .kmh-cats ul a:after { left: 8px; right: 8px; }
}

/* ===== Mobil ust kisim (KMM) ===== */
@media (max-width: 991px) {
  .kmm-top, .kmm-holder, .kmm-sub { --kmh-ink: #17211c; --kmh-acc: #e7512f; --kmh-cream: #faf6ef; --kmh-line: #ece4d6; --kmh-gold: #d9a441; font-family: Montserrat, sans-serif; }
  .kmm-top { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 16px; background: var(--kmh-ink); color: #cdd6d0; font-size: 11.5px; letter-spacing: .2px; }
  .kmm-top .fa-truck { color: var(--kmh-gold); margin-right: 4px; }
  .kmm-top a { display: inline-flex; align-items: center; gap: 5px; color: #7ee2a8 !important; font-weight: 700; text-decoration: none !important; }
  .kmm-holder { min-height: 62px; }
  .kmm-holder .stk { background: transparent; height: auto !important; }
  .mobile-header.kmm { height: 62px !important; margin: 0; padding: 0; background: rgba(255, 255, 255, .96) !important; border: 0 !important; border-bottom: 1px solid var(--kmh-line) !important; box-shadow: none !important; -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
  .stk.sticky-header .mobile-header.kmm { box-shadow: 0 8px 24px rgba(23, 33, 28, .10) !important; }
  .kmm-row { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 12px; }
  .mobile-header.kmm .kmm-btn { position: relative; flex: none; display: inline-flex !important; align-items: center; justify-content: center; width: 42px !important; height: 42px !important; margin: 0; padding: 0; border-radius: 12px; background: var(--kmh-cream) !important; background-image: none !important; border: 1px solid var(--kmh-line); color: var(--kmh-ink) !important; font-size: 18px; line-height: 1; text-decoration: none !important; transition: background .15s, color .15s, transform .08s; }
  .mobile-header.kmm .kmm-btn:active { transform: scale(.94); }
  .mobile-header.kmm .to-navigation { background: var(--kmh-ink) !important; border-color: var(--kmh-ink); color: #fff !important; }
  .mobile-header.kmm .kmm-logo { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; padding: 0; text-align: center; }
  .mobile-header.kmm .kmm-logo a { display: block; }
  .mobile-header.kmm .kmm-logo img { display: block; height: 46px !important; max-height: none !important; width: auto !important; max-width: 140px; margin: 0 auto; }
  .kmm-logo-text { font-size: 17px; font-weight: 800; color: var(--kmh-ink); }
  .kmm-right { display: flex; align-items: center; gap: 8px; }
  .kmm-badge { position: absolute; top: -6px; right: -6px; display: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--kmh-acc); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
  .kmm-badge.has { display: block; animation: kmmPop .3s ease-out; }
  @keyframes kmmPop { from { transform: scale(.4); } to { transform: none; } }

  .kmm-sub { background: #fff; padding: 10px 12px 0; border-bottom: 1px solid var(--kmh-line); }
  .mobile-search.kmm-search { display: block !important; position: relative !important; top: 0 !important; left: 0 !important; z-index: auto !important; height: auto !important; transform: none !important; margin: 0; padding: 0; background: transparent !important; border: 0; box-shadow: none; }
  .kmm-search #search { display: flex !important; align-items: center; width: 100%; margin: 0 !important; padding: 4px 4px 4px 16px; background: var(--kmh-cream) !important; border: 1.5px solid var(--kmh-line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
  .kmm-search #search:focus-within { background: #fff !important; border-color: var(--kmh-acc); box-shadow: 0 0 0 4px rgba(231, 81, 47, .12); }
  .kmm-search #search:before { content: "\f002"; font-family: FontAwesome; margin-right: 8px; color: #a39a8a; font-size: 15px; }
  .kmm-search #search input { flex: 1 1 auto; float: none !important; width: auto !important; min-width: 0; height: 40px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 14.5px !important; color: var(--kmh-ink); }
  .kmm-search #search input::placeholder { color: #9a9a90; opacity: 1; }
  .kmm-search #search .input-group-btn { width: auto !important; display: block; }
  .kmm-search #search .btn { height: 38px !important; margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; background: linear-gradient(135deg, #f0643f 0%, #d8431f 100%) !important; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .3px; box-shadow: 0 6px 14px rgba(231, 81, 47, .25) !important; text-shadow: none; }

  .kmm-chips { margin: 0 -12px; padding: 10px 12px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .kmm-chips::-webkit-scrollbar { display: none; }
  .kmm-chips ul { display: flex !important; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; white-space: nowrap; background: none !important; float: none !important; width: auto !important; border: 0 !important; }
  .kmm-chips ul li { flex: none; float: none !important; display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  .kmm-chips ul li ul, .kmm-chips .menu-expand { display: none !important; }
  .kmm-chips ul a { display: block !important; height: 34px; padding: 0 14px !important; line-height: 32px !important; border: 1px solid var(--kmh-line) !important; border-radius: 999px; background: #fff !important; color: var(--kmh-ink) !important; font-size: 12.5px !important; font-weight: 600 !important; text-decoration: none !important; text-transform: none !important; }
  .kmm-chips ul a:active, .kmm-chips ul a.is-active { background: var(--kmh-ink) !important; border-color: var(--kmh-ink) !important; color: #fff !important; }
  .kmm-chips ul a[href$="indirimdekiler"] { background: #fff1ec !important; border-color: #f6c7b8 !important; color: var(--kmh-acc) !important; }
  .kmm-chips ul a[href$="indirimdekiler"]:before { content: "\f06d"; font-family: FontAwesome; margin-right: 5px; }
}