/* ==========================================
            BUTTONS
========================================== */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 22px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    transition:.3s;
    cursor:pointer;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-primary:hover{
    background:#256728;
}

.btn-secondary{
    background:var(--secondary);
    color:#fff;
}

.btn-secondary:hover{
    background:#f57c00;
}

.btn-outline{
    border:2px solid var(--primary);
    color:var(--primary);
    background:#fff;
}

.btn-outline:hover{
    background:var(--primary);
    color:#fff;
}


/* ==========================================
            SECTION HEADER
========================================== */

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.section-header h2{

    font-size:34px;

    font-weight:700;

}

.section-header p{

    color:var(--gray);

    margin-top:6px;

}

.view-all-btn{

    color:var(--primary);

    font-weight:600;

}


/* ==========================================
            PRODUCT GRID
========================================== */

.products-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}


/* ==========================================
            PRODUCT CARD
========================================== */

.product-card{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

}

.product-card:hover{

    transform:translateY(-8px);

}

.product-image{

    position:relative;

    height:250px;

    overflow:hidden;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.badge{

    position:absolute;

    top:15px;

    left:15px;

    background:var(--secondary);

    color:#fff;

    padding:6px 14px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.product-info{

    padding:20px;

}

.product-info h3{

    font-size:20px;

    margin-bottom:10px;

}

.rating{

    color:#ff9800;

    font-size:15px;

    margin-bottom:10px;

}

.rating span{

    color:#444;

    margin-left:8px;

}

.weight{

    color:var(--gray);

    margin-bottom:10px;

}

.price{

    font-size:28px;

    color:var(--primary);

    font-weight:700;

    margin-bottom:12px;

}

.farmer{

    color:#2E7D32;

    font-size:14px;

    font-weight:600;

    margin-bottom:20px;

}

.cart-btn{

    width:100%;

    background:var(--primary);

    color:#fff;

    border:none;

    padding:14px;

    border-radius:10px;

    font-size:15px;

    font-weight:600;

    transition:.3s;

}

.cart-btn:hover{

    background:#256728;

}


/* ==========================================
            CATEGORY CARD
========================================== */

.category-card{

    background:#fff;

    border-radius:16px;

    text-align:center;

    padding:30px 15px;

    box-shadow:var(--shadow);

    transition:.3s;

}

.category-card:hover{

    transform:translateY(-6px);

}

.category-icon{

    font-size:40px;

    margin-bottom:15px;

}

.category-card h4{

    font-size:18px;

}
/* ===========================
   PRODUCT GALLERY
=========================== */

.product-gallery{
    width:100%;
}

.main-image{
    border:1px solid #eee;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.main-image img{
    width:100%;
    height:500px;
    object-fit:contain;
    display:block;
}

.thumbnail-gallery{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.thumbnail-gallery img{
    width:90px;
    height:90px;
    object-fit:cover;
    border:2px solid #eee;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.thumbnail-gallery img:hover{
    border-color:#2E7D32;
}

.thumb.active{
    border-color:#2E7D32;
}
/* ===========================
   PRODUCT INFO
=========================== */

.product-info{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.product-category{
    color:#2E7D32;
    font-weight:600;
    font-size:14px;
}

.product-title{
    font-size:38px;
    font-weight:700;
    color:#222;
    line-height:1.3;
}

.product-rating{
    display:flex;
    align-items:center;
    gap:12px;
}

.stars{
    color:#ff9800;
    font-size:18px;
}

.rating-text{
    color:#666;
}

.product-price{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.sale-price{
    font-size:40px;
    font-weight:700;
    color:#2E7D32;
}

.original-price{
    text-decoration:line-through;
    color:#999;
}

.discount{
    background:#e8f5e9;
    color:#2E7D32;
    padding:5px 10px;
    border-radius:20px;
    font-weight:600;
}

.product-stock{
    color:#2E7D32;
    font-weight:600;
}

.weight-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.weight{
    padding:12px 20px;
    border:2px solid #ddd;
    background:#fff;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.weight:hover,
.weight.active{
    border-color:#2E7D32;
    color:#2E7D32;
}

.quantity-box{
    display:flex;
    width:150px;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.quantity-box button{
    width:45px;
    border:none;
    background:#f5f5f5;
    cursor:pointer;
    font-size:20px;
}

.quantity-box input{
    flex:1;
    border:none;
    text-align:center;
    font-size:18px;
}

.product-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.cart-btn,
.buy-btn{
    flex:1;
    padding:16px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:17px;
    font-weight:600;
}

.cart-btn{
    background:#2E7D32;
    color:#fff;
}

.buy-btn{
    background:#ff9800;
    color:#fff;
}

.delivery-box{
    padding:15px;
    background:#F1F8E9;
    border-radius:10px;
    color:#2E7D32;
    font-weight:600;
}
/* ===========================
   FARMER CARD
=========================== */

.farmer-card{

    margin-top:40px;

    padding:30px;

    background:#fff;

    border-radius:18px;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

}

.farmer-header{

    display:flex;

    align-items:center;

    gap:20px;

    margin-bottom:20px;

}

.farmer-header img{

    width:80px;

    height:80px;

    border-radius:50%;

    object-fit:cover;

}

.verified{

    color:#2E7D32;

    font-weight:600;

}

.farmer-details{

    display:flex;

    flex-direction:column;

    gap:10px;

    color:#555;

    margin-bottom:25px;

}

.view-farmer-btn{

    display:inline-block;

    padding:12px 24px;

    background:#2E7D32;

    color:#fff;

    border-radius:8px;

    text-decoration:none;

    font-weight:600;

}

.view-farmer-btn:hover{

    background:#256428;

}
/* ===========================
   PRODUCT DESCRIPTION
=========================== */

.product-description{

    margin-top:60px;

    padding:40px;

    background:#fff;

    border-radius:18px;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

}

.product-description h2{

    font-size:32px;

    margin-bottom:20px;

    color:#222;

}

.product-description p{

    color:#555;

    line-height:1.8;

    font-size:17px;

}

.description-grid{

    margin-top:35px;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

.desc-item{

    background:#f8f9fa;

    padding:25px;

    border-radius:12px;

}

.desc-item h4{

    color:#2E7D32;

    margin-bottom:10px;

}
/* ===========================
RELATED PRODUCTS
=========================== */

.related-products{

    margin-top:70px;

}

.related-products h2{

    font-size:34px;

    margin-bottom:8px;

}

.related-products p{

    color:#666;

    margin-bottom:30px;

}