/* Scoped progressive enhancement: original theme remains usable without JS. */
#navbar.ep-navigation { background: #304750; border: 0; border-radius: 0; margin-bottom: 0; color: #fff; }
#navbar.ep-navigation > .container-fluid,
#navbar.ep-navigation > .container { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 20px; width: 100%; padding: 0 24px; }
#navbar.ep-navigation > .container-fluid::before,
#navbar.ep-navigation > .container-fluid::after,
#navbar.ep-navigation > .container::before,
#navbar.ep-navigation > .container::after { display: none; }
#navbar.ep-navigation .navbar-header { float: none; margin: 0; }
#navbar.ep-navigation .logo { margin: 10px 0; padding: 0; }
#navbar.ep-navigation .logo img { width: auto; max-width: 145px; max-height: 48px; }
#navbar.ep-navigation [hidden] { display: none !important; }
#navbar .ep-navigation__top { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 12px 0; }
#navbar .ep-navigation__panel { display: flex; align-items: center; gap: 16px; margin-left: auto; }
#navbar.ep-navigation #block-search-form { flex: 1 1 210px; min-width: 140px; max-width: 360px; float: none; width: auto; margin: 0; padding: 0; }
#navbar.ep-navigation #search-block-form { margin: 0; }
#navbar.ep-navigation #block-search-form .input-group { width: 100%; }
#navbar.ep-navigation #block-search-form .input-group-btn { width: 1%; }
#navbar.ep-navigation #search-block-form .form-actions { display: none; }
#navbar.ep-navigation #search-block-form input.form-text { height: 42px; font-size: 14px; border-radius: 6px 0 0 6px; background: #fff; color: #233c45; }
#navbar.ep-navigation #search-block-form .input-group-btn button { height: 42px; background: #fff; color: #304750; border-color: #fff; border-radius: 0 6px 6px 0; }
#navbar.ep-navigation #block-locale-language { float: none; margin: 0; padding: 0; width: auto; flex: 0 0 auto; }
#navbar.ep-navigation .language-switcher-locale-url { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
#navbar.ep-navigation .language-switcher-locale-url li { display: block; margin: 0; padding: 0; }
#navbar.ep-navigation .language-switcher-locale-url a { display: flex; gap: 5px; align-items: center; min-height: 42px; padding: 7px; border: 1px solid transparent; border-radius: 5px; color: #fff; text-decoration: none; font-size: 13px; }
#navbar.ep-navigation .language-switcher-locale-url a[aria-current] { background: #49616a; border-color: #eec75a; font-weight: 700; }
#navbar .ep-navigation__account { margin: 0; padding: 0; float: none; width: auto; }
#navbar.ep-navigation #block-system-user-menu { display: block; }
#navbar .ep-navigation__account .block-title { display: none; }
#navbar .ep-navigation__account ul,
#navbar ul.ep-navigation__account { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
#navbar .ep-navigation__account a { padding: 10px 6px; color: #fff; white-space: nowrap; background: transparent; font-size: 14px; }
#navbar .ep-navigation__icon-link svg { display: none; }
#navbar .ep-navigation__dropdown { position: relative; font-size: 14px; }
#navbar a.ep-navigation__contact { color: #fff; font-size: 14px; font-weight: 600; padding: 12px 0; white-space: nowrap; text-decoration: none; }
#navbar a.ep-navigation__contact:hover { color: #f5ce61; }
#navbar .ep-navigation__dropdown summary { cursor: pointer; white-space: nowrap; padding: 12px 0; font-weight: 600; }
#navbar .ep-navigation__dropdown summary { list-style: none; }
#navbar .ep-navigation__dropdown summary::-webkit-details-marker { display: none; }
#navbar .ep-navigation__dropdown summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
#navbar .ep-navigation__dropdown[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
#navbar .ep-navigation__dropdown-links { position: absolute; top: 100%; right: 0; min-width: 240px; max-width: 85vw; padding: 8px; background: #fff; color: #243d46; border: 1px solid #d9e1e3; border-radius: 8px; box-shadow: 0 8px 24px #162a3430; z-index: 1100; }
#navbar .ep-navigation__dropdown-links a { display: block; padding: 10px 12px; color: #243d46; line-height: 1.4; text-decoration: none; border-radius: 4px; }
#navbar .ep-navigation__dropdown-links a:hover { background: #edf3f3; }
#navbar a.ep-navigation__buy { display: block; padding: 12px 16px; border-radius: 6px; color: #253b42; background: #f5ce61; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
#navbar a.ep-navigation__buy:hover { background: #ffde83; }
#navbar .ep-navigation__categories { grid-column: 1 / -1; display: flex; justify-content: center; gap: 22px; overflow-x: auto; border-top: 1px solid #ffffff26; padding: 0 2px; scrollbar-width: thin; }
#navbar .ep-navigation__categories a { flex: 0 0 auto; display: block; padding: 13px 0; color: #fff; font-size: 14px; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
#navbar .ep-navigation__categories a:hover,
#navbar .ep-navigation__categories a[aria-current] { border-bottom-color: #f5ce61; color: #f5ce61; }
#navbar.ep-navigation a:focus-visible,
#navbar.ep-navigation button:focus-visible,
#navbar.ep-navigation summary:focus-visible,
#navbar.ep-navigation input:focus-visible { outline: 3px solid #f5ce61; outline-offset: 2px; }
#navbar .ep-navigation__toggle { display: none; }
#navbar .ep-navigation__mobile-actions { display: none; }
#navbar .ep-navigation__extra { display: block !important; height: auto !important; }
@media (max-width: 1199px) {
  #navbar.ep-navigation > .container-fluid,
  #navbar.ep-navigation > .container { gap: 0 12px; padding: 0 16px; }
  #navbar .ep-navigation__top, #navbar .ep-navigation__panel { gap: 10px; }
  #navbar.ep-navigation .logo img { max-width: 100px; }
  #navbar .ep-navigation__categories { justify-content: flex-start; }
}
@media (max-width: 991px) {
  #navbar.ep-navigation > .container-fluid,
  #navbar.ep-navigation > .container { display: block; padding: 0 12px; }
  #navbar.ep-navigation .navbar-header { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
  #navbar.ep-navigation .navbar-header::before,
  #navbar.ep-navigation .navbar-header::after { display: none; }
  #navbar.ep-navigation .logo { float: none !important; flex: 0 1 200px; min-width: 0; margin: 0; line-height: 0; }
  #navbar.ep-navigation .logo img { display: block; width: 100%; max-width: 200px; height: auto; }
  #navbar .ep-navigation__mobile-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
  #navbar .ep-navigation__mobile-actions a.ep-navigation__buy { padding: 12px 9px; font-size: 13px; }
  #navbar .ep-navigation__mobile-actions .ep-navigation__account ul,
  #navbar .ep-navigation__mobile-actions ul.ep-navigation__account { flex-wrap: nowrap; }
  #navbar .ep-navigation__mobile-actions a.ep-navigation__icon-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 8px; }
  #navbar .ep-navigation__mobile-actions .ep-navigation__icon-link svg { display: block; }
  #navbar .ep-navigation__mobile-actions .ep-navigation__account-label { display: none; }
  #navbar .ep-navigation__top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  #navbar.ep-navigation #block-search-form { min-width: 0; max-width: none; }
  #navbar.ep-navigation #search-block-form input.form-text { font-size: 16px; }
  #navbar .ep-navigation__toggle { display: block; min-height: 44px; padding: 8px 10px; background: transparent; color: #fff; border: 1px solid #81949c; border-radius: 5px; }
  #navbar .ep-navigation__panel { display: none; grid-column: 1 / -1; width: 100%; margin: 0; padding: 8px 0; }
  #navbar .ep-navigation__panel.is-open { display: flex; flex-direction: column; align-items: stretch; }
  #navbar .ep-navigation__dropdown-links { position: static; max-width: none; min-width: 0; box-shadow: none; }
  #navbar .ep-navigation__dropdown summary { padding: 12px; }
  #navbar a.ep-navigation__contact { padding: 12px; }
  #navbar a.ep-navigation__buy { text-align: center; }
  #navbar .ep-navigation__categories { gap: 20px; }
}
@media (max-width: 420px) {
  #navbar.ep-navigation > .container-fluid,
  #navbar.ep-navigation > .container { padding-left: 8px; padding-right: 8px; }
  #navbar.ep-navigation .navbar-header { gap: 4px; }
  #navbar .ep-navigation__mobile-actions { gap: 0; }
  #navbar .ep-navigation__mobile-actions a.ep-navigation__buy { padding-left: 7px; padding-right: 7px; }
  #navbar .ep-navigation__top { grid-template-columns: minmax(0, 1fr) auto; }
  #navbar.ep-navigation #block-search-form { grid-column: 1 / -1; }
  #navbar.ep-navigation #block-locale-language { justify-self: start; }
  #navbar .ep-navigation__toggle { justify-self: end; }
}
/* Desktop refinements. */
@media (min-width: 992px) {
  #navbar.ep-navigation .logo { line-height: 0; }
  #navbar.ep-navigation .logo img { display: block; width: 230px; max-width: none; max-height: none; height: auto; margin: 0; }
  #navbar.ep-navigation #block-search-form { flex: 0 1 220px; max-width: 220px; }
  #navbar.ep-navigation #search-block-form input.form-text,
  #navbar.ep-navigation #search-block-form .input-group-btn button { height: 40px; }
  #navbar.ep-navigation .language-switcher-locale-url a { height: 40px; min-height: 40px; }
  #navbar .ep-navigation__account a.ep-navigation__icon-link { display: flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 8px; border-radius: 5px; }
  #navbar .ep-navigation__icon-link svg { display: block; }
  #navbar .ep-navigation__account-label { display: none; }
  #navbar .ep-navigation__icon-link:hover { background: #49616a; }
}
