/* Csak az asztali Márkák megamenü (WordPress menüpont: 3675). */
@media (min-width: 1190px) {
  .c-top-menu__item.menu-item-3675 > .c-top-menu__submenu--columns-4.mb-brand-scroll-ready {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(var(--mb-brand-rows), minmax(35px, auto)) !important;
    grid-auto-flow: column !important;
    align-content: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 150px) !important;
    max-height: calc(100dvh - 150px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
  .c-top-menu__item.menu-item-3675 > .c-top-menu__submenu--columns-4.mb-brand-scroll-ready > li {
    min-width: 0;
    width: auto !important;
  }
}

/* Keep the open dropdown usable while moving the pointer into the panel.
   The existing theme hover behavior remains the default outside this item. */
@media (min-width: 1190px) {
  .c-top-menu__item.menu-item-3675.mb-brand-hover-open > .c-top-menu__submenu--columns-4.mb-brand-scroll-ready {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Invisible hover bridge for any small gap between the trigger and panel. */
  .c-top-menu__item.menu-item-3675 > .c-top-menu__submenu--columns-4.mb-brand-scroll-ready::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
    background: transparent;
    pointer-events: auto;
  }
}
