/**
 * Shop Produkt Seite - CSS
 * Ausgelagert aus shop_produkt.php für bessere Performance
 */

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px;
}

.image-container img {
    width: 100%;
}

.thumbnail-gallery {
    display: flex;
    margin-top: 10px;
}


.thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: #333;
}

/* Breadcrumb horizontal scrollbar */
.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-item {
    white-space: nowrap;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

/* Tab-Pane spezifisch */
.tab-pane .blogpost ul {
    margin-bottom: 0 !important;
}

/* Tab-Navigation kompakter auf Desktop */
.shop-product-tabs .nav-tabs-bordered {
    flex-wrap: nowrap;
}

.shop-product-tabs .nav-tabs-bordered .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.shop-product-tabs .nav-tabs-bordered .nav-link i {
    margin-right: 4px;
}

/* Beschreibungsliste Wrapper */
.beschreibung-liste-wrapper {
    margin-bottom: 0 !important;
}

.beschreibung-liste-wrapper .card-text {
    margin-bottom: 0 !important;
}

/* Tabs auf Mobilgeraeten untereinander */
@media (max-width: 768px) {
    .nav-tabs-bordered {
        flex-direction: column;
        border-bottom: none;
        gap: 2px;
    }

    .nav-tabs-bordered .nav-item {
        width: 100%;
        margin-bottom: 0;
    }

    .nav-tabs-bordered .nav-link {
        width: 100%;
        text-align: left;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 8px 12px;
    }

    .nav-tabs-bordered .nav-link.active {
        border-color: #4154f1;
        background-color: #4154f1;
        color: #fff;
    }
}
