.product-display {
  margin: 50px 0;
}

.product-display-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 20px;
}

.product-display h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 20px;
}

/* Left Panel (Fixed Until Last Product) */
.left-panel {
  position: sticky;
  top: 20px;
  flex: 1;
  max-width: 400px;
  height: auto;
}

.room-image {
  width: 100%;
  height: auto;
}

.product-name {
  text-align: center;
  font-size: 25px;
  margin-top: 10px;
}

/* Right Panel (Scrollable) */
.right-panel {
  flex: 2;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
}

.grid-template-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media screen and (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }
  .right-panel {
    max-height: 1000px;
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-template-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    position: static !important;
    height: auto;
    overflow: visible;
  }
}

.right-panel .img-text {
  font-size: 12px;
  text-align: center;
  margin: 10px 0 !important;
}

.tile {
  cursor: pointer;
  margin-bottom: 20px;
  width: 150px;
  height: 150px;
}

.tile img {
  width: 150px;
  height: 150px;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.tile img:hover {
  transform: scale(1.1);
}

.room-image {
  width: 100%;
  height: 450px;
  cursor: zoom-in;
}

/* Modal styling */
.modal {
  display: block !;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  text-align: center;
}

.modal-content {
  margin-top: 5%;
  width: 80%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Specifications */
.specifications {
  padding: 30px 0;
}
.specifications h2 {
  font-size: 25px;
  margin-bottom: 20px;
  text-align: center;
}
.specs-table {
  display: grid;
  grid-column-gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.spec {
  display: flex;
}

.spec-label,
.spec-content {
  width: 100%;
  padding: 0.65em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  border-bottom: 1px solid #ccc;
}

.spec-label {
  margin-right: 4px;
  background-color: #eee;
  font-weight: bold;
}

@media screen and (max-width: 700px) {
  .specs-table {
    display: grid;
    grid-column-gap: 8px;
    grid-template-columns: repeat(1, 1fr);
  }
  .spec {
    flex-wrap: wrap;
  }
  .specifications h2 {
    text-align: left;
  }
}
  
