/* Ebenhaezer George Renaldi Muljadi - 2702230461 */

.containerDetail {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  gap: 40px;
}

.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  border: 3px solid #2c2c2c;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 2px solid #d1cfcf;
  cursor: pointer;
  transition: border 0.3s;
  border-radius: 6px;
}

.thumbnails img:hover {
  border-color: #2c2c2c;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-control button {
  padding: 8px 16px;
  font-size: 1.2rem;
  background: #2c2c2c;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #ffffff;
}

.quantity-control button:active {
  background: #d1cfcf;
}

.quantity-control span {
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

.add-to-cart {
  padding: 12px 20px;
  background: #2c2c2c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-start;
  width: 100%;
}

.add-to-cart:hover {
  background: #d1cfcf;
}

.read-more-btn {
  margin-top: 10px;
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #d1cfcf;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background-color: #d1cfcf;
}

@media screen and (max-width: 768px) {
  .containerDetail {
    flex-direction: column;
    align-items: center;
  }

  .left, .right {
    width: 100%;
  }

  .main-image {
    max-width: 100%;
    height: 300px;
  }

  .thumbnails img {
    width: 80px;
    height: 80px;
  }
}