from flask import Flask, render_template

app = Flask(__name__)

products = [
    {"name": "Tomato 'Brandywine'", "type": "Heirloom Seed", "price": "2.50", "unit": "per packet", "badge": "Best Seller", "image": "🍅"},
    {"name": "Sunflower 'Russian Giant'", "type": "Heirloom Seed", "price": "2.25", "unit": "per packet", "badge": "", "image": "🌻"},
    {"name": "Potting Mix Blend", "type": "Soil & Medium", "price": "14.99", "unit": "per bag", "badge": "", "image": "🌿"},
    {"name": "Worm Castings", "type": "Organic Fertilizer", "price": "11.50", "unit": "per bag", "badge": "Organic", "image": "🪱"},
    {"name": "18-in Terracotta Pot", "type": "Pots & Planters", "price": "32.00", "unit": "each", "badge": "", "image": "🏺"},
    {"name": "Buxus 'Suffruticosa'", "type": "Nursery Plant", "price": "18.75", "unit": "each", "badge": "New", "image": "🌳"},
    {"name": "Kumquat 'Nagami'", "type": "Nursery Plant", "price": "45.00", "unit": "each", "badge": "", "image": "🍊"},
    {"name": "1/2\" Drip Tubing", "type": "Irrigation", "price": "22.00", "unit": "per roll", "badge": "", "image": "💧"},
    {"name": "Garden Hoe, Short Handle", "type": "Hand Tools", "price": "26.50", "unit": "each", "badge": "", "image": "⛏️"},
    {"name": "Compost Bin (4 cu ft)", "type": "Outdoor", "price": "58.00", "unit": "each", "badge": "", "image": "♻️"},
    {"name": "Lavender 'Hidcote'", "type": "Nursery Plant", "price": "12.99", "unit": "each", "badge": "Popular", "image": "💜"},
    {"name": "Raised Bed Kit (4x8)", "type": "Outdoor", "price": "125.00", "unit": "per kit", "badge": "", "image": "🏗️"},
]

categories = [
    "All",
    "Seeds",
    "Plants",
    "Soil & Fertilizer",
    "Pots & Planters",
    "Tools",
    "Irrigation",
    "Outdoor",
]


@app.route("/")
def index():
    return render_template("index.html", products=products, categories=categories)


if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5050, debug=True)