/* ElectroMosaic unified premium desktop navigation, 2026-07-24 */
@media (min-width: 992px) {
  header #header-top {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  header #header-top .container > .row {
    align-items: center !important;
  }

  header #header-top .em-mobile-header-logo {
    flex: 0 0 24%;
    display: flex;
    width: 24%;
    max-width: 24%;
    align-items: center;
  }

  header #header-top .em-mobile-header-logo > a {
    display: inline-flex;
    align-items: center;
  }

  header #header-top .em-mobile-header-logo img {
    width: 327px !important;
  }

  header #header-top .em-desktop-primary-nav {
    flex: 0 0 45%;
    display: flex !important;
    width: 45%;
    max-width: 45%;
    padding-left: 0;
    align-items: center;
    transform: translateX(16px);
  }

  header #header-top .em-desktop-contact {
    flex: 0 0 31%;
    width: 31%;
    max-width: 31%;
  }

  header #header-top .header-top-menu {
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 6px;
    align-items: center;
    justify-content: center;
    gap: 8.112px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #f5f6f7;
    box-shadow: 0 4px 15px rgba(24, 47, 71, .075);
    white-space: nowrap;
    transform: none;
  }

  header #header-top .header-top-menu li,
  header #header-top .header-top-menu li:first-child {
    margin: 0 !important;
    padding: 0;
    font-weight: 550;
  }

  header #header-top .header-top-menu a {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #263746;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -.01em;
    opacity: 1;
    transform: none;
    transition:
      color 180ms ease,
      background-color 180ms ease;
  }

  header #header-top .header-top-menu .em-top-nav-label,
  header #header-top .header-top-menu a:hover .em-top-nav-label,
  header #header-top .header-top-menu a:focus-visible .em-top-nav-label,
  header #header-top .header-top-menu a[aria-current="page"] .em-top-nav-label {
    color: inherit;
    font-weight: inherit;
    transform: none;
  }

  header #header-top .header-top-menu a::after {
    content: none;
  }

  header #header-top .header-top-menu a:hover,
  header #header-top .header-top-menu a:focus-visible {
    border: 0;
    background: #edf2f7;
    color: var(--header_text_hover);
    box-shadow: none;
    font-size: 15px;
    font-weight: 550;
    opacity: 1;
    transform: none;
  }

  header #header-top .header-top-menu a[aria-current="page"] {
    border: 0;
    background: #eaf3fb;
    color: var(--header_text_hover);
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    opacity: 1;
    transform: none;
  }

  header #header-top .header-top-menu a:focus-visible {
    outline: 2px solid rgba(2, 62, 138, .28);
    outline-offset: 2px;
  }

  header #header-top .em-nav-home-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    align-self: center;
    transform: translateY(-.5px);
  }

  header #header-top .em-nav-home-icon path {
    fill: none !important;
    stroke: currentColor !important;
  }

  header #header-top .header-top-menu .em-b2b-badge {
    display: none;
  }

  header #header-top .main-phone {
    font-size: 23px;
  }
}

@media (min-width: 1100px) {
  header #header-top .container > .row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 16px;
  }

  header #header-top .em-mobile-header-logo {
    width: auto;
    max-width: none;
    justify-self: start;
  }

  header #header-top .em-desktop-primary-nav {
    width: auto;
    max-width: none;
    padding: 0;
    justify-self: center;
    transform: translateY(2px);
  }

  header #header-top .em-desktop-contact {
    width: auto;
    max-width: none;
    justify-self: end;
  }
}

@media (min-width: 992px) and (max-width: 1099.98px) {
  header #header-top .header-top-menu a,
  header #header-top .header-top-menu a:hover,
  header #header-top .header-top-menu a:focus-visible,
  header #header-top .header-top-menu a[aria-current="page"] {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  header #header-top .em-desktop-primary-nav {
    transform: translate(24px, 2px);
  }
}

@media (min-width: 1400px) {
  header #header-top .em-desktop-primary-nav {
    transform: translate(24px, 2px);
  }
}

@media (min-width: 1600px) {
  header #header-top .em-desktop-primary-nav {
    transform: translate(24px, 2px);
  }
}

@media (min-width: 1200px) {
  header #header-top .header-top-menu li:first-child a {
    padding-right: 18px;
    padding-left: 18px;
    gap: 10px;
  }

  header #header-top .em-nav-home-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  header #header-top .em-mobile-header-logo img {
    width: 313px !important;
  }

  header #header-top .header-top-menu {
    gap: 4.056px;
    padding: 5px;
  }

  header #header-top .header-top-menu a,
  header #header-top .header-top-menu a:hover,
  header #header-top .header-top-menu a:focus-visible,
  header #header-top .header-top-menu a[aria-current="page"] {
    padding-right: 10px;
    padding-left: 10px;
    gap: 5px;
    font-size: 14px;
  }

  header #header-top .em-nav-home-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

@media (min-width: 992px) and (max-width: 1099.98px) {
  header #header-top .header-top-menu a,
  header #header-top .header-top-menu a:hover,
  header #header-top .header-top-menu a:focus-visible,
  header #header-top .header-top-menu a[aria-current="page"] {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navigation > .container > .row > .col-lg-5 {
    flex: 0 0 calc(41.666667% + 30px);
    width: calc(41.666667% + 30px);
    max-width: calc(41.666667% + 30px);
  }

  .navigation > .container > .row > .col-lg-4 {
    flex: 0 0 calc(33.333333% - 30px);
    width: calc(33.333333% - 30px);
    max-width: calc(33.333333% - 30px);
  }
}

