/* Header v2 – centered logo, split navigation */
.ec-header.ec-header-v2 {
  --h2-blue: #3474d4;
  --h2-blue-dark: #2b63b8;
  --h2-blue-tint: #f2f6fd;
  --h2-ink: #2c3e50;
  --h2-muted: #6b7c93;
  --h2-line: #e4eaf2;
  background: #fff;
  position: relative;
  z-index: 20;
}

/* Ribbon */
.ec-header-v2 .h2-ribbon {
  background: var(--h2-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.ec-header-v2 .h2-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.ec-header-v2 .h2-ribbon-text {
  opacity: 0.92;
}

.ec-header-v2 .h2-ribbon-social ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-header-v2 .h2-ribbon-social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.ec-header-v2 .h2-ribbon-social ul li a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Main bar */
.ec-header-v2 .h2-bar {
  border-bottom: 1px solid var(--h2-line);
  background: #fff;
}

.ec-header-v2 .h2-bar > .container {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Desktop grid */
.ec-header-v2 .h2-desktop {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
}

.ec-header-v2 .h2-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-decoration: none;
}

.ec-header-v2 .h2-logo img {
  display: block;
  width: auto;
  max-width: 148px;
  max-height: 46px;
  object-fit: contain;
}

.ec-header-v2 .h2-nav {
  display: flex;
  min-width: 0;
}

.ec-header-v2 .h2-nav-left {
  justify-content: flex-end;
}

.ec-header-v2 .h2-nav-right {
  justify-content: flex-start;
}

.ec-header-v2 .h2-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.ec-header-v2 .h2-menu li {
  margin: 0;
  flex: 0 0 auto;
}

.ec-header-v2 .h2-menu > li > a {
  display: block;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--h2-muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.ec-header-v2 .h2-menu > li.active > a,
.ec-header-v2 .h2-menu > li:hover > a {
  color: var(--h2-blue);
  background: var(--h2-blue-tint);
}

.ec-header-v2 .h2-menu > li.dropdown ul.sub-menu {
  border: 1px solid var(--h2-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(52, 116, 212, 0.14);
  padding: 5px;
  min-width: 200px;
}

.ec-header-v2 .h2-menu > li.dropdown ul li a {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h2-ink) !important;
  background: transparent !important;
  border-radius: 6px;
}

.ec-header-v2 .h2-menu > li.dropdown ul li a:hover {
  background: var(--h2-blue-tint) !important;
  color: var(--h2-blue) !important;
}

/* Tools */
.ec-header-v2 .h2-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  border-left: 1px solid var(--h2-line);
}

.ec-header-v2 .st-currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--h2-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.ec-header-v2 .st-currency-toggle::after {
  display: none;
}

.ec-header-v2 .st-currency-toggle:hover {
  background: var(--h2-blue-tint);
  color: var(--h2-blue);
}

.ec-header-v2 .st-currency-label {
  display: none;
}

.ec-header-v2 .st-currency-value {
  font-weight: 700;
  color: var(--h2-blue);
}

.ec-header-v2 .st-currency-caret {
  font-size: 14px;
  color: var(--h2-muted);
  line-height: 1;
}

.ec-header-v2 .st-currency .dropdown-menu {
  border: 1px solid var(--h2-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(52, 116, 212, 0.12);
  padding: 4px;
}

.ec-header-v2 .st-currency .dropdown-item {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

.ec-header-v2 .st-currency .dropdown-item:hover {
  background: var(--h2-blue-tint);
  color: var(--h2-blue);
}

.ec-header-v2 .ec-header-bottons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-header-v2 .ec-header-bottons > * + * {
  margin-left: 0;
  padding-right: 0;
}

.ec-header-v2 .h2-btn,
.ec-header-v2 .ec-header-user .dropdown-toggle,
.ec-header-v2 .ec-header-bottons .ec-header-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  transition: background 0.2s ease;
}

.ec-header-v2 .h2-btn:hover,
.ec-header-v2 .ec-header-user .dropdown-toggle:hover,
.ec-header-v2 .ec-header-bottons .ec-header-btn:hover {
  background: var(--h2-blue-tint);
}

.ec-header-v2 .ec-header-bottons i {
  font-size: 19px !important;
  color: var(--h2-ink) !important;
}

.ec-header-v2 .ec-header-bottons .ec-header-btn:hover i,
.ec-header-v2 .ec-header-user .dropdown-toggle:hover i {
  color: var(--h2-blue) !important;
}

.ec-header-v2 .ec-header-bottons .ec-header-btn .ec-header-count {
  top: 2px;
  right: 2px;
  bottom: auto;
  background: var(--h2-blue);
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
}

.ec-header-v2 .ec-header-bottons .ec-header-btn.ec-side-toggle.d-lg-none {
  display: none !important;
}

.ec-header-v2 .ec-header-user .dropdown-menu {
  border: 1px solid var(--h2-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(52, 116, 212, 0.12);
  padding: 4px;
}

.ec-header-v2 .ec-header-user .dropdown-menu .dropdown-item {
  border-radius: 6px;
  text-transform: none;
  font-weight: 600;
  font-size: 13px;
}

.ec-header-v2 .ec-header-user .dropdown-menu .dropdown-item:hover {
  background: var(--h2-blue-tint);
  color: var(--h2-blue);
}

/* Mobile */
.ec-header-v2 .h2-mobile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.ec-header-v2 .h2-mobile-logo {
  justify-self: center;
}

.ec-header-v2 .h2-mobile-logo img {
  max-width: 132px;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.ec-header-v2 .h2-mobile-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ec-header-v2 .h2-btn--menu i {
  font-size: 20px;
  color: var(--h2-ink);
}

/* Sticky */
.ec-header-v2 .sticky-nav.menu_fixed,
.ec-header-v2 .sticky-nav.menu_fixed_up {
  box-shadow: 0 4px 18px rgba(52, 116, 212, 0.1);
}

/* Large screens – a bit more breathing room */
@media (min-width: 1200px) {
  .ec-header-v2 .h2-menu > li > a {
    padding: 8px 13px;
    font-size: 13.5px;
  }

  .ec-header-v2 .h2-logo img {
    max-width: 160px;
  }
}

/* Tight desktops – shorter labels already in split menus */
@media (min-width: 992px) and (max-width: 1199px) {
  .ec-header-v2 .h2-menu > li > a {
    padding: 8px 8px;
    font-size: 12px;
  }

  .ec-header-v2 .h2-logo img {
    max-width: 120px;
    max-height: 40px;
  }
}
