








/* Product Gallery Styles */
.product-gallery {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-gallery .gallery-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.product-gallery .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.product-gallery .gallery-item:first-child {
    display: block;
}

.product-gallery .gallery-item img,
.product-gallery .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.product-gallery .gallery-item video {
    background: #000;
}

/* Navigation Buttons */
.product-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-gallery .gallery-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.product-gallery .gallery-prev {
    left: 10px;
}

.product-gallery .gallery-next {
    right: 10px;
}

/* Dots/Indicators */
.product-gallery .gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.product-gallery .gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.product-gallery .gallery-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.product-gallery .gallery-dot:hover {
    transform: scale(1.1);
}

/* Counter */
.product-gallery .gallery-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

/* Thumbnails */
.product-gallery .gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: #fff;
}

.product-gallery .gallery-thumbnail {
    flex: 0 0 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-gallery .gallery-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.product-gallery .gallery-thumbnail.active {
    border-color: #007bff;
}

.product-gallery .gallery-thumbnail img,
.product-gallery .gallery-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Indicator for Videos */
.product-gallery .play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.product-gallery .play-indicator i {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-gallery .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .product-gallery .gallery-thumbnail {
        flex: 0 0 50px;
        height: 50px;
    }
    
    .product-gallery .gallery-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .product-gallery .gallery-nav {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .product-gallery .gallery-thumbnail {
        flex: 0 0 40px;
        height: 40px;
    }
}


/* Gallery Navigation Arrows - Tiny, appear on hover */
.product-gallery {
    position: relative;
}

.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #333;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.gallery-nav-arrow:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev-arrow {
    left: 8px;
}

.gallery-next-arrow {
    right: 8px;
}

.product-gallery:hover .gallery-nav-arrow {
    display: flex;
}

@media (max-width: 768px) {
    .gallery-nav-arrow {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .gallery-prev-arrow {
        left: 4px;
    }
    .gallery-next-arrow {
        right: 4px;
    }
}
