﻿/* 🌿 General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: #f9fdf8;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.products-hero-section {
    position: relative;
    height: 70vh;
    background: url('../Content/Images/vegebk.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

    .products-hero-section .overlay {
        background: rgba(0, 0, 0, 0.5);
        padding: 40px;
        border-radius: 20px;
        animation: fadeIn 2s ease-in-out;
    }

.hero-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: slideInDown 1.2s ease-in-out;
}

.hero-subtext {
    font-size: 1.4rem;
    font-weight: 400;
    animation: slideInUp 1.2s ease-in-out;
}

/* Product Section */
.product-grid-section {
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #2c7a3f;
    position: relative;
}

    .section-title::after {
        content: '';
        width: 80px;
        height: 4px;
        background: #ffb703;
        display: block;
        margin: 10px auto;
        border-radius: 10px;
    }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-12px) scale(1.05);
        box-shadow: 0px 12px 24px rgba(0,0,0,0.15);
    }

    .product-card .img-wrapper {
        overflow: hidden;
        border-radius: 15px;
        margin-bottom: 15px;
    }

    .product-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 15px;
        transition: transform 0.6s ease;
    }

    .product-card:hover img {
        transform: scale(1.1) rotate(2deg);
    }

    .product-card h3 {
        font-size: 1.4rem;
        margin: 10px 0;
        color: #2c7a3f;
        font-weight: 600;
    }

    .product-card p {
        font-size: 0.95rem;
        color: #555;
    }

/* View More Button */
.view-more-wrapper {
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c7a3f, #4caf50);
    color: white;
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.4s ease, transform 0.3s ease;
}

    .view-more-btn:hover {
        background: linear-gradient(135deg, #1e5d2e, #3d8b40);
        transform: scale(1.08);
    }

/* ✨ Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
