/* --- Top Bar --- */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /*background: #1a237e;*/
    margin-top: 20px; /* odstęp od nagłówka */
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    border-radius: 10px; /* zaokrąglenie rogów */
}


/* Lewa kolumna: Kategorie */
.top-bar-left {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.top-bar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-category {
    background: #3949ab;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.top-bar-category:hover {
    background: #5c6bc0;
}

/* Prawa kolumna: Wyszukiwarka */
.top-bar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
}

.top-bar-search-form {
    display: flex;
    align-items: center;
}

.top-bar-search-input {
    padding: 8px 12px;
    border-radius: 20px 0 0 20px;
    border: 1px solid #ccc;
    outline: none;
}

.top-bar-search-button {
    background: #3949ab;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.top-bar-search-button:hover {
    background: #5c6bc0;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar-right {
        margin-top: 10px;
        justify-content: center;
    }

    .top-bar-categories {
        justify-content: center;
    }
}
