/* Main Gallery Container */
.custom-product-gallery {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Main Image */
.main-image {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

/* Thumbnail Container */
.thumbnails-container {
    position: relative;
    padding: 0 40px;
    margin: 20px 0;
}

/* Thumbnail Slider */
.thumbnails-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.thumbnails-slider::-webkit-scrollbar {
    display: none;
}

.thumbnails-slider.grabbing {
    cursor: grabbing;
}

/* Thumbnail Items */
.thumbnail-item {
    flex: 0 0 80px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-item:hover {
    opacity: 1;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #0073aa;
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Navigation Arrows */
.thumbnails-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thumbnails-prev {
    left: 0;
}

.thumbnails-next {
    right: 0;
}

/* Mobile Fullscreen Button */
.mobile-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Zoom Container */
.zoomContainer {
    z-index: 100 !important;
}