/* ────────────────────────────────────────────────
 * Search results page
 * Source: extracted from index.css lines 7799–8022
 * ──────────────────────────────────────────────── */


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.searchItem {
  display: flex;
  gap: 32px;
}

.searchItem img {
  width: 400px;
  height: 400px;
  object-fit: contain;
}

.search-results .page-header {
  margin-bottom: 60px;
}

.search-no-results .page-header {
  margin-bottom: 16px;
}

.search-results .page-title {
  line-height: 100%;
}

.search-results .catalogBox {
  padding: 48px 0;
}

.search-results .catalogBox article:not(:last-of-type) {
  margin-bottom: -160px;
  width: 100%;
}

.search-results article .entry-header {
  margin-bottom: 0px;
}

.search-results article .entry-title {
  font-size: 2rem;
}

.search-results .pagination {
  display: flex;
  margin: 48px 0;
}

.search-results .pagination li a,
.search-results .pagination li span {
  border: 2px solid var(--color-border-light-3);
  border-radius: 0;
  margin-right: 12px;
  padding: 12px 20px;
}

.search-results .pagination li span {
  background-color: var(--color-accent);
}

.header .search-form input,
.no-results.not-found input {
  height: 3.5rem;
  background: var(--color-bg-main);
  color: var(--color-text-white);
  padding: 0.75rem;
  border: 0;
  outline: 0;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 100%;
  white-space: nowrap;
  width: 100%;
}

.header .search-form input.active:-webkit-autofill,
.header .search-form input.active:-webkit-autofill:hover,
.header .search-form input.active:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg-main) inset;
  -webkit-text-fill-color: var(--color-text-white);
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-text-white) !important;
  box-shadow: 0 0 0 1000px var(--color-bg-main) inset !important;
  border-radius: 0 !important;
  /* заливаем весь фон */
  background-clip: padding-box;
  /* не даём фону залезать за границы */
  transition: background-color 9999s ease-in-out 0s;
}

.header .search-form input {
  width: 100%;
  height: 3.5rem;
  /* padding-right під іконку (3.5rem button + 0.5rem breath) */
  padding: 0.75rem 4rem 0.75rem 1rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 0;
  min-width: 0;
  opacity: 1;
  transition: border-color 0.3s ease;
}

.header .search-form input::placeholder {
  opacity: 0.5;
  color: var(--color-text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
}

/* .active keeps same style — input always visible */
.header .search-form input.active {
  border-color: var(--color-accent, #C78C47);
}
/* border: 1px solid var(--color-text-dark-alt); */

.search-form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* border: 1px solid #E2E8F0;
	border-radius: 0; */
  width: 100%;
}

.page-content .input-group {
  display: flex;
  gap: 12px;
  max-width: 100%;
  width: 100%;
}

.page-content .search-form {
  justify-content: flex-start;
  margin-top: 32px;
}

.no-results.not-found input {
  border: 1px solid #e2e8f0;
  border-radius: 0;
  min-width: 300px;
}

.page-content .search-form button {
  color: var(--color-text-white);
  background: var(--color-bg-main);
  width: 100%;
  height: 56px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.4s ease, background-color 0.4s ease;
}

.page-content .search-form button:hover {
  background: var(--color-accent);
}

.search-results .footer {
  margin-top: 100px;
}

.no-results.not-found {
  height: 50vh;
}

/* Material 3 / Awwards-pattern: іконка-button лежить ВСЕРЕДИНІ input-group
   absolutely, input займає 100% ширини. Один rectangle, один border,
   іконка справа. Awwards / Stripe / MD3 standard. */
.header .search-form button,
.no-results.not-found input[type="submit"] {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3.5rem;
  padding: 0;
  background: transparent;
  color: var(--color-text-white);
  border: 0;
  border-radius: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header .search-form button:hover,
.header .search-form button:focus-visible {
  /* subtle hover, не домінує над input */
  background: var(--overlay-light-10);
}

.headerMenuSearch {
  width: 100%;
}

.headerMenuSearch .input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

