/* filtros.css — criado em 06/11/2026 (folhas Ordenar por / Filtros + chips da fileira; frente K2) */

/* ── Chips da fileira (pratos e lojas): cinza claro, sem borda; ligado = preto com texto branco ── */
.kf-chips { display: flex; gap: 10px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kf-chips::-webkit-scrollbar { display: none; }
.kf-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: #F4F4F2; color: #1A1A1A; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s, transform .1s;
}
.kf-chip--ico { width: 52px; padding: 0; }
.kf-chip:active { transform: scale(.97); }
.kf-chip.is-on { background: #1A1A1A; color: #fff; font-weight: 700; }
.kf-chip:focus-visible { outline: 3px solid #F9D515; outline-offset: 2px; box-shadow: 0 0 0 5px #1A1A1A; }
.kf-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  border-radius: 10px; background: #F9D515; color: #1A1A1A; font-size: 12px; line-height: 20px; font-weight: 800; text-align: center;
}

/* ── Folha de baixo ── */
.kf-fundo {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 20, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background .22s, backdrop-filter .22s, -webkit-backdrop-filter .22s;
}
.kf-fundo.is-aberta { background: rgba(20, 20, 20, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kf-folha {
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; box-sizing: border-box;
  background: #fff; color: #1A1A1A; border-radius: 24px 24px 0 0; outline: 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18); padding-bottom: env(safe-area-inset-bottom, 0);
}
.kf-fundo.is-aberta .kf-folha { transform: translateY(0); }
.kf-fundo.is-saindo { background: rgba(20, 20, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.kf-fundo.is-saindo .kf-folha { transform: translateY(100%); }
.kf-folha--alta { height: 88vh; }
.kf-alca { flex: none; width: 44px; height: 5px; border-radius: 3px; background: #D6D6D2; margin: 10px auto 0; }
.kf-cab { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; }
.kf-cab h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.kf-x {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F4F4F2; color: #1A1A1A;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.kf-corpo { flex: 1 1 auto; overflow-y: auto; padding: 0 20px 16px; overscroll-behavior: contain; }
.kf-corpo--lista { padding-bottom: 24px; }
.kf-sec { padding: 14px 0 6px; border-top: 1px solid #EFEFEC; }
.kf-sec:first-child { border-top: 0; }
.kf-sec h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.kf-ops { display: flex; flex-direction: column; }
.kf-ops--chips { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.kf-op {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 2px;
  border: 0; background: none; font: inherit; font-size: 16px; font-weight: 500; color: #1A1A1A; text-align: left; cursor: pointer;
}
.kf-op.is-on { font-weight: 800; }
.kf-op:focus-visible, .kf-pilula:focus-visible, .kf-x:focus-visible, .kf-limpar:focus-visible, .kf-ver:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; }
.kf-marca { flex: none; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid #BDBDB8; border-radius: 50%; background: #fff; position: relative; }
.kf-marca--quad { border-radius: 7px; }
.kf-op.is-on .kf-marca { border-color: #1A1A1A; background: #F9D515; }
.kf-op.is-on .kf-marca::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #1A1A1A; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.kf-pilula {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 16px; background: #F4F4F2; color: #1A1A1A;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.kf-pilula.is-on { background: #1A1A1A; color: #fff; font-weight: 700; }
.kf-rod { flex: none; display: flex; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid #EFEFEC; background: #fff; }
.kf-limpar {
  flex: 0 0 auto; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: #F4F4F2; color: #1A1A1A;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.kf-ver {
  flex: 1; min-height: 52px; border: 0; border-radius: 16px; background: #F9D515; color: #1A1A1A;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: opacity .15s;
}
.kf-ver:disabled { background: #EDEDEA; color: #8A8A85; cursor: default; }
.kf-ver.is-contando { opacity: .7; }

@media (min-width: 700px) {
  .kf-fundo { align-items: center; }
  .kf-folha { border-radius: 24px; max-height: 80vh; }
  .kf-alca { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kf-fundo, .kf-folha, .kf-chip, .kf-ver { transition: none; }
}
