.ah-mobile-toggle[hidden] { display: none; }
.ah-mobile-toggle, .ah-mobile-close { border: 0; background: transparent; color: inherit; min-width: 44px; min-height: 44px; cursor: pointer; }
.ah-mobile-navigation { margin: 0; padding: 16px; height: 100dvh; max-height: 100dvh; width: min(420px, 90vw); max-width: 90vw; border: 0; overflow-y: auto; color: #172b3a; background: #fff; }
.ah-mobile-navigation::backdrop { background: rgb(0 0 0 / 45%); }
.ah-mobile-close { display: block; margin-left: auto; font-size: 32px; }
.ah-menu-open { overflow: hidden; }
.ah-mobile-navigation .ah-header__nav { display: flex; flex-direction: column; height: auto; overflow: visible; gap: 4px; }
.ah-mobile-navigation .ah-header__nav-item { display: block; }
.ah-mobile-navigation .ah-header__nav-link { min-height: 48px; white-space: normal; padding: 12px; }
.ah-mobile-navigation .ah-header__nav-chevron { display: none; }
.ah-mobile-navigation .ah-mega-menu { display: none !important; }
.ah-mobile-navigation__categories { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ddd; }
.ah-mobile-navigation .ah-header__subcats-inner, .ah-mobile-navigation .ah-categorynav__links { display: flex; flex-direction: column; overflow: visible; background: #fff; padding: 0; }
.ah-mobile-navigation .ah-header__subcats-inner::before { display: none; }
.ah-mobile-navigation .ah-header__subcat { width: 100%; min-height: 44px; white-space: normal; padding: 12px; margin: 0; }
@media (max-width: 1023.98px) {
 .ah-header .ah-header__main-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
 .ah-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
 .ah-header__brand .logo { max-width: min(150px, 100%); height: auto; }
}

.ah-mobile-expand { display: none; }
.ah-mobile-navigation .ah-header__nav-item { position: relative; }
.ah-mobile-navigation .ah-header__nav-link { padding-right: 48px; }
.ah-mobile-navigation .ah-mobile-expand { display: block; position: absolute; right: 0; top: 0; min-width: 44px; min-height: 48px; border: 0; background: transparent; font-size: 24px; }
.ah-mobile-navigation .ah-mobile-expanded .ah-mega-menu { display: block !important; position: static; width: 100%; min-width: 0; max-height: none; padding: 12px; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
.ah-mobile-navigation .ah-mega-menu__columns, .ah-mobile-navigation .ah-mega-menu__featured-groups, .ah-mobile-navigation .ah-mega-menu__children { display: block; }
.ah-mobile-navigation .ah-mega-menu__compact-groups { column-count: 1; }

/* Mobile drawer: quiet surfaces, generous touch targets, brand accents. */
.ah-mobile-navigation {
  box-sizing: border-box;
  padding: 0 20px max(28px, env(safe-area-inset-bottom));
  width: min(420px, 92vw);
  max-width: 92vw;
  border-radius: 0 24px 24px 0;
  box-shadow: 16px 0 80px rgb(17 21 24 / 18%);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #dfe5ea transparent;
}
.ah-mobile-navigation[open] { animation: ah-drawer-enter 220ms ease-out; }
.ah-mobile-navigation::backdrop { background: rgb(17 28 36 / 48%); backdrop-filter: blur(5px); }
.ah-mobile-navigation__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: max(20px, env(safe-area-inset-top)) 0 20px;
  margin-bottom: 16px;
  background: #fff;
  border-bottom: 1px solid #edf0f2;
}
.ah-mobile-navigation__title { color: #171c20; font-size: 24px; font-weight: 750; letter-spacing: -.7px; }
.ah-header .ah-mobile-close { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; background: #f2f5f7; color: #45535d; font-size: 28px; line-height: 1; }
.ah-mobile-navigation .ah-header__nav { gap: 6px; }
.ah-mobile-navigation .ah-header__nav-link { padding: 16px 58px 16px 16px; min-height: 56px; font-size: 17px; font-weight: 650; letter-spacing: -.25px; color: #171c20; border-radius: 12px; }
.ah-mobile-navigation .ah-header__nav-link:hover,
.ah-mobile-navigation .ah-mobile-expanded > .ah-header__nav-link { background: #f4f7f9; color: #0879ad; }
.ah-header .ah-mobile-navigation .ah-mobile-expand { top: 7px; right: 7px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 10px; background: #f2f5f7; color: #63717b; font-size: 0; }
.ah-mobile-expand::after { content: ''; display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
.ah-mobile-expand[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.ah-mobile-navigation__categories { margin: 24px 0 0; padding-top: 24px; border-color: #edf0f2; }
.ah-mobile-navigation__label { margin: 0 16px 12px; color: #78858e; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ah-mobile-navigation .ah-categorynav__links { gap: 3px; width: 100%; }
.ah-mobile-navigation .ah-header__subcat { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; min-height: 48px; border: 0; border-radius: 10px; color: #45535d; font-size: 14px; font-weight: 550; line-height: 1.5; box-shadow: none; }
.ah-mobile-navigation .ah-header__subcat::after { content: '›'; margin-left: 16px; font-size: 20px; color: #a9b3ba; }
.ah-mobile-navigation .ah-header__subcat:hover,
.ah-mobile-navigation .ah-header__subcat.is-current { background: #f2f7fa; color: #0879ad; box-shadow: none; }
.ah-mobile-navigation .ah-header__subcat--more { margin-top: 12px; background: #fff3eb; color: #b94a10; font-weight: 650; }
.ah-mobile-navigation .ah-header__subcat--more::after { color: #d46a30; }
.ah-mobile-navigation .ah-mobile-expanded .ah-mega-menu { margin: 8px 0; padding: 12px; border: 0; border-radius: 14px; background: #f6f8fa; }
.ah-mobile-navigation .ah-mega-menu__group,
.ah-mobile-navigation .ah-mega-menu__group--featured { padding: 12px 4px; margin: 0; border: 0; border-radius: 0; background: transparent; }
.ah-mobile-navigation .ah-mega-menu__group-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ah-mobile-navigation .ah-mega-menu__child { display: block; padding-block: 10px; line-height: 1.5; }
.ah-mobile-navigation :is(a, button):focus-visible,
.ah-mobile-toggle:focus-visible { outline: 3px solid #0879ad; outline-offset: 3px; }
@media (max-width: 1023.98px) {
 .ah-header .ah-mobile-toggle { width: 44px; height: 44px; padding: 0; border-radius: 12px; background: #f2f5f7; color: #171c20; }
 .ah-header .ah-mobile-toggle .material-icons { font-size: 23px; }
 .ah-header .ah-header__main-inner { column-gap: 10px; }
}
@keyframes ah-drawer-enter { from { transform: translateX(-100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
 .ah-mobile-navigation[open] { animation: none; }
 .ah-mobile-expand::after { transition: none; }
}

/* Compact category links inside the mobile drawer. */
.ah-mobile-navigation .ah-categorynav__links { gap: 0; }
.ah-mobile-navigation .ah-categorynav__links .ah-header__subcat { min-height: 44px; padding-block: 8px; }
.ah-mobile-navigation .ah-categorynav__links .ah-header__subcat::before { content: none; display: none; }

/* Reserve the directory link and only show complete category links. */
.ah-categorynav__links > .ah-header__subcat[hidden] { display: none; }
@media (min-width: 1024px) {
  .ah-header__subcats-inner .ah-categorynav__links { overflow: hidden; }
  .ah-categorynav__links > .ah-header__subcat { flex: 0 0 auto; }
  .ah-header__subcats-inner > .ah-header__subcat--more { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .ah-header__subcats-inner .ah-categorynav__links > .ah-header__subcat:first-child {
    padding-left: 18px;
  }
}

/* Keep the cart recognizable when its text label is visually hidden. */
@media (max-width: 1120px) {
  .ah-header .ah-header__cart span.material-icons {
    position: static !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    border: 0 !important;
    flex: 0 0 22px;
    font-size: 22px;
  }
  .ah-header .ah-header__cart { gap: 7px; padding-inline: 10px; }
}
