/* WooCommerce Fullscreen Search Styles */
.wcfs-search-icon {
  display: inline-block;
  cursor: pointer;
  font-size: 24px;
  color: #555;
  transition: all 0.3s ease;
  padding: 10px;
}

.wcfs-search-icon:hover {
  color: #4a69bd;
  transform: scale(1.1);
}

.wcfs-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.wcfs-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wcfs-search-header {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.wcfs-search-title {
  font-size: 28px;
  color: #4a69bd;
  font-weight: 600;
}

.wcfs-close-search {
  font-size: 32px;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wcfs-close-search:hover {
  color: #e74c3c;
  transform: rotate(90deg);
}

.wcfs-search-input-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  margin-bottom: 40px;
}

.wcfs-search-input {
  width: 100%;
  padding: 20px 60px 20px 30px;
  font-size: 22px;
  border: 2px solid #eaeaea;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.wcfs-search-input:focus {
  border-color: #4a69bd;
  box-shadow: 0 5px 20px rgba(74, 105, 189, 0.15);
}

.wcfs-search-icon-inside {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #4a69bd;
}

.wcfs-search-results {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  overflow-y: auto;
  max-height: 70vh;
}

.wcfs-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.wcfs-product {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.wcfs-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.wcfs-product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #f1f1f1;
}

.wcfs-product-info {
  padding: 20px;
}

.wcfs-product-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.wcfs-product-price {
  font-size: 20px;
  color: #4a69bd;
  font-weight: 700;
  margin-bottom: 15px;
}

.wcfs-product-rating {
  color: #f39c12;
  margin-bottom: 15px;
}

.wcfs-no-results {
  text-align: center;
  font-size: 20px;
  color: #888;
  padding: 40px;
}

.wcfs-loading {
  display: none;
  text-align: center;
  padding: 30px;
}

.wcfs-loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4a69bd;
  border-radius: 50%;
  animation: wcfs-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes wcfs-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wcfs-search-tips {
  margin-top: 20px;
  color: #888;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .wcfs-search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .wcfs-search-input {
    font-size: 18px;
    padding: 16px 50px 16px 20px;
  }

  .wcfs-search-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .wcfs-search-results-grid {
    grid-template-columns: 1fr;
  }

  .wcfs-search-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
