html.mobile-header-active,
html.nx-viewport-mobile {
  scroll-behavior: auto !important;
}

html.mobile-header-active body,
html.nx-viewport-mobile body {
  padding-top: 0;
}

html.mobile-header-active .site-wrapper > header,
html.nx-viewport-mobile .site-wrapper > header {
  position: relative !important;
  width: 100% !important;
  z-index: 10050 !important;
  background: #ffffff !important;
}

html.mobile-header-active .mobile-header,
html.nx-viewport-mobile .mobile-header {
  display: block !important;
  width: 100% !important;
  background: #ffffff !important;
}

html.mobile-header-active .header.header-compact,
html.nx-viewport-mobile .header.header-compact {
  display: none !important;
}

/* Homemade/Journal: sadece menü barı sabitlenir */
html.mobile-header-active .mobile-header .mobile-bar.mobile-bar-sticky,
html.mobile-header-active .mobile-header .sticky-bar.mobile-bar-sticky,
html.nx-viewport-mobile .mobile-header .mobile-bar.mobile-bar-sticky,
html.nx-viewport-mobile .mobile-header .sticky-bar.mobile-bar-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 10050 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
}

/* custom-migrated grid layout override (header_mobile_1 yapisi) */
html.mobile-header-active .mobile-header .mobile-bar,
html.nx-viewport-mobile .mobile-header .mobile-bar {
  min-height: 52px !important;
  height: 52px !important;
  max-height: 52px !important;
  display: flex !important;
  grid-template-areas: none !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: center !important;
  justify-content: space-between !important;
}

html.mobile-header-active .mobile-header .mobile-search-group,
html.nx-viewport-mobile .mobile-header .mobile-search-group {
  display: block !important;
}

html.mobile-header-active .mobile-header .mobile-bar-group,
html.nx-viewport-mobile .mobile-header .mobile-bar-group {
  display: block !important;
}

/* ==========================================================================
   Görsel stiller (<= 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  html.mobile-header-active .mobile-header .mobile-top-bar,
  html.nx-viewport-mobile .mobile-header .mobile-top-bar {
    height: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, #6a1b5c, #4c174f) !important;
    border: 0 !important;
    padding: 0 !important;
  }

  html.mobile-header-active .mobile-header .top-menu-13 > .j-menu,
  html.nx-viewport-mobile .mobile-header .top-menu-13 > .j-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 8px !important;
  }

  html.mobile-header-active .mobile-header .top-menu-13 > .j-menu > li > a,
  html.nx-viewport-mobile .mobile-header .top-menu-13 > .j-menu > li > a {
    height: 34px !important;
    line-height: 34px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 0 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
  }

  html.mobile-header-active .mobile-header .top-menu-13 > .j-menu > li > a::before,
  html.nx-viewport-mobile .mobile-header .top-menu-13 > .j-menu > li > a::before {
    color: #ffffff !important;
    font-size: 13px !important;
  }

  html.mobile-header-active .mobile-header .mobile-bar,
  html.nx-viewport-mobile .mobile-header .mobile-bar {
    padding: 0 10px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  html.mobile-header-active .mobile-header .menu-trigger,
  html.nx-viewport-mobile .mobile-header .menu-trigger {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.mobile-header-active .mobile-header .menu-trigger::before,
  html.nx-viewport-mobile .mobile-header .menu-trigger::before {
    content: "\f0c9" !important;
    font-family: icomoon !important;
    color: #1f2f46 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: block !important;
  }

  html.mobile-header-active .mobile-header .menu-trigger::after,
  html.nx-viewport-mobile .mobile-header .menu-trigger::after {
    content: "MENÜ" !important;
    color: #1f2f46 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-top: 3px !important;
    display: block !important;
  }

  html.mobile-header-active .mobile-header .menu-trigger button,
  html.nx-viewport-mobile .mobile-header .menu-trigger button {
    display: none !important;
  }

  html.mobile-header-active .mobile-header .mobile-logo-wrapper,
  html.nx-viewport-mobile .mobile-header .mobile-logo-wrapper {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    max-height: 40px !important;
    padding: 0 4px !important;
  }

  html.mobile-header-active .mobile-header .mobile-logo-wrapper #logo,
  html.mobile-header-active .mobile-header .mobile-logo-wrapper #logo a,
  html.mobile-header-active .mobile-header .mobile-logo-wrapper a,
  html.nx-viewport-mobile .mobile-header .mobile-logo-wrapper #logo,
  html.nx-viewport-mobile .mobile-header .mobile-logo-wrapper #logo a,
  html.nx-viewport-mobile .mobile-header .mobile-logo-wrapper a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
  }

  html.mobile-header-active .mobile-header .mobile-logo-wrapper img,
  html.nx-viewport-mobile .mobile-header .mobile-logo-wrapper img {
    max-width: 140px !important;
    max-height: 28px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  html.mobile-header-active .mobile-header .mobile-cart-wrapper,
  html.nx-viewport-mobile .mobile-header .mobile-cart-wrapper {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.mobile-header-active .mobile-header .mobile-cart-wrapper #cart > a,
  html.nx-viewport-mobile .mobile-header .mobile-cart-wrapper #cart > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    position: relative !important;
  }

  html.mobile-header-active .mobile-header .mobile-cart-wrapper #cart > a > i::before,
  html.nx-viewport-mobile .mobile-header .mobile-cart-wrapper #cart > a > i::before {
    color: #1f2f46 !important;
    font-size: 20px !important;
  }

  html.mobile-header-active .mobile-header .mobile-cart-wrapper::after,
  html.nx-viewport-mobile .mobile-header .mobile-cart-wrapper::after {
    content: "SEPETİM" !important;
    color: #1f2f46 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-top: 3px !important;
    display: block !important;
    pointer-events: none !important;
  }

  html.mobile-header-active .mobile-header #cart-items,
  html.nx-viewport-mobile .mobile-header #cart-items {
    position: absolute !important;
    top: 2px !important;
    right: 5px !important;
    background: #ef3f4b !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    width: 17px !important;
    height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  html.mobile-header-active .mobile-header .mobile-search-group,
  html.nx-viewport-mobile .mobile-header .mobile-search-group {
    width: 100% !important;
    padding: 6px 12px 8px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f6 !important;
    box-sizing: border-box !important;
  }

  html.mobile-header-active .mobile-header .mobile-search-wrapper,
  html.nx-viewport-mobile .mobile-header .mobile-search-wrapper {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.mobile-header-active .mobile-header .header-search,
  html.nx-viewport-mobile .mobile-header .header-search {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  html.mobile-header-active .mobile-header .header-search input,
  html.nx-viewport-mobile .mobile-header .header-search input {
    flex: 1 1 auto !important;
    height: 36px !important;
    padding: 0 12px !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  html.mobile-header-active .mobile-header .header-search input::placeholder,
  html.nx-viewport-mobile .mobile-header .header-search input::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
  }

  html.mobile-header-active .mobile-header .header-search .search-button,
  html.nx-viewport-mobile .mobile-header .header-search .search-button {
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
    background: transparent !important;
    border: 0 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html.mobile-header-active .mobile-header .header-search .search-button::before,
  html.nx-viewport-mobile .mobile-header .header-search .header-search .search-button::before,
  html.nx-viewport-mobile .mobile-header .header-search .search-button::before {
    color: #64748b !important;
    font-size: 16px !important;
  }
}
