/* ==========================================================================
   MOBILE BOTTOM NAVIGATION DOCK (4 TABS)
   Designed strictly for Iranian Thumb-Zone Ergonomics (Plaza / Zitro / Janebi)
   ========================================================================== */

.mobile-bottom-dock {
  display: none;
  position: relative;
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 16px auto calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
}

[data-theme="dark"] .mobile-bottom-dock {
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.6);
}

.dock-tabs-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.dock-tab-item {
  flex: 1;
  text-align: center;
}

.dock-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
}

.dock-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast);
}

.dock-tab-icon svg {
  width: 20px;
  height: 20px;
}

.dock-tab-label {
  font-size: 0.6875rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  line-height: 1;
}

/* Active State */
.dock-tab-link.active {
  color: #2563eb;
}

.dock-tab-link.active .dock-tab-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.35));
}

.dock-tab-link.active .dock-tab-label {
  font-weight: 800;
  color: #2563eb;
}

/* Badge for Cart Tab */
.dock-badge-counter {
  position: absolute;
  top: -3px;
  right: -4px;
  background: var(--accent-crimson);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg-surface);
}

/* Display dock strictly on mobile viewports <= 768px */
@media (max-width: 768px) {
  .mobile-bottom-dock {
    display: block;
  }
}
