/* Flex container for product items */
.sFlexRow {
  display: flex;
  flex-wrap: wrap;
}

/* Individual product item box */
.sBox {
  flex: 0 0 calc(33.333% - 20px);
  margin: 10px;
  padding: 5px 10px 15px 10px;
}

/* Make product images responsive */
.sBox img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Responsive design for tablet (2 columns) */
@media (max-width: 768px) {
  .sBox {
    flex: 0 0 calc(50% - 20px);
  }
}

/* Responsive design for phones (1 column) */
@media (max-width: 480px) {
  .sBox {
    flex: 0 0 calc(100% - 20px);
  }
}

/* Styling for each product item */
.servicesItem1,
.servicesItem2,
.servicesItem3,
.servicesItem4,
.servicesItem5,
.servicesItem6,
.servicesItem7,
.servicesItem8,
.servicesItem9 {
  position: relative;
}

/* Styling for product item images */
.servicesItem1 img,
.servicesItem2 img,
.servicesItem3 img,
.servicesItem4 img,
.servicesItem5 img,
.servicesItem6 img,
.servicesItem7 img,
.servicesItem8 img,
.servicesItem9 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 */
.servicesItem1 p,
.servicesItem2 p,
.servicesItem3 p,
.servicesItem4 p,
.servicesItem5 p,
.servicesItem6 p,
.servicesItem7 p,
.servicesItem8 p,
.servicesItem9 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 */
.popupContent {
  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 */
.popupClose {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: rgb(255, 255, 255);
}

/* Styling for the popup caption */
.popupCaption {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, .8);
  margin-top: 20px;
  padding: 10px;
}

/* Styling for the popup caption heading */
.popupCaption h1 {
  font-size: 18px;
  color: rgb(0, 24, 158);
  padding: 10px 0;
}

/* Styling for the popup caption paragraphs */
.popupCaption p {
  padding: 10px 0;
}

/* Styling for the popup price */
#popupsPrice {
  color: #ff6a00;
  font-size: 18px;
  font-weight: bold;
}

/* Styling for the 'Request Service' button in the popup */
#cartAdd2 {
  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;
}