/* ICE CUBE v2 – webshop/kereses.html (Keresés), group shop-discovery.
 * Large search field, popular and recent searches, grouped results (Termékek, Oldalak és segítség),
 * no-results state with the mascot at 140 px. Tokens only; dark mode comes from the tokens. */

/* ------------------------------------------------------------------ header + field */
.search-head { padding-bottom: 28px; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; margin-top: 20px; }
.search-form__field { position: relative; }
.search-form__field > .icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--text-2); pointer-events: none; }
.search-form__input { min-height: 56px; padding-left: 52px; padding-right: 56px; font-size: 18px; font-weight: 500; border-radius: var(--radius-m); }
.search-form__clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; }
.search-form__submit { min-height: 56px; }
@media (min-width: 640px) {
  .search-form { grid-template-columns: minmax(0, 1fr) auto; }
  .search-form__submit { padding-inline: 28px; }
}

.search-hints { display: grid; gap: 14px; max-width: 760px; margin-top: 18px; }
.search-hints__row { display: grid; gap: 8px; }
.search-hints__label { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--text-2); }
.search-hints__chips .chip { background: var(--surface); }
@media (min-width: 768px) {
  .search-hints__row { grid-template-columns: 170px minmax(0, 1fr); align-items: start; }
  .search-hints__label { padding-top: 9px; }
}

/* Recent searches: text links with a remove button. */
.search-recent__list { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.search-recent__item { display: inline-flex; align-items: center; min-height: 36px; }
.search-recent__link { font-weight: 500; text-underline-offset: 3px; }
.search-recent__remove { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -4px; border-radius: var(--radius-s); color: var(--text-3); }
.search-recent__remove:hover { color: var(--text); background: var(--bg-3); }
.search-recent__remove .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ results */
.search-body { padding-top: 28px; padding-bottom: var(--section-y); }
.search-status { font-size: 17px; line-height: 1.4; color: var(--text-2); }
.search-status strong { color: var(--text); font-weight: 700; }
.search-status[hidden] + .sr-only + .search-loading { margin-top: 0; }

.search-loading { margin-top: 24px; }
.search-loading[hidden] { display: none; }
.search-error { margin-top: 24px; }
.search-error[hidden] { display: none; }

.search-group { margin-top: 32px; }
.search-group + .search-group { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.search-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.search-group__count { color: var(--text-2); font-variant-numeric: tabular-nums; }
.search-group__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.search-group__link .icon { width: 16px; height: 16px; }

.search-shortcuts { display: grid; gap: 8px; margin-top: 12px; }
.search-shortcuts__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.search-grid { margin-top: 20px; }

.search-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.search-more__count { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Pages and help: plain rows, title + one line. */
.search-pages { display: grid; margin-top: 12px; border-top: 1px solid var(--line); max-width: 860px; }
.search-pages > li { position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.search-pages > li > .icon { flex: none; width: 20px; height: 20px; margin-right: 4px; color: var(--text-3); pointer-events: none; }
.search-page { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; padding: 14px 0; color: var(--text); text-decoration: none; }
.search-page::after { content: ""; position: absolute; inset: 0; }
.search-page:hover .search-page__title { text-decoration: underline; text-underline-offset: 3px; }
.search-page:focus-visible { outline: none; }
.search-pages > li:has(.search-page:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.search-page__title { font-size: 17px; line-height: 1.35; font-weight: 700; }
.search-page__line { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.search-pages > li:hover > .icon { color: var(--text); }

/* Matches: a marker stroke on page rows (card names get the shared marker from components.css). */
.page--search .search-page b {
  font-weight: inherit; color: inherit; background: none;
  box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--sky) 34%, transparent);
}
.page--search .search-page__title b { font-weight: inherit; }
.page--search .search-page__line b { font-weight: 600; color: var(--text); }

/* ------------------------------------------------------------------ no results (centered, mascot 140) */
.search-empty__inner { --mascot-h: 140px; padding-top: 24px; }
.search-empty__label { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.search-empty__chips { justify-content: center; }
.search-empty__help { margin-top: 8px; color: var(--text-2); }
.search-empty__help a { font-weight: 700; white-space: nowrap; }

/* Empty query: what to type. */
.search-start { max-width: 760px; }
.search-start__list { display: grid; gap: 6px; margin-top: 12px; color: var(--text-2); }
.search-start__list strong { color: var(--text); font-weight: 600; }
.search-start__more { margin-top: 16px; color: var(--text-2); }

/* ------------------------------------------------------------------ shared with the list page */
.page--search .shop-help { display: flex; align-items: flex-start; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-2); }
.page--search .shop-help__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--link); }
.page--search .shop-help__icon .icon { width: 20px; height: 20px; }
.page--search .shop-help__text { padding-top: 7px; line-height: 1.5; }
.page--search .shop-help__phone {
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 800; font-stretch: 87.5%; line-height: 1.2;
  color: var(--text); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.page--search .shop-help__phone:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.search-empty__inner .empty-state__text a { font-weight: 600; }
