/* Üst çubuk: masaüstünde yatay menü (logo sol, linkler + sosyal + arama sağ) */
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap");

.site-top-header {
  font-family: "Barlow", "Roboto", sans-serif;
}

.site-top-header .rex-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  gap: 12px;
}

.site-top-header .rex-brand-logo {
  flex: 0 0 auto;
  text-align: left;
}

.site-top-header .rex-brand-logo img {
  max-height: 56px;
  width: auto;
  max-width: 220px;
}

.site-top-header .rex-main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-top-header .rex-main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-top-header .rex-main-nav > ul > li {
  margin: 0;
  padding: 0;
}

.site-top-header .rex-main-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  white-space: nowrap;
}

.site-top-header .rex-main-nav > ul > li.active > a,
.site-top-header .rex-main-nav > ul > li > a:hover {
  color: #fc854b;
}

.site-top-header .rex-topbar-tools {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.site-top-header .rex-topbar-social {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.site-top-header .rex-topbar-social li {
  list-style: none;
  margin: 0;
}

.site-top-header .rex-topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
}

.site-top-header .rex-topbar-social a:hover {
  color: #fc854b;
  background: rgba(252, 133, 75, 0.12);
}

/*
 * Arama: style.css içindeki orijinal davranış (width:0 → focus’ta genişler, submit’te PNG büyüteç).
 * type="text" ve aşağıdaki kuralların ezilmemesi gerekir.
 */
.site-top-header .rex-topbar-tools .search-bar.rex-topbar-search {
  float: none;
  margin: 0;
  flex: 0 0 auto;
  top: 0;
  align-self: center;
  min-width: 72px; /* ikonlu submit alanı + dar durumda çökme olmasın */
}

.site-top-header .rex-mobile-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.site-top-header .rex-mobile-toggle i {
  font-size: 18px;
}

/* Tablet / mobil: klasik hamburger + overlay menü */
@media (max-width: 991px) {
  .site-top-header .rex-main-nav {
    display: none !important;
  }

  .site-top-header .rex-topbar-tools {
    display: none !important;
  }

  .site-top-header .rex-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .site-top-header .rex-topbar-row {
    justify-content: space-between;
  }

  .site-top-header .rex-brand-logo {
    flex: 1 1 auto;
  }
}

/* Dar ekranda logo */
@media (max-width: 480px) {
  .site-top-header .rex-brand-logo img {
    max-height: 44px;
    max-width: 160px;
  }
}
