/* V122 — the search overlay. Paired with layout/search-overlay.php and
   assets/js/nexus-search.js. Dark-only, like the rest of the storefront. */

.v2-hbtn--search { cursor: pointer; }
.nx-search-open { cursor: pointer; }

.nxs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 16px 24px;
}
.nxs-overlay[hidden] { display: none; }

.nxs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 12, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nxs-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .6);
    overflow: hidden;
}

.nxs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nxs-bar-icon { color: #45F882; font-size: 18px; flex: 0 0 auto; }

.nxs-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 6px 2px;
}
.nxs-input::placeholder { color: rgba(255, 255, 255, .38); font-weight: 500; }
.nxs-input::-webkit-search-cancel-button { display: none; }

.nxs-clear,
.nxs-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.nxs-clear:hover,
.nxs-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.nxs-status {
    margin: 0;
    padding: 8px 16px 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
    min-height: 0;
}
.nxs-status:empty { display: none; }

.nxs-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 10px 14px;
}

.nxs-group { margin: 6px 0 14px; }
.nxs-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 8px 8px;
}
.nxs-group-title {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .48);
}
.nxs-group-action {
    background: none;
    border: 0;
    padding: 2px 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    text-decoration: underline;
}
.nxs-group-action:hover { color: #45F882; }

.nxs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #eaf0ff;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.nxs-row:hover,
.nxs-row.is-active {
    background: rgba(69, 248, 130, .09);
    border-color: rgba(69, 248, 130, .28);
    color: #fff;
}

.nxs-row-media {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .55);
}
.nxs-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nxs-row-copy { flex: 1 1 auto; min-width: 0; }
.nxs-row-title {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nxs-row-note {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nxs-row-price {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 13.5px;
    color: #45F882;
}

.nxs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.nxs-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.nxs-chip:hover,
.nxs-chip.is-active {
    border-color: rgba(69, 248, 130, .4);
    background: rgba(69, 248, 130, .1);
    color: #fff;
}
.nxs-chip img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.nxs-chip i { color: rgba(255, 255, 255, .4); font-size: 12px; }

.nxs-empty {
    padding: 26px 16px 30px;
    text-align: center;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
}
.nxs-empty strong { display: block; color: #fff; font-size: 15.5px; margin-bottom: 6px; }

.nxs-foot {
    margin: 0;
    padding: 9px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11.5px;
    color: rgba(255, 255, 255, .34);
}
.nxs-foot kbd {
    display: inline-block;
    padding: 1px 5px;
    margin: 0 2px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    background: rgba(255, 255, 255, .05);
    font-size: 10.5px;
}

@media (max-width: 575px) {
    .nxs-overlay { padding: 0; }
    .nxs-panel { max-width: none; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
    .nxs-foot { display: none; }
}
