/* ###############################################

  CSS specific to shop.php
  
 ############################################ */


/* These classes may show up in js files. Need to check.  */

.cart-popup-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem 0;
}

.product-details {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem; 
}

.total-row{
  font-weight: bold;
}

.product-info,
.quantity-row,
.total-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.remove-button {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}


/* ######   END OF QUESTION CLASSES SECTION  ##############  */


.product {
  display: flex;
  flex-direction: row;
  margin: 5rem auto;
  width: 80%;
  padding: 9rem 2rem;
  text-align: center;
}

.product .product-description-container {
  width: 30%;
  margin: 2rem;
  padding: 0 2rem; 

}

.product-container {
width: 100%;
margin: 2rem 5rem;
}

#main-image{
  width: 100%;
}

.product img {
  width: 100%;
  height: auto;
}
.product h2, .product p {
  margin: 0 0 1rem 0;
}


.slideshow {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.slideshow img {
  width: 100%;
  height: auto;
  display: none;
}
.slideshow img.active {
  display: block;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.thumbnail {
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  cursor: pointer;

}

.thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 5px gray;
}

.expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem; 
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  padding-top: 0.5rem; 
  text-align: left;
}

.expandable-item {
  margin-bottom: 1rem;
}


.expandable-header h4 {
  margin: 0;
}

.expandable-content.show {
  max-height: 50rem 
}

.expand-icon {
  font-weight: bold;
  transform: rotate(90deg);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.expandable-header.active .expand-icon {
  transform: rotate(0deg);
}

/* Adjustments for Medium devices (tablets, 1024px and up) */
@media only screen and (max-width: 1024px) {


.product-container {
    width: 100%;
    margin: 1rem;
}

.product-desciption-container {
    padding-left: 1rem;
}



}



/* Adjustments for Small devices (landscape phones, 768px and down) */
@media only screen and (max-width: 768px) {
    
     .product {
      flex-direction: column;
      margin: 0;
      width: 90%;
      padding: 5rem 5%;
      align-items: center;
    }
    
    .product-container, .product-desciption-container {
      width: 70%;
      margin: 2rem;
     } 
    
    .product img {
      width: 80%;
      height: auto;
    }
    
    .product h2, .product p {
      margin: 0 0 1rem 0;
    }
}







