/* Productpagina container */
.product-page {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
  max-width: 1000px;
  padding: 0 20px;
  margin: 25px auto;
}

/* Product afbeelding (links) */
.product-card {
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  background-color: #f5f5f5;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Thumbnails onder titel */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.thumbnail {
  width: 55px;
  height: 75px;
  padding: 4px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}

.thumbnail:hover {
  border-color: #27ae60;
  transform: translate(0, -2px);
}

.thumbnail.selected {
  border-color: #27ae60;
}

/* Product info (rechts) */
.product-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Prijs */
#productPrice {
  font-size: 18px;
  color: #27ae60;
  font-weight: bold;
  margin-bottom: 10px;
}

.productColor {
  margin-bottom: 10px;
}

/* Maat selectie container */
#sizesContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

/* Maat boxen */
.size-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  border: 2px solid #aaa;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  transition: all 0.2s;
  text-align: center;
  user-select: none;
  padding: 0 10px;
  border-radius: 8px;
  background-color: #fefefe;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.size-box span {
  width: 100%;
  height: 100%;
  line-height: 48px;
}

.size-box input {
  display: none;
}

.size-box:hover {
  border-color: #219150;
  color: #219150;
  transform: translate(0, -2px);
}

.size-box.active {
  border-color: #219150;
  color: #219150;
}

/* Toevoegen aan winkelwagen knop */
.add-to-cart {
  padding: 14px 24px;
  background-color: #219150;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 800px) {
  .product-page {
    flex-direction: column;
    align-items: center;
  }

  .product-card,
  .product-info {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
