/* =========================================================
   Unified sticky mobile bottom nav (from home-v2)
   Loaded by themes/new + home-v2 layouts
   ========================================================= */

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  inset-inline: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 2px solid #ffe0c2;
  padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(31, 26, 46, 0.08);
  min-height: 60px;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 4.75rem;
  }
}

.mobile-nav .nav-item-mobile,
.nav-item-mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #44403c;
  padding: 0.35rem 0.15rem;
  position: relative;
  transition: color 0.2s;
  min-height: 44px;
}

.mobile-nav .nav-item-mobile.active,
.nav-item-mobile.active {
  color: #9a3412 !important;
  font-weight: 800;
}

.mobile-nav .nav-item-mobile__icon,
.nav-item-mobile__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1;
  margin-bottom: 0;
}

.nav-item-mobile i,
.nav-item-mobile__icon svg {
  font-size: 1.15rem;
  display: block;
  line-height: 1;
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.mobile-nav .nav-item-mobile__count,
.mobile-nav .favorites-count-box,
.mobile-nav .cart-count-box,
.nav-item-mobile__count,
.nav-item-mobile .favorites-count-box,
.nav-item-mobile .cart-count-box {
  position: absolute;
  top: -0.15rem;
  inset-inline-end: -0.7rem;
  right: -5px;
  left: auto;
  min-width: 1rem;
  width: auto;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--hv2-orange, #e67e22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(31, 26, 46, 0.18);
}
