/* Enhanced Index Page Styles */

/* Product Hover Cards */
.product-hover-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-hover-card:hover .product-overlay {
    opacity: 1;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-badge {
    display: block;
    margin-bottom: 5px;
}

/* Category Cards */
.category-card-premium {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.category-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.category-card-premium:hover .category-hover-overlay {
    opacity: 1;
}

.category-image-container {
    height: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.category-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
}

.category-content {
    padding: 1rem;
}

/* Search Box Enhancement */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Marketplace Stats */
.marketplace-stats .stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
}

/* Featured Product Filters */
.featured-filters .nav-pills .nav-link {
    border-radius: 25px;
    padding: 8px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.featured-filters .nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

/* Recommendation Features */
.recommendation-features .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 20px;
}

/* Product Image Styling */
.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Category Filter Buttons */
.category-filter {
    border-radius: 20px;
    padding: 6px 15px;
    transition: all 0.3s ease;
}

.category-filter:hover {
    transform: translateY(-2px);
}

.category-filter.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Subcategory Modal Items */
.subcategory-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.subcategory-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Flash Deal Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Countdown Timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
}

.time-value {
    font-size: 1.5rem;
    min-width: 60px;
    font-weight: bold;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

/* Product Card Compact */
.product-card-compact {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* Trust Indicators */
.trust-indicator {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

/* Newsletter Section */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Global Marketplace Features */
.marketplace-features .feature-card {
    transition: all 0.3s ease;
}

.marketplace-features .feature-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

/* Local and International Product Cards */
.local-product-card,
.international-product-card {
    transition: all 0.3s ease;
}

.local-product-card:hover,
.international-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Price Container Styling */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    font-size: 1.1rem;
}

.original-price {
    font-size: 0.9rem;
}

.savings {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Category Stats Cards */
.stat-card {
    transition: all 0.3s ease;
    background: white;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-icon {
        font-size: 2rem;
    }
    
    .category-image-container {
        height: 80px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .time-value {
        font-size: 1.2rem;
        min-width: 50px;
    }
    
    .marketplace-stats {
        gap: 1rem !important;
    }
    
    .recommendation-features .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .product-hover-card:hover {
        transform: none;
    }
    
    .category-card-premium:hover {
        transform: none;
    }
    
    .product-overlay {
        position: relative;
        opacity: 1;
        background: rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Button Styles */
.btn-hover-scale {
    transition: all 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

/* Enhanced Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}