/* ── Search master component ── */
.search-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    height: 44px;
    background: var(--search-bg);
    border: 1px solid var(--brd-light);
    border-radius: var(--r-search);
    box-sizing: border-box;
    flex: 1;
}

.search-wrap .search-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--placeholder);
    pointer-events: none;
}

.search-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--text);
    outline: none;
    -webkit-appearance: none;
}
.search-wrap input::placeholder { color: var(--placeholder); }
.search-wrap input::-webkit-search-cancel-button { display: none; }

/* ── Catalog search bar ── */
.cat-search {
    position: sticky;
    top: 104px;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--brd-light);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#search-cancel {
    all: unset;
    color: var(--btn);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 15px;
    white-space: nowrap;
    display: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
#search-cancel.on { display: block; }
