/* =========================================================
   PRODUCTS PAGE
   ANJANEY AGRO ENTERPRISE

   NOTE:
   Header and Footer styling are controlled by
   css/style.css so they remain identical to Home page.
========================================================= */


/* =========================================================
PRODUCTS PAGE — HERO
Edit this section to control the Products page hero.
========================================================= */

.products-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: flex-start;
    padding: 145px 0 80px;
    background:
        url("../images/home/anjaney-agro-enterprise-product-hero.webp.webp");
    background-size: cover;
    background-position: 65% center;
    color: var(--white);
    overflow: hidden;
}

/* Dark overlay — same as About page */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 16, 0.92) 0%,
            rgba(8, 28, 16, 0.82) 28%,
            rgba(8, 28, 16, 0.48) 52%,
            rgba(8, 28, 16, 0.10) 100%
        );
    z-index: 1;
}

/* Hero content stays above the overlay */
.products-hero .page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    margin-left: 35px;
    transform: none
}

/* Section label */
.products-hero .section-label {
    margin-bottom: 14px;
    color: #e4c16a;
}

/* Main heading */
.products-hero h1 {
    max-width: 850px;
    margin-top: 0;
    color: var(--white);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 600;
}

/* Main hero statement */
.products-hero .page-hero-main-text {
    max-width: 720px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 21px;
    line-height: 1.5;
    font-weight: 500;
}

