/* Layout principal - mantendo classe original */
.principal {
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Filtros superiores - mantendo classe original */
.divFiltroPesquisa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Barra de pesquisa - mantendo classes originais */
.search-container {
  position: relative;
  flex-grow: 1;
  min-width: 400px; /* Largura mínima aumentada */
  max-width: 800px; /* Largura máxima aumentada */
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #0d3451;
}

/* Dropdown de ordenação - mantendo classes originais */
.sort-container {
  position: relative;
  z-index: 10;
}

.selecionar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.3s;
}

.selecionar:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
}

.selecionar svg {
  width: 16px;
  height: 16px;
  margin-left: 10px;
}

.filtrosSuMenuzinho {
  position: absolute;
  min-width: 200px; /* Mesma largura mínima do botão */
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 9999 !important;
  background-color: white;
 
}

.filtroszinhosDaDireita {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  /* Remova qualquer width definido aqui */
}


.sort-container {
  position: relative;
  display: inline-block; /* Mantém o container apenas do tamanho do conteúdo */
  z-index: 10;
}

.dropdown-link {
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
  text-align: left;
}

.dropdown-link:hover {
  background-color: #f5f5f5;
}

/* Layout de produtos - mantendo classes originais */
.divProdutosFiltro {
  display: flex;
  gap: 30px;
}

.category-filter {
  width: 220px;
  flex-shrink: 0;
}

.category-filter h1 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

#category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#category-list li {
  margin-bottom: 8px;
}

#category-list a {
  display: block;
  padding: 8px 12px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

#category-list a:hover, 
#category-list a[clicado="true"] {
  background-color: #f0f0f0;
  color: #0d3451;
}

.products-wrapper {
  flex-grow: 1;
}

/* Grid de produtos - mantendo classe original */
.productCatalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: white;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Container da imagem */
.product-image-container {
  padding: 1rem;
  display: flex;
  justify-content: center;
  background-color: #f8f9fa;
}

/* Imagem do produto */
.product-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

/* Container das informações */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Nome do produto */
.product-name {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
  line-height: 1.5;
}

/* Preço do produto */
.product-price {
  color: #f66d1d;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: auto;
}

/* Responsividade */
/* Responsividade - Versão anterior */
@media (max-width: 768px) {
  .divFiltroPesquisa {
    flex-direction: column;
    align-items: stretch;
  }
  
  .divProdutosFiltro {
    flex-direction: column;
  }
  
  .category-filter {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .productCatalog {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 180px;
}

.product-name {
    font-size: 1rem;
}

.product-price {
    font-size: 1.1rem;
}
.search-container {
  min-width: 100%; /* Ocupa toda a largura em telas menores */
  max-width: 100%;
}
}

@media (max-width: 480px) {
  .principal {
    padding: 15px;
  }
  
  .productCatalog {
    grid-template-columns: 1fr; /* Alterado para 1 coluna */
    gap: 15px;
  }
  
  /* Ajustes adicionais para melhor visualização em mobile */
  .search-container {
    width: 100%;
  }
  
  .sort-container {
    width: 100%;
  }
  
  .selecionar {
    width: 100%;
    box-sizing: border-box;
  }

  .product-image {
    height: 160px;
}
}