.product-section {
  background-image: url("../images//bg.5fc709131814.webp");
  padding: 40px 20px;
  background-repeat: repeat;
}
.product-section__breadcrumb {
  font-size: 16px;
  color: #43230C;
  margin-bottom: 12px;
}
.product-section__breadcrumb a:first-child {
  color: rgba(67, 35, 12, 0.6); /* tương đương #43230C với 60% opacity */
}
.product-section__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.product-section__title {
  font-size: 24px;
  text-align: center;
  color: #43230C;
  font-weight: bold;
  margin-bottom: 30px;
}

.product-section__item__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-section__slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
   padding: 20px 40px;
   height:500px;
}
.product-section__item a {
  text-decoration: none;
  color: inherit;

  cursor: default; /* Không hiện dấu tay */
}

.product-section__slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 226px;

  gap: 24px;
  transition: transform 0.5s ease;
  width: 100%;
  will-change: transform;
    min-height: 452px; 
}

.product-section__item {
  display: none;
  text-align: center;
}

/* Hiển thị những item trong trang hiện tại */
.product-section__item.show {
  display: flex;
}
/* Navigation buttons */
.product-section__nav-btn {
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
  background-color: #C8B497;
  border: none;
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-section__nav-btn:hover {
  background-color: #a38b6d;
}

.product-section__nav-btn.left {
  left: 00px;
}

.product-section__nav-btn.right {
  right: 0px;
}

.product-section__item {
background-color: transparent;
  text-align: center;
  padding: 16px;
  border-radius: 6px;
  transition: transform 0.2s ease;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 214px;
  grid-row: span 1;
}
.product-section__item {
  opacity: 0;
  transform: translateX(20px); /* chuyển sang trái/phải khi ẩn */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-section__item.show.fade-in {
  opacity: 1;
  transform: translateX(0);
}
.product-section__item:hover {
  transform: scale(1.05);
}
.product-section__item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}
.product-section__item__image-wrapper:hover{
  background-color: #dcdcdc;
}
.product-section__item__image-wrapper.active {
 background-color: #C8B497;
}
.product-section__item p {
  font-size: 18px;
  margin: 0;
  color: #43230C;
  margin-top: 10px;
  font-weight: 500;
}
.product-section__item__image-wrapper{
  display: inline-block; 
  border: 1px solid #C8B497; 
  width: 200px; 
  height: 200px;
  box-sizing: border-box;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.product-section__item__image-wrapper img{
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .product-section__title {
    font-size: 20px;
  }
}
@media (max-width: 768px) {


  .product-section__title {
    font-size: 18px;
  }

  .product-section__breadcrumb {
    font-size: 14px;
  }

  .product-section__item p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {

  .product-section__title {
    font-size: 16px;
  }

  .product-section__breadcrumb {
    font-size: 13px;
  }

  .product-section__item p {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
 
  .product-section__item {
    min-width: 100%;
    flex-shrink: 0;
  }
}
@media(max-width:624px){
   .product-section__slider-wrapper {
    overflow: hidden;
    position: relative;
    height: 245px;
  }
 .product-section__slider {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
  }
}
@media (min-width: 922px) and (max-width: 1148px) {
  .product-section__slider {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width:624px) and (max-width: 921px) {
  .product-section__slider {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 320px){
  .product-section__nav-btn{
    width: 20px;
    height: 20px;
    padding: 10px;
    font-size: 10px;
  }
  .product-section__item {
    padding:0px;
  }
} 
@media (max-width: 400px){
.product-section__item__image-wrapper {
  width:150px;
  height:150px;
}
}