/* Product Cards */
.category-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 1rem;
  margin: 0 -1rem;
  -webkit-overflow-scrolling: touch;
}

.product-card {
  flex: 0 0 calc(80% - 2rem);
  margin-right: 2rem;
  scroll-snap-align: start;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.product-image {
  height: 240px;
  background: #f5f5f7;
  padding: 2rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.product-link:hover {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .category-scroller {
    padding: 3rem 2rem;
    margin: 0 -2rem;
  }
  .product-card {
    flex: 0 0 calc(33.333% - 3rem);
  }
  .product-image {
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .product-card {
    flex: 0 0 calc(25% - 3rem);
  }
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: #0055aa;
  border-color: #0055aa;
}

/* Login button styling */
.navbar .btn-primary {
  padding: 0.5rem 1rem;
  font-weight: 500;
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 50px;
  transition: all 0.2s ease;
  box-shadow: none;
}

.navbar .btn-primary:hover {
  background-color: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 85, 170, 0.2);
}

.navbar .btn-primary i {
  margin-right: 0.25rem;
}

/* Navbar layout adjustments */
.navbar-nav {
  gap: 0.5rem; /* Reduce space between nav items */
}

#mainNav .navbar-nav .nav-item {
  margin: 0 0.15rem; /* Tighter horizontal margins */
}

#mainNav .navbar-nav .nav-link {
  padding: 0.5rem 0.75rem; /* Compact padding */
}

/* User dropdown styling */
.nav-item.dropdown .dropdown-toggle {
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
}

.nav-item.dropdown .dropdown-toggle:hover {
  background-color: rgba(0, 85, 170, 0.1);
}

/* Fix dropdown z-index issue */
.navbar .dropdown-menu {
  z-index: 9999 !important; /* Extremely high z-index to appear above everything */
  position: absolute !important; /* Force absolute positioning */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

/* Ensure the dropdown parent has correct positioning */
.nav-item.dropdown {
  position: relative;
}

.navbar .dropdown-menu .dropdown-item {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgba(0, 85, 170, 0.05);
}
