/* ===== HOMEPAGE FEATURED PRODUCTS SECTION - COMPLETELY NEW STYLING ===== */
/* This file contains isolated styling for the homepage featured products section */

.homepage-featured-products {
    padding: 5rem 0;
    background: #f8f9fa;
    position: relative;
}

.homepage-featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 0, 153, 0.02) 0%, rgba(0, 128, 0, 0.02) 100%);
    pointer-events: none;
}

.homepage-featured-products .container {
    position: relative;
    z-index: 1;
}

.homepage-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.homepage-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.homepage-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.homepage-product-image {
    height: 220px;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.homepage-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.homepage-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.homepage-placeholder-image i {
    font-size: 3.5rem;
    color: #6c757d;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.homepage-product-card:hover .homepage-placeholder-image i {
    color: #660099;
    transform: scale(1.1);
}

.homepage-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 0, 153, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.homepage-product-card:hover .homepage-product-overlay {
    opacity: 1;
}

.homepage-product-overlay .btn {
    background: #ffffff;
    color: #660099;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.homepage-product-overlay .btn:hover {
    background: #660099;
    color: #ffffff;
    transform: scale(1.05);
}

.homepage-product-content {
    padding: 1.5rem;
}

.homepage-product-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d1b69;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.homepage-product-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.homepage-product-price {
    margin-top: 1rem;
}

.homepage-product-price .price {
    font-weight: 700;
    color: #660099;
    font-size: 1.1rem;
}

/* Responsive styling for homepage featured products */
@media (max-width: 768px) {
    .homepage-featured-products {
        padding: 3rem 0;
    }

    .homepage-products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .homepage-product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .homepage-product-image {
        height: 200px;
    }

    .homepage-placeholder-image i {
        font-size: 3rem;
    }

    .homepage-product-content {
        padding: 1.25rem;
    }

    .homepage-product-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .homepage-products-grid {
        gap: 1.5rem;
    }

    .homepage-product-card {
        max-width: 100%;
    }

    .homepage-product-image {
        height: 180px;
    }

    .homepage-placeholder-image i {
        font-size: 2.5rem;
    }

    .homepage-product-content {
        padding: 1rem;
    }
}
