/* Installation Booking Page Styles */

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}
/* ===== NAVBAR COMPONENTS ===== */

/* Banner */
.shipping-banner {
  background: linear-gradient(90deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-md) 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  width: 100%; /* Full width */
  margin: 0; /* Remove any margin */
  box-sizing: border-box; /* Include padding in width calculation */
}

.shipping-container {
  max-width: 100%;
  margin: 0;
  padding: 0 var(--spacing-lg);
}

.shipping-text {
  margin: 0;
}

/* Main Header */
.navbar-main {
  background-color: var(--white);
  padding: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  width: 100%; /* Full width */
  margin: 0; /* Remove any margin */
  box-sizing: border-box; /* Include padding in width calculation */
}

.navbar-main-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  gap: var(--spacing-2xl);
  min-height: 60px; /* Consistent height for alignment */
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 45px;
  width: auto;
}

/* Search Component */
.navbar-search {
  flex: 1;
  max-width: 800px; /* Increased for large screens */
  display: flex;
  align-items: center;
  margin: 0 var(--spacing-xl);
}

/* Icons Section - Perfectly Aligned */
.navbar-icons {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  height: 60px; /* Match container height */
}

.navbar-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-700);
  transition: color var(--transition-normal);
  padding: 0; /* Remove padding for better control */
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  position: relative;
}

/* Simple color change hover - NO background, NO transform */
.navbar-icon a:hover {
  color: var(--primary-blue);
}

/* Icon styles - perfectly centered */
.navbar-icon i {
  font-size: 20px;
  color: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Hide icon labels (text) */
.icon-label {
  display: none;
}

/* Profile avatar styling - perfectly centered */
.navbar-icon .profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

/* Account Dropdown Container */
.account-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-dropdown a,
.account-dropdown button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  position: relative;
  text-decoration: none;
  color: var(--gray-700);
  transition: color var(--transition-normal);
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  color: var(--primary-blue);
}

/* Account Initial Avatar */
.account-initial {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    0 0 0 2px rgba(255, 255, 255, 1),
    0 0 0 4px rgba(59, 130, 246, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.account-dropdown button:hover .account-initial {
  box-shadow: 
    0 6px 16px rgba(59, 130, 246, 0.4),
    0 0 0 2px rgba(255, 255, 255, 1),
    0 0 0 4px rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Cart Link - Ensure proper positioning context */
.cart-link {
  position: relative;
}

/* Cart count badge - perfectly positioned */
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  box-shadow: 
    0 2px 8px rgba(239, 68, 68, 0.4),
    0 0 0 2px var(--white);
  line-height: 1;
  min-width: 20px;
  min-height: 20px;
  transition: all var(--transition-fast);
  pointer-events: none;
}

/* Cart hover effect */
.cart-link:hover .cart-count {
  box-shadow: 
    0 4px 12px rgba(239, 68, 68, 0.5),
    0 0 0 2px var(--white);
  transform: scale(1.1);
}

/* Account Dropdown Menu */
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 0;
  min-width: 260px;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.account-dropdown.open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Account Menu Header */
.account-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--gray-200);
  border-radius: 12px 12px 0 0;
}

.account-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    0 0 0 2px rgba(255, 255, 255, 1),
    0 0 0 4px rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.account-menu-info {
  flex: 1;
  min-width: 0;
}

.account-menu-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-email {
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Account Menu Divider */
.account-menu-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}

.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  border: none;
  background: none;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.account-menu a:hover,
.account-menu button:hover {
  background-color: var(--gray-50);
  color: var(--primary-blue);
}

.account-menu i {
  font-size: 18px;
  width: 18px;
  min-width: 18px;
  text-align: center;
  color: inherit;
  flex-shrink: 0;
}

.logout-btn {
  color: var(--secondary-red) !important;
  border-radius: 0 0 12px 12px !important;
}

.logout-btn:hover {
  background-color: #fef2f2 !important;
  color: var(--secondary-red-dark) !important;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--spacing-xs) / 2 - 1px);
  left: var(--spacing-md);
  right: var(--spacing-md);
  height: 1px;
  background-color: var(--gray-100);
}

.logout-btn:hover {
  background-color: #fef2f2 !important;
  color: var(--secondary-red) !important;
}

