.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4CAF50;
    padding: 10px 20px;
    color: white;
    z-index: 1000;
}

.cart {
    position: relative;
    cursor: pointer;
}

.cart img {
    width: 35px;
    height: 35px;
}

.cart span {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.produk-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

.produk-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.produk-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.produk-card h2 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.produk-card .harga {
    font-weight: bold;
    color: #e91e63;
}

.produk-card button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.produk-card button:hover {
    background: #45a049;
}

.kategori-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.kategori-container label {
    font-weight: bold;
    color: #333;
}

.kategori-container select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.kategori-container select:hover {
    border-color: #888;
}

.kategori-container select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

