/* Flex container for product items */
.pFlexRow {
  display: flex;
  flex-wrap: wrap;
}

/* Individual product item box */
.pBox {
  flex: 0 0 calc(33.333% - 20px);
  margin: 10px;
  padding: 5px 10px 15px 10px;
}

/* Make product images responsive */
.pBox img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Responsive design for tablet (2 columns) */
@media (max-width: 768px) {
  .pBox {
    flex: 0 0 calc(50% - 20px);
  }
}

/* Responsive design for phones (1 column) */
@media (max-width: 480px) {
  .pBox {
    flex: 0 0 calc(100% - 20px);
  }
}

/* Styling for each product item */
.product-item1,
.product-item2,
.product-item3,
.product-item4,
.product-item5,
.product-item6,
.product-item7,
.product-item8,
.product-item9 {
  position: relative;
}

/* Styling for product item images */
.product-item1 img,
.product-item2 img,
.product-item3 img,
.product-item4 img,
.product-item5 img,
.product-item6 img,
.product-item7 img,
.product-item8 img,
.product-item9 img {
  border-radius: 10px;
  border: 5px solid rgb(0, 24, 158);
  box-shadow: 8px 8px 4px rgba(0, 24, 158, 0.5);
}

/* Styling for product item captions */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 24, 158, 0.7);
  box-shadow: 8px 8px 4px rgba(0, 24, 158, 0.5);
  border-radius: 0 0 10px 10px;
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* Hide additional product details by default */
.product-item1 p,
.product-item2 p,
.product-item3 p,
.product-item4 p,
.product-item5 p,
.product-item6 p,
.product-item7 p,
.product-item8 p,
.product-item9 p {
  display: none;
}

/* Styling for the popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Styling for the popup content */
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 24, 158, 0.9);
  border: 5px solid rgb(0, 24, 158);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

/* Styling for the close button in the popup */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: rgb(255, 255, 255);
}

/* Styling for the popup caption */
.popup-caption {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, .8);
  margin-top: 20px;
  padding: 10px;
}

/* Styling for the popup caption heading */
.popup-caption h1 {
  font-size: 18px;
  color: rgb(0, 24, 158);
  padding: 10px 0;
}

/* Styling for the popup caption paragraphs */
.popup-caption p {
  padding: 10px 0;
}

/* Styling for the popup price */
#popupPrice {
  color: #ff6a00;
  font-size: 18px;
  font-weight: bold;
}

/* Styling for the 'Add To Cart' button in the popup */
#cartAdd {
  padding: 10px;
  margin: 20px 0 10px 0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: rgb(255, 106, 0);
  color: white;
  border: none;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}