﻿/* 🌿 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/VegeBack.jpg') 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);
    }
}
/* Product Grid Section */
.product-grid-section {
    padding: 70px 20px;
    background: linear-gradient(to right, #f8fafc, #f0fdf4);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    color: #065f46;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-in-out;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

/* Image */
.img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Text */
.product-card h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    color: #047857;
}

.product-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Button */
.view-more-wrapper {
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    background: #047857;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .view-more-btn:hover {
        background: #065f46;
    }

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
