/* Product Card Image Gallery Styles */

/* Product Card Hover Effects */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transform: translateY(-8px);
}

/* Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image-container img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Carousel Controls with Better Visibility */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 60%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
    opacity: 1;
}

/* Thumbnail Gallery Styles */
.thumbnail-gallery {
    padding: 4px 0;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
}

.thumbnail-img {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.thumbnail-img.active {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    backdrop-filter: blur(10px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 20px;
}

.modal-thumbnail {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-thumbnail.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4);
}

/* Zoom Button */
.btn-light {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    transition: all 0.2s;
}

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

/* Image Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.product-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thumbnail-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .modal-thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
    
    .product-card:hover {
        transform: translateY(-4px);
    }
}

/* Print Styles */
@media print {
    .carousel-control-prev,
    .carousel-control-next,
    .thumbnail-gallery,
    .btn-light {
        display: none !important;
    }
}
