/* Enhanced Products Showcase Styles */

/* Products Section */
.products-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.products-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23007bff" fill-opacity="0.03"><circle cx="20" cy="20" r="1.5"/></g></svg>') repeat;
    pointer-events: none;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #da000e, #0056b3);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product Filter Tabs */
.products-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #da000e, #0056b3);
    border-color: #da000e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,123,255,0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
    border-color: rgba(0,123,255,0.2);
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #da000e, #0056b3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-badge.popular {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.product-badge.new {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
}

.product-badge.premium {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.product-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: all 0.3s ease;
}

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

.view-product {
    background: #ffffff;
    color: #da000e;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-product:hover {
    background: #da000e;
    color: #ffffff;
    transform: scale(1.05);
}

/* Product Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
}

.quick-view,
.add-to-compare {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-view:hover,
.add-to-compare:hover {
    background: #da000e;
    color: #ffffff;
    transform: scale(1.1);
}

/* Enhanced Badge Styles */
.product-badge.best-seller {
    background: linear-gradient(135deg, #da000e, #0056b3);
    animation: pulse 2s infinite;
}

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

/* Product Content */
.product-content {
    padding: 30px;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating .stars i {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Product Price */
.product-price {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #da000e;
}

.product-category {
    color: #da000e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(0,123,255,0.1);
    color: #da000e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #da000e;
}

.original-price {
    font-size: 16px;
    color: #6c757d;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #da000e, #0056b3);
    color: #ffffff;
}

.product-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.btn-wishlist {
    width: 45px;
    height: 45px;
    background: rgba(0,123,255,0.1);
    border: none;
    border-radius: 8px;
    color: #da000e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #da000e;
    color: #ffffff;
    transform: scale(1.1);
}

/* Section CTA */
.section-cta {
    margin-top: 40px;
}

.btn-outline-large {
    background: transparent;
    color: #da000e;
    border: 2px solid #da000e;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-large:hover {
    background: #da000e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,123,255,0.3);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .products-showcase {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .product-content {
        padding: 25px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .current-price {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .products-showcase {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .product-features {
        margin-bottom: 15px;
    }
    
    .feature {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 40px;
    }
    
    .product-actions .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Loading Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideInUp 0.8s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover Effects */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.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.6s ease;
    z-index: 1;
}

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

/* Section Stats */
.section-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
    padding: 50px 0;
    border-top: 1px solid rgba(0,123,255,0.1);
    border-bottom: 1px solid rgba(0,123,255,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #da000e, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Enhanced CTA Section */
.section-cta {
    position: relative;
}

.cta-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
    font-style: italic;
}

/* Enhanced Product Features */
.product-features .feature i {
    color: #da000e;
    margin-right: 5px;
    font-size: 12px;
}

/* Featured Product Card */
.product-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,123,255,0.2);
    border: 2px solid rgba(0,123,255,0.3);
}

.product-card.featured .product-badge {
    animation: pulse 2s infinite;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .products-filter-tabs {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .section-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .products-filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        min-width: 200px;
        padding: 10px 20px;
    }
    
    .section-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
        padding: 30px 0;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .product-card.featured {
        transform: none;
    }
}