/* =====================================================================
   New Home — Header geliştirmeleri (özgün): mega menü + cila + sticky
   Skinlab'ın "düzenli" hissini klasik tema üzerinde kendi kodumuzla verir.
   ===================================================================== */

/* -------------------- Menü tipografisi -------------------- */
.nh-topbar-menu #top-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nh-topbar-menu #top-menu > li.category { position: relative; }
.nh-topbar-menu #top-menu > li.category > a.dropdown-item {
  font-family: 'League Spartan', 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: 1.1px; font-size: .92rem; font-weight: 500;
  color: #3C424C; padding: 26px 16px; position: relative; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.nh-topbar-menu #top-menu > li.category > a.dropdown-item:hover { color: #3C424C; }
/* Alt-menüsü olan kategoriye küçük ok */
.nh-topbar-menu #top-menu > li.category:has(.sub-menu) > a.dropdown-item::before {
  content: ''; width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; opacity: .55; order: 2; transition: transform .2s ease;
}
.nh-topbar-menu #top-menu > li.category:hover > a.dropdown-item::before { transform: rotate(225deg); margin-top: 2px; }
/* Alt vurgu çizgisi */
.nh-topbar-menu #top-menu > li.category > a.dropdown-item::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px;
  background: #3C424C; transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nh-topbar-menu #top-menu > li.category:hover > a.dropdown-item::after { transform: scaleX(1); }

/* -------------------- Mega menü paneli -------------------- */
.nh-topbar-menu #top-menu > li.category > .sub-menu.popover {
  position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important; margin: 0 !important;
  min-width: 260px; background: #fff; border: 0 !important; border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 46px rgba(20, 30, 50, .13); padding: 20px 24px 22px;
  opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1200;
}
.nh-topbar-menu #top-menu > li.category:hover > .sub-menu.popover {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; display: block !important;
}
/* İnce üst şerit (marka rengi) */
.nh-topbar-menu #top-menu > li.category > .sub-menu.popover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #3C424C, #3C424C); border-radius: 0;
}
/* Alt kategori listesi — çok öğe varsa sütunlara böl (mega hissi) */
.nh-topbar-menu .sub-menu ul.top-menu {
  display: flex; flex-direction: column; flex-wrap: wrap; gap: 1px; margin: 0; padding: 0; list-style: none;
  max-height: 320px;
}
.nh-topbar-menu .sub-menu ul.top-menu > li { break-inside: avoid; }
.nh-topbar-menu .sub-menu ul.top-menu li a {
  display: block; padding: 8px 12px; border-radius: 9px; color: #5B5F68; font-size: .9rem;
  text-decoration: none; white-space: nowrap; transition: background .14s ease, color .14s ease;
  font-family: 'League Spartan', 'Inter', sans-serif;
}
.nh-topbar-menu .sub-menu ul.top-menu li a:hover { background: #F6F3EE; color: #3C424C; }
/* Alt menüdeki mobil oklar masaüstünde gizli */
.nh-topbar-menu .sub-menu .float-xs-right.hidden-md-up { display: none; }

/* -------------------- Sticky header (JS: body.nh-stuck) -------------------- */
.header-top { background: #fff; }
body.nh-stuck .header-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: #fff; box-shadow: 0 6px 22px rgba(20, 30, 50, .09);
  animation: nh-drop .28s ease;
}
body.nh-stuck .nh-topbar-menu #top-menu > li.category > a.dropdown-item { padding-top: 18px; padding-bottom: 18px; }
body.nh-stuck .nh-topbar-menu #top-menu > li.category > a.dropdown-item::after { bottom: 12px; }
@keyframes nh-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@media (max-width: 767px) {
  body.nh-stuck .header-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
    background: #fff; box-shadow: 0 6px 22px rgba(20, 30, 50, .09); animation: nh-drop .28s ease;
  }
}

/* -------------------- Header arka planları: tümü #ffffff -------------------- */
#header,
#header .nh-announce,
#header .header-banner,
#header .header-nav,
#header .header-top,
#header .header-top-right,
#header .nh-topbar,
body.nh-stuck .header-top,
body.nh-stuck .header-nav { background: #ffffff !important; }

/* -------------------- Off-canvas mobil menü -------------------- */
body.nh-oc-lock { overflow: hidden; }
.nh-oc-overlay {
  position: fixed; inset: 0; background: rgba(20, 22, 26, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; z-index: 14000;
}
.nh-oc-overlay.open { opacity: 1; visibility: visible; }
.nh-oc {
  position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 340px; background: #fff;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); z-index: 14001;
  display: flex; flex-direction: column; box-shadow: 0 0 46px rgba(0, 0, 0, .22);
  font-family: 'League Spartan', 'Inter', sans-serif;
}
.nh-oc.open { transform: none; }
.nh-oc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #EFEAE2; flex: 0 0 auto;
}
.nh-oc-title { font-weight: 700; font-size: 1.05rem; color: #3C424C; text-transform: uppercase; letter-spacing: 1.5px; }
.nh-oc-close {
  border: 0; background: #f1efe9; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: #3C424C; cursor: pointer;
}
.nh-oc-close:hover { background: #e6e2d8; }
.nh-oc-nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 0; }
.nh-oc-nav ul { list-style: none; margin: 0; padding: 0; }
.nh-oc-item { border-bottom: 1px solid #F3F0EA; }
.nh-oc-row { display: flex; align-items: stretch; }
.nh-oc-row > a {
  flex: 1 1 auto; padding: 15px 20px; color: #3C424C; text-decoration: none;
  font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .6px;
}
.nh-oc-row > a:hover { color: #3C424C; }
.nh-oc-toggle {
  flex: 0 0 54px; border: 0; background: none; cursor: pointer; color: #9a9488;
  display: flex; align-items: center; justify-content: center; border-left: 1px solid #F3F0EA;
}
.nh-oc-toggle .chev {
  width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .22s ease; margin-top: -3px;
}
.nh-oc-item.open .nh-oc-toggle { color: #3C424C; }
.nh-oc-item.open .nh-oc-toggle .chev { transform: rotate(225deg); margin-top: 3px; }
.nh-oc-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: #FAF8F4; }
.nh-oc-item.open .nh-oc-sub { max-height: 720px; }
.nh-oc-sub a {
  display: block; padding: 12px 20px 12px 34px; color: #5B5F68; text-decoration: none;
  font-size: .9rem; border-top: 1px solid #F0ECE4;
}
.nh-oc-sub a:hover { color: #3C424C; background: #F4F1EB; }
.nh-oc-foot { flex: 0 0 auto; padding: 16px 20px; border-top: 1px solid #EFEAE2; }
.nh-oc-foot .nh-oc-login {
  display: block; text-align: center; padding: 13px; border-radius: 10px;
  background: #3C424C; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.nh-oc-foot .nh-oc-login:hover { background: #2B303A; }