/* Cart badge animations */
.cart-count.bounce {
  animation: cartBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBounce {
  0% { 
    transform: scale(1);
  }
  25% {
    transform: scale(1.3) rotate(-5deg);
  }
  50% { 
    transform: scale(0.9) rotate(5deg);
  }
  75% {
    transform: scale(1.15) rotate(-3deg);
  }
  100% { 
    transform: scale(1) rotate(0deg);
  }
}

/* Pulse animation for active cart */
.cart-count.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 2px 8px rgba(239, 68, 68, 0.4),
      0 0 0 2px var(--white);
  }
  50% {
    box-shadow: 
      0 2px 8px rgba(239, 68, 68, 0.4),
      0 0 0 2px var(--white),
      0 0 0 4px rgba(239, 68, 68, 0.2);
  }
}

/* Navigation Menu */
.navbar-menu {
  /* Removed background color and borders */
  width: 100%; /* Full width */
  margin: 0; /* Remove any margin */
  box-sizing: border-box; /* Include padding in width calculation */
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.navbar-menu-container {
  max-width: 100%;
  margin: 0;
  padding: 0 var(--spacing-lg);
}

.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: var(--spacing-xl);
  align-items: center;
  min-height: 50px;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-sm);
  color: var(--gray-700);
  text-decoration: none;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  transition: all var(--transition-normal);
  position: relative;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

/* Hover and focus effects with subtle background */
.nav-link:hover,
.nav-link:focus {
  color: var(--primary-blue);
  background-color: rgba(49, 130, 206, 0.05);
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Remove icons from nav links */
.nav-link i {
  display: none;
}

/* Optional: Add subtle underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: var(--primary-blue);
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: translateX(-50%) scaleX(1);
}

/* Active/Current page indicator */
.nav-link.active {
  color: var(--primary-blue);
  font-weight: var(--font-weight-bold);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Clearance link styling */
#clearance-link {
  color: #dc2626;
  font-weight: var(--font-weight-bold);
  animation: pulse-clearance 2s ease-in-out infinite;
}

#clearance-link::after {
  background-color: #dc2626;
}

#clearance-link:hover,
#clearance-link:focus {
  color: #b91c1c;
  background-color: rgba(220, 38, 38, 0.05);
}

@keyframes pulse-clearance {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

#search-input {
  width: 100%;
  padding: var(--spacing-md) 50px var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md); /* Reduced from var(--radius-lg) */
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  background-color: var(--gray-50);
  transition: border-color var(--transition-normal);
  outline: none;
  height: 48px; /* Fixed height for consistent alignment */
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--primary-blue);
  background-color: var(--white);
}

.search-input::placeholder {
  color: var(--gray-400);
}

/* Search Container */
.search-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Search Button - Properly aligned */
.search-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 16px;
  padding: 0;
  transition: color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
}

.search-button:hover {
  color: var(--primary-blue);
}

.search-button i {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
  z-index: calc(var(--z-navbar) + 10);
}

.suggestions-list {
  padding: 0;
  margin: 0;
}

.suggestion-item {
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: var(--gray-50);
}

.suggestion-icon {
  color: var(--gray-500);
  font-size: 16px;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-900);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-category {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
  margin: 0;
}

.suggestion-price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-blue);
  flex-shrink: 0;
}

.search-suggestions-loading {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.search-suggestions-empty {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

/* Mobile Bottom Navigation - HIDDEN (using hamburger menu instead) */
.mobile-bottom-nav {
  display: none !important; /* Force hide */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-navbar);
  padding: var(--spacing-xs) 0;
}

.mobile-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--gray-600);
  transition: color var(--transition-normal);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  min-width: 60px;
  position: relative;
  cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-blue);
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

.mobile-nav-item span {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Special styling for Home button in center */
.mobile-nav-item.home-center {
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  width: 56px;
  height: 56px;
  min-width: 56px;
  justify-content: center;
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-lg);
  margin: 0 var(--spacing-sm);
  transform: translateY(-8px);
}

.mobile-nav-item.home-center:hover {
  color: var(--white);
  background-color: var(--primary-blue-dark);
}

.mobile-nav-item.home-center i {
  font-size: 24px;
  margin-bottom: 0;
}

.mobile-nav-item.home-center span {
  font-size: 8px;
  margin-top: 2px;
}

/* Mobile nav cart badge */
.mobile-nav-item {
  position: relative;
}

