/* =========================================================
   MEGA ISITMA - TRUE FIXED RESPONSIVE HEADER
   Hedef: Menü/header yapısını ve mevcut ölçüleri bozmadan,
   masaüstü + tablet + mobilde scroll sırasında her zaman üstte tutmak.
   ========================================================= */
:root{
  --mega-fixed-header-height:78px;
  --mega-fixed-header-z:2147483000;
}
html{
  scroll-padding-top:calc(var(--mega-fixed-header-height) + 18px)!important;
}
body{
  padding-top:var(--mega-fixed-header-height)!important;
  overflow-x:hidden!important;
}
body.mega-fixed-header-ready{
  padding-top:var(--mega-fixed-header-height)!important;
}
/* Fixed header: sticky yerine kesin sabitleme. */
.mega-header-v2{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:var(--mega-fixed-header-z)!important;
  margin:0!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  contain:none!important;
  isolation:isolate!important;
  background:rgba(255,255,255,.985)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.10)!important;
  will-change:auto!important;
}
.mega-header-v2 .mega-nav-shell-v2,
.mega-header-v2 .mega-nav-inner-v2,
.mega-header-v2 .mega-has-sub-v4,
.mega-header-v2 .mega-products-menu-v4{
  overflow:visible!important;
  contain:none!important;
}
/* Scroll classları geldiğinde eski dosyalar menüyü küçültmesin / oynatmasın. */
body.mega-scrolled .mega-header-v2,
body.mega-sticky-scrolled .mega-header-v2,
body.mega-fixed-header-scrolled .mega-header-v2,
.mega-header-v2.mega-sticky-active,
.mega-header-v2.mega-header-following{
  position:fixed!important;
  top:0!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  background:rgba(255,255,255,.985)!important;
  box-shadow:0 12px 32px rgba(15,23,42,.14)!important;
}
/* Masaüstü dropdown header altında kaybolmasın. */
.mega-header-v2 .mega-sub-v4,
.mega-header-v2 .mega-products-panel-v4{
  z-index:calc(var(--mega-fixed-header-z) + 1)!important;
}
/* Eski wrapper/animasyon kuralları fixed header'ı kesmesin. */
.page-wrapper,
#wrapper,
.main-wrapper,
.site-wrapper,
body > .wrapper,
body > main{
  overflow:visible!important;
  contain:none!important;
}
/* Anchor / hash bağlantıları sabit header altında kalmasın. */
[id]{scroll-margin-top:calc(var(--mega-fixed-header-height) + 18px)!important;}
/* Mobil menü fixed header'ın hemen altından açılsın. */
@media(max-width:991px){
  :root{--mega-fixed-header-height:68px;}
  body{padding-top:var(--mega-fixed-header-height)!important;}
  #mega-main-menu.mega-menu-v4{
    position:fixed!important;
    top:var(--mega-fixed-header-height)!important;
    left:10px!important;
    right:10px!important;
    z-index:calc(var(--mega-fixed-header-z) - 1)!important;
    max-height:calc(100dvh - var(--mega-fixed-header-height) - 16px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
}
@media(max-width:575px){
  :root{--mega-fixed-header-height:62px;}
  body{padding-top:var(--mega-fixed-header-height)!important;}
  #mega-main-menu.mega-menu-v4{
    top:var(--mega-fixed-header-height)!important;
    max-height:calc(100dvh - var(--mega-fixed-header-height) - 14px)!important;
  }
}
