.c-product-interconnection-custom-category-image {
    flex-shrink: 0;

    position: relative;
    width: 100%;
    height: auto;
    margin: 10px 0px;
    overflow-y: hidden;
    padding: 0px 5px;
}

.c-product-interconnection-custom-category-image.template-samba {
    order: 1;
}

.c-product-interconnection-custom-category-image__scroll {
    display: flex;
    justify-content: flex-start;
    gap: 5px;

    position: relative;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scrollbar-width: none; /* Skryjeme nativní scrollbar */
    -ms-overflow-style: none; /* IE a Edge */
    padding-bottom: 2px;
    
    /* Pro macOS - vždy zobrazit scrollbar */
    -webkit-overflow-scrolling: touch;
}

/* Skryjeme nativní scrollbar v WebKit prohlížečích */
.c-product-interconnection-custom-category-image__scroll::-webkit-scrollbar {
    display: none;
}

.c-product-interconnection-custom-category-image__item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;

    width: calc(20% - 4px);
    height: auto;

    border: 1px solid #dedede;
    border-radius: 0;
    box-sizing: border-box;
}

.c-product-interconnection-custom-category-image__item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0;
    padding: 3px;
}

.c-product-interconnection-custom-category-image__item.is-color a > span {
    display: block;

    width: 100%;
    aspect-ratio: 1/1;

    border-radius: 0;
}

.c-product-interconnection-custom-category-image__item.is-color a {
    width: 100%;
    padding: 5px;

}

/* CUSTOM SCROLLBAR */
.custom-scrollbar {
    position: relative;
    width: 100%;
    height: 12px;
    margin-top: 8px;
    display: block;
}

.custom-scrollbar-track {
    position: relative;
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 0;
    cursor: pointer;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    background: #c0c0c0;
    border-radius: 0;
    border: 2px solid #f0f0f0;
    cursor: grab;
    min-width: 30px;
    transition: background 0.2s ease;
}

.custom-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.custom-scrollbar-thumb:active {
    background: #909090;
    cursor: grabbing;
}

/*TANGO FIX*/

.highlight-product .c-product-interconnection-custom-category-image.template-tango {
    display: none;
}

.products-block .product:not(.highlight-product):has(.c-product-interconnection-custom-category-image):hover .tools-wrap {
    display: none;
}



/*RESPO*/

@media (max-width: 1600px) and (min-width: 1440px) {

}

@media (max-width: 1600px) and (min-width: 992px) {

}

@media (max-width: 1600px) {

}

@media (max-width: 1439px) and (min-width: 1200px) {

}

@media (max-width: 1439px) {

}

@media (max-width: 1199px) and (min-width: 992px) {

}

@media (max-width: 1199px) {

}

@media (max-width: 991px) {

}

@media (max-width: 767px) {
    .c-product-interconnection-custom-category-image__item {
        width: calc(18% - 4px);
        min-width: 55px;
    }
}

@media (max-width: 499px) {
    .c-product-interconnection-custom-category-image__item {
        width: calc(16% - 4px);
        min-width: 50px;
    }

    .columns-mobile-2 .c-product-interconnection-custom-category-image__item {
        width: calc(33.333% - 3px);
    }

    .columns-mobile-2 .c-product-interconnection-custom-category-image__item img {
        margin-bottom: 0 !important;
    }
}
/* Úprava vzhledu propojení na produktové stránce - detailní produkt*/
.c-product-interconnection-detail-params__products.is-type--photos span.item-type-img {
    width: 40px !important;
    height: 60px !important;
    border-radius: 0 !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.c-product-interconnection-detail-params__products.is-type--photos {
    gap: 15px !important;
}
.c-product-interconnection-detail-params__products.is-type--photos a.is-current span.item-type-img {
    border: 2px solid #61CE70 !important;
}

