/* Enhanced Product Card Hover Effects */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease-out;
    z-index: 1;
    pointer-events: none;
}

.group:hover .product-card::before {
    left: 100%;
}

.product-card:hover {
    box-shadow: 0 25px 50px 0 rgba(0,0,0,0.2);
}

/* Shimmer overlay effect */
.shimmer-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: all 0.8s ease-out;
    pointer-events: none;
    z-index: 2;
}

.group:hover .shimmer-overlay {
    left: 100%;
    opacity: 1;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { 
        transform: translateY(-16px) scale(1.05); 
    }
    50% { 
        transform: translateY(-20px) scale(1.05); 
    }
}

.group:hover .product-card {
    animation: float 3s ease-in-out infinite;
}

/* Pulse effect for the view button */
@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
}

.group:hover .bg-white\/95 {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Staggered animation delays for grid items */
.product-card-link:nth-child(1) .product-card { transition-delay: 0ms; }
.product-card-link:nth-child(2) .product-card { transition-delay: 100ms; }
.product-card-link:nth-child(3) .product-card { transition-delay: 200ms; }
.product-card-link:nth-child(4) .product-card { transition-delay: 300ms; }
.product-card-link:nth-child(5) .product-card { transition-delay: 100ms; }
.product-card-link:nth-child(6) .product-card { transition-delay: 200ms; }
.product-card-link:nth-child(7) .product-card { transition-delay: 300ms; }
.product-card-link:nth-child(8) .product-card { transition-delay: 400ms; }

/* Fade-in animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Enhanced pagination hover effects */
.pagination-btn {
    width: 52px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 214, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.pagination-btn:hover::before {
    left: 100%;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #039db6;
}

.pagination-btn--active {
    background: #039db6;
    color: #222;
    font-weight: 600;
    border: 1.5px solid #039db6;
    transform: scale(1.1);
}

.pagination-btn--disabled {
    pointer-events: none;
    opacity: 0.5;
}

.pagination-btn:not(:last-child) {
    margin-right: 0;
}

/* Responsive design */
@media (max-width: 640px) {
    .pagination-btn { 
        width: 40px; 
        height: 40px; 
        font-size: 1rem; 
    }
    
    .product-card:hover {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Smooth backdrop blur effect */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
    }
}

/* Highlighted product special effects */
.highlighted-product .product-card {
    position: relative;
}

.highlighted-product .product-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: inherit;
    z-index: -1;
    animation: highlighted-glow 2s ease-in-out infinite;
}

@keyframes highlighted-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
/* Enhanced product card hover effects */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease-out;
    z-index: 1;
    pointer-events: none;
}

.group:hover .product-card::before {
    left: 100%;
}

.product-card:hover {
    box-shadow: 0 20px 40px 0 rgba(0,0,0,0.15);
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { 
        transform: translateY(-12px) scale(1.05); 
    }
    50% { 
        transform: translateY(-16px) scale(1.05); 
    }
}

.group:hover .product-card {
    animation: float 3s ease-in-out infinite;
}

/* Pulse effect for the view button */
@keyframes pulse-soft {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

.group:hover .absolute .bg-white\/90 {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Staggered animation delays for grid items */
.grid > a:nth-child(1) .product-card { transition-delay: 0ms; }
.grid > a:nth-child(2) .product-card { transition-delay: 100ms; }
.grid > a:nth-child(3) .product-card { transition-delay: 200ms; }
.grid > a:nth-child(4) .product-card { transition-delay: 300ms; }
.grid > a:nth-child(5) .product-card { transition-delay: 400ms; }
.grid > a:nth-child(6) .product-card { transition-delay: 500ms; }
.grid > a:nth-child(7) .product-card { transition-delay: 600ms; }
.grid > a:nth-child(8) .product-card { transition-delay: 700ms; }

/* Smooth backdrop blur effect */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
    }
}


   /* Hide scrollbar for horizontal scroll on tablets */
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
        
        /* Highlighted product styles */
        .highlighted-product {
            position: relative;
        }
        
        .highlighted-product .bg-white {
            background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%) !important;
            border: 3px solid #f59e0b !important;
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3) !important;
            transform: scale(1.05);
            animation: highlight-pulse 2s ease-in-out infinite;
        }
        
        .highlighted-product::before {
            content: '★';
            position: absolute;
            top: -10px;
            right: -10px;
            background: #f59e0b;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            z-index: 10;
            animation: star-spin 3s linear infinite;
        }
        
        .flash-highlight {
            animation: flash-glow 2s ease-in-out;
        }
        
        @keyframes highlight-pulse {
            0%, 100% { 
                box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
            }
            50% { 
                box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
            }
        }
        
        @keyframes star-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes flash-glow {
            0%, 100% { 
                opacity: 1; 
                filter: brightness(1);
            }
            50% { 
                opacity: 0.8;
                filter: brightness(1.3);
            }
        }
        
        /* Search results highlighting */
        mark {
            background-color: #fef3c7;
            padding: 2px 4px;
            border-radius: 3px;
            font-weight: 600;
        }