.mobile-nav-item .cart-count {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  min-width: 18px;
  min-height: 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 
    0 2px 8px rgba(239, 68, 68, 0.4),
    0 0 0 2px var(--white);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 400;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Side Menu (Left Slide) */
.mobile-bottom-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background-color: var(--white);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 500;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Smooth scrolling */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-bottom-menu.active {
  transform: translateX(0);
}

.mobile-menu-header.modern {
  padding: 18px 24px 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header .shipping-note {
  position: absolute;
  left: 56px;
  top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  background: transparent;
  padding: 2px 6px;
  border-radius: 6px;
  display: none; /* will show only on small screens via media query */
}

.menu-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 12px;
}
.menu-icon-circle i {
  font-size: 22px;
  color: var(--white);
}
.menu-title-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
}
.mobile-menu-close.modern {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;

}
.close-icon-bg i {
  font-size: 20px;
  color: var(--white);

}


.mobile-menu-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin: 0;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.mobile-menu-title i {
  font-size: 24px;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.mobile-menu-close:active {
  /* subtle press feedback only - no rotation */
  transform: scale(0.95);
}

.mobile-menu-content {
  padding: var(--spacing-lg);
}

.mobile-menu-section {
  margin-bottom: var(--spacing-xl);
}

.mobile-menu-section h3 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--gray-700);
  margin: 0 0 var(--spacing-md) 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: var(--spacing-xs);
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.mobile-menu-links li {
  margin-bottom: 0;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  color: var(--gray-800);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: var(--font-weight-medium);
  background: transparent;
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
  background: var(--gray-100);
  color: var(--primary-blue);
  padding-left: var(--spacing-lg);
}

.mobile-menu-links i {
  margin-right: var(--spacing-md);
  font-size: 18px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.mobile-menu-links a:hover i {
  transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
  .navbar-search {
    max-width: 900px; /* Even wider for very large screens */
  }
  
  .navbar-main-container {
    gap: var(--spacing-3xl);
  }
  
  .navbar-links {
    gap: var(--spacing-2xl);
  }
  
  .nav-link {
    font-size: var(--font-size-base);
  }
}

/* Large Screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-search {
    max-width: 800px; /* Keep large width */
  }
  
  .navbar-links {
    gap: var(--spacing-xl);
  }
}

/* Medium Large Screens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-search {
    max-width: 600px; /* Slightly reduced */
  }
  
  .navbar-links {
    gap: var(--spacing-lg);
  }
  
  .nav-link {
    font-size: 12px;
    padding: var(--spacing-sm) 6px;
  }
}

/* Medium Screens (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-main-container,
  .navbar-menu-container,
  .shipping-container {
    max-width: 100%;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  .navbar-search {
    max-width: 400px; /* Reduced for tablets */
    margin: 0 var(--spacing-md);
  }
  
  .navbar-icons {
    gap: var(--spacing-md);
  }
  
  .navbar-icon a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .navbar-icon i {
    font-size: 18px;
  }
  
  /* Account dropdown - keep centered on tablets */
  .account-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .account-dropdown.open .account-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  /* Cart badge adjustment for tablets */
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    min-width: 18px;
    min-height: 18px;
  }
  
  .navbar-links {
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--spacing-xs) 0;
  }
  
  .navbar-links li {
    flex: 0 1 auto;
  }
  
  .nav-link {
    font-size: 11px;
    padding: var(--spacing-xs) 6px;
    letter-spacing: 0.5px;
  }
  
  .nav-link::after {
    display: none; /* Remove underline on smaller tablets */
  }
  
  .nav-link:hover {
    background-color: rgba(49, 130, 206, 0.08);
  }
  
  /* Account dropdown adjustments for tablets - keep centered */
  .account-menu {
    min-width: 220px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .account-dropdown.open .account-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .account-initial {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--gray-700);
  font-size: 24px;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  color: var(--primary-blue);
  background-color: var(--gray-100);
}

.mobile-menu-button i {
  line-height: 1;
}

/* Mobile search - hidden on desktop */
.navbar-search-mobile {
  display: none;
}

/* Desktop search - visible by default */
.navbar-search-desktop {
  display: flex;
}

