.product-detail .container {
  display: flex;
  /* width: 100%; */
  background-color: #fff;
  margin: 5px auto;
}

.specifications .container {
  background-color: #fff;
  margin: 20px auto;
}

.product-detail .detail-img {
  width: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-detail .detail-img .full-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #f1f1f1;
}

.product-detail .detail-img .list-img {
  display: grid;
  grid-template-rows: repeat(1, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  margin-top: 10px;
}

.product-detail .detail-img .list-img .item-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  /* margin: 10px; */
  /* border: 2px solid #e5e7eb; */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-detail .detail-img .list-img .item-img:hover {
  border: 2px solid #56c1ff;
}

.product-detail .detail {
  flex: 1;
  padding: 10px 30px;
}

.product-detail .detail .name-product {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 10px;
}
.product-detail .detail .price-product {
  font-size: 1.6rem;
  font-weight: 500;
  color: #0099ff;
  margin-bottom: 10px;
  background-color: #f8f8f8;
  padding: 10px 0 10px 15px;
  display: flex;
  gap: 15px;
}

.detail .price-product .pricefull span {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}

.detail .price-product .discount-percent span {
  color: #eb9800;
  font-weight: 500;
  background-color: #fffaea;
  padding: 3px 6px;
  font-size: 0.8rem;
}

.product-detail .detail .stock-unit-custom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* .full-img {
  width: 100%;
  height: 450px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
} */

.full-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.list-img {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.item-img {
  width: 82px;
  height: 82px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: border-color 0.2s;
}

.item-img:hover {
  border-color: #3794ff;
}

.item-img.active {
  border-color: #3794ff;
}

.item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.name-product {
  font-size: 24px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.price-product {
  font-size: 32px;
  font-weight: 600;
  color: #ee4d2d;
}

.stock-unit-custom {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  /* border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb; */
}

.stock-unit-custom > span {
  font-size: 14px;
  color: #757575;
  min-width: 110px;
}

.unit-custom {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
}

.decrease-btn,
.increase-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: #fff;
  color: #757575;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.decrease-btn:hover,
.increase-btn:hover {
  background-color: #f5f5f5;
}

.decrease-btn:disabled,
.increase-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.unit-input {
  width: 50px;
  height: 32px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 16px;
  outline: none;
}

.stock {
  color: #757575;
  font-size: 14px;
}

.btn-buyer {
  display: flex;
  gap: 15px;
  padding-top: 10px;
}

.add-to-cart-btn,
.buy-now-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.add-to-cart-btn {
  background-color: rgba(255, 170, 12, 0.1);
  color: #ffa602;
  border: 1px solid #ffa602;
}

.add-to-cart-btn:hover {
  background-color: rgba(255, 170, 13, 0.15);
}

.buy-now-btn {
  background-color: #ffaf19;
  color: #fff;
}

.buy-now-btn:hover {
  background-color: #ffa602;
}

.specifications .body-detail {
  padding: 20px 30px;
  background-color: #fff;
  margin: 20px auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-detail .container {
    /* grid-template-columns: 1fr; */
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .product-detail .detail-img {
    width: 100%;
  }

  .full-img {
    height: 400px;
  }
  .btn-buyer {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    border-radius: 0;
    /* font-size: 1.2rem; */
  }
  .add-to-cart-btn,
  .buy-now-btn {
    font-size: 1.2rem;
    background-color: #ffaf19;
    color: #fff;
    height: 60px;
  }
}

@media (max-width: 640px) {
  .full-img {
    height: 300px;
  }

  .item-img {
    width: 60px;
    height: 60px;
  }

  .stock-unit-custom {
    flex-wrap: wrap;
  }

  .btn-buyer {
    /* flex-direction: column; */
  }

  .add-to-cart-btn,
  .buy-now-btn {
    /* width: 100%; */
    /* font-size: 2rem; */
  }
}
