/* Mobile bottom nav (only mobile) */
@media (max-width: 991.98px) {
  :root {
    --mnav-h: 56px;
    --mnav-safe: env(safe-area-inset-bottom, 0px);
    --mnav-total: calc(var(--mnav-h) + var(--mnav-safe));
  }

  body {
    padding-bottom: var(--mnav-total);
  }

  .m-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    height: var(--mnav-h);
    padding-bottom: var(--mnav-safe);
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
  }

  .m-bottom-nav__item {
    position: relative;
    text-decoration: none;
    color: #222;
    display: grid;
    grid-template-rows: 28px 18px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    font-size: 11px;
    line-height: 1;
    padding: 6px 4px;
    -webkit-tap-highlight-color: transparent;
  }

.m-bottom-nav__icon svg{
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.m-bottom-nav__icon svg:not(.m-bottom-nav__brand-home) *{
  fill: currentColor !important;
  stroke: currentColor !important;
}
  .m-bottom-nav__item.is-active {
    color: #224C79; /* можно заменить на ваш бренд-цвет */
  }

  .m-bottom-nav__badge {
    position: absolute;
    top: 6px;
    right: 18%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
  }
}

/* Desktop: no bar, no padding */
@media (min-width: 992px) {
  .m-bottom-nav { display: none; }
}

/* Hide top icons (mobile only) */
@media (max-width: 991.98px) {
  /* Избранное: оставляем в DOM как "якорь" для анимации */
  .third-bottom-header-walp .wishlist-header {
    position: fixed !important;
    left: 0; top: 0; /* потом JS выставит правильные координаты */
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9998 !important;
  }

  /* Корзина: аналогично (якорь для анимации/обновлений) */
  .third-bottom-header-walp .complex-block {
    position: fixed !important;
    left: 0; top: 0;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9998 !important;
  }
}
@media (max-width: 991.98px){

  /* Неактивное состояние */
  .m-bottom-nav__item{
    color: #B8C1CC;   /* мягкий серо-голубой */
  }

  /* Активное */
  .m-bottom-nav__item.is-active{
    color: #224C79;   /* ваш фирменный синий */
  }

}
