/* ==========================================================================
   Crystal Brand — Mobile Navigation & Bottom Bar
   Dusty Rose — Cairo Typography — Ivory Glass
   ========================================================================== */

/* ─── Sticky Bottom Navigation Bar ───────────────────────────────────────── */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(232, 209, 216, 0.6);
  box-shadow: 0 -3px 16px rgba(184, 117, 137, 0.05);
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 6px;
}

/* ─── Nav Item ────────────────────────────────────────────────────────────── */
.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #A3969E;               /* warm muted gray when inactive             */
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 500;             /* medium — inactive label weight            */
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  background: transparent;
  user-select: none;
}

.bottom-nav-item .nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.bottom-nav-item .nav-icon-wrap i {
  font-size: 18px;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ─── Active State — Dusty Rose ───────────────────────────────────────────── */
.bottom-nav-item.active {
  color: #B87589;               /* brand dusty rose                          */
  font-weight: 700;             /* bold when active                          */
}

.bottom-nav-item.active .nav-icon-wrap i {
  color: #B87589;
  transform: translateY(-2px);
}

/* Subtle indicator dot */
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 14px;
  height: 3px;
  background: #B87589;
  border-radius: 9999px;
  box-shadow: 0 0 6px rgba(184, 117, 137, 0.45);
}

/* ─── Cart Tab (Floating Elevated Style) ──────────────────────────────────── */
.bottom-nav-item.cart-tab .nav-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, #B87589 0%, #9E586C 100%);
  border: 2px solid rgba(232, 209, 216, 0.6);
  color: #FFFFFF;
  margin-top: -20px;
  box-shadow: 0 4px 14px rgba(184, 117, 137, 0.28);
}

.bottom-nav-item.cart-tab .nav-icon-wrap i {
  color: #FFFFFF !important;
  font-size: 17px;
}

.bottom-nav-item.cart-tab.active .nav-icon-wrap {
  background: linear-gradient(140deg, #9E586C 0%, #7A3E50 100%);
  box-shadow: 0 4px 14px rgba(122, 62, 80, 0.3);
}

.bottom-nav-item.cart-tab.active::after {
  display: none;
}

/* ─── Counter Badges ──────────────────────────────────────────────────────── */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #B87589;          /* dusty rose badge                          */
  color: #FFFFFF;
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(184, 117, 137, 0.30);
}

/* ─── Mobile Drawers & Bottom Sheets ──────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(48, 39, 45, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .mobile-drawer-overlay {
  opacity: 1;
}

.mobile-drawer-content {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(184, 117, 137, 0.09);
  border-top: 1px solid rgba(232, 209, 216, 0.55);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateY(0);
}

/* Grab handle */
.drawer-handle {
  width: 36px;
  height: 3.5px;
  background: rgba(232, 209, 216, 0.80);
  border-radius: 9999px;
  margin: 10px auto 4px;
}

/* ─── Quick View Modal ────────────────────────────────────────────────────── */
.quick-view-dialog {
  width: 92%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(184, 117, 137, 0.16);
  border: 1px solid rgba(232, 209, 216, 0.5);
  margin: auto;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.mobile-drawer.open .quick-view-dialog {
  transform: scale(1);
}
