/* Mobile Bottom Navigation V1 Styles */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-brand-color), var(--secondary-brand-color));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 6px 0;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--primary-button-text-color);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
  min-width: 0;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-button-text-color);
}

.mobile-nav-item i {
  font-size: 18px;
  margin-bottom: 0;
}

.mobile-nav-item span:not(.mobile-cart-count):not(.mobile-favorite-count) {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-cart-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--primary-background-color);
  color: var(--primary-text-color);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid var(--primary-brand-color);
}

.mobile-favorite-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--heart-icon-filled-color);
  color: var(--primary-button-text-color);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid var(--primary-brand-color);
}

/* Hide mobile nav initially when fixed action bar is not visible */
.mobile-bottom-nav.hide-when-fixed-bar-hidden {
  display: none;
}

/* Show mobile nav when fixed action bar is visible */
.mobile-bottom-nav.show-with-fixed-bar {
  display: flex;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex; /* Show mobile bottom nav on mobile by default */
  }
  
  /* Hide mobile nav initially when fixed action bar is not visible */
  .mobile-bottom-nav.hide-when-fixed-bar-hidden {
    display: none;
  }
  
  /* Show mobile nav when fixed action bar is visible */
  .mobile-bottom-nav.show-with-fixed-bar {
    display: flex;
  }
}

/* RTL Support */
[dir="rtl"] .mobile-bottom-nav {
  background: linear-gradient(135deg, var(--secondary-brand-color), var(--primary-brand-color));
}

[dir="rtl"] .mobile-cart-count {
  right: auto;
  left: 6px;
}

[dir="rtl"] .mobile-favorite-count {
  right: auto;
  left: 6px;
}

