/* TE24 Shop – [product_image_slider] Produktgalerie (ausgelagert aus dem Inline-<style> des Child-Themes). */
.product-image-slider-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Hauptslider Styles */
.main-slider {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.main-slider .swiper-wrapper {
    overflow: visible !important;
    transform-style: preserve-3d;
}

.main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0);
}

.main-slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
}

/* Thumbnail Navigation Styles */
.thumb-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.thumb-slider {
    width: calc(100% - 140px);
    margin: 0 auto;

    position: relative;
}

.thumb-slider .swiper-wrapper {
    display: flex;
    transition-timing-function: ease-out;
    overflow: visible !important;
    transform-style: preserve-3d;
}

.thumb-slider .swiper-slide {
    width: calc((100% - 30px) / 4) !important;
    height: 0 !important;
    padding-bottom: calc((100% - 30px) / 4) !important;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 0.3s ease, border 0.3s ease;
    cursor: pointer;
    background: transparent;
    position: relative;
    border: none;
    visibility: visible !important;
    transform: translate3d(0, 0, 0);
}

.thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: none;
    transition: border 0.3s ease;
}

.thumb-slider .swiper-slide-thumb-active .thumb-image {
    border: 3px solid #2672CF !important;
}

/* Navigation Buttons */
.custom-nav-button {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: absolute !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.custom-nav-button.swiper-button-prev {
    left: 0 !important;
}

.custom-nav-button.swiper-button-next {
    right: 0 !important;
}

.custom-nav-button svg {
    width: 30px !important;
    height: auto !important;
    transition: opacity 0.3s ease;
}

.custom-nav-button:hover svg {
    opacity: 0.8;
}

.custom-nav-button:after {
    display: none !important;
}

/* Thumb Navigation Container */
.thumb-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.thumb-slider {
    width: 100%;
    margin: 0 60px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .thumb-slider {
        margin: 0 50px;
    }

    .custom-nav-button {
        width: 40px !important;
        height: 40px !important;
    }

    .custom-nav-button svg {
        width: 25px !important;
    }
}

/* Override Swiper's default disabled state */
.swiper-button-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
}
