﻿/* =========================================
   SAARAS AGRO INDUSTRIES - PRODUCTS PAGE
=========================================== */

/* ----- Base Styles ----- */
.products-page {
    font-family: "Poppins", sans-serif;
    color: #222;
    background: #f9fafb;
    overflow-x: hidden;
}

/* ----- Hero Section ----- */
.page-hero {
    position: relative;
    background: url('../images/soyabk.jpg') center/cover no-repeat;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .page-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 70, 50, 0.6);
    }

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

    .hero-content h1 {
        font-size: 42px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 18px;
        opacity: 0.9;
    }

/* ----- Section Titles ----- */
.section-title {
    text-align: center;
    font-size: 36px;
    color: #064e3b;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 40px;
}

/* ----- Best Products Section ----- */
.best-products-section {
    background: linear-gradient(135deg, #f7fdf9, #e6fff2);
    padding: 60px 0;
}

/* ----- Product Grid ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    justify-content: center;
    padding: 0 30px;
}

/* ----- Product Card ----- */
.product-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease-in-out;
    background: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
}

    .product-card.reveal {
        opacity: 1;
        transform: translateY(0);
    }

    /* Big, Full Image */
    .product-card img {
        width: 120%;
        height: 400px;
        object-fit: cover;
        transition: transform 0.6s ease, filter 0.4s ease;
        border-bottom: 4px solid #0d9488;
        border-radius: 20px 20px 0 0;
    }

    .product-card:hover img {
        transform: scale(1.05);
        filter: brightness(0.9);
    }

/* ----- Product Info (Always Visible) ----- */
.product-info {
    flex: 1;
    padding: 25px;
    background: #fff;
    color: #064e3b;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

    .product-info h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #047857;
    }

    .product-info p {
        font-size: 16px;
        line-height: 1.6;
        color: #444;
    }

/* ----- Hover Effect ----- */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

/* ----- Responsive Design ----- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .product-info h3 {
        font-size: 20px;
    }

    .product-card img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 240px;
    }
}
