/* PichaExpress Global Search V2 — scoped. Do not change site header/theme. */
#pxGlobalSearch{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;z-index:10050;overflow:visible}
#pxGlobalSearch:not([open]){display:none}
#pxGlobalSearch::backdrop{background:rgba(0,0,0,.77);backdrop-filter:blur(4px)}
#pxGlobalSearch .pgs-panel{position:relative;box-sizing:border-box;width:min(790px,calc(100vw - 32px));max-height:min(83vh,780px);overflow:hidden;display:flex;flex-direction:column;margin:clamp(88px,13vh,125px) auto 0;background:#16161b;border:1px solid #393941;border-radius:17px;box-shadow:0 28px 100px #000b}
#pxGlobalSearch .pgs-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 23px 11px}
#pxGlobalSearch .pgs-title{font-size:19px;font-weight:800;letter-spacing:-.02em}
#pxGlobalSearch .pgs-sub{color:#aaaab2;font-size:12px;margin-top:5px}
#pxGlobalSearch .pgs-close{background:#2d2d35;color:#fff;border:0;border-radius:9px;width:37px;height:37px;cursor:pointer;font-size:22px}
#pxGlobalSearch .pgs-form{padding:8px 23px 16px}
#pxGlobalSearch .pgs-inputrow{display:flex;gap:12px;align-items:center;border:1px solid #55555f;background:#25252b;border-radius:12px;padding:0 15px;transition:border-color .15s}
#pxGlobalSearch .pgs-inputrow:focus-within{border-color:#ed1734;box-shadow:0 0 0 2px #ed17342a}
#pxGlobalSearch .pgs-inputrow svg{width:20px;height:20px;flex-shrink:0;color:#bbb}
#pxGlobalSearch #pxGlobalSearchInput{width:100%;height:53px;background:none;outline:0;border:0;color:#fff;font-size:16px}
#pxGlobalSearch #pxGlobalSearchInput::placeholder{color:#a1a1ab}
#pxGlobalSearch .pgs-filters{display:flex;gap:8px;overflow-x:auto;padding:0 23px 15px}
#pxGlobalSearch .pgs-filter{white-space:nowrap;border:1px solid #42424b;background:#25252b;color:#ddd;border-radius:25px;padding:8px 15px;cursor:pointer;font-size:12px;font-weight:700}
#pxGlobalSearch .pgs-filter[aria-pressed="true"]{background:#ed1734;border-color:#ed1734;color:#fff}
#pxGlobalSearch .pgs-results{overflow-y:auto;overscroll-behavior:contain;min-height:110px;padding:0 16px 15px;flex:1}
#pxGlobalSearch .pgs-status{padding:23px 8px;color:#b8b8c1;font-size:14px}
#pxGlobalSearch .pgs-item{display:flex;align-items:center;gap:13px;padding:10px 9px;border-radius:10px;color:#fff;text-decoration:none;transition:background .12s}
#pxGlobalSearch .pgs-item:hover,#pxGlobalSearch .pgs-item:focus-visible{background:#303038;outline:0}
#pxGlobalSearch .pgs-art{width:51px;height:58px;object-fit:cover;flex-shrink:0;background:#333;border-radius:7px}
#pxGlobalSearch .pgs-resultbody{min-width:0;flex:1}
#pxGlobalSearch .pgs-itemtitle{font-size:14px;font-weight:750;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#pxGlobalSearch .pgs-meta{font-size:12px;margin-top:4px;color:#aaaab2}
#pxGlobalSearch .pgs-arrow{color:#a9a9b4;font-size:18px}
#pxGlobalSearch .pgs-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #34343c;padding:13px 23px;color:#a8a8b2;font-size:12px}
#pxGlobalSearch .pgs-footer a{color:#fff;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){#pxGlobalSearch .pgs-panel{width:calc(100vw - 20px);margin:78px auto 0;max-height:calc(100dvh - 90px);border-radius:12px}#pxGlobalSearch .pgs-top{padding:16px 15px 9px}#pxGlobalSearch .pgs-form{padding:6px 15px 13px}#pxGlobalSearch .pgs-filters{padding:0 15px 12px}#pxGlobalSearch .pgs-footer{padding:11px 15px}#pxGlobalSearch .pgs-title{font-size:17px}}


/* PICHA_FULLSCREEN_SEARCH_V3 */

/* Replace floating dialog with a complete search screen */
#pxGlobalSearch,
#pxGlobalSearch[open] {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
    border: none !important;
    border-radius: 0 !important;

    background: #111115 !important;
    color: #fff;

    box-sizing: border-box;
    overflow: hidden !important;
    z-index: 99999 !important;
}

#pxGlobalSearch[open] {
    display: flex !important;
    flex-direction: column !important;
}

#pxGlobalSearch::backdrop {
    background: #000;
    backdrop-filter: none;
}

/* Allow the original search interface to fill the screen */
#pxGlobalSearch > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
}

#pxGlobalSearch .pgs-panel,
#pxGlobalSearch .pgs-shell,
#pxGlobalSearch .pgs-wrap,
#pxGlobalSearch .pgs-modal,
#pxGlobalSearch .pgs-container {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

/* Give search results the available viewing area */
#pxGlobalSearch .pgs-results {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

/* Compact, spacious layout on desktop */
@media (min-width: 768px) {
    #pxGlobalSearch .pgs-inputrow {
        min-height: 58px;
    }
}

/* Mobile: retain native full-screen dialog */
@media (max-width: 767px) {
    #pxGlobalSearch,
    #pxGlobalSearch[open] {
        width: 100% !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }

    #pxGlobalSearch .pgs-results {
        -webkit-overflow-scrolling: touch;
    }
}


/* PICHA_SEARCH_NAV_V4 */

/* Full-width category navigation */
#pxGlobalSearch .pgs-filters {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 30px;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    box-sizing: border-box;
}

#pxGlobalSearch .pgs-filters::-webkit-scrollbar {
    display: none;
}

/* Replace pill buttons with navigation tabs */
#pxGlobalSearch .pgs-filter {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    min-height: 56px;
    padding: 0 4px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #bcbcc4;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s;
}

#pxGlobalSearch .pgs-filter:hover {
    background: transparent;
    color: #fff;
}

#pxGlobalSearch .pgs-filter[aria-pressed="true"] {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 800;
}

#pxGlobalSearch .pgs-filter[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #ed1734;
    border-radius: 3px 3px 0 0;
}

#pxGlobalSearch .pgs-filter:focus-visible {
    outline: 2px solid #ed1734;
    outline-offset: -5px;
}

/* Results scroll independently below navigation */
#pxGlobalSearch .pgs-results {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-top: 18px;
}

/* Mobile */
@media (max-width: 650px) {
    #pxGlobalSearch .pgs-filters {
        gap: 22px;
        padding: 0 16px;
        min-height: 50px;
    }

    #pxGlobalSearch .pgs-filter {
        font-size: 14px;
        min-height: 50px;
    }
}
