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

.topbar {
    background: #333;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar input {
    padding: 5px;
    width: 200px;
}

.topbar a {
    color: white;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

tr.produkt-row:hover {
    background: #eee;
    cursor: pointer;
}

.produkt-img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    display: block;
}

td img {
    vertical-align: middle;
}

.details-row {
    display: none;
    background: #eef;
}

.details-row td {
    padding: 10px;
    border-top: none;
}

@media (max-width: 800px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    tr.produkt-row, tr.details-row {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    th {
        display: none;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px;
        word-break: break-word;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
    }

    td img {
        max-width: 100%;
        height: auto;
        margin-bottom: 5px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar input {
        width: 100%;
        margin-bottom: 10px;
    }
}
