/* =========================
   APP BOTTOM BAR (CLEAN)
   ========================= */

.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;

  /* ✅ FORCE visible color */
  background-color: #FFF8F5;

  /* Optional glass effect (supported browsers only) */
  background: rgba(255, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-top: 1px solid #FDE4D8;
  z-index: 9999;
}
.app-nav {
  height: calc(var(--app-bottom-bar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
}


.app-nav a:active {
  transform: scale(0.96);
}
body.app .app-nav {
  background: rgba(255, 248, 245, 0.96) !important;
}

.app-nav a.active::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #FF6B35;
  border-radius: 50%;
  margin-top: 2px;
}


/* each nav item */
.app-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}

/* active */
.app-nav a.active {
  color: #FF6B35;
  font-weight: 600;
}

/* icon wrapper */
.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

/* icon itself */
.icon-wrapper i {
  display: block;
  line-height: 1;
}

/* label text */
.app-nav .label {
  font-size: 11px;
  line-height: 1;
}

/* cart badge */
.badge {
  position: absolute;
  top: -6px;
  right: 0;                  /* ✅ stay inside icon */
  transform: translateX(50%);/* ✅ visually offset */
  background: #FF6B35;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 16px;
   height: 16px;
  line-height: 16px;
  text-align: center;
  display: none;
  box-sizing: border-box;
}

/* BODY */
body {
  overflow-x: hidden;
  padding-bottom: calc(var(--app-bottom-bar-height) + env(safe-area-inset-bottom));
}

/* STICKY HEADER */
#m-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 3000;
  overflow: visible;
}

/* BOTTOM BAR */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--app-bottom-bar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #FDE4D8;
  z-index: 9999;
}

