/* ===============================
   JITS SECONDARY MENU – FINAL CSS
   =============================== */

/* Capitalize submenu items */
.et_pb_menu .sub-menu a {
  text-transform: capitalize !important;
}

/* Icon / link color */
.jits_login_lang_wrap a,
.jits_login_lang_wrap .et-icon,
.jits_login_lang_wrap .fas {
  color: #000000 !important;
}

/* -------------------------------
   DESKTOP LAYOUT
-------------------------------- */
@media (min-width: 981px) {

  /* Make Divi menu a flex row */
  #logodivi .et_pb_menu__wrap {
    display: flex;
    align-items: center;
    overflow: visible !important;
  }

  /* Secondary menu container */
  #logodivi .jits_login_lang_wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;

    /* KEEP IT HIGH (as before) */
    position: relative;
    top: -30px;

    /* IMPORTANT: do NOT block clicks */
    pointer-events: none;
    z-index: 1;
  }

  /* Re-enable clicks only on real elements */
  #logodivi .jits_login_lang_wrap a,
  #logodivi .jits_login_lang_wrap button,
  #logodivi .jits_login_lang_wrap .lang-switcher,
  #logodivi .jits_login_lang_wrap .lang-switcher * {
    pointer-events: auto;
  }

  /* Logo must stay clickable */
  #logodivi .logo_container,
  #logodivi .logo_container a,
  #logodivi .et_pb_menu__logo-wrap,
  #logodivi .et_pb_menu__logo {
    position: relative;
    z-index: 10;
  }
}

/* -------------------------------
   BUTTONS / ICONS
-------------------------------- */
.jits_login_button,
.jits_cart_button,
.jits_search_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 20px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Divi icons */
.jits_login_button .et-icon,
.jits_cart_button .et-icon,
.jits_search_button .et-icon {
  font-family: "ETmodules" !important;
  font-size: 18px;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Font Awesome logout icon */
.jits_login_button .fas {
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* -------------------------------
   LANGUAGE SWITCHER
-------------------------------- */
.lang-switcher {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-switcher .lang-current::after {
  content: " ▼";
  font-size: 10px;
  margin-left: 4px;
}

.lang-switcher ul.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  min-width: 50px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999999;
}

.lang-switcher:hover ul.lang-dropdown,
.lang-switcher:focus-within ul.lang-dropdown {
  display: block;
}

.lang-switcher ul.lang-dropdown li {
  padding: 5px 10px;
}

.lang-switcher ul.lang-dropdown li a {
  display: block;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}

.lang-switcher ul.lang-dropdown li a:hover,
.lang-switcher ul.lang-dropdown li a:focus {
  background-color: #eeeeee;
}

/* -------------------------------
   DIVI SAFETY
-------------------------------- */
#logodivi .et_pb_menu_inner_container,
#logodivi .et_pb_menu__wrap {
  overflow: visible !important;
}

#logodivi .et_pb_menu .sub-menu {
  position: absolute;
  z-index: 999999 !important;
}

.et_pb_menu {
  min-height: 90px;
}

.et_pb_menu .logo_container img {
  height: 81px;
}

/* -------------------------------
   MOBILE
-------------------------------- */

/* =========================
   MOBILE: icons in ONE row under logo
   Keep hamburger top-right
   ========================= */
@media (max-width: 980px) {

  /* Column: logo then icons */
  #logodivi .et_pb_menu_inner_container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Center logo */
  #logodivi .et_pb_menu__logo-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 0 10px 0 !important;
  }

  #logodivi .et_pb_menu__logo img {
    height: 64px !important;
    width: auto !important;
  }

  /* Keep wrap full width (needed for hamburger positioning) */
  #logodivi .et_pb_menu__wrap {
    width: 100% !important;
    position: relative !important;
  }

  /* ONE ROW icons under logo */
  #logodivi .jits_login_lang_wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 22px !important;

    width: 100% !important;
    margin: 0 auto 12px auto !important;
    padding: 0 12px !important;

    top: 0 !important;
    transform: none !important;
  }

  /* Hide logout on mobile (optional, keeps the row clean) */
  #logodivi .jits_logout_trigger {
    display: none !important;
  }

  /* Slightly smaller language to fit nicely */
  #logodivi .lang-switcher .lang-current {
    font-size: 14px !important;
  }

  #logodivi .lang-switcher .lang-current::after {
    font-size: 9px !important;
  }

  /* Hamburger stays top-right */
  #logodivi .mobile_menu_bar {
    position: absolute !important;
    top: 18px !important;
    right: 16px !important;
    z-index: 20 !important;
  }
}
@media (max-width: 980px) {

  /* Anchor hamburger to header */
  #logodivi {
    position: relative !important;
  }

  /* Hamburger: top-right, aligned with logo */
  #logodivi .mobile_menu_bar {
    position: absolute !important;
    top: 6px !important;   /* sweet spot */
    right: 12px !important;
    z-index: 50 !important;
  }

  /* Icons row: compact and centered */
  #logodivi .jits_login_lang_wrap {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  /* Reduce overall header height on mobile */
  #logodivi .et_pb_menu {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}



