/* ==========================================================================
   Barra de Filtros Ativos — Certificados Digitais
   Usa o padrão visual de badges do tema (tj-product-badge / .badge)
   ========================================================================== */

.wpo-filtros-bar {
  background: linear-gradient(135deg, var(--tj-color-theme-dark) 0%, var(--tj-color-theme-dark-2) 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.wpo-filtros-bar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(0, 119, 182, 0.15), transparent 70%);
  pointer-events: none;
}

.wpo-filtros-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.wpo-filtros-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wpo-filtros-label i {
  font-size: 14px;
  color: var(--tj-color-theme-primary);
}

.wpo-filtros-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Badge/tag de filtro ativo — estilo do tema */
.wpo-filtro-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px 6px 14px;
  border-radius: 40px;
  line-height: 1;
  transition: all 0.25s ease;
  animation: wpoTagIn 0.3s ease forwards;
}

@keyframes wpoTagIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wpo-filtro-tag:hover {
  background-color: var(--tj-color-theme-dark-2);
}

.wpo-filtro-tag button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wpo-filtro-tag button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* Botão "Limpar todos" */
.wpo-filtros-limpar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wpo-filtros-limpar:hover {
  border-color: #ff4d4d;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.08);
}

.wpo-filtros-limpar i {
  font-size: 11px;
}

/* Contador de resultados */
.wpo-filtros-resultado {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsivo */
@media (max-width: 767px) {
  .wpo-filtros-bar {
    padding: 16px 18px;
  }

  .wpo-filtros-bar-inner {
    gap: 8px;
  }

  .wpo-filtros-limpar {
    margin-left: 0;
    margin-top: 4px;
  }

  .wpo-filtros-label {
    width: 100%;
  }
}
