/**
 * Search dropdown tabs — "Ürünler" / "Koleksiyonlar".
 * Styled to match the site menu: flat pill buttons, active = black fill.
 */

/* Tab bar sits inside the devbridge container (.wd-search-suggestions) */
.wd-search-suggestions .scfw-search-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #000;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.wd-search-suggestions .scfw-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid #000;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    font: 500 14px/1 inherit;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;

    /* Neutralize theme button resets */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.wd-search-suggestions .scfw-tab:last-child {
    border-right: 0;
}

.wd-search-suggestions .scfw-tab:hover {
    color: #1a1a1a;
    background: transparent;
}

.wd-search-suggestions .scfw-tab--active,
.wd-search-suggestions .scfw-tab--active:hover {
    background: transparent;
    color: #1a1a1a;
}

.scfw-tab-label {
    font-weight: 400;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: 13px;
    transition: font-weight .15s ease;
}

.scfw-tab--active .scfw-tab-label {
    font-weight: 800;
}

/* Tab-driven visibility. We hide the built-in "Koleksiyonlar" divider
   title because the tab bar already communicates that grouping. */
.wd-search-suggestions.scfw-has-tabs .wd-search-title.title {
    display: none !important;
}

.wd-search-suggestions.scfw-has-tabs.scfw-show-product
    .wd-suggestions-group.wd-type-scfw_collection {
    display: none !important;
}

.wd-search-suggestions.scfw-has-tabs.scfw-show-scfw_collection
    .wd-suggestions-group.wd-type-product {
    display: none !important;
}

/* Mobile */
@media (max-width: 480px) {
    .wd-search-suggestions .scfw-tab {
        min-height: 42px;
        padding: 0 12px;
    }
    .scfw-tab-label {
        font-size: 12px;
    }
}
