/* Search Results Page */

.ga-search-results-header {
  margin-bottom: 30px;
}

.ga-search-form-container {
  margin-bottom: 40px;
}

.ga-search-results-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}

.ga-search-results-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.ga-search-results-input:focus {
  border-color: #004071;
}

.ga-search-results-button {
  padding: 14px 30px;
  background: #004071;
  color: #fff;
  border: 2px solid #004071;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ga-search-results-button:hover {
  background: #00a77e;
  border-color: #00a77e;
}

/* Product Cards Grid */
.ga-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.ga-search-result-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ga-search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ga-search-result-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8ede8 0%, #d5ddd5 100%);
  display: flex;
  align-items: flex-end;
}

.ga-search-result-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ga-search-result-card-info {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ga-search-result-card-title {
  font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #004071;
  margin: 0 0 8px 0;
}

.ga-search-result-card-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00a77e;
}

/* No Results State */
.ga-search-no-results {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

/* Suggestions Section */
.ga-search-suggestions {
  margin-bottom: 50px;
}

.ga-search-suggestions-title {
  font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #004071;
  margin: 0 0 25px 0;
  text-align: center;
}

/* Browse Category Buttons */
.ga-search-browse-links {
  margin-bottom: 40px;
}

.ga-search-category-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.ga-search-category-btn {
  display: inline-block;
  padding: 14px 30px;
  background: #004071;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.ga-search-category-btn:hover {
  background: #00a77e;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .ga-search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ga-search-results-grid {
    grid-template-columns: 1fr;
  }

  .ga-search-results-form {
    flex-direction: column;
  }

  .ga-search-results-input {
    border-right: 2px solid #ddd;
    border-radius: 8px 8px 0 0;
  }

  .ga-search-results-button {
    border-radius: 0 0 8px 8px;
  }

  .ga-search-category-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ga-search-category-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* WooCommerce product grid on search results */
.woocommerce-page.search-results ul.products,
body.search ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
}

.woocommerce-page.search-results ul.products li.product,
body.search ul.products li.product {
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-page.search-results ul.products li.product:hover,
body.search ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce-page.search-results ul.products li.product a img,
body.search ul.products li.product a img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  display: block !important;
  background: linear-gradient(180deg, #f5f5f5 0%, #eee 100%);
  padding: 10px;
  margin: 0 !important;
}

.woocommerce-page.search-results ul.products li.product .woocommerce-loop-product__title,
body.search ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #004071 !important;
  padding: 12px 15px 5px !important;
  margin: 0 !important;
}

.woocommerce-page.search-results ul.products li.product .price,
body.search ul.products li.product .price {
  color: #00a77e !important;
  font-weight: 600 !important;
  padding: 0 15px 10px !important;
  font-size: 0.95rem !important;
}

.woocommerce-page.search-results ul.products li.product .button,
body.search ul.products li.product .button {
  background: #004071 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  margin: 0 15px 15px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  display: inline-block !important;
  font-size: 0.9rem !important;
}

.woocommerce-page.search-results ul.products li.product .button:hover,
body.search ul.products li.product .button:hover {
  background: #00a77e !important;
}

/* Search results page header styling */
.woocommerce-products-header__title {
  font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #004071;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .woocommerce-page.search-results ul.products,
  body.search ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce-page.search-results ul.products,
  body.search ul.products {
    grid-template-columns: 1fr !important;
  }
}
