/* ================= Pesquisa da página inicial ================= */
.qs { background: none; border: 0; }

/* barra de pesquisa por texto */
.qs-search { position: relative; display: flex; align-items: center; gap: 6px; height: 64px; padding: 6px 6px 6px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.qs-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.16); }
.qs-ic { display: grid; place-items: center; width: 54px; flex-shrink: 0; color: var(--muted); }
.qs-input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font: 500 18px/1 var(--f-body); color: var(--fg); }
.qs-input::placeholder { color: var(--dim); }
.qs-input::-webkit-search-cancel-button { filter: invert(.6); }
.qs-search .qs-go { height: 100%; border-radius: 7px; padding: 0 26px; }
.qs-search .qs-go svg { display: none; }

/* sugestões */
.qs-sugg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; max-height: 440px; overflow-y: auto; padding: 6px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: rvUp .18s ease-out both; }
.sg { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; border-radius: 6px; }
.sg:hover, .sg:focus-visible { background: var(--surface); }
.sg img, .sg > span:first-child { width: 76px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--bg-2); }
.sg-t { min-width: 0; }
.sg-t b { display: block; font: 700 15px/1.2 var(--f-display); }
.sg-t small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-p { font: 800 15px/1 var(--f-display); }
.sg-all { width: 100%; margin-top: 4px; padding: 12px 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--red-hi); font-weight: 600; text-align: left; }
.sg-none { padding: 14px 10px; color: var(--muted); font-size: 14px; }
.sg-none a { color: var(--red-hi); font-weight: 600; }

/* pesquisas frequentes */
.qs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qs-chips > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.qs-chips .chip:hover { border-color: var(--red); color: var(--fg); }

/* ---------- consola de pesquisa ---------- */
.qs--b { padding-block: 64px 56px; border-block: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 0%, rgba(227,6,19,.12), transparent 70%), var(--bg-2); }
.qs--b .wrap { display: flex; flex-direction: column; gap: 24px; }
.qsb-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qs--b h2 { margin: 0; font-size: clamp(30px, 4.2vw, 56px); font-stretch: 122%; font-weight: 900; }
.qsb-sub { margin: 0; color: var(--muted); font-size: 15px; }
.qsb-sub b { color: var(--fg); font-weight: 700; }

.qsb-console { padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.qsb-console .qs-search.qs-big { width: 100%; height: 76px; padding: 8px; background: var(--bg-2); border-color: transparent; border-radius: 11px; }
.qsb-console .qs-search.qs-big:focus-within { border-color: var(--red); }
.qs-big .qs-input { font-size: 21px; padding-left: 16px; }
.qs-big .qs-input::placeholder { color: var(--muted); }
.qs-big .qs-go { border-radius: 8px; padding: 0 30px; }
.qs-catsel { flex-shrink: 0; height: 100%; padding: 0 40px 0 20px; border: 0; border-radius: 8px; background-color: var(--surface-2); color: var(--fg); font: 700 14px/1 var(--f-display); appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.qs-catsel option { background: var(--surface); }

.qsb-filters { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 10px; }
.qsb-fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.qsb-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; letter-spacing: 0; }
.qs--b .qs-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qs--b .qs-row .select { background-color: var(--bg-2); }
.qs--b .qs-chips { justify-content: center; }

@media (max-width: 760px) {
  .qs-search { height: 56px; }
  .qs-input { font-size: 16px; }
  .qs-search .qs-go { padding: 0 16px; }
  .qs-search .qs-go span { display: none; }
  .qs-search .qs-go svg { display: block; }
  .qs--b { padding-block: 40px; }
  .qsb-console { padding: 6px; border-radius: 12px; }
  .qsb-console .qs-search.qs-big { height: 60px; padding: 6px; }
  .qs-big .qs-input { font-size: 16px; padding-left: 8px; }
  .qs-catsel { padding: 0 30px 0 12px; font-size: 13px; }
  .qsb-filters { padding: 12px 8px 8px; }
  .qs--b .qs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
