:root {
  --vinho: #821329;
  --preto-faixa: #1b1b1e;
  --verde-simil: #2ecc71;
  --texto: #1e1e22;
  --fundo: #f3f4f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--fundo);
  color: var(--texto);
  padding-bottom: 60px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabeçalho e Busca */
.topo {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 0 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topo h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--vinho);
  text-align: center;
}

.subtitulo {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 22px;
}

.controles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.busca-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.icone-busca {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

#campo-busca {
  width: 100%;
  padding: 13px 42px 13px 46px;
  font-size: 0.98rem;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#campo-busca:focus {
  border-color: var(--vinho);
  box-shadow: 0 0 0 4px rgba(130, 19, 41, 0.1);
}

#limpar-busca {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #e5e7eb;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: #374151;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filtro-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-btn:hover {
  border-color: var(--vinho);
  color: var(--vinho);
}

.filtro-btn.ativo {
  background: var(--vinho);
  border-color: var(--vinho);
  color: #ffffff;
}

.contador {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Lista de Cards */
.lista-produtos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* CARD MODELO */
.perfume-card {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 36px;
}

/* Caixa e Imagem com Tamanho Padrão Fixo */
.frasco-box {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 240px;
  flex-shrink: 0;
  margin-left: -36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frasco-box img {
  width: 145px;
  height: 235px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  transition: transform 0.25s ease;
}

.perfume-card:hover .frasco-box img {
  transform: scale(1.04);
}

.card-estrutura {
  flex: 1;
  min-height: 225px;
  background: #ffffff;
  border: 4px solid var(--vinho);
  border-radius: 12px 34px 34px 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}

/* Faixa Superior Vinho */
.card-topo {
  background: var(--vinho);
  color: #ffffff;
  padding: 12px 24px 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.titulo-grupo h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
}

.marca {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.95;
  margin-top: 2px;
}

.topo-direita {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.preco-tag {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-sexo {
  background: #ffffff;
  color: var(--texto);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  padding: 6px 22px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Faixa Preta Inspiração */
.card-inspiracao {
  background: var(--preto-faixa);
  color: #ffffff;
  padding: 7px 24px 7px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.inspiracao-texto {
  font-size: 0.95rem;
}

.inspiracao-texto strong {
  font-weight: 700;
}

.inspiracao-texto span {
  font-style: italic;
  font-weight: 400;
}

.similaridade-box {
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}

.similaridade-valor {
  display: block;
  color: var(--verde-simil);
  font-size: 1.05rem;
  font-weight: 800;
}

.similaridade-label {
  font-size: 0.65rem;
  color: #ffffff;
  font-weight: 600;
}

/* Corpo Branco (Notas + Pílulas Direita) */
.card-corpo {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.notas-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--texto);
}

.notas-lista strong {
  font-weight: 600;
}

/* Pílulas Fixação e Projeção */
.performance-coluna {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 195px;
}

.pilula-perf {
  background: var(--vinho);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.25;
}

.pilula-perf.projecao {
  border-radius: 20px;
  padding: 8px 18px;
}

.pilula-perf strong {
  font-weight: 700;
}

.vazio {
  text-align: center;
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 16px;
  color: #6b7280;
}

/* Responsividade para Celular */
@media (max-width: 768px) {
  .perfume-card {
    flex-direction: column;
    margin-left: 0;
  }

  .frasco-box {
    width: 140px;
    height: 210px;
    margin: 0 auto -24px auto;
  }

  .frasco-box img {
    width: 135px;
    height: 205px;
  }

  .card-estrutura {
    width: 100%;
    border-radius: 24px;
    padding-top: 20px;
  }

  .card-topo {
    flex-direction: column;
    align-items: flex-start;
  }

  .topo-direita {
    flex-wrap: wrap;
  }

  .card-corpo {
    flex-direction: column;
    align-items: stretch;
  }

  .performance-coluna {
    flex-direction: row;
    min-width: unset;
  }

  .pilula-perf {
    flex: 1;
  }
}