/* =========================
   1) MOBILE MENU (<= 921px)
   ========================= */
@media (max-width: 921px) {
  .ast-builder-menu-mobile .main-navigation .menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  }
  .ast-builder-menu-mobile .main-navigation .menu-link {
    display: block;
    padding: 14px 16px;
  }
}

/* =========================
   2) DESKTOP DROPDOWN (>= 922px)
   ========================= */
@media (min-width: 922px) {
  .main-header-menu .sub-menu {
    min-width: 260px;
    padding: 10px 0;
    background: #ffffff;
  }
  .main-header-menu .sub-menu .menu-link {
    padding: 12px 20px;
    white-space: nowrap;
  }
  .main-header-menu .sub-menu .menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* =========================
   3) STICKY HEADER – FRONTEND ONLY
   Elementor editor + Customizer kizárva
   ========================= */
body:not(.elementor-editor-active):not(.customize-support) .site-header,
body:not(.elementor-editor-active):not(.customize-support) .main-header-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

body:not(.elementor-editor-active):not(.customize-support) {
  padding-top: 110px; /* állítsd a header tényleges magasságára */
}

/* ha korábbi megoldásból maradt margin-top, ne duplázzon */
body:not(.elementor-editor-active):not(.customize-support) .site-content {
  margin-top: 0 !important;
}

/* admin bar offset */
body.admin-bar:not(.elementor-editor-active):not(.customize-support) .site-header,
body.admin-bar:not(.elementor-editor-active):not(.customize-support) .main-header-bar {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar:not(.elementor-editor-active):not(.customize-support) .site-header,
  body.admin-bar:not(.elementor-editor-active):not(.customize-support) .main-header-bar {
    top: 46px;
  }
}

/* Elementor editor: sticky OFF */
body.elementor-editor-active .site-header,
body.elementor-editor-active .main-header-bar {
  position: relative !important;
  top: auto !important;
}
body.elementor-editor-active { padding-top: 0 !important; }

/* Customizer: sticky OFF */
body.customize-support .site-header,
body.customize-support .main-header-bar {
  position: relative !important;
  top: auto !important;
}
body.customize-support { padding-top: 0 !important; }

/* Elementor editor – stabil header preview (ne törjön betűnként) */
body.elementor-editor-active.ast-header-break-point .main-header-bar-wrap .site-branding,
body.elementor-editor-active.ast-header-break-point .main-header-bar-wrap .ast-site-identity {
  width: auto !important;
  max-width: none !important;
  min-width: 220px !important;   /* ha kell: 240–260 */
  flex: 0 0 auto !important;
}

body.elementor-editor-active.ast-header-break-point .site-title,
body.elementor-editor-active.ast-header-break-point .site-title a,
body.elementor-editor-active.ast-header-break-point .site-description {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}