﻿/* =========================================================
   SAGE STORE — PESQUISA GLOBAL DO HEADER
========================================================= */

.header-search {
    position: relative;
    z-index: 120;
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(370px, 82vw);
    overflow: hidden;
    border: 1px solid rgba(116, 218, 239, .22);
    border-radius: 13px;
    background: rgba(8, 18, 25, .98);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .48), 0 0 25px rgba(82, 204, 230, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

    .header-search-panel[hidden] {
        display: none !important;
    }

.header-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(126, 211, 235, .10);
    color: #8fe9f7;
}

    .header-search-panel-head span {
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 1.3px;
        text-transform: uppercase;
    }

    .header-search-panel-head small {
        color: #64818e;
        font-size: 8px;
    }

.header-search-results {
    max-height: 330px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #315968 transparent;
}

.header-search-item {
    width: 100%;
    min-height: 49px;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #eaf7fb;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

    .header-search-item:hover,
    .header-search-item.is-active {
        background: rgba(80, 199, 224, .10);
        transform: translateX(2px);
    }

.header-search-item-icon {
    width: 33px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(119, 219, 238, .14);
    border-radius: 8px;
    background: rgba(87, 205, 229, .07);
    color: #80e4f4;
    font-size: 12px;
}

.header-search-item-main {
    min-width: 0;
}

.header-search-item-title {
    display: block;
    overflow: hidden;
    color: #eef9fc;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-search-item-subtitle {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #738e9a;
    font-size: 8px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-search-item-arrow {
    color: #486a78;
    font-size: 9px;
    transition: transform .18s ease, color .18s ease;
}

.header-search-item:hover .header-search-item-arrow,
.header-search-item.is-active .header-search-item-arrow {
    color: #8de8f7;
    transform: translateX(2px);
}

.header-search-empty {
    padding: 16px 13px;
    color: #78919c;
    font-size: 9px;
    line-height: 1.55;
}

    .header-search-empty strong {
        color: #dceff5;
    }

@media (max-width: 900px) {
    .header-search-panel {
        width: min(340px, 86vw);
    }
}

@media (max-width: 480px) {
    .header-search:focus-within .header-search-panel {
        width: min(330px, calc(100vw - 40px));
    }
}
