body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #e6f5d6 0%, #fffbe6 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #6cc51d;
}
nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.2s;
}
nav ul li.active, nav ul li:hover {
    background: #e6f5d6;
    color: #6cc51d;
}
#searchInput {
    flex: 1;
    margin: 0 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    max-width: 400px;
}
#hero {
    background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(108,197,29,0.07);
}
#categories {
    padding: 2rem;
    background: #f0fff0;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(108,197,29,0.07);
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.category-card {
    background: #fffbe6;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(108,197,29,0.10);
    padding: 2rem 1rem;
    width: 220px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.category-card:hover {
    box-shadow: 0 8px 24px rgba(108,197,29,0.18);
    transform: translateY(-4px) scale(1.03);
}
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #e6f5d6;
    box-shadow: 0 2px 8px rgba(108,197,29,0.10);
}
.category-card img.card-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: #e6f5d6;
    box-shadow: 0 2px 8px rgba(108,197,29,0.10);
    display: block;
    min-height: 180px;
    max-height: 260px;
}
#products {
    padding: 2rem;
    background: #e6f5d6;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(108,197,29,0.07);
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(108,197,29,0.10);
    padding: 2rem 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(108,197,29,0.18);
    transform: translateY(-4px) scale(1.03);
}
.product-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #f0fff0;
    box-shadow: 0 2px 8px rgba(108,197,29,0.10);
    display: block;
}
.product-card img.card-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: #f0fff0;
    box-shadow: 0 2px 8px rgba(108,197,29,0.10);
    display: block;
    min-height: 180px;
    max-height: 260px;
}
.product-card .price {
    color: #6cc51d;
    font-weight: bold;
    margin: 0.7rem 0;
    font-size: 1.2rem;
}
.product-card button {
    background: #6cc51d;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.product-card button:hover {
    background: #4ea314;
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}
.modal-content img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
#loginBtn, #cartBtn {
    background: #6cc51d;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#loginBtn:hover, #cartBtn:hover {
    background: #4ea314;
}
#cartCount {
    background: #fff;
    color: #6cc51d;
    border-radius: 50%;
    padding: 0 0.5em;
    font-weight: bold;
    margin-left: 0.3em;
}
.upload-photo {
    margin-top: 0.5rem;
    display: block;
    font-size: 0.9rem;
}
.category-card input[type="file"],
.product-card input[type="file"] {
    display: none;
}
.upload-label {
    display: inline-block;
    background: #e6f5d6;
    color: #6cc51d;
    border-radius: 12px;
    padding: 0.2rem 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    transition: background 0.2s;
}
.upload-label:hover {
    background: #c7e9a8;
}
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    #categories, #products {
        padding: 1rem;
    }
    .category-card, .product-card {
        width: 100%;
        min-width: 0;
        padding: 1rem;
    }
}
@media (max-width: 600px) {
    .category-list, .product-list {
        gap: 1rem;
    }
    .modal-content {
        padding: 1rem;
    }
    #hero, #categories, #products {
        border-radius: 12px;
        padding: 1rem;
    }
    .category-card img, .product-card img {
        width: 80px;
        height: 80px;
    }
}
