/* Definir a fonte Poppins */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

.card {
  width: 302px;
/*  height: 546px;
*/  border-radius: 9px;
  background: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 5px 10px 25px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 312px;
  border-radius: 8px;
  background: #d9d9d9;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #161616;
    margin: 0px;
    text-align: left;
    min-height: 54px;
}

.card-info {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    display: flex;
    justify-content: space-around;
    width: 100%;
        font-size: 12px;
    color: #161616;
    margin: 0px;
height: 40px;
}

.card-divider {
  width: 100%;
  border-bottom: 1px solid #161616;
  margin: 0px;
    margin-bottom: 5px;
}

.card-old-price {
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: #161616;
  font-family: 'Poppins', sans-serif;
}

.card-price {
    font-weight: 700;
    font-size: 24px;
    color: #161616;
    line-height: 32px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 5px;
    padding-top: 5px;
}

.btn {
  width: 284px;
  height: 47px;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Botão MAIS DETALHES */
.btn-details {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    font-size: 14px;
    line-height: 21px;
    margin-bottom: 8px;
    margin-top: 5px;
}

/* Hover MAIS DETALHES */
    .btn-details:hover {
        background: var(--primary-red);
        color: #FFFFFF;
        transform: translateY(-1px);
    }

/* Botão COMPRAR AGORA */
.btn-buy {
  background: transparent;
  border: 1px solid #00A80B;
  color: #00A80B;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 4px;
}

/* Hover COMPRAR AGORA */
.btn-buy:hover {
  background: #00A80B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Efeito quando clicado */
.btn:active {
  transform: translateY(0px);
}

/* ======= MOBILE: mostrar apenas img, title e price nos cards ======= */
@media (max-width: 768px) {

  /* Cards */
/*  .card * {
    display: none;
  }*/

    .card-info {
        width: 100% !important;
    }

  .card-img,
  .card-title,
  .card-price {
    display: block;
  }

  .card {
    width: 328px;
    height: 218px;
    padding: 8px;
    justify-content: flex-start;
  }

  .card-img {
    width: 100%;
    height: 164px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
  }

    .card-title {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 6px;
        /*    overflow: hidden;
    text-overflow: ellipsis;*/
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-wrap-mode: wrap;
        text-align: center;
    }

    .card-price {
        font-size: 18px;
        font-weight: 700;
        line-height: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        padding-top: 10px;
        float: left;
    }

  /* Paginação */
  .pagination-btn.pagination-prev,
  .pagination-btn.pagination-next {
    display: none;
  }

  /* Grid de cards: 2 por linha */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-content: center;
  }

  .cards-grid>.card:last-child:nth-child(odd) {
    justify-self: center;
  }

  .cards-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pagination-container {
    width: 328px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
    #seminovoshome .card-img {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        width: 96px !important;
        height: 96px !important;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
        margin: 0;
        flex-shrink: 0;
    }
}