/* Shared Global Navigation & Floating Cart Responsive Styles */

/* Mobile Hamburger Menu Button */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius-md, 10px);
  padding: 7px 10px;
  font-size: 24px;
  color: var(--primary, #001A4D);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.nav-toggle-btn:hover {
  background: var(--surface-hover, #F8FAFC);
  border-color: var(--accent, #B89F6B);
}

/* Mobile Navigation Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 2px solid var(--accent, #B89F6B);
  box-shadow: 0 12px 30px rgba(0, 26, 77, 0.12);
  z-index: 99;
  padding: 16px 20px 24px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  flex-direction: column;
  gap: 12px;
  animation: navSlideDown 0.25s ease;
}

.mobile-menu-drawer.active {
  display: flex;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 10px);
  color: var(--text, #0F172A);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  background: rgba(184, 159, 107, 0.12);
  color: var(--primary, #001A4D);
  font-weight: 700;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light, #F1F5F9);
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Bottom-Left Cart Bubble */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #001A4D 0%, #002B80 100%);
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 26, 77, 0.35), 0 2px 8px rgba(184, 159, 107, 0.3);
  border: 2px solid var(--accent, #B89F6B);
  z-index: 999;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.floating-cart-btn.active {
  display: flex;
  animation: popCart 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 26, 77, 0.45), 0 4px 14px rgba(184, 159, 107, 0.5);
  color: #FFFFFF;
}

.floating-cart-btn ion-icon {
  font-size: 26px;
  color: #FDE047;
}

.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@keyframes popCart {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Medium Screens (Tablets / Laptops up to 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }

  .nav-toggle-btn {
    display: inline-flex !important;
  }

  .nav-actions .btn-signin {
    padding: 7px 12px;
    font-size: 13px;
  }

  .nav-actions .btn-primary {
    padding: 7px 14px;
    font-size: 13px;
  }
}

/* Small Screens (Mobile up to 640px) */
@media (max-width: 640px) {
  nav {
    padding: 0 16px !important;
    height: 62px !important;
  }

  .mobile-menu-drawer {
    top: 62px !important;
    padding: 14px 16px 20px !important;
  }

  .nav-logo-text {
    font-size: 16px !important;
  }

  .nav-logo-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  .floating-cart-btn {
    bottom: 18px !important;
    left: 18px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .floating-cart-btn ion-icon {
    font-size: 24px !important;
  }

  .nav-actions .btn-signin {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }

  .nav-actions .btn-primary {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }
}
