/* NEREYE: wp-content/themes/cay-tema/assets/css/navbar.css
   AÇIKLAMA: Kampanya bandı, üst iletişim satırı, logo/arama/sepet alanı ve ana menü tasarımı.
   NOT: Bu dosya tekrarları temizlenmiş tek navbar dosyasıdır. Mevcut navbar.css ile tamamen değiştir.
*/

/* ============================================================
   1) KAMPANYA BANDI
============================================================ */

.promo-bar {
  background: var(--navbar-promo-bg, #ffe6ee);
  border-bottom: 1px solid rgba(217, 31, 98, .12);
  padding: 8px 0;
}

.promo-bar .container {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.promo-badge {
  min-width: 76px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--navbar-promo-button, #d91f62);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 10px 24px rgba(217, 31, 98, .18);
}

.promo-content {
  flex: 1;
  text-align: center;
}

.promo-content strong {
  display: inline-block;
  color: var(--navbar-promo-text, #d91f62);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
}

.promo-content span {
  display: inline-block;
  margin-left: 18px;
  color: var(--navbar-promo-text, #d91f62);
  font-family: var(--yazi-aksent);
  font-size: 25px;
  line-height: 1;
}

.promo-content small {
  display: block;
  margin-top: 2px;
  color: #4c3e44;
  font-size: 15px;
  line-height: 1.3;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navbar-promo-button, #d91f62);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 12px 30px rgba(217, 31, 98, .20);
}

.promo-btn:hover {
  filter: brightness(.94);
  transform: translateY(-1px);
}

/* ============================================================
   2) ÜST BİLGİ SATIRI
============================================================ */

.topbar {
  background: var(--navbar-topbar-bg, #fbfcf7) !important;
  color: var(--navbar-topbar-text, #26351f) !important;
  border-bottom: 1px solid #e7eadf;
  padding: 5px 0 !important;
  font-size: 12px !important;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: var(--navbar-topbar-text, #26351f) !important;
}

.topbar a:hover {
  color: var(--sari) !important;
}

.topbar-sol,
.topbar-sag {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   3) ANA HEADER
============================================================ */

.site-header {
  background: var(--navbar-header-bg, #ffffff) !important;
  padding: 16px 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(16, 42, 10, .08) !important;
}

.header-ici {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Logo */
.site-logo {
  flex: 0 0 auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-ikon {
  width: 52px;
  height: 52px;
  background: var(--sari);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 12px rgba(200, 168, 75, .32);
  flex-shrink: 0;
}

.custom-logo {
  max-height: 78px;
  width: auto;
  display: block;
}

.logo-metin {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-metin .site-adi,
.site-adi {
  display: block;
  margin: 0;
  color: var(--navbar-logo-text, var(--yesil-koyu)) !important;
  font-family: var(--yazi-aksent);
  font-size: 36px;
  line-height: .9;
}

.logo-metin .site-slogan,
.site-slogan {
  display: block;
  margin-top: 6px;
  color: var(--sari) !important;
  font-family: var(--yazi-metin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Arama */
.header-arama {
  flex: 1;
  max-width: 560px !important;
}

.arama-form {
  display: flex;
  overflow: hidden;
  border: 2px solid #e8e8e8 !important;
  border-radius: 999px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 30, 20, .06);
  transition: var(--gecis);
}

.arama-form:focus-within {
  border-color: var(--sari) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 82, .18);
}

.arama-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--metin) !important;
  padding: 11px 18px !important;
  font-size: 14px !important;
}

.arama-form input::placeholder {
  color: #8d9188 !important;
}

.arama-form button {
  min-width: 60px !important;
  border: none;
  background: var(--navbar-search-button, var(--sari)) !important;
  color: #fff !important;
  font-size: 18px !important;
  cursor: pointer;
  transition: var(--gecis);
}

.arama-form button:hover {
  filter: brightness(.96);
}

/* Sepet / header aksiyonlar */
.header-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 10px !important;
  border: none;
  border-radius: var(--radius);
  background: transparent !important;
  color: #111 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: var(--gecis);
}

.header-btn:hover {
  color: var(--sari) !important;
  background: rgba(212, 175, 82, .10) !important;
}

.header-btn .icon {
  font-size: 24px !important;
  line-height: 1;
}

.sepet-sayac {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sari);
  color: var(--yesil-koyu);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   4) NAVİGASYON
============================================================ */

body.home .site-nav{
    position:absolute;
    left:0;
    right:0;
    top:135;
    z-index:100;

    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}

body.home .site-nav .nav-menu > li > a{
    color:#fff !important;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}

body.home .site-nav .nav-menu > li > a:hover{
    color:#d5b157 !important;
}

.site-nav .container {
  max-width: 1000px;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  list-style: none;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: block;
  position: relative;
  padding: 14px 0 !important;
  color: var(--navbar-menu-text, #111) !important;
  font-size: 15px !important;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: var(--gecis);
}

.nav-menu>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--navbar-menu-active, #2754d7) !important;
  transform: translateX(-50%);
  transition: var(--gecis);
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a {
  color: var(--navbar-menu-active, #2754d7) !important;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.current-menu-item>a::after {
  width: 80%;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  border-top: 3px solid var(--sari);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--beyaz);
  box-shadow: 0 8px 30px var(--golge-koy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--gecis);
  z-index: 100;
}

.nav-menu>li:hover>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 11px 18px;
  border-bottom: 1px solid var(--krem-koyu);
  color: var(--metin);
  font-size: 14px;
  transition: var(--gecis);
}

.dropdown li a:hover {
  padding-left: 24px;
  background: var(--krem);
  color: var(--yesil);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111 !important;
  transition: var(--gecis);
}

/* ============================================================
   5) MOBİL
============================================================ */

@media (max-width: 768px) {

  .promo-bar,
  .topbar {
    display: none;
  }

  .site-header {
    position: relative;
    padding: 16px 0 !important;
  }

  .header-ici {
    flex-wrap: wrap;
    gap: 12px;
  }

  .custom-logo {
    max-height: 58px;
  }

  .logo-ikon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .logo-metin .site-adi,
  .site-adi {
    font-size: 28px;
  }

  .logo-metin .site-slogan,
  .site-slogan {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .header-arama {
    order: 3;
    flex: 0 0 100%;
    max-width: 100% !important;
  }

  .header-aksiyonlar {
    margin-left: auto;
  }

  .header-btn {
    padding: 5px 7px !important;
    font-size: 10px !important;
  }

  .header-btn .icon {
    font-size: 20px !important;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--navbar-menu-bg, #eef4ff);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    z-index: 1000;
  }

  .nav-menu.acik {
    display: flex;
  }

  .nav-menu>li>a {
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .site-logo a {
    gap: 10px;
  }

  .custom-logo {
    max-height: 50px;
  }

  .logo-metin .site-adi,
  .site-adi {
    font-size: 24px;
  }

  .logo-metin .site-slogan,
  .site-slogan {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .header-aksiyonlar {
    gap: 2px;
  }
}

/* LOGO */
.site-logo-link {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.logo-image {
  flex: 0 0 auto;
}

.logo-image .custom-logo {
  max-height: 76px !important;
  width: auto !important;
  display: block !important;
}

.logo-metin {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
}

.logo-metin .site-adi {
  display: block !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

