.woocommerce-product-gallery.--no-variation-image-swap {
  /* Prevents the standard WooCommerce variation image swap */
  transition: opacity 0.3s ease;
}

.woocommerce-product-gallery.loading {
  opacity: 0.5;
  pointer-events: none;
}

.woocommerce-product-gallery .vierzeh-lazy-load {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.woocommerce-product-gallery .vierzeh-lazy-load.loaded {
  opacity: 1;
}

.vierzeh-gallery-reset .woocommerce-product-gallery__wrapper {
  transition: none !important;
}

/* Füge zu style.css hinzu */
.woocommerce-product-gallery {
    transition: opacity 0.2s ease;
    min-height: 300px; /* Passe die Mindesthöhe an die durchschnittliche Galeriehöhe an */
}

.woocommerce-product-gallery.loading {
    opacity: 0.6;
    position: relative;
}

.woocommerce-product-gallery.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: vierzeh-spin 0.6s linear infinite;
    z-index: 5;
}

@keyframes vierzeh-spin {
    to { transform: rotate(360deg); }
}





/* Für den Produkt SLider */
.woocommerce-product-gallery.--no-variation-image-swap {
  /* Prevents the standard WooCommerce variation image swap */
  transition: opacity 0.3s ease;
}

.woocommerce-product-gallery.loading {
  opacity: 0.5;
  pointer-events: none;
}

.woocommerce-product-gallery .vierzeh-lazy-load {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.woocommerce-product-gallery .vierzeh-lazy-load.loaded {
  opacity: 1;
}

.vierzeh-gallery-reset .woocommerce-product-gallery__wrapper {
  transition: none !important;
}

/* Owl Carousel Produktgalerie-Styling */
.vierzeh-owl-gallery-wrapper {
  margin-bottom: 30px;
  position: relative;
}

/* Vertikaler Thumbnail-Slider */
.owl-thumbs-vertical-container {
  padding-right: 10px;
}

.owl-thumbs-vertical {
  height: 450px; /* Anpassen nach Bedarf */
}

.owl-thumbs-vertical .item {
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.owl-thumbs-vertical .item.active,
.owl-thumbs-vertical .item:hover {
  border-color: #ccc;
}

/* Haupt-Slider */
.owl-main .item {
  padding: 0 5px;
}

.owl-main .zoom-wrapper {
  overflow: hidden;
  position: relative;
}

/* Navigation für vertikale Slider */
.owl-thumbs-vertical .owl-nav {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.owl-thumbs-vertical .owl-nav button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  background: rgba(255,255,255,0.7) !important;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
}

.owl-thumbs-vertical .owl-nav button.owl-prev {
  top: 5px;
}

.owl-thumbs-vertical .owl-nav button.owl-next {
  bottom: 5px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .owl-thumbs-vertical-container {
    padding-right: 0;
    padding-bottom: 10px;
  }
  
  .owl-thumbs-vertical {
    height: auto;
  }
}