#details {
  padding-top: clamp(13rem, 21vh, 29rem);

  margin-bottom: 15rem;
}
.img-slide {
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
#details::before {
  content: '';
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 40vmax;
  background-color: var(--primaryLight);
  opacity: 0.5;
  z-index: 0;
  left: 0;
  bottom: 0;
  transform: translateX(-40%) translateY(20%);
}
.back {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  display: flex;
  align-items: center;
  gap: .5em;
}
.back svg {
  fill: var(--bodyTextColor);
}
.back .text {
  font-size: 2.5rem;
}
@media (max-width: 32rem) {
  .back .text {
    font-size: 1.5rem;
  }
  .back svg {
    height: 1.5rem;
    width: 2rem;
  }
  #details::before {
    top: 10%;
  }
}
#details .left .image-display {
  display: flex;
}

.stock-left .dot {

}

.whatsapp-button {
  width: 100%;
  background-color: var(--secondaryLight);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 32px;
  gap: .2rem;
  color: var(--bodyTextColor);
  border-radius: .5rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.whatsapp-button:hover {
  background-color: var(--secondary);
  color: var(--bodyTextColorWhite);
}
.whatsapp-button svg {
  fill: var(--bodyTextColor);
  transition: fill 0.3s ease, transform 0.3s ease;
}
.whatsapp-button:hover svg {
  fill: var(--bodyTextColorWhite);
}

.stock-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.stock-left .dot {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 1.5rem;
  flex-shrink: 0;
  background-color: var(--greenColor);
}
.stock-left .text {
  color: var(--greenColor);
}
.stock-left.red .dot {
  background-color: var(--redColor);
}
.stock-left.red .text {
  color: var(--redColor);
}
.whatsapp { margin-bottom: 5rem}
.whatsapp .text-preview {
  padding: 1rem 1.5rem;
  background-color: #F8F8F8;
  border-radius: 1.5rem;
}

/* MORE INFORMATION */
.info-box {
  overflow: hidden;
  height: auto;
}
.info-box .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.info-box .header .title {
  font-weight: 700;
}
.info-box .header .down-arrow {
  transition: transform 0.3s ease;
}
.info-box.opened .header .down-arrow {
  transform: rotate(180deg);
}
.more-info .info-box {
  padding: .5rem 0;
  position: relative;
}
.more-info .info-box::before {
  content: "";
  width: 100%;
  height: 1.5px;
  background-color: var(--headerColor);
  position: absolute;
  top: 0;
}
.more-info .info-box:last-child::after {
  content: "";
  width: 100%;
  height: 1.5px;
  background-color: var(--headerColor);
  position: absolute;
  bottom: 0;
  left: 0;
}
.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.info-box.opened .content {
  max-height: 200px;
}
.info-box.opened .content.long {
  max-height: 900px;
}
.content p {
  font-size: var(--bodyFontSize);
}
.content ul {
  list-style-type: disc;
  margin-left: 1.5em;
  padding-left: 0;
}

.content ul li {
  list-style-position: outside;
  font-size: var(--bodyFontSize);
}

@media(max-width: 767px) {
  .image-display {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    padding-bottom: 2rem;
    position: relative;
  }
  .track {
    display: flex;
    transition: transform 0.3s ease;
  }
  .img-slide {
    max-width: 100%;
    min-width: 100%;
    flex-shrink: 0;
  }
  .dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: .75rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
  .dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
  }
  .dot.active {
    background: #111;
  }
}

@media(min-width: 48rem) {
  #details .container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.5rem;
  }
  .image-display .track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: .75rem;
    pointer-events: none;
    transform: translateX(0) !important;
  }
  .image-display .track .img-slide {
    max-width: 100%;
  }
}
@media (min-width: 64rem) {
  #details .container {
    grid-template-columns: 55% calc(45% - 1.5rem);
  }
  .image-display .track {
    grid-template-columns: repeat(2, 1fr);
  }
}
