/* Modern Vibrant E-Commerce Design for e-Asli */
/* Premium marketplace for indigenous forest-based products */

:root {
    /* Enhanced Vibrant Colors */
    --forest-green: #2D5016;
    --vibrant-green: #4A7C2A;
    --warm-amber: #FFB84D;
    --rich-brown: #6B4423;
    --deep-terracotta: #C85A2F;
    --golden-yellow: #F4A460;
    --sage-green: #87A96B;
    --earth-orange: #E67E22;
    
    /* Premium Gradients */
    --gradient-forest: linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #87A96B 100%);
    --gradient-warm: linear-gradient(135deg, #C85A2F 0%, #E67E22 50%, #FFB84D 100%);
    --gradient-earth: linear-gradient(135deg, #6B4423 0%, #8B4513 50%, #A0522D 100%);
    --gradient-premium: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 124, 42, 0.9) 50%, rgba(135, 169, 107, 0.85) 100%);
}

/* Enhanced Product Cards - Premium Marketplace Style */
.product-card {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 230, 211, 0.95) 100%) !important;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(200, 90, 47, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(107, 68, 35, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #F5E6D3 0%, #E6D5C3 100%);
    border-radius: 20px 20px 0 0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1) saturate(1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) saturate(1.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4A7C2A 0%, #87A96B 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(74, 124, 42, 0.4);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card .card-body {
    padding: 1.5rem !important;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 230, 211, 0.95) 100%);
}

.product-card .card-body h5,
.product-card .card-body .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D5016 !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.product-card:hover .card-body h5,
.product-card:hover .card-body .card-title {
    color: #C85A2F !important;
}

.product-card .card-body p {
    color: #6B4423;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #C85A2F !important;
    background: linear-gradient(135deg, #C85A2F 0%, #E67E22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Enhanced Category Cards */
.product-card.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 230, 211, 0.9) 100%) !important;
    border: 2px solid rgba(107, 68, 35, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card.category-card:hover {
    border-color: rgba(200, 90, 47, 0.6) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 230, 211, 1) 100%) !important;
    transform: translateY(-8px) scale(1.03);
}

.product-card.category-card i {
    font-size: 4rem !important;
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #87A96B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    display: inline-block;
}

.product-card.category-card:hover i {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, #C85A2F 0%, #E67E22 50%, #FFB84D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card.category-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D5016 !important;
    transition: color 0.3s ease;
}

.product-card.category-card:hover h5 {
    color: #C85A2F !important;
}

/* Modern Buttons - Premium Style */
.btn-primary {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #87A96B 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, #4A7C2A 0%, #87A96B 50%, #2D5016 100%) !important;
}

.btn-outline-primary {
    border: 2px solid #2D5016 !important;
    color: #2D5016 !important;
    background: transparent;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2A 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white !important;
    border-color: #2D5016 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.btn-outline-primary:hover::before {
    width: 100%;
}

/* Enhanced Section Headings */
section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2D5016 0%, #C85A2F 50%, #E67E22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2D5016 0%, #C85A2F 50%, #E67E22 100%);
    border-radius: 2px;
}

/* Stats Cards Enhancement - Override to ensure dark background */
.stats-card {
    background: linear-gradient(135deg, #1A3009 0%, #2D5016 20%, #4A7C2A 40%, #6B8E23 60%, #87A96B 80%, #A8C97F 100%) !important;
    background-color: #2D5016 !important;
    background-image: none !important;
}

.stats-card .card-body {
    background: transparent !important;
    background-color: transparent !important;
}

.stats-card *,
.stats-card h3,
.stats-card p,
.stats-card i {
    color: #FFFFFF !important;
}

/* Stats Cards Enhancement - Dark Green Background */
.stats-card {
    background: linear-gradient(135deg, #1A3009 0%, #2D5016 20%, #4A7C2A 40%, #6B8E23 60%, #87A96B 80%, #A8C97F 100%) !important;
    background-color: #2D5016 !important;
    background-image: none !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.4), 0 5px 15px rgba(74, 124, 42, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: #FFFFFF !important;
}

.stats-card .card-body {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #FFFFFF !important;
    position: relative;
    z-index: 2;
}

.stats-card h3,
.stats-card p,
.stats-card i,
.stats-card .text-white,
.stats-card .text-white-50,
.stats-card * {
    color: #FFFFFF !important;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.4) !important;
}

.stats-card i {
    font-size: 3.5rem !important;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.stats-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Modern Filter Cards */
.card.shadow-sm {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.15) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 230, 211, 0.95) 100%) !important;
}

.card-header {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2A 100%) !important;
    color: white !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem !important;
    font-weight: 700;
    border: none !important;
}

/* Form Controls - Modern Style */
.form-control,
.form-select {
    border: 2px solid rgba(107, 68, 35, 0.2) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #4A7C2A !important;
    box-shadow: 0 0 0 4px rgba(74, 124, 42, 0.1) !important;
    background: white !important;
    outline: none;
}

/* Premium Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bg-success {
    background: linear-gradient(135deg, #4A7C2A 0%, #87A96B 100%) !important;
}

/* Enhanced Background Sections */
.bg-light {
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.6) 0%, rgba(230, 213, 195, 0.5) 50%, rgba(156, 175, 136, 0.4) 100%) !important;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(45, 80, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 90, 47, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}

/* Loading Animation for Images */
.product-image img {
    animation: fadeInImage 0.6s ease-in;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Premium Hover Effects */
.product-card .card-body .btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .card-body .btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

/* Artisan Info Styling */
.product-card .text-muted {
    color: #6B4423 !important;
    font-weight: 500;
}

.product-card .text-muted i {
    color: #C85A2F;
    margin-right: 0.25rem;
}

/* Rating Stars Enhancement */
.bi-star-fill {
    color: #FFB84D !important;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 77, 0.3));
}

.bi-star {
    color: #D4C4B0 !important;
}

