/* e-man.gr — Front Custom / Header & Navigation v1.2.1 */

body.eman-header-custom {
  --eman-header-bg: #22282e;
  --eman-header-bg-deep: #1b2025;
  --eman-header-surface: #2a3138;
  --eman-header-text: #f5f7f8;
  --eman-header-muted: #aeb7bf;
  --eman-header-border: rgba(255, 255, 255, .10);
  --eman-header-accent: #7fa4f7;
}

/* Global cleanup */
body.eman-header-custom a[href*="route=product/compare"],
body.eman-header-custom a[href*="product/compare"],
body.eman-header-custom .compare-btn,
body.eman-header-custom #compare-total {
  display: none !important;
}

body.eman-header-custom .eman-menu-hidden {
  display: none !important;
}

/* Desktop header */
body.eman-header-custom .header-compact,
body.eman-header-custom .header-classic,
body.eman-header-custom .header-mega {
  color: var(--eman-header-text);
  background: var(--eman-header-bg) !important;
  border-bottom: 1px solid var(--eman-header-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

body.eman-header-custom .header-compact .top-bar,
body.eman-header-custom .header-classic .top-bar,
body.eman-header-custom .header-mega .top-bar {
  display: none !important;
}

body.eman-header-custom .header-compact .mid-bar,
body.eman-header-custom .header-classic .mid-bar,
body.eman-header-custom .header-mega .mid-bar {
  width: 100%;
  max-width: 1400px;
  min-height: 78px;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px;
  background: transparent !important;
}

body.eman-header-custom .desktop-logo-wrapper {
  flex: 0 0 78px !important;
  width: 78px !important;
  min-width: 78px !important;
  height: 68px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: #121518 !important;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

body.eman-header-custom .desktop-logo-wrapper #logo,
body.eman-header-custom .desktop-logo-wrapper #logo > a {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.eman-header-custom .desktop-logo-wrapper .header-logo,
body.eman-header-custom .desktop-logo-wrapper .header-logo-alternate {
  width: auto !important;
  max-width: 70px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain;
}

body.eman-header-custom .desktop-main-menu-wrapper.menu-top {
  flex: 1 1 auto !important;
  min-width: 0;
  margin: 0 !important;
}

body.eman-header-custom .desktop-main-menu-wrapper.menu-top > div,
body.eman-header-custom .desktop-main-menu-wrapper.menu-top > div > ul.j-menu {
  height: 100%;
}

body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu {
  display: flex !important;
  align-items: center;
  gap: 3px;
  margin: 0 !important;
  padding: 0 !important;
}

body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li > a {
  min-height: 42px;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--eman-header-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}

body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li > a:hover,
body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li.open > a,
body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li.active > a,
body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li.eman-nav-active > a {
  color: #fff !important;
  background: rgba(255, 255, 255, .075) !important;
}

body.eman-header-custom .desktop-main-menu-wrapper .menu-trigger > ul.j-menu > li > a {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

body.eman-header-custom .desktop-main-menu-wrapper .menu-label {
  display: none !important;
}

body.eman-header-custom .header-cart-group {
  flex: 0 1 520px !important;
  min-width: 350px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

body.eman-header-custom .desktop-search-wrapper {
  flex: 1 1 390px !important;
  width: min(390px, 34vw) !important;
  max-width: 430px !important;
  min-width: 250px;
  margin: 0 !important;
}

body.eman-header-custom .desktop-search-wrapper .search-input,
body.eman-header-custom .desktop-search-wrapper input.form-control,
body.eman-header-custom .desktop-search-wrapper input[type="text"] {
  height: 44px !important;
  min-height: 44px !important;
  padding-left: 16px !important;
  color: #242a30 !important;
  background: #f7f8f9 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.eman-header-custom .desktop-search-wrapper .search-input:focus,
body.eman-header-custom .desktop-search-wrapper input.form-control:focus,
body.eman-header-custom .desktop-search-wrapper input[type="text"]:focus {
  border-color: rgba(127, 164, 247, .75) !important;
  box-shadow: 0 0 0 3px rgba(127, 164, 247, .16) !important;
}

body.eman-header-custom .desktop-search-wrapper .search-categories,
body.eman-header-custom .desktop-search-wrapper .search-button {
  height: 44px !important;
}

body.eman-header-custom .desktop-cart-wrapper {
  margin: 0 !important;
}

body.eman-header-custom .header-cart-group a,
body.eman-header-custom .desktop-cart-wrapper a,
body.eman-header-custom .header-cart-group button {
  color: var(--eman-header-text) !important;
}

body.eman-header-custom .header-cart-group > div:not(.desktop-search-wrapper),
body.eman-header-custom .desktop-cart-wrapper .cart-heading {
  border-radius: 9px;
}

body.eman-header-custom .header-cart-group [class*="icon"],
body.eman-header-custom .desktop-cart-wrapper .cart-heading {
  transition: background .18s ease, color .18s ease;
}

body.eman-header-custom .header-cart-group a:hover,
body.eman-header-custom .desktop-cart-wrapper .cart-heading:hover {
  color: #fff !important;
}

/* Dropdown / mega menu */
body.eman-header-custom .header .j-dropdown,
body.eman-header-custom .header .dropdown-menu,
body.eman-header-custom #desktop-mobile-main-menu-container,
body.eman-header-custom #mobile-main-menu-container {
  color: var(--eman-header-text) !important;
  background: var(--eman-header-bg-deep) !important;
  border: 1px solid var(--eman-header-border) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34) !important;
}

body.eman-header-custom .header .j-dropdown a,
body.eman-header-custom #desktop-mobile-main-menu-container a,
body.eman-header-custom #mobile-main-menu-container a {
  color: var(--eman-header-text) !important;
}

body.eman-header-custom .header .j-dropdown a:hover,
body.eman-header-custom #desktop-mobile-main-menu-container a:hover,
body.eman-header-custom #mobile-main-menu-container a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .07) !important;
}

/* Mobile header */
body.eman-header-custom .mobile-header {
  color: var(--eman-header-text);
  background: var(--eman-header-bg) !important;
  border-bottom: 1px solid var(--eman-header-border);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
}

body.eman-header-custom .mobile-header .mobile-top-bar,
body.eman-header-custom .mobile-header .mobile-secondary-menu {
  display: none !important;
}

body.eman-header-custom .mobile-header .mobile-bar.sticky-bar,
body.eman-header-custom .mobile-header .mobile-logo-wrapper.mobile-bar {
  min-height: 66px !important;
  padding: 7px 14px !important;
  display: flex !important;
  align-items: center;
  background: var(--eman-header-bg) !important;
}

body.eman-header-custom .mobile-header .mobile-logo-wrapper {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 105px !important;
  padding: 0 !important;
  background: transparent !important;
}

body.eman-header-custom .mobile-header .mobile-logo-wrapper #logo,
body.eman-header-custom .mobile-header .mobile-logo-wrapper #logo a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}

body.eman-header-custom .mobile-header .header-logo,
body.eman-header-custom .mobile-header .header-logo-alternate {
  width: auto !important;
  max-width: 98px !important;
  height: auto !important;
  max-height: 50px !important;
  object-fit: contain;
}

body.eman-header-custom .mobile-header .mobile-bar-group {
  margin-left: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

body.eman-header-custom .mobile-header .menu-trigger,
body.eman-header-custom .mobile-header .mobile-custom-menu,
body.eman-header-custom .mobile-header .mobile-cart-wrapper .cart-heading,
body.eman-header-custom .mobile-header .mini-search .search-trigger {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--eman-header-text) !important;
  background: transparent !important;
  border-radius: 10px !important;
}

body.eman-header-custom .mobile-header .menu-trigger:hover,
body.eman-header-custom .mobile-header .mobile-custom-menu:hover,
body.eman-header-custom .mobile-header .mobile-cart-wrapper .cart-heading:hover {
  background: rgba(255, 255, 255, .07) !important;
}

body.eman-header-custom .mobile-header .mobile-search-group {
  min-height: auto !important;
  padding: 0 14px 12px !important;
  background: var(--eman-header-bg) !important;
}

body.eman-header-custom .mobile-header .mobile-search-wrapper.full-search {
  width: 100% !important;
  margin: 0 !important;
}

body.eman-header-custom .mobile-header .mobile-search-wrapper.full-search input {
  height: 46px !important;
  min-height: 46px !important;
  color: #242a30 !important;
  background: #f7f8f9 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.eman-header-custom #mobile-main-menu-container,
body.eman-header-custom #desktop-mobile-main-menu-container {
  padding-top: 12px !important;
}

body.eman-header-custom #mobile-main-menu-container ul.j-menu > li > a,
body.eman-header-custom #desktop-mobile-main-menu-container ul.j-menu > li > a {
  min-height: 50px;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

@media (max-width: 1220px) {
  body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
  }

  body.eman-header-custom .eman-nav-brands {
    display: none !important;
  }

  body.eman-header-custom .desktop-search-wrapper {
    width: min(330px, 31vw) !important;
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  body.eman-header-custom .mobile-header .mobile-bar.sticky-bar,
  body.eman-header-custom .mobile-header .mobile-logo-wrapper.mobile-bar {
    min-height: 62px !important;
  }

  body.eman-header-custom .mobile-header .header-logo,
  body.eman-header-custom .mobile-header .header-logo-alternate {
    max-width: 88px !important;
    max-height: 46px !important;
  }

  body.eman-header-custom .mobile-header .menu-trigger,
  body.eman-header-custom .mobile-header .mobile-custom-menu,
  body.eman-header-custom .mobile-header .mobile-cart-wrapper .cart-heading,
  body.eman-header-custom .mobile-header .mini-search .search-trigger {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
  }
}


/* ==========================================================================\n   v1.2.1 — Search and utility spacing hotfix\n   The Journal category selector is intentionally hidden: global search is\n   cleaner, more useful for this multi-category store and avoids the oversized\n   white dropdown seen in v1.2.0.\n   ========================================================================== */
@media (min-width: 768px) {
  body.eman-header-custom .header-compact .mid-bar,
  body.eman-header-custom .header-classic .mid-bar,
  body.eman-header-custom .header-mega .mid-bar {
    max-width: 1360px !important;
    min-height: 72px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    gap: 24px !important;
  }

  body.eman-header-custom .desktop-logo-wrapper {
    flex-basis: 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 62px !important;
    border-radius: 0 0 7px 7px !important;
  }

  body.eman-header-custom .desktop-logo-wrapper .header-logo,
  body.eman-header-custom .desktop-logo-wrapper .header-logo-alternate {
    max-width: 60px !important;
    max-height: 54px !important;
  }

  body.eman-header-custom .desktop-main-menu-wrapper.menu-top {
    flex: 1 1 auto !important;
    overflow: visible !important;
  }

  body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu {
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li > a {
    min-height: 40px !important;
    padding: 0 10px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  body.eman-header-custom .header-cart-group {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    gap: 16px !important;
    overflow: visible !important;
  }

  body.eman-header-custom .desktop-search-wrapper {
    position: relative !important;
    flex: 0 0 360px !important;
    width: 360px !important;
    min-width: 0 !important;
    max-width: 360px !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: 20;
  }

  /* Hide Journal's visible category selector without touching its search data. */
  body.eman-header-custom .desktop-search-wrapper .search-categories,
  body.eman-header-custom .desktop-search-wrapper .search-categories-button,
  body.eman-header-custom .desktop-search-wrapper [class*="search-categories"],
  body.eman-header-custom .desktop-search-wrapper .category-button,
  body.eman-header-custom .desktop-search-wrapper .search-category {
    display: none !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-wrapper,
  body.eman-header-custom .desktop-search-wrapper .search-form,
  body.eman-header-custom .desktop-search-wrapper .input-group,
  body.eman-header-custom .desktop-search-wrapper form {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f6f7f8 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-input,
  body.eman-header-custom .desktop-search-wrapper input.form-control,
  body.eman-header-custom .desktop-search-wrapper input[type="text"],
  body.eman-header-custom .desktop-search-wrapper input[name="search"] {
    position: relative !important;
    z-index: 1 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 52px 0 16px !important;
    color: #252b31 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-button,
  body.eman-header-custom .desktop-search-wrapper button[type="button"],
  body.eman-header-custom .desktop-search-wrapper button[type="submit"],
  body.eman-header-custom .desktop-search-wrapper .btn-search {
    position: absolute !important;
    z-index: 3 !important;
    top: 3px !important;
    right: 3px !important;
    bottom: auto !important;
    left: auto !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #22282e !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid rgba(34,40,46,.10) !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: none !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-button:hover,
  body.eman-header-custom .desktop-search-wrapper button[type="button"]:hover,
  body.eman-header-custom .desktop-search-wrapper button[type="submit"]:hover,
  body.eman-header-custom .desktop-search-wrapper .btn-search:hover {
    color: #111519 !important;
    background: rgba(34,40,46,.06) !important;
  }

  /* Autocomplete/results: same width as the search and readable on dark pages. */
  body.eman-header-custom .desktop-search-wrapper .search-results,
  body.eman-header-custom .desktop-search-wrapper .search-results-wrapper,
  body.eman-header-custom .desktop-search-wrapper .autocomplete-suggestions,
  body.eman-header-custom .desktop-search-wrapper .tt-menu,
  body.eman-header-custom .desktop-search-wrapper > .dropdown-menu,
  body.eman-header-custom .desktop-search-wrapper .search-dropdown {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    color: #eef2f5 !important;
    background: #20262c !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.38) !important;
    z-index: 9999 !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-results a,
  body.eman-header-custom .desktop-search-wrapper .search-results-wrapper a,
  body.eman-header-custom .desktop-search-wrapper .autocomplete-suggestion,
  body.eman-header-custom .desktop-search-wrapper .tt-suggestion,
  body.eman-header-custom .desktop-search-wrapper .search-dropdown a {
    color: #eef2f5 !important;
    background: transparent !important;
  }

  body.eman-header-custom .desktop-search-wrapper .search-results a:hover,
  body.eman-header-custom .desktop-search-wrapper .search-results-wrapper a:hover,
  body.eman-header-custom .desktop-search-wrapper .autocomplete-suggestion:hover,
  body.eman-header-custom .desktop-search-wrapper .tt-suggestion:hover,
  body.eman-header-custom .desktop-search-wrapper .search-dropdown a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.07) !important;
  }

  body.eman-header-custom .desktop-cart-wrapper {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.eman-header-custom .header-cart-group > div:not(.desktop-search-wrapper),
  body.eman-header-custom .desktop-cart-wrapper > div,
  body.eman-header-custom .desktop-cart-wrapper .cart-heading {
    margin-left: 0 !important;
  }

  body.eman-header-custom .header-cart-group .desktop-cart-wrapper,
  body.eman-header-custom .header-cart-group .desktop-custom-menu,
  body.eman-header-custom .header-cart-group .top-menu {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.eman-header-custom .header-cart-group a,
  body.eman-header-custom .header-cart-group button,
  body.eman-header-custom .desktop-cart-wrapper .cart-heading {
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1240px) {
  body.eman-header-custom .header-compact .mid-bar,
  body.eman-header-custom .header-classic .mid-bar,
  body.eman-header-custom .header-mega .mid-bar {
    gap: 14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.eman-header-custom .desktop-main-menu-wrapper.menu-top ul.j-menu > li > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 12px !important;
  }

  body.eman-header-custom .desktop-search-wrapper {
    flex-basis: 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }

  body.eman-header-custom .eman-nav-brands {
    display: none !important;
  }
}
