/* Catalogue controls component styles (search, sort, tabs) */
.catalogue-controls {
    width: 100%;
    margin-bottom: 40px;
}

.search-row {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

.catalogue-search {
    flex: 4;
    width: 100%;
}

.catalogue-search .input-group {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
    height: 56px;
}

.catalogue-search input {
    width: 100%;
    padding: 0 10px;
    border: none;
    font-family: var(--font-main);
    outline: none;
    height: 100%;
    font-size: 14px;
    line-height: 1;
}

.catalogue-search input::placeholder {
    color: #767676;
    opacity: 1;
    font-family: var(--font-main);
    font-size: 14px;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 100%;
    flex: 0 0 28px;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sort-dropdown button {
    width: auto;
    height: 56px;
    padding: 0 16px;
    background: #235292;
    border: none;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

.sort-dropdown button {
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
}


.catalogue-tabs {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #D6D6D6ff;
}

.catalogue-tabs li {
    flex: 0 0 auto;
    display: flex;
}

.catalogue-tabs button,
.catalogue-tabs .tab-button {
    width: auto;
    padding: 10px 50px;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-main);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
}

.catalogue-tabs li.active button,
.catalogue-tabs li.active .tab-button {
    background: var(--primary-green);
    color: var(--text-white);
    font-weight: 400px;
}

.catalogue-tabs li:not(.active) button:hover,
.catalogue-tabs li:not(.active) .tab-button:hover {
    background: rgba(163, 198, 68, 0.2);
    color: var(--text-white);
}

/* Mobile: tabs full width */
@media (max-width: 768px) {
    .catalogue-tabs {
        gap: 10px;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .catalogue-tabs::-webkit-scrollbar {
        display: none;
    }

    .catalogue-tabs li {
        flex: 0 0 auto;
        display: flex;
    }

    .catalogue-tabs button,
    .catalogue-tabs .tab-button {
        width: auto;
        padding: 10px 25px;
        white-space: nowrap;
    }

    .search-row {
        flex-direction: column;
    }



    .catalogue-search {
        flex: 1;
        width: 100%;
    }

    .sort-dropdown {
        flex: 1;
        width: 100%;
    }

    .sort-dropdown button {
        width: 100%;
    }

    .sort-dropdown button {
        justify-content: space-between;
    }
}