#products-and-description{
  display: flex;
  gap: 5%;
  padding-top: 20px;
  position: relative;
}

#s-product{
  width: 50%;
}

#pro-details{
  display: flex;
  flex-direction: column;
  padding: 5vw;
}

/* Slider container - hides overflow */
.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

/* Slider wrapper - holds all images in a row */
.slider-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  will-change: transform;
}

/* Each slide */
.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Arrow buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

#small-img-group{
  display: flex;
  gap: 1.5%;
}

.small-img{
  cursor: pointer;
}

#description{
  width: 50%;
  padding-top: 30px;
}

#description h4{
  padding: 40px 0 20px 0;
}

#description h2{
  font-size: 26px;
  margin-bottom: 3px;
}

#description select{
  display: block;
  padding: 5px 10px;
  margin-bottom: 10px;
}
#description select:focus{
  outline: none;
}

#description input{
  width: 50px;
  height: 47px;
  padding-left: 10px;
  font-size: 16px;
  margin-right: 10px;
}
#description input:focus{
  outline: none;
}

#description span{
  color: rgb(98, 98, 98);
  line-height: 25px;
}

#close-btn{
  text-decoration: none;
  font-size: 30px;
  color: #b1885d;
  margin-right: 0vw;
  position: absolute;
  right: 1vw;
  top: 14px;
}

/* Remove old main-img styles */
#main-img {
  /* transition: opacity 0.2s ease; */
  /* opacity: 1; */
}

#main-img.fade-out {
  /* opacity: 0; */
}

/* Responsive */
@media(max-width: 799px){
  #products-and-description {
    flex-direction: column;
  }

  #main-img {
    transition: opacity 0.2s ease;
    opacity: 1;
    width: 87vw;
  }

  .slider-slide {
    height: 400px;
  }
}

@media(max-width: 555px){
  #products-and-description {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding-top: 20px;
  }

  h2 {
    font-size: 24px;
    line-height: 34px;
    color: #222;
  }

  p {
    font-size: 11px;
    color: #465b52;
    margin: 5px 0;
  }

  #description span {
    color: rgb(98, 98, 98);
    line-height: 15px;
    font-size: 12px;
  }

  #product1 .products-container {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    flex-wrap: wrap;
  }

  #description span {
    color: rgb(98, 98, 98);
    line-height: 15px;
  }

  #s-product {
    width: 100%;
  }

  #description {
    width: 100%;
    padding-top: 20px;
  }

  #description h4 {
    padding: 10px 0 5px 0;
  }

  #product1 .product .desc .star i {
    font-size: 7px;
    color: rgb(243, 181, 25);
  }

  #product1 .product .desc span {
    color: #606063;
    font-size: 10px;
    font-weight: bold;
  }

  #product1 .product .desc h5 {
    padding-top: 2px;
    color: #1a1a1a;
    font-size: 8px;
  }

  .slider-slide {
    height: 300px;
  }
}