/* BSG mobile bottom navigation V1. No new fonts; inherits site's Montserrat. */
.bsg-mobile-nav{display:none}
.bsg-mobile-nav [hidden]{display:none!important}
@media(max-width:760px){
  :root{--bsg-mobile-nav-height:80px}
  #app{padding-bottom:calc(var(--bsg-mobile-nav-height,80px) + 12px)}
  html{scroll-padding-bottom:calc(var(--bsg-mobile-nav-height,80px) + 12px)}
  .bsg-mobile-nav{
    position:fixed;inset:auto 0 0;z-index:1200;display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;
    padding:7px max(5px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));
    border-radius:18px 18px 0 0;border-top:1px solid #ddc7ab;
    background:#f3e7d7;box-shadow:0 -6px 22px rgba(56,44,34,.13);
    color:#453429;font-family:inherit;box-sizing:border-box;
  }
  .bsg-mobile-nav *{box-sizing:border-box}
  .bsg-mobile-nav__item{
    position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;
    min-width:0;min-height:64px;gap:2px;padding:1px 0 4px;
    border:0;border-radius:10px;background:transparent;color:inherit;
    font:inherit;text-decoration:none!important;cursor:pointer;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  .bsg-mobile-nav__item:focus-visible{outline:2px solid #8e5238;outline-offset:-1px}
  .bsg-mobile-nav__icon{
    position:relative;width:42px;height:40px;display:flex;justify-content:center;align-items:center;
    color:inherit;border-radius:12px;
  }
  .bsg-mobile-nav__icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
  .bsg-mobile-nav__label{
    display:block;width:100%;min-width:0;padding:0 1px;text-align:center;
    font-size:clamp(9px,2.7vw,11px);font-weight:500;line-height:16px;
    white-space:nowrap;letter-spacing:-.12px;
  }
  .bsg-mobile-nav__item--catalog .bsg-mobile-nav__icon{
    width:45px;height:42px;transform:translateY(-4px);
    background:#8f5135;color:#fff;box-shadow:0 4px 9px rgba(80,42,26,.2);
  }
  .bsg-mobile-nav__item--catalog .bsg-mobile-nav__icon svg{width:25px;height:25px}
  .bsg-mobile-nav__item.is-active:not(.bsg-mobile-nav__item--catalog){color:#85482f}
  .bsg-mobile-nav__item.is-active:not(.bsg-mobile-nav__item--catalog) .bsg-mobile-nav__label{
    text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;font-weight:700;
  }
  .bsg-mobile-nav__item--catalog.is-active .bsg-mobile-nav__label{
    color:#78402c;font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;
  }
  .bsg-mobile-nav__item--catalog[aria-expanded="true"] .bsg-mobile-nav__icon{background:#63311f}
  .bsg-mobile-nav__item--catalog[aria-expanded="true"] .bsg-mobile-nav__label{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
  .bsg-mobile-nav__badge{
    position:absolute;top:0;right:0;transform:translate(20%,-13%);
    display:flex;align-items:center;justify-content:center;
    min-width:17px;height:17px;padding:0 4px;border-radius:10px;
    font-family:inherit;font-size:10px;line-height:1;font-weight:700;
    background:#8f5135;color:#fff;border:1px solid #f3e7d7;
  }
  /* The existing Mega Menu is a modal overlay. Reserve the bottom bar area in its scroll surface. */
  .bsg-mega:not([hidden]) .bsg-mega__container{
    max-height:calc(100dvh - var(--bsg-mega-top,82px) - var(--bsg-mobile-nav-height,80px) - 4px)!important;
  }
  .bsg-mega:not([hidden]) .bsg-mega__surface{max-height:inherit}
  /* Native dialogs and the existing search overlay must own the screen/keyboard. */
  body.bsg-mobile-nav--dialog-open .bsg-mobile-nav,
  body.bsg-mobile-nav--typing .bsg-mobile-nav,
  body:has(dialog[open]) .bsg-mobile-nav{display:none!important}
}
@media(min-width:761px){.bsg-mobile-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){.bsg-mobile-nav *{transition:none!important}}

/* BSG MOBILE/MEGA V2.8 — bottom navigation follows Voyager LEFT-panel background. */
@media(max-width:760px) {
  #bsg-mobile-nav.bsg-mobile-nav {
    background:var(--bsg-mobile-bottom-bg,#EAD9BF) !important;
    color:var(--bsg-mobile-bottom-text,#382C22);
    border-top-color:#b9a58c;
  }
  #bsg-mobile-nav .bsg-mobile-nav__badge {border-color:var(--bsg-mobile-bottom-bg,#EAD9BF)}
}
