.col-gallery {
    display: flex;
    gap: 15px;
    max-width: 100%;
}

#product-image-nav-carousel {
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

@media(min-width: 1200px){
    #product-image-nav-carousel {
    padding-top: 40px;
}
}

#product-image-nav-carousel .f-carousel__viewport {
    max-height: 450px;
    height: auto;
    touch-action: pan-x pinch-zoom;
}

#product-image-nav-carousel .f-carousel__track {
    height: auto !important;
    touch-action: pan-x pinch-zoom;
}

#product-image-nav-carousel .f-carousel__slide {
    margin-bottom: 10px;
}

#product-image-nav-carousel .carousel-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


#product-image-nav-carousel .f-carousel__nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
     max-height: 450px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

#product-image-nav-carousel .f-carousel__nav .f-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#product-image-nav-carousel .f-carousel__nav .f-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

#product-image-nav-carousel .f-carousel__nav .is-next {
      top: 107%;
}

#product-image-nav-carousel .f-carousel__nav .is-prev {
        top: -7px;
}

#product-image-nav-carousel .f-carousel__nav .f-button:hover {
    background: white;
    border-color: #007bff;
}

#product-image-carousel {
    flex: 1;
    height: 500px;
    position: relative;
}

#product-image-carousel .f-carousel__viewport {
    touch-action: pan-y pinch-zoom;
}

#product-image-carousel .f-carousel__track {
    touch-action: pan-y pinch-zoom;
}

#product-image-carousel .carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#product-image-carousel .carousel-image:hover {
    transform: scale(1.02);
}

/* Main Carousel Navigation (Arrows) */
#product-image-carousel .f-carousel__nav {
    position: absolute;
    width: 100%;
    top: 50%;
    z-index: 10;
    pointer-events: none;
}

#product-image-carousel .f-carousel__nav .f-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#product-image-carousel .f-carousel__nav .f-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

#product-image-carousel .f-carousel__nav .is-prev {
    left: 10px;
}

#product-image-carousel .f-carousel__nav .is-next {
    right: 10px;
}

#product-image-carousel .f-carousel__nav .f-button:hover {
    background: white;
    border-color: #007bff;
    transform: translateY(-50%) scale(1.15);
}

.f-carousel__viewport.is-draggable {
    cursor: pointer;
}

.f-carousel__viewport.is-draggable:active {
    cursor: pointer;
}

.cloud-zoom-lens,
.mousetrap,
#cloud-zoom-big,
.cbox-gal {
    display: none !important;
}

@media (max-width: 1200px) {
    .col-gallery {
        flex-direction: column-reverse;
    }

    #product-image-nav-carousel {
        width: 100%;
        height: 120px;
    }

    #product-image-nav-carousel .f-carousel__viewport {
        height: 120px;
        touch-action: pan-x pan-y pinch-zoom;
    }

    #product-image-nav-carousel .f-carousel__track {
        touch-action: pan-x pan-y pinch-zoom;
    }

    #product-image-carousel .f-carousel__viewport {
        touch-action: pan-x pan-y pinch-zoom;
    }

    #product-image-carousel .f-carousel__track {
        touch-action: pan-x pan-y pinch-zoom;
    }

    #product-image-nav-carousel .f-carousel__slide {
        margin-bottom: 0;
        margin-right: 10px;
    }

    #product-image-nav-carousel .carousel-image {
        width: 100px;
        height: 100px;
    }

    #product-image-nav-carousel .f-carousel__nav .is-prev {
        top: 50%;
        bottom: auto;
        left: 0;
        transform: translate(0, -50%);
    }

    #product-image-nav-carousel .f-carousel__nav .is-next {
        top: 50%;
        left: 93%;
        bottom: auto;
        transform: translate(0, -50%);
    }

    #product-image-carousel {
        width: 100%;
        height: 400px;
        flex: unset;
    }
}

@media (max-width: 768px) {
    #product-image-carousel {
        height: 350px;
    }

    #product-image-nav-carousel {
        height: 100px;
    }

    #product-image-nav-carousel .f-carousel__viewport {
        height: 100px;
    }
}



@media (max-width: 1199px) {
    #product-image-nav-carousel {
        width: 100% !important;
        height: 90px !important;
        margin-top: 0 !important;
        padding-left: 26px !important;
        padding-right: 26px !important;
    }

    #product-image-nav-carousel .carousel-image {
        width: 90px !important;
        height: 90px !important;
        margin-right: 5px !important;
        background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border-radius: 6px;
    border: solid 1px #fff;
    }
}