/* Hero description */
.products-hero .page-hero-description {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
MOBILE — PRODUCTS HERO
========================================================= */

@media (max-width: 768px) {

    .products-hero {
        min-height: 500px;
        align-items: center;
        padding: 120px 0 60px;
    }

    .products-hero h1 {
        font-size: 40px;
    }

    .products-hero .page-hero-main-text {
        font-size: 18px;
    }

    .products-hero .page-hero-description {
        font-size: 16px;
    }

    .products-hero .page-hero-content {
        text-align: left;
        margin-left: 15px;
    }

}

/* =========================================================
SMALL MOBILE — PRODUCTS HERO
========================================================= */

@media (max-width: 480px) {

    .products-hero {
        min-height: 470px;
        padding: 105px 0 50px;
    }

    .products-hero h1 {
        font-size: 35px;
    }

    .products-hero .hero-main-text {
        font-size: 17px;
    }

    .products-hero .hero-description {
        font-size: 15px;
    }

}

/* =========================================================
   PRODUCT CATALOGUE
========================================================= */

.product-catalogue {

    padding:
        100px 0;

    background: #f7f8f3;
    margin-top: -40px;

}

.product-catalogue .section-label {
    font-size: 15px;
    line-height: 1.75;
    margin-left: 5px;
}

.product-catalogue .section-heading {

    max-width: 760px;

    margin-bottom: 60px;
    

}


.product-catalogue .section-heading h2 {

    margin:
        12px 0 16px;

    color: #24341c;

    font-size:
        clamp(32px, 4vw, 48px);

    line-height: 1.15;
    margin-left: 5px;

}


.product-catalogue .section-heading > p {

    margin: 0;

    color: #687264;

    font-size: 17px;

    line-height: 1.75;
    margin-left: 5px;

}


/* =========================================================
   PRODUCT CATEGORY FILTER
   Edit this section to change filter button spacing,
   size, borders, colors, and active state.
========================================================= */

.product-filters {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin:
        0 0 60px;

}


/* =========================================================
   FILTER BUTTON
========================================================= */

.product-filter {

    min-height: 48px;

    padding:
        12px 24px;

    border:
        1px solid #d5ddd0;

    border-radius: 7px;

    background: #ffffff;

    color: #4e5d47;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;

}


/* =========================================================
   FILTER BUTTON HOVER
========================================================= */

.product-filter:hover {

    border-color: #506b31;

    color: #304721;

    transform:
        translateY(-2px);

}


/* =========================================================
   ACTIVE FILTER
   Peanuts is active by default.
========================================================= */

.product-filter.active {

    border-color: #304721;

    background: #304721;

    color: #ffffff;

}


/* =========================================================
   PRODUCT CATEGORY
========================================================= */

.product-category-section {

    margin-bottom: 85px;

}


.product-category-section:last-child {

    margin-bottom: 0;

}


.category-heading {

    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom:
        1px solid #dfe5d9;

}


.category-heading h2 {

    margin: 0;

    color: #26371e;

    font-size:
        clamp(28px, 3vw, 38px);

    line-height: 1.2;

}


/* =========================================================
   PRODUCT GRID
========================================================= */

.product-catalogue .product-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-catalogue .product-card {

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #e1e6dc;

    border-radius: 15px;

    box-shadow:
        0 7px 22px rgba(36, 52, 28, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.product-catalogue .product-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 16px 35px rgba(30, 45, 22, 0.11);

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image-link {

    display: block;

    text-decoration: none;

}


.product-catalogue .product-image {

    width: 100%;

    height: 255px;

    overflow: hidden;

    background: #eef1ea;

}


.product-catalogue .product-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.product-catalogue .product-card:hover
.product-image img {

    transform:
        scale(1.05);

}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.product-card-content {

    padding: 25px;

}


.product-card-content h3 {

    margin:
        0 0 12px;

    color: #26361e;

    font-size: 22px;

    line-height: 1.25;

}


.product-card-content p {

    min-height: 70px;

    margin:
        0 0 20px;

    color: #697267;

    font-size: 14px;

    line-height: 1.65;

}


/* =========================================================
   VIEW PRODUCT
========================================================= */

.product-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #506b31;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        gap 0.25s ease,
        color 0.25s ease;

}


.product-link:hover {

    gap: 13px;

    color: #2f491d;

}


.product-link span {

    font-size: 18px;

    line-height: 1;

}

/* =========================================================
   EXPLORE MORE
   Related product links shown below the selected category.
   Edit this section to change related product layout,
   card size, spacing, images, and typography.
========================================================= */

.explore-more {
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid #dfe5d9;
}

/* =========================================================
   EXPLORE MORE HEADING
========================================================= */

.explore-more-heading {
    margin-top: 5px;
    margin-bottom: 28px;
}

.explore-more-heading span {
    display: inline-block;
    font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #1b4d3e;
    text-transform: uppercase;
}

/* =========================================================
   EXPLORE MORE GRID
   Desktop: 4 related products per row.
========================================================= */

.explore-more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   EXPLORE PRODUCT CARD
   The entire card is clickable.
========================================================= */

.explore-product-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e6dc;
    border-radius: 12px;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.explore-product-card:hover {
    transform: translateY(-4px);
    border-color: #cfd8c7;
    box-shadow: 0 10px 25px rgba(36, 52, 28, 0.08);
}

/* =========================================================
   EXPLORE PRODUCT IMAGE
   Change height here to make related product images
   taller or shorter on desktop.
========================================================= */

.explore-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eef1ea;
}

.explore-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.explore-product-card:hover .explore-product-image img {
    transform: scale(1.05);
}

/* =========================================================
   EXPLORE PRODUCT NAME
========================================================= */

.explore-product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px;
    box-sizing: border-box;
    color: #26361e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* =========================================================
   TABLET
   3 related products per row between 769px and 1100px.
========================================================= */

@media (max-width: 1100px) {
    .explore-more-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
   2 related products per row.
========================================================= */

@media (max-width: 768px) {
    .explore-product-name {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 32px;
        padding: 8px 6px;
        box-sizing: border-box;

        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
    }

    .explore-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .explore-product-image {
        height: 200px;
    }

    .explore-product-name {      
        padding: 11px 12px 3px;
        font-size: 13px;
    }
}

/* =========================================================
   SMALL MOBILE
   Reduce image height on narrow screens.
========================================================= */

@media (max-width: 480px) {
    .explore-product-image {
        height: 105px;
    }

    .explore-product-name {
        font-size: 12px;
    }
}

/* =========================================================
   CTA
========================================================= */

.products-cta {

    padding:
        50px 0;

    background: #f1f4ec;
    margin-top:  -100px;

}


.cta-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding: 55px;

    background: #304721;

    border-radius: 20px;

}


.cta-content {

    max-width: 700px;

}


.cta-content .section-label {

    color: #cad8ba;

}


.cta-content h2 {

    margin:
        12px 0 15px;

    color: #ffffff;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.15;

}


.cta-content p {

    margin: 0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 16px;

    line-height: 1.7;

}


.cta-actions {

    display: flex;

    flex-shrink: 0;

    flex-wrap: wrap;

    gap: 12px;

}


/* =========================================================
   PRODUCTS CTA BUTTONS
========================================================= */

.products-cta .btn {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        12px 23px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;

}


.products-cta .btn:hover {

    transform:
        translateY(-2px);

}


.products-cta .btn-primary {

    background: #ffffff;

    color: #304721;

}


.products-cta .btn-primary:hover {

    background: #f2f5ee;

}


.products-cta .btn-outline {

    background: transparent;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    color: #ffffff;

}


.products-cta .btn-outline:hover {

    background:
        rgba(255, 255, 255, 0.08);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .product-catalogue .product-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .cta-box {

        align-items: flex-start;

        flex-direction: column;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    


    .product-catalogue {

        padding:
            70px 0;

    }


    .product-catalogue .section-heading {

        margin-bottom: 20px;

    }


    /* Mobile category filter */

    .product-filters {

        justify-content: flex-start;

        gap: 8px;

        margin:
            0 0 45px;

    }


    .product-filter {

        padding:
            11px 18px;

        font-size: 13px;

    }


    .product-category-section {

        margin-bottom: 65px;

    }


    .product-catalogue .product-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

    }



    .product-catalogue .product-image {

        height: 180px;

    }


    .product-card-content {

        padding: 15px;

    }


    .product-card-content h3 {

        font-size: 17px;

        margin-bottom: 8px;

    }


    .product-card-content p {

        min-height: auto;

        margin-bottom: 14px;

        font-size: 12px;

        line-height: 1.5;

    }


    .product-link {

        font-size: 12px;

    }




    .cta-box {

        padding:
            35px 25px;

    }


    .cta-actions {

        width: 100%;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {




    /* Small-screen category filter */

    .product-filters {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;

    }


    .product-filter {

        width: 100%;

        padding:
            12px 10px;

    }


    .product-card-content {

        padding: 22px;

    }


    .product-catalogue .product-image {

        height: 240px;

    }


    .cta-actions {

        flex-direction: column;

    }


    .cta-actions .btn {

        width: 100%;

    }

}