.search_overlay {
  background-color: rgba(0, 0, 0, 0.7);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
}
.search_overlay .serach_popup {
  width: 100%;
  max-height: 80vh;
  height: -moz-fit-content;
  height: fit-content;
  background-color: white;
  position: relative;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 40px;
}
.search_overlay .serach_popup .search_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 70%;
  margin: auto;
  margin-bottom: 20px;
}
.search_overlay .serach_popup .search_header .search_input {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}
.search_overlay .serach_popup .search_header .search_btn {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background-color: black;
  color: white;
}
.search_overlay .serach_popup .search_header .search_btn:hover {
  background-color: red;
  color: white;
}
.search_overlay .serach_popup .search_results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
@media (max-width: 600px) {
  .search_overlay .serach_popup .search_results .product_item {
    flex-direction: row !important;
    gap: 12px;
  }
  .search_overlay .serach_popup .search_results .product_item img {
    width: 80px !important;
    height: 80px !important;
  }
  .search_overlay .serach_popup .search_results .product_item .product_info {
    text-align: left;
  }
}
.search_overlay .serach_popup .search_results .product_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
}
.search_overlay .serach_popup .search_results .product_item img {
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 10px;
  width: 100%;
  height: 200px;
  border-radius: 12px;
}
.search_overlay .serach_popup .search_results .product_item .product_info .product_name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  text-decoration: none;
}
.search_overlay .serach_popup .search_results .product_item .product_info .product_category {
  font-size: 12px;
  color: #777;
  margin-bottom: 5px;
  text-decoration: none;
}
.search_overlay .serach_popup .search_results .product_item .product_info .product_price {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

.search_suggesstion {
  width: 70% !important;
  margin: auto;
}
.search_suggesstion h2 {
  font-size: 14px;
}
.search_suggesstion .popular-search-terms li {
  background-color: #ddd;
  padding: 4px 20px;
  border-radius: 20px;
}

.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(to right, #e2e2e2 8%, #f0f0f0 18%, #e2e2e2 33%);
  background-size: 1000px 104px;
  position: relative;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
.skeleton-card {
  width: 100%;
  max-width: 220px;
  padding: 10px;
  border: 1px solid #ccc;
}

.skeleton-img {
  width: 100%;
  height: 150px;
}

.skeleton-line {
  height: 14px;
  margin: 10px 0;
  width: 80%;
}

#search-loading {
  display: none;
  text-align: center;
  padding: 1em;
}

#search-loading::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #888;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 0.5em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cursor-pointer {
  cursor: pointer;
}

.popular-search-terms li:hover {
  color: black !important;
  transition: all 0.2s linear;
}/*# sourceMappingURL=search-popup.css.map */