/* LOMA editorial mega menu: intentionally distinct from icon-tile reference menus. */
@media (min-width: 901px) {
  .mega-menu-dropdown {
    transform: none !important;
    transition: opacity .14s ease, visibility .14s ease !important;
  }
  .has-mega-menu:hover .mega-menu-dropdown,
  .has-mega-menu:focus-within .mega-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .mega-menu-card {
    align-items: stretch !important;
    gap: 28px !important;
    padding: 24px 28px !important;
    height: 338px !important;
    min-height: 338px !important;
    border-radius: 10px !important;
    border-color: #DDE7F0 !important;
    box-shadow: 0 14px 34px rgba(11, 44, 77, .11) !important;
  }

  .mega-menu-left {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 30px !important;
    align-content: center;
  }

  .mega-menu-item {
    min-width: 0;
    min-height: 50px;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #F0F4EE !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    transform: none !important;
    transition: color .14s ease, background-color .14s ease !important;
  }

  .mega-menu-item:last-child { border-bottom-color: transparent !important; }
  .mega-menu-item:hover,
  .mega-menu-item:focus-visible,
  .mega-menu-item.item-current {
    border-bottom-color: #F0F4EE !important;
  }
  .mega-menu-item:last-child:hover,
  .mega-menu-item:last-child:focus-visible,
  .mega-menu-item:last-child.item-current {
    border-bottom-color: transparent !important;
  }
  .mega-menu-item img { display: none !important; }

  .mega-menu-item::before {
    content: '';
    width: 22px;
    height: 22px;
    background: center / contain no-repeat url('/assets/icons/menu-company.svg?v=20260917');
  }
  .mega-menu-item:nth-child(2)::before { background-image: url('/assets/icons/menu-factory.svg?v=20260917'); }
  .mega-menu-item:nth-child(3)::before { background-image: url('/assets/icons/menu-dealer.svg?v=20260917'); }
  .mega-menu-item:nth-child(4)::before { background-image: url('/assets/icons/menu-criteria.svg?v=20260917'); }
  .mega-menu-item:nth-child(5)::before { background-image: url('/assets/icons/menu-packaging.svg?v=20260917'); }
  .mega-menu-item:nth-child(6)::before { background-image: url('/assets/icons/menu-care.svg?v=20260917'); }
  .mega-menu-item:nth-child(7)::before { background-image: url('/assets/icons/menu-careers.svg?v=20260917'); }
  .mega-menu-item:nth-child(8)::before { background-image: url('/assets/icons/menu-documents.svg?v=20260917'); }
  .mega-menu-item:nth-child(9)::before { background-image: url('/assets/icons/menu-affiliate.svg?v=20260926'); }

  .mega-menu-item::after {
    content: '›' !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: #8E9B89;
    font-size: 21px;
    line-height: 1;
    justify-self: end;
  }

  .mega-menu-item span {
    color: #334431 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }
  .mega-menu-item span br { display: none; }
  .mega-menu-item:hover span,
  .mega-menu-item.item-current span { color: #20351F !important; }
  .mega-menu-item:hover::after,
  .mega-menu-item.item-current::after { color: #cb663a !important; transform: translateX(2px) !important; }

  .mega-menu-divider {
    width: 1px !important;
    height: auto !important;
    background: #E3EBF3 !important;
  }

  .mega-menu-right {
    width: 34% !important;
    max-width: 360px !important;
  }
  .mega-menu-right a {
    position: relative;
    height: 288px !important;
    min-height: 288px;
    max-height: 288px;
    border-radius: 8px !important;
    background: #eef2e9;
  }
  .mega-menu-right a::after {
    content: attr(data-caption) '  →';
    position: absolute;
    inset: auto 0 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(16, 37, 11, .88));
    color: #fff;
    font-family: 'SVN-Gilroy', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
  }
  .mega-menu-right img {
    width: 100% !important;
    height: 288px !important;
    min-height: 288px;
    max-height: 288px;
    object-fit: cover;
    border-radius: 8px !important;
    opacity: 1;
    transition: transform .2s ease !important;
  }
}
