.kategori-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.kategori {
    flex: 0 0 auto; /* Agar tidak memaksa melebar ke seluruh container */
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: #eee;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.kategori.active {
    background-color: #007bff;
    color: #fff;
}

/* Opsional: agar scrollbar tidak terlalu mengganggu */
.kategori-container::-webkit-scrollbar {
    height: 6px;
}
.kategori-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.stat {
    margin-top: 8px;
    font-size: 13px;
    font-weight: bold;
}

.stat.merah {
    color: #d9534f;
}

.stat.hijau {
    color: #28a745;
}

.dummy-chart {
    width: 100%;
    height: 30px;
    margin-top: auto;
    border-radius: 5px;
    background: linear-gradient(to right, #eee 20%, #fff 100%);
}

.dummy-chart.merah {
    background: linear-gradient(to right, #f8d7da, #fff);
}

.dummy-chart.hijau {
    background: linear-gradient(to right, #d4edda, #fff);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.item-card {
    flex: 1 1 calc(33.333% - 40px);
    /* 3 kolom - padding antar kartu */
    max-width: calc(33.333% - 40px);
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 12px;
    margin-bottom: 5px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.item-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.item-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-info h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.harga {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.harga span {
    color: #888;
}

.stat {
    font-size: 13px;
}

@media (max-width: 992px) {
    .item-card {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 600px) {
    .item-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
