/* ==========================================
   PRODUCTS HERO
========================================== */

.products-hero{
    padding:140px 0 80px;
    text-align:center;
    background:linear-gradient(135deg,#f8fafc,#eef7f2);
}

.products-tag{
    display:inline-block;
    background:#eaf7f1;
    color:#0d8b52;
    padding:10px 22px;
    border-radius:50px;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:20px;
}

.products-hero h1{
    font-size:48px;
    color:#12372A;
    margin-bottom:20px;
}

.products-hero p{
    max-width:700px;
    margin:auto;
    color:#555;
    font-size:18px;
    line-height:1.8;
}

/* ==========================================
   CATEGORY NAVIGATION
========================================== */

.product-nav{
    background:#fff;
    padding:20px 0;
    border-bottom:1px solid #eee;
}

.product-nav-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.product-nav-wrapper a{
    text-decoration:none;
    color:#12372A;
    background:#f4f6f8;
    padding:10px 18px;
    border-radius:30px;
    font-weight:600;
    transition:0.3s;
}

.product-nav-wrapper a:hover{
    background:#148f4d;
    color:#fff;
}

/* Active Category */

.product-nav-wrapper a[href="#all"]:target,
.product-nav-wrapper a[href="#herbal"]:target,
.product-nav-wrapper a[href="#agriculture"]:target,
.product-nav-wrapper a[href="#jute"]:target{
    background:#148f4d;
    color:#fff;
}
/* ==========================================
   PRODUCTS GRID
========================================== */

.products-section{
    padding:80px 0;
    background:#f8fafc;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

/* ==========================================
   PRODUCT CARD
========================================== */

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s ease;
    display:flex;
    flex-direction:column;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.product-content{
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-content h3{
    font-size:22px;
    color:#12372A;
    margin-bottom:10px;
}

.product-content p{
    color:#666;
    line-height:1.7;
    margin-bottom:20px;
    flex:1;
}

/* ==========================================
   DETAILS BUTTON
========================================== */

.product-btn{
    margin-top:auto;
    width:120px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    background:#148f4d;
    color:#fff;
    border-radius:8px;
    font-weight:600;

    transition:0.3s;
}

.product-btn:hover{
    background:#0f733d;
}
/* ==========================================
   TABLET VIEW
========================================== */

@media (max-width:1024px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:24px;
    }

    .products-hero h1{
        font-size:40px;
    }

}

/* ==========================================
   MOBILE VIEW
========================================== */

@media (max-width:768px){

    .products-hero{
        padding:110px 0 60px;
    }

    .products-hero h1{
        font-size:32px;
        line-height:1.3;
    }

    .products-hero p{
        font-size:15px;
    }

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
        padding:0 10px;
    }

    .product-card{
        border-radius:14px;
    }

    .product-card img{
        height:120px;
    }

    .product-content{
        padding:10px;
    }

    .product-content h3{
        font-size:14px;
        margin-bottom:6px;
        line-height:1.3;
    }

    .product-content p{
        font-size:11px;
        line-height:1.4;
        margin-bottom:10px;
    }

    .product-btn{
        width:100%;
        height:32px;
        font-size:12px;
    }

    .product-nav-wrapper{
        gap:8px;
    }

    .product-nav-wrapper a{
        padding:8px 14px;
        font-size:13px;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width:480px){

    .products-grid{
        gap:10px;
    }

    .product-card img{
        height:100px;
    }

    .product-content h3{
        font-size:13px;
    }

    .product-content p{
        font-size:10px;
    }

}
/* ==========================================
   ACTIVE FILTER BUTTON
========================================== */

.product-nav-wrapper a.active{
    background:#148f4d;
    color:#fff;
}

/* ==========================================
   PREMIUM CARD FINISH
========================================== */

.product-card{
    border:1px solid rgba(20,143,77,0.08);
}

.product-content h3{
    transition:0.3s;
}

.product-card:hover .product-content h3{
    color:#148f4d;
}

.product-card img{
    transition:0.4s;
}

.product-card:hover img{
    transform:scale(1.05);
}

/* ==========================================
   SMOOTH FILTER ANIMATION
========================================== */

.product-card{
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* ==========================================
   GLOBAL
========================================== */

html{
    scroll-behavior:smooth;
}
/* ==========================================
FINAL PRODUCT CARD FIX
========================================== */

.product-card{
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.product-content{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:20px;
}

.product-content h3{
    color:#12372A;
    font-size:22px;
    font-weight:700;
    margin:0 0 12px 0;
    min-height:54px;
}

.product-content p{
    color:#666;
    font-size:15px;
    line-height:1.7;
    margin:0;
    flex:1;
}

.product-btn{
    margin-top:20px;
    width:120px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#148f4d;
    color:#ffffff !important;

    text-decoration:none;
    font-size:14px;
    font-weight:600;

    border-radius:8px;
    transition:.3s;
}

.product-btn:hover{
    background:#0f7a40;
    color:#ffffff !important;
}

/* ==========================================
MOBILE FIX
========================================== */

@media (max-width:768px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
        padding:0 10px;
    }

    .product-card img{
        height:110px;
    }

    .product-content{
        padding:10px;
    }

    .product-content h3{
        font-size:13px;
        min-height:34px;
        margin-bottom:6px;
    }

    .product-content p{
        font-size:11px;
        line-height:1.4;
    }

    .product-btn{
        width:100%;
        height:32px;
        font-size:11px;
        margin-top:10px;
    }
}
/* FINAL DETAILS BUTTON FIX */

.product-btn{
    display:inline-flex !important;
    width:auto !important;
    min-width:80px !important;

    padding:8px 16px !important;
    height:auto !important;

    margin-top:auto !important;
    margin-left:auto !important;
    margin-right:auto !important;

    align-items:center !important;
    justify-content:center !important;

    background:#148f4d !important;
    color:#ffffff !important;

    border-radius:8px !important;
    text-decoration:none !important;
    font-size:11px !important;
    font-weight:600 !important;
}

.product-btn:hover{
    background:#0f7a41 !important;
    color:#ffffff !important;
}