body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* HEADER */
header {
    background: #00a884;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* agar responsif */
}

header .logo {
    display: flex;
    align-items: center;
    color: white;
}

header .logo img {
    width: 40px;
    margin-right: 10px;
}

.search-bar {
    display: flex;
    margin-top: 10px;
}

.search-bar input {
    padding: 10px;
    width: 250px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background: #006f55;
    color: white;
    cursor: pointer;
}

.user-links {
    margin-left: auto;
}

.user-links a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

/* HERO */
.hero {
    background: url("https://via.placeholder.com/1600x400") center/cover no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

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

.hero .cta {
    margin-top: 20px;
    padding: 12px 25px;
    background: #00a884;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

/* CATEGORY */
.categories {
    padding: 30px;
    text-align: center;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* perbaikan penting agar kategori berupa link */
.category {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: 0.2s;
}

.category:hover {
    background: #00a884;
    color: white;
}

/* PRODUCTS */
.products {
    padding: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    border-radius: 5px;
}

.price {
    font-weight: bold;
    color: #00a884;
}

.buy {
    margin-top: 10px;
    padding: 10px 20px;
    background: #00a884;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    header {
        text-align: center;
    }

    .search-bar {
        width: 100%;
        justify-content: center;
    }

    .search-bar input {
        width: 60%;
    }

    .user-links {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
