/* Custom styles for the select */
.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239CA3AF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 1.5rem auto;
}

.custom-select:focus {
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.5);
  outline: none;
}

/* Card hover effects */
.card-hover-effect {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card-hover-effect:hover .card-content {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  transition: transform 0.5s ease-in-out;
}

.card-hover-effect:hover .card-image {
  transform: scale(1.1);
}

/* Update the Product Card styles */
#productCard {
  position: absolute;
  z-index: 40;
  transform-origin: top;
  transform: translateY(-10px) scaleY(0.95);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  width: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06),
              0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

#productCard.show {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Ensure the nav has proper positioning */
nav.bg-white {
  position: relative;
  z-index: 30;
}

/* Hide product card on mobile */
@media (max-width: 639px) {
  #productCard {
    display: none !important;
  }
}

/* Notification Bell Styles */
#notificationBell {
  position: relative;
  z-index: 41;
  transition: width 0.3s ease-in-out;
  width: 40px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#notificationBell.expanded {
  width: 160px;
}

#notificationBell .bell-container {
  transition: width 0.3s ease-in-out;
  width: 40px;
  overflow: hidden;
  background-color: #3B82F6;
}

#notificationBell.expanded .bell-container {
  width: 160px;
}

#newUpdatesText {
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

#notificationBell.expanded #newUpdatesText {
  opacity: 1;
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

#notificationBell:hover svg {
  animation: wiggle 0.5s ease-in-out infinite;
}

/* Enhanced Notification Panel Styles */
#notificationPanel {
  position: absolute;
  right: 2rem;
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 42;
}

.notification-panel-content {
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  #notificationPanel {
    width: 400px;
  }
}

#notificationList {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 #EDF2F7;
}

#notificationList::-webkit-scrollbar {
  width: 8px;
}

#notificationList::-webkit-scrollbar-track {
  background: #EDF2F7;
}

#notificationList::-webkit-scrollbar-thumb {
  background-color: #CBD5E0;
  border-radius: 4px;
}

.notification-card {
  display: flex;
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease-in-out;
}

.notification-card:hover {
  background-color: #F3F4F6;
}

.notification-card:last-child {
  border-bottom: none;
}

.notification-video {
  flex: 0 0 120px;
  margin-right: 1rem;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notification-title {
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 0.25rem;
}

.notification-description {
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: auto;
}

#clearNotifications {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Refined search container styles */
#searchContainer {
  transition: all 0.3s ease-in-out;
  width: 40px;
  overflow: hidden;
}

#searchContainer.expanded {
  width: 200px;
}

#searchInput {
  transition: all 0.3s ease-in-out;
  width: 0;
  padding-left: 0;
  padding-right: 0;
}

#searchContainer.expanded #searchInput {
  width: 160px;
  padding-left: 0.75rem;
  padding-right: 2.5rem;
}

#searchToggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 640px) {
  #search-content {
    display: none !important;
  }
}

@media (max-width: 639px) {
  #searchContainer {
    display: none !important;
  }
}

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#mainNav.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust the body padding to account for the fixed nav */
body {
  padding-top: 64px; /* Adjust this value to match your nav height */
}