﻿/* ===== HERO SECTION ===== */
.product-hero {
    position: relative;
    height: 70vh;
    background: url('../Content/Images/65.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

    .product-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45); /* subtle dark overlay for text clarity */
        z-index: 1;
    }

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeDown 1.5s ease;
}

    .hero-text h1 {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    }

    .hero-text p {
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.6;
        opacity: 0.95;
    }

/* ===== PRODUCT SECTION ===== */
.product-grid-section {
    padding: 80px 20px;
    background: #ffffff; /* clean white background */
    color: #333;
}

    .product-grid-section h2 {
        text-align: center;
        font-size: 2.8rem;
        font-weight: bold;
        margin-bottom: 60px;
        color: #2d572c; /* elegant green */
        text-shadow: 1px 1px 6px rgba(0,0,0,0.05);
        position: relative;
    }

        .product-grid-section h2::after {
            content: "";
            display: block;
            width: 80px;
            height: 4px;
            background: #27ae60;
            margin: 15px auto 0;
            border-radius: 2px;
        }

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

    .product-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .product-card h3 {
        margin: 18px 0 10px;
        font-size: 1.4rem;
        color: #145a32;
        font-weight: 700;
    }

    .product-card p {
        padding: 0 18px 20px;
        font-size: 0.95rem;
        color: #555;
        line-height: 1.6;
    }

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.2);
    }

        .product-card:hover img {
            transform: scale(1.08);
        }

/* ===== BACK BUTTON ===== */
.back-btn {
    text-align: center;
    margin-top: 60px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #27ae60;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

    .btn:hover {
        background: #145a32;
        transform: scale(1.08);
    }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}
