/**
 * Enhanced Product Gallery
 * Makes product images much larger and clearer
 */

/* Main product gallery container */
.product-gallery {
    margin-bottom: 30px;
}

/* Main product image container - MUCH LARGER */
.product-gallery-main {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    height: 650px !important; /* Significantly increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Stronger shadow for depth */
}

/* Main product image - larger and clearer */
.product-gallery-main img {
    max-height: 95%;
    max-width: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0; /* No padding to maximize image space */
}

/* Zoom effect on hover */
.product-gallery-main img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Magnifying glass indicator */
.zoom-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Thumbnails container */
.product-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    margin-top: 10px;
}

/* Individual thumbnail styling */
.gallery-thumb {
    width: 100px; /* Bigger thumbnails */
    height: 100px; /* Bigger thumbnails */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Active thumbnail */
.gallery-thumb.active {
    border: 2px solid #c41e3a;
    opacity: 1;
    transform: scale(1.05);
}

/* Thumbnail hover effect */
.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Thumbnail images */
.gallery-thumb img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
}

/* Fullscreen image overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Fullscreen image container */
.fullscreen-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    overflow: hidden;
}

/* Fullscreen image */
.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: transform 0.3s;
}

/* Zoom controls */
.zoom-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* Related products section */
.card-img-top {
    height: 250px !important;
    object-fit: contain !important;
    padding: 20px !important;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Product cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px !important;
    overflow: hidden;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
