/* Mobile bottom navigation: fixed 68px reference bar, shared across store and account pages. */
.mbottom-nav.mb-brand-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  min-height: 68px;
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  border-top: 1px solid color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 78%, #000);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .14);
}

@media (max-width: 767.98px) {
  .mbottom-nav.mb-brand-nav { display: flex; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 768px) {
  .mbottom-nav.mb-brand-nav { display: none; }
}

body.sidebar-open .mbottom-nav.mb-brand-nav { display: none; }

.mbottom-nav.mb-brand-nav .mbottom-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  direction: ltr;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbottom-nav.mb-brand-nav .mb-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  color: #000;
  text-decoration: none;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

.mbottom-nav.mb-brand-nav .mb-item .sb-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  font-style: normal;
  transition: transform .18s ease, background-color .18s ease;
}

.mbottom-nav.mb-brand-nav .mb-item .sb-ico__svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.mbottom-nav.mb-brand-nav .mb-item.is-active .sb-ico {
  transform: translateY(-4px);
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 35%, transparent);
}

html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item.is-active,
body:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item.is-active {
  color: #fff;
}

html.theme-dark .mbottom-nav.mb-brand-nav .mb-item,
body.theme-dark .mbottom-nav.mb-brand-nav .mb-item {
  color: #fff;
}

html.theme-dark .mbottom-nav.mb-brand-nav .mb-item .sb-ico__svg,
body.theme-dark .mbottom-nav.mb-brand-nav .mb-item .sb-ico__svg {
  fill: currentColor;
}

.mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico {
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 35%, transparent);
  outline: 0;
}
.mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:active .sb-ico {
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 35%, transparent);
  outline: 0;
}
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:active .sb-ico,
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico { color: #fff; }


/* Brand-driven focus/tap states: avoid the browser's default navy halo. */
.mbottom-nav.mb-brand-nav .mb-item,
.mbottom-nav.mb-brand-nav .mb-item .sb-ico { -webkit-tap-highlight-color: transparent; }
.mbottom-nav.mb-brand-nav .mb-item.is-active .sb-ico {
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 35%, transparent);
}
.mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:active .sb-ico {
  background: var(--c-primary, var(--c-brand-alt, #087f12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary, var(--c-brand-alt, #087f12)) 35%, transparent);
  outline: 0;
}
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico,
html:not(.theme-dark) .mbottom-nav.mb-brand-nav .mb-item:active .sb-ico { color: #fff; }


/* Follow the active site's header/navigation color; fall back to primary when secondary is unset. */
.mbottom-nav.mb-brand-nav {
  --nav-brand-color: var(--c-secondary, var(--c-primary, var(--c-brand-alt, #087f12)));
  background: var(--nav-brand-color);
  border-top-color: color-mix(in srgb, var(--nav-brand-color) 78%, #000);
}
.mbottom-nav.mb-brand-nav .mb-item.is-active .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:active .sb-ico {
  background: var(--nav-brand-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nav-brand-color) 35%, transparent);
}


/* Search keeps a clear site-brand circle; every pressed/selected nav item gets a soft white bubble. */
.mbottom-nav.mb-brand-nav .mb-item .sb-ico {
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.mbottom-nav.mb-brand-nav .mb-item.mb-search .sb-ico {
  background: var(--c-primary, var(--c-secondary, var(--c-brand-alt, #087f12)));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 6px rgba(0, 0, 0, .12);
}
.mbottom-nav.mb-brand-nav .mb-item.is-active .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:focus .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:focus-visible .sb-ico,
.mbottom-nav.mb-brand-nav .mb-item:active .sb-ico {
  background: rgba(255, 255, 255, .26);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
