.product-listing-section {
  padding: 40px 20px;
  background-repeat: repeat;
  background-image: url("../images//bg.5fc709131814.webp");

}

.product-listing-section__tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 16px;
  color: #3a2f25;
  font-weight: 500;
}
.product-listing-section__tabs a {
  background: none;
  border: none;
  cursor: pointer;
  color: #43230C;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 18px;
}

.product-listing-section__tabs a.active {
  border-bottom: 2px solid #3a2f25;
  font-weight: bold;
  font-size: 18px;
}

.product-listing-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.product-listing-section__pagination {
  margin-top: 40px;
  text-align: center;
}

.product-listing-section__pagination a {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 9px;
  font-size: 14px;
  color: #8C795F;
  text-decoration: none;
  transition: all 0.3s;
}

.product-listing-section__pagination .product-listing-section__arrow {
  border: 1px solid #8C795F;
  border-radius: 4px;
}

.product-listing-section__pagination .product-listing-section__arrow:hover {
  background-color: #943E32;
  color: white;
}

.product-listing-section__pagination a.active {
  color: #96422F;
  font-weight: 600;
  text-decoration: underline;
}

.product-card {
  border: 1px solid #d8c6b2;
  border-radius: 6px;
  text-align: center;
  padding: 16px;
  background: transparent;
  transition: transform 0.2s ease;
}
.product-card__image-wrapper {
  height: 240px; /* hoặc chiều cao cố định hợp lý */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card:hover {
  transform: scale(1.03);
}



.product-card__name {
  font-size: 18px;
  color: #000000;
  margin: 0 0 8px;
}

.product-card__code {
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  color: #FFF7EC;
  background-color: #8C795F;
  border: 1px solid #d8c6b2;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .product-listing-section__grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cột trên tablet */
  }

  .product-listing-section__tabs {
    font-size: 15px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .product-listing-section__tabs button {
    font-size: 16px;
  }

  .product-card__name {
    font-size: 16px;
  }

  .product-card__code {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .product-listing-section__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột trên mobile lớn */
    gap: 24px;
  }

  .product-listing-section__tabs {
    font-size: 14px;
  }

  .product-listing-section__tabs button {
    font-size: 15px;
  }

  .product-card__name {
    font-size: 15px;
  }

  .product-card__code {
    font-size: 12px;
  }

  .product-card__image-wrapper {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .product-listing-section__grid {
    grid-template-columns: 1fr; /* 1 cột cho điện thoại nhỏ */
  }

  .product-listing-section__tabs {
 
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
  }

  .product-listing-section__tabs button {
    font-size: 14px;
  }

  .product-card__name {
    font-size: 14px;
  }

  .product-card__code {
    font-size: 11px;
  }

  .product-card__image-wrapper {
    height: 180px;
  }
}