.product-gallery-container {
    display: flex;
    gap: 0px;
    /* flex-direction: row-reverse; */
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-image-container {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#main-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#main-product-image:hover {
    transform: scale(1.05);
}

#main-product-image.changing {
    opacity: 0;
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.thumbnail-gallery {
    /* width: 120px; */
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none; /* WebKit */
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: x;
    box-sizing: border-box;
    flex-shrink: 0;
}


.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #bbb;
}

.thumbnail-item.active {
    border-color: #888;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.zoom-modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
}

#zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.zoom-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-50%);
    pointer-events: none;
}

.zoom-nav button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.zoom-nav button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .product-gallery-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .thumbnail-gallery {
        width: 100%;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }
    
    .thumbnail-item {
        min-width: 80px;
        width: 80px;
    }
    
    .main-image-container {
        max-height: 400px;
    }
    
    .zoom-modal-content {
        padding: 20px;
    }
    
    .zoom-nav button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}