/* 
 * Ecomosto - Multi-Vendor E-commerce Platform
 * Enhanced Main Stylesheet
 */

:root {
    --primary-color: #6f42c1;
    --primary-light: #8e63d4;
    --primary-dark: #5a32a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* General Styles */
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.bg-primary {
    background: var(--gradient-1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Enhanced Section Styling */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.gradient-bg-1 {
    background: var(--gradient-1);
}

.gradient-bg-2 {
    background: var(--gradient-2);
}

.gradient-bg-3 {
    background: var(--gradient-3);
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hero-image img {
    max-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-form-enhanced {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border-radius: 50px;
    border: 3px solid transparent;
    background: white;
    padding: 15px 25px;
    font-size: 1.1rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    outline: none;
}

.search-btn {
    border-radius: 50px;
    padding: 15px 25px;
    margin-left: -1px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    z-index: 1000;
    display: none;
}

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

.suggestion-item:hover {
    background-color: var(--light-color);
}

/* Promotion Banner */
.promotion-banner {
    background: var(--gradient-2);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* Enhanced Category Cards */
.category-card-enhanced {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--box-shadow);
    height: 200px;
}

.category-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.category-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-enhanced:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 20px;
}

.category-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Premium Category Cards */
.category-card-premium {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 280px;
}

.category-card-premium:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card-premium:hover .category-img {
    transform: scale(1.15);
}

.category-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.category-icon {
    font-size: 3.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.category-card-premium:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-content {
    padding: 20px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category-stats {
    margin-bottom: 10px;
}

.product-count {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
}

.subcategory-count {
    font-size: 0.75rem;
}

.category-description {
    line-height: 1.4;
    opacity: 0.8;
}

.category-action {
    margin-top: auto;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-card-premium:hover .browse-link {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Category Stats Summary */
.category-stats-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card {
    padding: 20px 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Header Enhancements */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-card-premium {
        height: 240px;
    }
    
    .category-image-container {
        height: 140px;
    }
    
    .category-content {
        padding: 15px;
        height: 100px;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .category-stats-summary {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .category-card-premium {
        height: 220px;
    }
    
    .category-image-container {
        height: 120px;
    }
    
    .category-content {
        padding: 12px;
        height: 100px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
}

/* Enhanced Product Cards */
.product-card-enhanced {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--box-shadow);
    border: none;
}

.product-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.new-badge {
    top: 10px;
    left: 10px;
    right: auto;
}

.product-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-overlay .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

.product-wishlist {
    position: absolute;
    top: 50px;
    left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-product-image {
    height: 80px;
    object-fit: cover;
}

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

.quick-view-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
    margin-bottom: 10px;
}

.product-rating {
    font-size: 0.85rem;
    color: #666;
}

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

/* Compact Product Cards */
.product-card-compact {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.product-card-compact img {
    height: 80px;
    object-fit: cover;
}

/* Enhanced Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-stats {
    padding: 10px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-rating {
    font-size: 1.2rem;
}

.testimonial-author img {
    border: 3px solid var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Trust Indicators */
.trust-indicator {
    padding: 20px;
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-3px);
}

.trust-indicator i {
    transition: all 0.3s ease;
}

.trust-indicator:hover i {
    transform: scale(1.1);
}

/* Carousel Enhancements */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
    border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.8);
    padding: 15px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 60vh;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-card-enhanced {
        height: 150px;
    }
    
    .feature-card {
        padding: 30px 15px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Navbar */
.navbar-dark .navbar-brand {
    font-weight: 700;
    color: white;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
}

/* Product Cards */
.product-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-title {
    font-size: 1rem;
    height: 2.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Compare Bar Styling */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.compare-bar .btn {
    border: none;
    font-weight: 600;
}

/* Auth Pages */
.auth-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dashboard */
.dashboard-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 160px;
    }
}

/* Category Management Styles */
.category-tree {
    max-height: 600px;
    overflow-y: auto;
}

.category-parent {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.category-parent:hover {
    background-color: #e9ecef;
}

.category-child {
    background-color: #ffffff;
    border-left: 3px solid #dee2e6;
    margin-left: 1rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.category-child:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
}

.category-toggle {
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease;
}

.category-toggle:hover {
    transform: scale(1.1);
}

.category-toggle:focus {
    box-shadow: none !important;
}

.subcategories {
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-tree .fw-medium {
    color: #495057;
    font-size: 1.05rem;
}

.category-tree .text-muted {
    font-size: 0.875rem;
}

/* Animation for expand/collapse buttons */
.btn-outline-primary.active,
.btn-outline-secondary.active {
    animation: pulse 0.6s ease-in-out;
}

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

/* Search highlight */
.category-highlight {
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

/* Responsive category tree */
@media (max-width: 768px) {
    .category-tree {
        max-height: 400px;
    }
    
    .category-parent {
        padding: 0.5rem;
    }
    
    .category-child {
        margin-left: 0.5rem;
        padding: 0.375rem;
    }
}

/* ========================================
   ENHANCED PRODUCT SHOWCASES
======================================== */

/* Flash Deals Section */
.flash-deals-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff3838 100%);
    position: relative;
    overflow: hidden;
}

.flash-deals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bolts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="5,0 10,10 7,10 12,20 7,10 3,10" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect fill="url(%23bolts)" width="100" height="100"/></svg>');
    opacity: 0.3;
}

.flash-deals-section .container {
    position: relative;
    z-index: 2;
}

/* Countdown Timer */
.flash-countdown {
    max-width: 500px;
    margin: 0 auto;
}

.countdown-timer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.time-unit {
    min-width: 80px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    min-height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: countdown-tick 1s ease-in-out infinite;
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    animation: blink 1s infinite;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@keyframes countdown-tick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Flash Deal Cards */
.flash-deal-card {
    position: relative;
    overflow: hidden;
}

.flash-deal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: flash-shine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes flash-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

.pulse-animation {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Product Cards */
.product-card-enhanced {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
}

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

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 15px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: badge-entrance 0.6s ease-out;
}

@keyframes badge-entrance {
    0% { 
        opacity: 0; 
        transform: translateX(20px) scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    }
}

.discount-badge {
    background: linear-gradient(135deg, #ff416c, #ff4757) !important;
    color: white;
    animation: discount-pulse 2s ease-in-out infinite;
}

@keyframes discount-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 65, 108, 0.6); }
}

.origin-badge {
    background: linear-gradient(135deg, #3742fa, #2f3542) !important;
    color: white;
}

.local-badge {
    background: linear-gradient(135deg, #2ed573, #1e90ff) !important;
    color: white;
}

.stock-badge {
    background: linear-gradient(135deg, #ffa502, #ff6348) !important;
    color: white;
    animation: urgency-flash 1.5s ease-in-out infinite;
}

@keyframes urgency-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced Rating Display */
.stars-rating {
    display: inline-block;
}

.stars-rating .fa-star {
    font-size: 0.875rem;
    margin-right: 1px;
}

.rating-text {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Enhanced Price Display */
.current-price {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.savings {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stock Indicators */
.stock-indicator .badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 4px 8px;
}

/* Origin Highlights Section */
.origin-highlights-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.local-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.international-section {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid rgba(23, 162, 184, 0.2);
}

.local-product-card, .international-product-card {
    transition: transform 0.3s ease;
}

.local-product-card:hover, .international-product-card:hover {
    transform: translateY(-5px);
}

.local-product-card .card-img-top, .international-product-card .card-img-top {
    height: 120px;
    object-fit: cover;
}

/* Recommended Section */
.recommended-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
}

.recommended-product-card {
    position: relative;
}

.recommendation-badge .badge {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
    color: #212529;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

/* Interactive Elements */
.add-to-cart-btn, .quick-view-btn, .wishlist-btn, .compare-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.add-to-cart-btn:active::before {
    width: 200px;
    height: 200px;
}

/* Responsive Design for Enhanced Features */
@media (max-width: 768px) {
    .countdown-timer {
        padding: 15px;
    }
    
    .time-value {
        font-size: 1.2rem;
        min-height: 40px;
        min-width: 40px;
    }
    
    .time-label {
        font-size: 0.65rem;
    }
    
    .product-badges {
        top: 8px;
        right: 8px;
    }
    
    .product-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .flash-countdown {
        padding: 0 10px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .origin-section {
        margin-bottom: 30px;
    }
}

/* Product Media System Styles */
.product-card-enhanced .product-media-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.product-card-enhanced .product-media-link {
    display: block;
    position: relative;
}

.product-card-enhanced .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-enhanced .product-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-enhanced .video-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-card-enhanced .video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 15px;
    color: white;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
}

.product-card-enhanced:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.9);
    padding: 18px;
}

.product-card-enhanced .media-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.product-card-enhanced .media-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger-color);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-enhanced .placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: var(--light-color);
    color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.product-card-enhanced .placeholder-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

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

/* Product Detail Media Gallery */
.product-media-gallery {
    position: relative;
}

.main-media-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--light-color);
}

.main-product-image,
.main-product-video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

.media-thumbnails {
    margin-top: 1rem;
}

.thumbnail-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--light-color);
}

.thumbnail-container:hover {
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.thumbnail-container.active {
    border-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(111, 66, 193, 0.25);
}

.thumbnail-image,
.thumbnail-video {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
    height: 80px;
}

.video-thumbnail-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 6px;
    color: white;
    font-size: 12px;
}

/* Media Upload Styles */
.media-upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafbfc;
    cursor: pointer;
}

.media-upload-zone:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

.media-upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.upload-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.upload-progress-bar {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

.media-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Media Styles */
@media (max-width: 768px) {
    .product-card-enhanced .product-image,
    .product-card-enhanced .product-video,
    .product-card-enhanced .video-thumbnail {
        height: 200px;
    }
    
    .main-product-image,
    .main-product-video {
        max-height: 300px;
    }
    
    .thumbnail-image,
    .thumbnail-video,
    .video-thumbnail {
        height: 60px;
    }
    
    .media-count-badge,
    .media-type-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .video-play-overlay {
        padding: 12px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .product-card-enhanced .product-image,
    .product-card-enhanced .product-video,
    .product-card-enhanced .video-thumbnail {
        height: 180px;
    }
    
    .thumbnail-image,
    .thumbnail-video,
    .video-thumbnail {
        height: 50px;
    }
    
    .media-upload-zone {
        padding: 1.5rem;
    }
} 