/*--------------------zoom image------------------------------------*/
.zoom-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Smooth zoom effect */
}


@media (max-width: 768px) {
    .zoom-image {
        max-height: 250px;
    }

    .like-button {
        width: 100% !important;
    }
}



/*-------------------- specifications table------------------------------------*/
.table-responsive {
    max-height: 100%;
    /* Prevent exceeding the parent height */
    overflow-y: hidden;
    /* Hide vertical scrollbar */
}



.product-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-image-main {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.thumbnail-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    /* For scrollbar space */
    scrollbar-width: thin;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    /* Prevent shrinking */
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.thumbnail-image:hover {

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-image.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Custom scrollbar for thumbnails */
.thumbnail-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* REQUIRED ZOOM STYLES */
#zoomContainer {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    /* Match your image height */
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}