/* Default styles for large screens */
:root {
  --whitepink-color: rgb(227, 222, 222);
  --white-color: white;
  --black-color: black;
}

.slider_carousel {
  /* background-color: #95959c; */
  font-optical-sizing: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  line-height: 2em;
}

.productPageContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.productPageImgContainer {
  flex-basis: clamp(0px, 50%, 50%);
  /* height: 550px; */
  height: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: 20px;
}

.productPageFullImage {
  width: 100%;
  /* height: 80%; */
  height: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.productPageFullImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productPageImagesBar {
  width: 100%;
  /* height: 20%; */
  height: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.productPageImagesBar .image {
  /* width: 20%; */
  width: 40%;
  margin: 0 15px;
  opacity: 0.5;
  transition: 0.3s;
  border-radius: 10px;
  /* margin-top: 60px; */
  margin-top: 35px;
}

.productPageImagesBar .image img {
  width: 100%;
  border-radius: 10px;
}

.productPageImagesBar .image:hover {
  transform: scale(1.06);
  opacity: 1;
}

.productPageImagesBar .image.selected {
  opacity: 1;
  transform: scale(1.06);
}

.imgDots {
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.imgDots i {
  color: rgba(128, 128, 128, 0.4);
  border: 2px solid white;
  border-radius: 50%;
  transition: 0.3s;
  font-size: 10px;
}

.imgDots i.selected {
  color: white;
  transform: scale(1.1);
}

.imgDots i:hover {
  color: white;
  cursor: pointer;
  transform: scale(1.1);
}

.productPageInfoContainer {
  /* box-shadow: 1px 1px 15px black, -3px -2px 20px whitesmoke; */
  background-color: var(--white-color);
  /* flex-basis: 30%; */
  flex-basis: 35%;
  height: 580px;
  padding: 25px;
  /* border-left: 2px solid black; */
}

.productPageInfo {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  height: 100%;
}

/* Media Queries for Responsiveness */

/* For tablets and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .productPageContainer {
    flex-direction: column;
    height: auto;
  }

  .productPageImgContainer {
    flex-basis: 100%;
    height: auto;
  }

  .productPageFullImage {
    /* height: 300px; */
    height: 350px;
    margin-top: 110px;
  }

  .productPageImagesBar {
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .productPageInfoContainer {
    flex-basis: 100%;
    height: auto;
  }

  .imgDots {
    display: none;
  }
}

/* For mobile phones (max-width: 768px) */
@media (max-width: 768px) {
  .slider_carousel {
    height: auto;
    padding: 10px;
  }

  .productPageContainer {
    flex-direction: column;
    height: auto;
  }

  .productPageImgContainer {
    flex-basis: 100%;
    height: auto;
  }

  .productPageFullImage {
    height: 250px;
  }

  .productPageImagesBar {
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .productPageImagesBar .image {
    width: 20%;
    margin: 5px;
    height: auto;
  }

  .productPageInfoContainer {
    flex-basis: 100%;
    height: auto;
  }

  .productPageInfo {
    padding: 10px;
  }
}

/* For smaller mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .slider_carousel {
    height: auto;
  }

  .productPageContainer {
    flex-direction: column;
    height: auto;
  }

  .productPageImgContainer {
    flex-basis: 100%;
    height: auto;
  }

  .productPageFullImage {
    height: 200px;
  }

  .productPageImagesBar {
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .productPageImagesBar .image {
    width: 30%;
    margin: 5px;
    height: auto;
  }

  .productPageInfoContainer {
    flex-basis: 100%;
    height: auto;
  }

  .productPageInfo {
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .productPageFullImage {
    margin-top: 0px !important;
  }
}
