
/* ─────────────────────────────────────────────
   Modern Mobile Bottom Nav (Web App Style)
───────────────────────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #f0f0f0;
  z-index: 9999; /* Above WhatsApp icon and Elementor elements */
}

/* Add bottom padding to body when mobile nav is present */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px !important;
  }
  
  /* Ensure Elementor footer doesn't overlap mobile nav */
  .elementor-location-footer {
    margin-bottom: 70px !important;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 25%;
  position: relative;
}

.nav-item .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  position: relative;
}

.nav-item .icon svg {
  width: 22px;
  height: 22px;
  fill: #595B3C;
  transition: fill 0.3s ease;
}

.nav-item .label {
  font-size: 11px;
  color: #595B3C;
  font-weight: 500;
}

/* RTL Arabic Styling */
html[lang="ar"] .mobile-bottom-nav .label {
  font-family: 'Zain', sans-serif !important;
  direction: rtl;
  text-align: right;
  font-size: 14px;
 
}

/* Active State - Perfect Circle */
.nav-item.active .icon::before {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  background-color: #595b3c5d;
  border-radius: 50%;
  z-index: -1;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.nav-item.active .label {
  color: #595B3C;
  font-weight: 600;
}

/* Cart Counter */
.cart-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #d4222e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 3px;
  z-index: 2;
}
