/* === 2 produtos mobile === */

@media (max-width: 1024px) {
  .listagem .listagem-linha {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: space-between;
  }


  .listagem .listagem-linha li {
    width: 48%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .listagem .listagem-linha li .botao-comprar {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}


  .listagem .listagem-linha li img {
    width: 100%;                 /* imagem ocupa 100% da largura do container */
    height: auto;
    object-fit: cover;
    border-radius: 12px;         /* bordas arredondadas */
  }

  .listagem .info-produto {
    padding: 8px 4px;
    text-align: center;
  }

  .listagem .info-produto .nome-produto {
    font-size: 14px;
    line-height: 1.3em;
  }

  .listagem .info-produto .preco-produto {
    font-weight: bold;
    color: #c1975b;
    margin-top: 4px;
  }

  .listagem .info-produto .botao-comprar {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    display: inline-block;
  }
  
  @media (max-width: 1024px) {
  .listagem .listagem-linha {
    align-items: stretch; /* estica todos os cards */
  }

  .listagem .listagem-linha li {
    height: auto;
    min-height: 480px; /* ajuste esse valor conforme o necessário */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .listagem .listagem-linha li .info-produto {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* === alinhas o nome dos produtos para até 3 linhas === */

.listagem .info-produto .nome-produto {
  height: 3.9em; /* aproximadamente 3 linhas */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* número máximo de linhas */
  -webkit-box-orient: vertical;
}


/* === AUMENTAR TAMANHO DAS IMAGENS DE PRODUTO EM TODAS AS PÁGINAS === */
.listagem .listagem-linha li img {
  width: 100%;
  height: 400px;           /* ajuste esse valor se quiser maior */
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 768px) {
  .listagem .listagem-linha li img {
    height: 260px;  /* menor no celular para encaixar bem em 2 colunas */
  }
}


/* BOTÃO COMPRAR COM BORDA PRETA FINA E ESTILO HARMONIZADO */
#botao-comprar,
.produto .botao-comprar,
input.botao.botao-comprar,
.botao-comprar,
.button-comprar {
  border-radius: 12px !important;
  border: 1px solid #000 !important;     /* borda preta fina */
  outline: none !important;
  padding: 12px 20px;
  background-color: #6dbb56;             /* verde clarinho Xinenem (ajustável) */
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#botao-comprar:hover {
  background-color: #5ca649;             /* escurece no hover */
}

/* BOTÃO COMPRAR — PÁGINA DO PRODUTO */
#botao-comprar,
.produto .botao-comprar,
input.botao.botao-comprar {
  border-radius: 12px !important;
  border: 1px solid #000 !important;     /* borda preta fina */
  outline: none !important;
  padding: 12px 20px;
  background-color: #6dbb56 !important;  /* verde clarinho Xinenem */
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  transition: 0.3s ease;
}
.imagem-produto img {
  object-fit: contain !important;
}

