/* ===== RESET ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#f1f3f6;
    color:#212121;
}

/* ===== HEADER ===== */
header{
    background:#2E7D32;
    color:white;
    padding:12px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
}

header h1{
    font-size:20px;
}

/* ===== NAV ===== */
nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    position:relative;
}

/* NAV LINKS */
nav ul li a{
    color:white;
    text-decoration:none;
    padding:10px 15px;
    font-size:14px;
    display:block;
    transition:0.3s;
}

/* HOVER FIX */
nav ul li a:hover{
    background:white;
    color:#2E7D32;
    border-radius:4px;
}

/* ===== DROPDOWN ===== */
.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:160px;
    border-radius:6px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    overflow:hidden;
    z-index:999;
}

/* DROPDOWN LINKS */
.dropdown-menu li a{
    color:#333;
    padding:10px;
}

/* DROPDOWN HOVER */
.dropdown-menu li a:hover{
    background:#f5f5f5;
    color:#2E7D32;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-menu{
    display:block;
}

/* ===== TOP BAR ===== */
.top-bar{
    display:flex;
    gap:10px;
    padding:15px 40px;
    background:white;
    border-bottom:1px solid #ddd;
}

.top-bar input,
.top-bar select{
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
}

/* ===== CART ICON ===== */
.cart-icon{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#2E7D32;
    color:white;
    padding:12px 15px;
    border-radius:50px;
    font-size:16px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

/* ===== PRODUCT GRID ===== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:15px;
    padding:20px 40px;
}

/* ===== CARD ===== */
.card{
    background:white;
    border-radius:6px;
    padding:10px;
    border:1px solid #e0e0e0;
    transition:0.2s;
}

.card:hover{
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

/* IMAGE */
.card img{
    width:100%;
    height:150px;
    object-fit:cover;
}

/* TITLE */
.card h3{
    font-size:14px;
    margin:8px 0;
}

/* PRICE */
.card p{
    font-weight:bold;
    color:#2E7D32;
}

/* BUTTON */
.card button{
    width:100%;
    margin-top:8px;
    padding:8px;
    border:none;
    background:#2E7D32;
    color:white;
    border-radius:4px;
    cursor:pointer;
    font-size:14px;
}

.card button:hover{
    background:#1b5e20;
}

/* ===== MOBILE ===== */
@media(max-width:600px){

    header{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-bar{
        flex-direction:column;
        padding:10px;
    }

    .grid{
        padding:10px;
        grid-template-columns:repeat(2,1fr);
    }
}