/* Front-end enhancements for Hummingbird's existing menu markup. */
#top-menu li.mj-badge-new>a::after,#top-menu li.mj-badge-bestseller>a::after,#top-menu li.mj-badge-seasonal>a::after{display:inline-block;margin-inline-start:.4rem;padding:.08rem .32rem;font-size:.64em;font-weight:600;border-radius:.35rem;background:#e5f2e9;color:#26634e;vertical-align:middle}
#top-menu li.mj-badge-new>a::after{content:"NEW"}
#top-menu li.mj-badge-bestseller>a::after{content:"★"}
#top-menu li.mj-badge-seasonal>a::after{content:"●"}
#top-menu li.mj-column>a,#top-menu li.mj-column>.mj-menu-heading{font-weight:700;color:#215c45}
#top-menu .mj-menu-heading{display:block;padding:var(--bs-dropdown-item-padding-y,.25rem) var(--bs-dropdown-item-padding-x,1rem);cursor:default}
#top-menu li.mj-separator{list-style:none;margin:.35rem .8rem;border-top:1px solid #e0e9e3;min-height:1px}
#mobileMenu .mj-menu-heading{display:block;padding:.7rem 1rem;font-weight:700}
#mobileMenu li.mj-separator{list-style:none;border-top:1px solid #e0e9e3;margin:5px 1rem}
#mobileMenu button.main-menu__toggle-child{background:transparent;border:0;cursor:pointer}
#mobileMenu button.main-menu__toggle-child:focus-visible{outline:2px solid #20624c;outline-offset:-2px}


/* v0.1.4 — managed navigation layout (desktop >= 1400px).
   Kept in the module: ps_mainmenu remains unchanged when this module is disabled. */
@media (min-width: 1400px) {
  .header-bottom .mj-menu--managed {
    min-width: 0;
    flex: 1 1 0;
  }

  .mj-menu--managed .js-menu-desktop {
    min-width: 0;
    width: 100%;
  }

  /* Keep all top-level items on one line, including Auctions.
     Hummingbird defaults to flex-wrap:wrap and 1rem horizontal padding. */
  .mj-menu--managed #top-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: clamp(0px, .18vw, 4px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mj-menu--managed #top-menu > li {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }

  .mj-menu--managed #top-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 62px;
    padding: .75rem clamp(.28rem, .48vw, .62rem);
    font-size: clamp(.83rem, .89vw, .94rem);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
  }

  .mj-menu--managed #top-menu > li:hover > a,
  .mj-menu--managed #top-menu > li:focus-within > a {
    color: #20604a;
    border-bottom-color: #277858;
  }

  .mj-menu--managed #top-menu > li > a.dropdown-toggle::after {
    margin-left: .35rem;
    vertical-align: middle;
  }

  /* The new mega columns are explicit sections, not recursive Bootstrap dropdowns.
     This prevents links escaping their respective group. */
  .mj-menu--managed #top-menu > li > .mj-mega {
    top: 100%;
    padding: 18px 0 22px;
    border-top: 1px solid #e2e8e5;
    border-bottom: 1px solid #dce7e2;
    background-color: #fff;
    box-shadow: 0 14px 28px rgba(24, 46, 36, .13);
    white-space: normal;
    max-height: min(78vh, 680px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mj-menu--managed .mj-mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 24px 12px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .mj-menu--managed .mj-mega__column {
    display: block;
    min-width: 0;
    padding: 2px clamp(10px, 1.05vw, 18px) 4px;
    border-left: 1px solid #e9efeb;
  }

  .mj-menu--managed .mj-mega__column:first-child {
    border-left: none;
  }

  .mj-menu--managed .mj-mega__heading {
    margin: 0 0 10px;
    padding: 0 0 11px;
    border-bottom: 1px solid #dce8e1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #343a40;
  }

  /* Section titles are always non-interactive; only list entries are links. */
  .mj-menu--managed .mj-mega__heading span {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: default;
  }

  .mj-menu--managed .mj-mega__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mj-menu--managed .mj-mega__item,
  .mj-menu--managed .mj-mega__subheading {
    display: block;
    min-width: 0;
    margin: 0;
    list-style: none;
  }

  .mj-menu--managed .mj-mega__link {
    display: block;
    padding: 7px 9px;
    border-radius: 5px;
    color: #343e3c;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.36;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
  }

  .mj-menu--managed .mj-mega__item > .mj-mega__link:hover,
  .mj-menu--managed .mj-mega__item > .mj-mega__link:focus-visible {
    color: #17583f;
    background: #eef3f7;
    text-decoration: none;
    outline-offset: 1px;
  }

  .mj-menu--managed .mj-mega__subheading {
    margin-top: 8px;
    padding: 6px 9px 3px;
    color: #566d60;
    font-size: 12px;
    font-weight: 700;
  }

  .mj-menu--managed .mj-mega__separator {
    margin: 7px 8px;
    border-top: 1px solid #e2eae5;
    list-style: none;
  }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
  .mj-menu--managed #top-menu > li > a {
    padding-inline: .28rem;
    font-size: .83rem;
  }

  .mj-menu--managed .mj-mega__grid {
    gap: 14px 8px;
  }
}
