.thumbnail-slider-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 95%;
    overflow: hidden;
    padding-top: 10px;
    width: 100%;
    margin-right: 200px;
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.image-thumbnails {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    scrollbar-width: none; /* Firefox */
    max-height: 500px;
}

.image-thumbnails img {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.image-thumbnails img.active-thumbnail {
    border: 2px solid black;
}

.image-thumbnails img:hover {
    border: 1px solid gray;
}

.image-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 60px; /* Platz schaffen für die Steuerelemente */
}

.carousel-item {
    display: none;
    position: relative;
    transition: transform 0.4s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

.carousel-item iframe {
    display: block;
    max-width: 100%;
    border: none;

}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    border-radius: 50%;
}

.product-images {
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

#main-media {
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.25rem;
}

.product-ingredients, .product-full-description, .product-info, .product-nutrition, .product-extra-info {
    margin-top: 20px;
    font-size: 18px;
}

.collapsible {
    color: var(--text-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.collapsible:after {
    content: '\002B';
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    float: right;
    margin-left: 5px;
}

.collapsible[aria-expanded="true"]:after {
    content: "\2212";
    font-size: 16px;
}

.collapse.show {
    display: block;
}


.product-ingredients li {
    color: var(--text-color);
}

.product-nutrition table {
    width: 100%;
    border-collapse: collapse;
}

.product-nutrition th, .product-nutrition td {
    border: 1px solid #ddd;
    padding: 8px;
    color: var(--text-color);
}

.product-nutrition th {
    background-color: var(--sidebar-bg);
    text-align: left;
}

/* Dark Mode Styles */
body[data-bs-theme="dark"] .product-ingredients li {
    background: var(--background-color);
    color: var(--text-color);
}

body[data-bs-theme="dark"] .product-nutrition th,
body[data-bs-theme="dark"] .product-nutrition td {
    border: 1px solid #444;
    color: var(--text-color);
}

body[data-bs-theme="dark"] .product-nutrition th {
    background-color: var(--sidebar-bg);
}

body[data-bs-theme="dark"] .collapsible {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid #444;
}

body[data-bs-theme="dark"] .collapsible:after {
    color: var(--text-color);
}

/* Product History CSS*/
.position-relative {
    position: relative;
}

.custom-control-prev,
.custom-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* Überlagert den Slider */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Runde Form */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-control-prev {
    left: -60px; /* Abstand links */
}

.custom-control-next {
    right: -60px; /* Abstand rechts */
}

.tooltip[data-popper-placement^="top"] {
    left: 2.3% !important;
}

/* Tooltip Container */
.tooltip {
    z-index: 1060;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Tooltip Inhalt */
.tooltip-inner {
    max-width: 460px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75); /* dark translucent */
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}


/* Extra Small (xs) - unter 576px */
@media (max-width: 575px) {

}

/* Small (sm) - 576px bis 767px */
@media (min-width: 576px) and (max-width: 767px) {
    #descriptionCollapse a {
        display: block; /* Sicherstellen, dass der Link sichtbar ist */
        padding: 10px;
        background-color: #f0f0f0;
        text-align: center;
    }

    .d-inline-flex.flex-wrap > span {
        width: 100%;
        margin-top: 0.25rem;
    }
}

/* Medium (md) - 768px bis 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-control-prev,
    .carousel-control-next {
        background-color: transparent; /* Hintergrund transparent */
        width: 50px; /* Breite der Buttons */
        height: 50px; /* Höhe der Buttons */
        border-radius: 50%; /* Runde Buttons */
        top: 50%; /* Vertikale Zentrierung */
        transform: translateY(-50%); /* Zentrieren */
    }

    .carousel-control-prev {
        left: -50px; /* Abstand links */
    }

    .carousel-control-next {
        right: -50px; /* Abstand rechts */
    }

    .carousel-inner {
        padding: 0; /* Platz für Steuerungselemente entfernen */
    }

    .carousel-item img {
        max-height: 400px; /* Größere Höhe für mobile Ansicht */
        object-fit: contain; /* Bild bleibt vollständig sichtbar */
    }

    .carousel-item lite-youtube {
        max-height: 400px; /* Gleiche Höhe wie Bilder */
    }

    .image-thumbnails {
        display: flex;
        justify-content: center; /* Thumbnails zentrieren */
        flex-wrap: wrap; /* Zeilenumbruch für viele Thumbnails */
        gap: 5px; /* Abstand zwischen Thumbnails reduzieren */
    }

    .image-thumbnails img {
        width: 50px; /* Kleinere Thumbnails für mehr Platz */
        height: 50px;
    }

    #main-media {
        margin-bottom: 10px; /* Weniger Abstand */
    }
}

/* Large (lg) - 992px bis 1199px */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Extra Large (xl) - 1200px bis 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {

}

/* Extra Extra Large (xxl) - ab 1400px */
@media (min-width: 1400px) {

}