.custom-select-wrapper {
  position: relative;
  font-family: sans-serif;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
}

.custom-select-trigger {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select-trigger img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ccc;
  display: none;
}

.custom-select-trigger span {
  flex-grow: 1;
}

.custom-options {
  display: none;
  position: absolute;
  z-index: 20;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-options.show {
  display: block;
}

.custom-option {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.custom-option img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #ccc;
  background: #f8f8f8;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

.zoom-thumb-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.thumbnail-container {
  position: relative;
  display: inline-block;
}

.zoom-overlay {
  display: none;
  position: absolute;
  top: 100%;        /* statt left / rechts anzeigen */
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  margin-top: 8px;   /* kleiner Abstand zum Thumbnail */
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.zoom-overlay img {
  width: auto;
  height: auto;
  max-width: 400px;   /* oder gewünschte Größe */
  max-height: 400px;
  display: block;
}

.thumbnail-container:hover .zoom-overlay {
  display: block;
}

.produkt-zoom-wrapper {
  position: relative;
  display: inline-block;
}

.produkt-thumbnail-container {
  position: relative;
  width: 100%;
}

.produkt-zoom-wrapper .produkt-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 100;
  border: 1px solid #ccc;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.produkt-zoom-wrapper .produkt-zoom-overlay img {
  max-width: 400px;
  max-height: 400px;
}

