@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
}

.search-container {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.autocomplete-container {
  max-height: 200px;
  overflow-y: auto;
}

.autocomplete-container div {
  color: #333;
}

.product-item {
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.deals-container {
  transition: all 0.5s ease;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

#deals-results.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

.footer-link:hover {
  text-decoration: underline;
}

/* Loading spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #6366f1;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Star rating */
.star-rating {
  color: #ffc107;
}

/* Add this to your styles.css file */
#usage-policies .prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #4b5563;
}

#usage-policies .prose p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

#usage-policies .prose {
  max-width: none;
  padding: 1.5rem;
}

/* Add to styles.css */
#product-search.searching {
  background-image: linear-gradient(
    to right,
    #f0f0f0 0%,
    #ffffff 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-container {
    padding: 1rem;
  }

  #product-search {
    padding: 0.75rem;
    padding-right: 3rem;
  }

  #add-to-list {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-in-out;
}

.max-w-xl {
  max-width: 80rem;
}

.deals-container {
  grid-template-columns: auto !important;
}
.hero-section {
  position: relative;
  background: linear-gradient(to right, #5f40d9, #8e2de2);
  color: white;
  padding: 5rem 1rem;
  text-align: center;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  z-index: 0;
}

.hero-section::before {
  top: 1rem;
  left: 1rem;
  background-image: url("https://cdn-icons-png.flaticon.com/512/3075/3075977.png");
}

.hero-section::after {
  bottom: 1rem;
  right: 1rem;
  background-image: url("https://cdn-icons-png.flaticon.com/512/2838/2838895.png");
}

.hero-section .content {
  position: relative;
  z-index: 1;
}
