/**
 * CSS-Datei:
 * /assets/css/thc-product-gallery.css
 */
.thc-product-gallery-container {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.thc-product-main-slider {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #f7f5e8;
}

.thc-product-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.thc-product-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thc-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thc-zoom-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 5;
    color: #033328;
}

.thc-zoom-icon:hover {
    opacity: 1;
    background-color: white;
    transform: scale(1.1);
}

.thc-slide-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #777;
    font-size: 14px;
    padding: 20px;
    height: 300px;
}

.thc-product-thumbs {
    margin-bottom: 20px;
}

.thc-product-thumb {
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.thc-product-thumb.swiper-slide-thumb-active {
    opacity: 1;
    border-color: #033328;
}

.thc-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thc-thumb-no-image {
    background-color: #f0f0f0;
    height: 70px;
}

.thc-swiper-button-next,
.thc-swiper-button-prev {
    color: white !important;
    background-color: rgba(3, 51, 40, 0.7);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.thc-swiper-button-next:hover,
.thc-swiper-button-prev:hover {
    background-color: #033328;
}

.thc-swiper-button-next:after,
.thc-swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.thc-product-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thc-lightbox-active {
    opacity: 1;
}

.thc-lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thc-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.thc-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.thc-lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 767px) {
    .thc-product-slide {
        height: auto;
    }
    
    .thc-product-thumb {
        height: 60px;
    }
    
    .thc-zoom-icon {
        width: 35px;
        height: 35px;
        right: 10px;
        bottom: 10px;
    }
    
    .thc-swiper-button-next,
    .thc-swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .thc-swiper-button-next:after,
    .thc-swiper-button-prev:after {
        font-size: 16px !important;
    }
}

/* Verbesserung für 1-Bild-Produktgalerien */
.thc-product-gallery-container.one-image .thc-product-main-slider .swiper-wrapper {
    display: block;
    transform: none !important;
    height: auto !important;
}

.thc-product-gallery-container.one-image .thc-product-main-slider .swiper-slide {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thc-product-gallery-container.one-image .thc-swiper-button-next,
.thc-product-gallery-container.one-image .thc-swiper-button-prev {
    display: none !important;
}

