/**
 * Filtros Explorar (segments, categorias, busca) — também em Descontos.
 * Especificidade alta para não ser sobrescrito por home.css .chip
 */

/* ── SEGMENTS (Geral / Casal / … ou Todos / No local / Delivery) ── */
.segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}

.segments--3 {
  grid-template-columns: repeat(3, 1fr);
}

.seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 14px;
  padding: 8px 4px 7px;
  cursor: pointer;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  color: var(--muted, var(--ink-muted));
}

.seg:active {
  transform: scale(0.97);
}

.seg svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.seg strong,
.seg span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  color: inherit;
  line-height: 1.1;
}

.seg.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.2);
}

.seg.is-active svg {
  color: #fff;
}

.seg.is-active strong,
.seg.is-active span {
  color: #fff;
}

/* ── CATEGORIAS MACRO (chips) ── */
.shell .cats.hscroll {
  gap: 8px;
  margin: 0 -16px;
  padding: 10px 16px 0;
}

.shell .cat {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.shell .cats .cat.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.shell .cats .cat.chip:active {
  transform: scale(0.97);
}

.shell .cats .cat.chip svg {
  width: 16px;
  height: 16px;
  color: currentColor;
  flex-shrink: 0;
  opacity: 1;
}

.shell .cats .cat.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.16);
}

/* Sub-tags (só Explorar) */
.tagfilt-wrap .tagfilt.hscroll {
  gap: 8px;
  margin: 0 -16px;
  padding: 8px 16px 0;
}

.shell .tagfilt .tagchip.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  scroll-snap-align: start;
}

.shell .tagfilt .tagchip.chip svg {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.shell .tagfilt .tagchip.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.16);
}

.tagfilt-wrap {
  margin: 0;
  padding: 0;
}

.tagfilt-wrap[hidden] {
  display: none !important;
}

/* ── BUSCA ── */
.shell .search {
  position: relative;
  margin: 0 0 12px;
}

.shell .search input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  /* ≥16px evita zoom automático no iOS ao focar o campo */
  font-size: max(16px, 0.95rem);
  outline: none;
  font-family: inherit;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-margin-top: 12px;
  scroll-margin-bottom: 0;
}

html.shell-search-active {
  overflow-anchor: none;
}

html.shell-search-active .biz-list,
html.shell-search-active [data-view="list"],
html.shell-search-active [data-eventos-list],
html.shell-search-active [data-promo-grid] {
  overflow-anchor: none;
}

.shell .search input:focus {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.shell .search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--faint, var(--ink-faint));
  pointer-events: none;
}

/* ── HEAD DA SEÇÃO ── */
.shell .section {
  margin-top: 6px;
}

.shell .section-head .count {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 600;
}
