/* Criou.pro — página /catalogo (dedicada, responsiva, por segmento) */
.catalog-page {
  background: var(--brand-bg, #FFF8F0);
  color: var(--brand-text, #1A1A2E);
  min-height: 60vh;
}

.catalog-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
  text-align: left;
}
.catalog-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-coral, #FF6B4A);
}
.catalog-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, "Nunito", system-ui, sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}
.catalog-hero__sub {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #5c5666;
}

/* Chips / facets — 5 segmentos */
.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.25rem;
}
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid #e5ddd4;
  background: #fff;
  color: var(--brand-text, #1A1A2E);
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.catalog-chip:hover {
  border-color: var(--brand-coral, #FF6B4A);
}
.catalog-chip.is-active,
.catalog-chip[aria-pressed="true"] {
  background: var(--brand-coral, #FF6B4A);
  border-color: var(--brand-coral, #FF6B4A);
  color: #fff;
}
.catalog-chip__count {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
}
.catalog-chip.is-active .catalog-chip__count { opacity: 0.9; }

/* Tint opcional por segmento (ativo) */
.catalog-chip[data-segment="maquinas_insumos"].is-active { background: #0D9488; border-color: #0D9488; }
.catalog-chip[data-segment="artesanato"].is-active { background: #C45C26; border-color: #C45C26; }
.catalog-chip[data-segment="grafica"].is-active { background: #1E3A8A; border-color: #1E3A8A; }
.catalog-chip[data-segment="festas_eventos"].is-active { background: #C2185B; border-color: #C2185B; }
.catalog-chip[data-segment="presentes"].is-active { background: #FF6B4A; border-color: #FF6B4A; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
}
/* v113c: only the legacy INPUT search — never the section.catalog-search toolbar */
input.catalog-search,
.catalog-toolbar .catalog-search {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e5ddd4;
  border-radius: 0.9rem;
  background: #fff;
  font-size: 1rem;
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
}
input.catalog-search:focus,
.catalog-toolbar .catalog-search:focus {
  outline: 2px solid rgba(255, 107, 74, 0.35);
  border-color: var(--brand-coral, #FF6B4A);
}

.catalog-grid,
#mkt-grid-catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: .5rem 1.25rem 3rem;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .catalog-grid,
  #mkt-grid-catalogo {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.35rem;
  }
}

.catalog-empty {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: #5c5666;
}

/* --- Reforço v98+ --- */

/* Chips: scroll horizontal no mobile sem quebrar o wrap no desktop */
@media (max-width: 719px) {
  .catalog-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.85rem;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .catalog-chip {
    flex: 0 0 auto;
  }
}

/* Empty state */
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
  color: #5c5666;
}
.catalog-empty__title {
  margin: 0;
  font-family: var(--font-display, "Nunito", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-text, #1A1A2E);
}
.catalog-empty__hint {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.catalog-empty__reset {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand-coral, #FF6B4A);
  background: #fff;
  color: var(--brand-coral, #FF6B4A);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Badge multi-cat (quando categories[] > 1) */
.mkt-card__badges,
.catalog-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3eee8;
  color: #5c5666;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.3;
  text-transform: none;
}
.cat-badge--primary {
  background: rgba(255, 107, 74, 0.12);
  color: #c44a32;
}
.cat-badge--secondary {
  background: #eef2f6;
  color: #475569;
}

/* Result count line */
.catalog-meta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
  font-size: 0.875rem;
  color: #6e6e82;
}