/* Small Screens and Below - Mobile Layout (828px trigger) */
@media (max-width: 828px) {
  /* Show shipping banner on mobile in a compact form (slightly taller for readability) */
  .shipping-banner {
    display: block;
    padding: var(--spacing-sm) 0; /* increased vertical padding */
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
  }

  /* Mobile top navbar with new layout:
     [menu icon] [logo] [contact, profile, cart] */
  .navbar-main {
    padding: var(--spacing-md) 0;
  }

  .navbar-main-container {
    max-width: 100%;
    flex-direction: row; /* Keep horizontal */
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    min-height: 60px;
  }
  
  /* Show mobile menu button on left */
  .mobile-menu-button {
    display: flex;
    order: 1;
    flex-shrink: 0;
  }
  
  /* Logo in center */
  .navbar-logo {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
  }
  
  .navbar-logo img {
    height: 35px;
  }
  
  /* Icons on right - Show on mobile */
  .navbar-icons {
    order: 3;
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
  }
  
  .navbar-icon a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .navbar-icon i {
    font-size: 18px;
  }
  
  /* Hide desktop search, show mobile search below */
  .navbar-search-desktop {
    display: none;
  }
  
  .navbar-search-mobile {
    display: block;
    width: 100%;
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  /* Show the shipping-note in the mobile menu header */
  .mobile-menu-header .shipping-note {
    display: block;
    position: static;
    margin-left: 12px;
    margin-right: auto;
    font-size: 14px; /* slightly larger for legibility */
    color: rgba(255,255,255,0.95);
    padding: 6px 10px; /* increased clickable area */
    background: rgba(0,0,0,0.08);
    border-radius: 8px;
  }
  
  .navbar-search-mobile .search-container {
    position: relative;
  }
  
  .navbar-search-mobile .search-input {
    width: 100%;
    height: 44px;
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) 45px var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
  }
  
  .navbar-search-mobile .search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  }
  
  .navbar-search-mobile .search-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 16px;
    padding: var(--spacing-xs);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-search-mobile .search-button:hover {
    color: var(--primary-blue);
  }
  
  .navbar-search-mobile .search-button i {
    font-size: 16px;
  }
  
  /* Hide desktop navigation menu on mobile */
  .navbar-menu {
    display: none;
  }
  
  /* Ensure no whitespace */
  .navbar-menu-container,
  .shipping-container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }
  
  /* Account dropdown mobile adjustments - keep centered */
  .account-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
    min-width: 180px;
    top: calc(100% + 8px);
    max-width: calc(100vw - 20px);
  }
  
  .account-dropdown.open .account-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .account-dropdown {
    position: relative;
  }
  
  /* Mobile account initial adjustment */
  .account-initial {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  /* Cart badge adjustment for mobile */
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    min-width: 18px;
    min-height: 18px;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Remove bottom padding since no bottom nav */
  body {
    padding-bottom: 0 !important;
  }
}

/* Extra Small Screens (below 480px) */
@media (max-width: 479px) {
  .navbar-main-container,
  .navbar-menu-container,
  .shipping-container {
    max-width: 100%;
    padding: 0 var(--spacing-sm);
  }
  
  .navbar-logo img {
    height: 30px;
  }
  
  .navbar-icon a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .navbar-icon i {
    font-size: 16px;
  }
  
  .navbar-icons {
    gap: 6px;
  }
  
  .mobile-menu-button {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .navbar-search-mobile .search-input {
    height: 40px;
    font-size: 14px;
    padding: var(--spacing-xs) 40px var(--spacing-xs) var(--spacing-sm);
  }
  
  .navbar-search-mobile .search-button {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  
  .navbar-search-mobile .search-button i {
    font-size: 14px;
  }
  
  .mobile-nav-item {
    min-width: 50px;
    padding: 6px 4px;
  }
  
  .mobile-nav-item i {
    font-size: 18px;
  }
  
  .mobile-nav-item span {
    font-size: 9px;
  }
  
  /* Mobile cart badge for extra small screens */
  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 9px;
    min-width: 16px;
    min-height: 16px;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-item .cart-count {
    width: 16px;
    height: 16px;
    font-size: 9px;
    min-width: 16px;
    min-height: 16px;
    top: 0;
    right: 6px;
  }
  
  .mobile-nav-item.home-center {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  
  .mobile-nav-item.home-center i {
    font-size: 20px;
  }
  
  .mobile-bottom-nav {
    padding: 6px 0;
  }
  
  body {
    padding-bottom: 0 !important;
  }
}

  /* === Alignment Fixes === */
  /* Specific tweak: user account icon appeared visually higher than other icons due to font glyph metrics.
     Reduce full-stretch sizing and nudge it slightly for optical centering without impacting other icons. */
  #accountDropdown i#accountIcon {
    width: auto;
    height: auto;
    position: relative;  
    top: 1px; /* subtle downward adjustment */
    display: flex; /* retain centering */
    align-items: center;
    justify-content: center;
  }