/* Enhanced Product Card Image Carousel Styles */

.product-card.enhanced-card {
    position: relative;
    transition: all 0.3s ease;
}

.product-card.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Screenshot-Style Product Cards */
.product-card.screenshot-style {
    position: relative;
    transition: all 0.3s ease;
}

.product-card.screenshot-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.product-card.screenshot-style .main-product-image {
    transition: transform 0.3s ease;
}

.product-card.screenshot-style:hover .main-product-image {
    transform: scale(1.02);
}

.product-card.screenshot-style .thumbnail-image {
    transition: all 0.3s ease;
}

.product-card.screenshot-style .thumbnail-image:hover {
    border-color: #e91e63 !important;
    transform: scale(1.05);
}

.product-card.screenshot-style .thumbnail-image.active {
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

.product-card.screenshot-style .add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

.product-card.screenshot-style .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card.screenshot-style .add-to-cart-btn:hover::before {
    left: 100%;
}

/* Image Container Styles */
.product-image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

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

.product-card.enhanced-card:hover .main-product-image {
    transform: scale(1.05);
}

/* Navigation Button Styles */
.image-nav-btn {
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.image-nav-btn:hover {
    background: rgba(0,0,0,0.9) !important;
    transform: translateY(-50%) scale(1.1);
}

.image-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Thumbnail Styles */
.thumbnail-image {
    transition: all 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.1);
    border-color: #e91e63 !important;
    opacity: 1 !important;
}

.thumbnail-image.active {
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* Image Count Badge */
.image-count {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

/* Indicator Dots */
.indicator {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    box-shadow: 0 2px 6px rgba(255,255,255,0.5);
}

/* Enhanced Product Info */
.product-card.enhanced-card .product-info h3 {
    transition: color 0.3s ease;
}

.product-card.enhanced-card:hover .product-info h3 {
    color: #e91e63;
}

/* Enhanced Add to Cart Button */
.product-card.enhanced-card button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card.enhanced-card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card.enhanced-card button:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .image-nav-btn i {
        font-size: 8px;
    }
    
    .thumbnail-image {
        width: 30px !important;
        height: 30px !important;
    }
    
    .image-count {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .image-grid-4 {
        gap: 2px !important;
    }
    
    .thumbnail-image {
        width: 25px !important;
        height: 25px !important;
    }
}

/* Animation for image transitions */
@keyframes imageSlide {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-product-image {
    animation: imageSlide 0.3s ease;
}

/* Loading state for images */
.main-product-image[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Enhanced hover effects for the entire card */
.product-card.enhanced-card {
    cursor: pointer;
}

.product-card.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(233, 30, 99, 0.05), rgba(240, 98, 146, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.product-card.enhanced-card:hover::before {
    opacity: 1;
}