/* Image Zoom Styles */
.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background: #f5f5f5;
}

.image-zoom-container.zoomed {
    cursor: zoom-out;
}

.image-zoom-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.image-zoom-container:hover img {
    transform: scale(1.2);
}

.image-zoom-container.zoomed img {
    transform: scale(2);
}

/* Zoom indicator */
.zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.image-zoom-container:hover .zoom-indicator {
    opacity: 1;
}

.image-zoom-container.zoomed .zoom-indicator {
    opacity: 1;
    background: rgba(139, 69, 19, 0.95);
}

/* Product Detail Main Image Zoom */
#mainProductImage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mainProductImage .image-zoom-container {
    width: 100%;
    height: auto;
}

#mainProductImage img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Gallery Image Zoom */
.gallery-image-wrapper {
    cursor: zoom-in;
}

.gallery-image-wrapper.zoomed {
    cursor: zoom-out;
}

.gallery-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15);
}

.gallery-image-wrapper.zoomed .gallery-image {
    transform: scale(2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-zoom-container:hover img,
    .image-zoom-container.zoomed img {
        transform: scale(1.1);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.05);
    }
    
    #mainProductImage img {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .image-zoom-container:hover img,
    .image-zoom-container.zoomed img {
        transform: scale(1.05);
    }
    
    #mainProductImage img {
        max-height: 300px;
    }
}

/* Fix image size issues */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Product gallery container fixes */
.product-gallery {
    width: 100%;
    margin-bottom: 20px;
}

.product-gallery .main-image {
    width: 100%;
    margin-bottom: 15px;
}

.thumbnail-images {
    width: 100%;
    margin: 0;
    padding: 0;
}

.thumbnail-images .col-xs-3,
.thumbnail-images .col-sm-2,
.thumbnail-images .col-md-2 {
    padding: 5px !important;
}

/* Gallery grid fixes */
.modern-gallery-grid {
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item {
    max-width: 100%;
    box-sizing: border-box;
}

/* Container width fixes */
.container {
    max-width: 1200px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Product listing image fixes */
.edugate-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.edugate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.edugate-image:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .edugate-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .edugate-image {
        height: 180px;
    }
}
