/* ==========================================================================
   search.css — the Search results page. Requires common.css and
   featured-products.css (reuses the .product-card styles for each result).
   ========================================================================== */

.adorable-search__inner {
  padding-top: 3.9rem;
  padding-bottom: 5rem;
}

.adorable-search__head {
  margin-bottom: 2rem;
}

.adorable-search__title {
  margin: 0;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
}

.adorable-search__subtext {
  margin: 0.6rem 0 0;
  font-size: 1.5rem;
  color: rgba(var(--text-color), 0.7);
}

.adorable-search__subtext strong {
  font-weight: 600;
  color: rgb(var(--text-color));
}

/* --- Search-again form ---------------------------------------------------- */
.adorable-search__form {
  display: flex;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 0 3rem;
}

.adorable-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 4.8rem;
  padding: 0 1.6rem;
  font-size: 1.5rem;
  font-family: inherit;
  color: rgb(var(--text-color));
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.adorable-search__input:focus {
  border-color: rgb(var(--text-color));
}

.adorable-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 4.8rem;
  padding: 0 2rem;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
  color: #fff;
  background: #121212;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.adorable-search__submit:hover {
  background: #000;
}

.adorable-search__submit svg {
  width: 1.6rem;
  height: 1.7rem;
}

/* --- Results grid (mirrors the wishlist grid) ----------------------------- */
.adorable-search__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.adorable-search__grid .product-card {
  height: 100%;
}

/* --- Pagination ----------------------------------------------------------- */
.adorable-search__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3.5rem;
}

.adorable-search__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1rem;
  font-size: 1.4rem;
  color: rgb(var(--text-color));
  text-decoration: none;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.adorable-search__page:hover {
  background: rgba(var(--text-color), 0.06);
}

.adorable-search__page.is-active {
  color: #fff;
  background: #121212;
  border-color: #121212;
  cursor: default;
}

/* --- Empty state ---------------------------------------------------------- */
.adorable-search__empty {
  text-align: center;
  padding: 5rem 0;
}

.adorable-search__empty p {
  margin: 0 0 2rem;
  font-size: 1.8rem;
  color: rgba(var(--text-color), 0.7);
}

.adorable-search__browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 2.4rem;
  background: #121212;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.adorable-search__browse:hover {
  background: #000;
}

@media (min-width: 750px) {
  .adorable-search__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 990px) {
  .adorable-search__inner {
    padding-top: 5.2rem;
  }
  .adorable-search__title {
    font-size: 4rem;
  }
  .adorable-search__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}