@media (min-width: 1400px) {
  .navigation > .container > .row > .col-lg-5 {
    flex: 0 0 calc(41.666667% + 40px);
    width: calc(41.666667% + 40px);
    max-width: calc(41.666667% + 40px);
  }

  .navigation > .container > .row > .col-lg-4 {
    flex: 0 0 calc(33.333333% - 40px);
    width: calc(33.333333% - 40px);
    max-width: calc(33.333333% - 40px);
  }
}

/* Responsive menu spacing: wide on desktop, compact as zoom reduces viewport width. */
@media (min-width: 992px) and (max-width: 1099.98px) {
  header #header-top .header-top-menu {
    gap: 3.5px;
  }
}

@media (min-width: 1100px) and (max-width: 1199.98px) {
  header #header-top .header-top-menu {
    gap: 6px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  header #header-top .header-top-menu {
    gap: 12px;
  }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
  header #header-top .header-top-menu {
    gap: 14px;
  }
}

@media (min-width: 1600px) {
  header #header-top .header-top-menu {
    gap: 16px;
  }
}

/* High browser zoom / tablet bridge: desktop nav is hidden below 992px. */
@media (min-width: 768px) and (max-width: 991.98px) {
  header #header-top {
    padding: 9px 0 !important;
  }

  header #header-top .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  header #header-top .container > .row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 44px 44px 48px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 8px !important;
  }

  header #header-top .em-mobile-header-cell,
  header #header-top .em-mobile-header-logo {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
  }

  header #header-top .em-mobile-header-menu {
    grid-column: 1 !important;
  }

  header #header-top .em-mobile-header-logo {
    grid-column: 2 !important;
    overflow: hidden !important;
  }

  header #header-top .em-mobile-call-cell {
    grid-column: 3 !important;
  }

  header #header-top .em-mobile-search-cell {
    grid-column: 4 !important;
  }

  header #header-top .em-mobile-cart-cell {
    grid-column: 5 !important;
  }

  header #header-top .em-mobile-header-logo a {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  header #header-top .em-mobile-header-logo img {
    display: block !important;
    width: auto !important;
    max-width: 180px !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  header #header-top .em-mobile-header-menu > .d-flex,
  header #header-top .em-mobile-cart-cell > a.float-end,
  header #header-top .bottom-mobile-menu-item.em-mobile-header-action,
  header #header-top .em-mobile-cart-cell .cart-block-back {
    display: inline-flex !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 48px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  header #header-top .em-mobile-call-button,
  header #header-top .em-mobile-search-toggle {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  header #header-top .header-top-menu a {
    transition: none;
  }
}

/* Mobile brand enlargement: image geometry is unchanged; only its rendered size grows. */
@media (min-width: 351px) and (max-width: 767.98px) {
  header #header-top .em-mobile-header-logo,
  header #header-top .em-mobile-header-logo > a {
    overflow: visible !important;
  }

  header #header-top .em-mobile-header-logo img {
    width: calc(100% + 12px) !important;
    height: auto !important;
    max-width: 187px !important;
    max-height: 35px !important;
    object-fit: contain !important;
  }
}

@media (min-width: 320px) and (max-width: 350px) {
  header #header-top .em-mobile-header-logo,
  header #header-top .em-mobile-header-logo > a {
    overflow: visible !important;
  }

  header #header-top .em-mobile-header-logo img {
    width: calc(100% + 6px) !important;
    height: auto !important;
    max-width: 150px !important;
    max-height: 32px !important;
    object-fit: contain !important;
  }
}

/*
 * Compact mobile edge actions.
 * The visual and touch targets stay at the accessibility-safe 44px minimum.
 * Symmetric grid tracks preserve the brand mark's horizontal centre.
 */
@media (min-width: 351px) and (max-width: 767.98px) {
  header #header-top .container > .row {
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px 44px !important;
  }

  header #header-top .em-mobile-header-logo img {
    width: calc(100% + 8px) !important;
    max-width: 191px !important;
    max-height: 36px !important;
  }

  header #header-top .em-mobile-header-menu > .d-flex,
  header #header-top .em-mobile-cart-cell > a.float-end,
  header #header-top .bottom-mobile-menu-item.em-mobile-header-action,
  header #header-top .em-mobile-cart-cell .cart-block-back {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 11px !important;
  }

  header #header-top .bottom-mobile-menu-item.em-mobile-header-action svg {
    width: 22px !important;
    height: 22px !important;
  }

  header #header-top .em-mobile-cart-cell .cart-icon-wrap,
  header #header-top .em-mobile-cart-cell .cart-qty,
  header #header-top .em-mobile-cart-cell svg.mobile-cart {
    width: 23px !important;
    height: 23px !important;
  }
}

/* Keep the login label typographically aligned with "Каталог товарів". */
.navigation .em-login-button,
.navigation .em-login-button b {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.navigation .em-login-button b {
  line-height: 15px;
}

/* Subtle text-only hover: transform does not affect menu item dimensions. */
header #header-top .header-top-menu .em-top-nav-label {
  display: inline-block;
  transition:
    color 180ms ease,
    -webkit-text-stroke-width 180ms ease;
}

header #header-top .header-top-menu a:hover .em-top-nav-label,
header #header-top .header-top-menu a:focus-visible .em-top-nav-label {
  -webkit-text-stroke-width: .12px;
  -webkit-text-stroke-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  header #header-top .header-top-menu .em-top-nav-label {
    transition: none;
  }

  header #header-top .header-top-menu a:hover .em-top-nav-label,
  header #header-top .header-top-menu a:focus-visible .em-top-nav-label {
    -webkit-text-stroke-width: 0;
  }
}
