/* Featured Products Section - COMPLETE Background Match */

.featured-products-section {
    padding: 5rem 0;
    
    /* EXACT SAME BACKGROUND AS OTHER SECTIONS */
    background-color: #000000;
    background-image: 
        /* Grid pattern - same as other sections */
        linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px),
        /* Faded circles - same as other sections */
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 0, 0, 0.025) 0%, transparent 40%);
    background-size: 
        80px 80px,
        80px 80px,
        800px 800px,
        600px 600px,
        700px 700px;
    background-position:
        0 0,
        0 0,
        0 0,
        100% 0,
        50% 100%;
    
    position: relative;
    overflow: hidden;
}

/* Add the same animated background elements as other sections */
.featured-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 0, 0, 0.015) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

.featured-products-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(139, 0, 0, 0.018) 0%, transparent 45%),
        radial-gradient(circle at 30% 70%, rgba(139, 0, 0, 0.012) 0%, transparent 40%);
    animation: backgroundFloat 25s ease-in-out infinite alternate-reverse;
    z-index: 1;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10px, -10px) scale(1.02); }
}

/* Section Container */
.featured-products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Section Header */
.featured-products-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.featured-products-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #8b0000 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.featured-products-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Products Grid */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

/* Individual Product Card - Matching website style */
.featured-product-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 0, 0, 0.2);
    min-height: 400px;
    cursor: pointer;
    /* Reduced shadow for cleaner appearance */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Card Corner Gradient Effect - Red Variations Only */
.featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: var(--card-gradient);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Card Variants - All Red Theme */
.featured-product-card:nth-child(1) { 
    --card-gradient: radial-gradient(circle at 85% 15%, rgba(139, 0, 0, 0.4) 0%, rgba(139, 0, 0, 0.2) 25%, rgba(139, 0, 0, 0.1) 45%, transparent 65%);
    --progress-color: linear-gradient(90deg, #8b0000, #a50000);
}

.featured-product-card:nth-child(2) { 
    --card-gradient: radial-gradient(circle at 85% 15%, rgba(165, 0, 0, 0.4) 0%, rgba(165, 0, 0, 0.2) 25%, rgba(165, 0, 0, 0.1) 45%, transparent 65%);
    --progress-color: linear-gradient(90deg, #a50000, #c70000);
}

.featured-product-card:nth-child(3) { 
    --card-gradient: radial-gradient(circle at 85% 15%, rgba(102, 0, 0, 0.4) 0%, rgba(102, 0, 0, 0.2) 25%, rgba(102, 0, 0, 0.1) 45%, transparent 65%);
    --progress-color: linear-gradient(90deg, #660000, #8b0000);
}

.featured-product-card:nth-child(4) { 
    --card-gradient: radial-gradient(circle at 85% 15%, rgba(117, 0, 0, 0.4) 0%, rgba(117, 0, 0, 0.2) 25%, rgba(117, 0, 0, 0.1) 45%, transparent 65%);
    --progress-color: linear-gradient(90deg, #750000, #990000);
}

/* Card Hover Effects */
.featured-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(139, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 0, 0, 0.4);
}

.featured-product-card:hover::before {
    width: 70%;
    height: 70%;
    opacity: 1.2;
}

/* Card Header */
.featured-product-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.featured-product-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(139, 0, 0, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.featured-product-menu {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.featured-product-menu:hover {
    color: #8b0000;
}

/* Product Image */
.featured-product-image {
    position: absolute;
    top: 4rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 5;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.1);
}

/* Product Content */
.featured-product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
}

.featured-product-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.featured-product-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Progress Section - Red Theme */
.featured-product-progress {
    margin-bottom: 1.5rem;
}

.featured-progress-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.featured-progress-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.featured-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--progress-color);
    border-radius: 3px;
    width: var(--progress-width, 75%);
    animation: progressFill 2s ease-out 0.5s both;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: var(--progress-width, 75%); }
}

.featured-progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Card Footer */
.featured-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.featured-product-price {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-add-btn {
    background: linear-gradient(135deg, #8b0000, #660000);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.featured-add-btn:hover {
    background: linear-gradient(135deg, #a50000, #8b0000);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
    border-color: rgba(139, 0, 0, 0.5);
}

/* View All Button - Red Theme */
.featured-view-all {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.featured-view-all-btn {
    background: rgba(139, 0, 0, 0.08);
    border: 2px solid rgba(139, 0, 0, 0.25);
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.featured-view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.3), transparent);
    transition: left 0.6s ease;
}

.featured-view-all-btn:hover::before {
    left: 100%;
}

.featured-view-all-btn:hover {
    background: rgba(139, 0, 0, 0.15);
    border-color: rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.25);
}

/* Scroll Animation */
.featured-product-card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardSlideIn 0.8s ease-out forwards;
}

.featured-product-card:nth-child(1) { animation-delay: 0.1s; }
.featured-product-card:nth-child(2) { animation-delay: 0.2s; }
.featured-product-card:nth-child(3) { animation-delay: 0.3s; }
.featured-product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-products-title {
        font-size: 2.2rem;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-product-card {
        min-height: 350px;
    }
    
    .featured-product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .featured-products-container {
        padding: 0 1rem;
    }
    
    .featured-products-title {
        font-size: 1.8rem;
    }
    
    .featured-product-card {
        min-height: 320px;
    }
}
