/* === Global product search — magnifier button in nav + overlay === */

.nav-search-btn {
    background: none; border: none; padding: 0;
    margin-left: 1.94vw;
    cursor: pointer;
    color: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    transition: opacity 0.3s ease, color 0.3s ease;
    vertical-align: middle;
}
.nav-search-btn:hover { opacity: 0.6; }
.nav-search-btn svg { width: 18px; height: 18px; display: block; }

/* full-screen overlay */
.global-search-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(11, 11, 14, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start; justify-content: center;
    padding: 110px 24px 60px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.global-search-overlay.is-open { display: flex; opacity: 1; }

.global-search-panel {
    width: 100%; max-width: 720px;
    background: #FFFFFF; border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex; flex-direction: column;
    font-family: 'Inter', sans-serif;
}
.global-search-head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(11, 11, 14, 0.08);
}
.global-search-head svg { color: rgba(11, 11, 14, 0.55); flex-shrink: 0; }
.global-search-input {
    flex: 1; min-width: 0;
    border: none; outline: none;
    font-family: inherit; font-size: 16px;
    background: transparent; color: #0B0B0E;
}
.global-search-input::placeholder { color: rgba(11, 11, 14, 0.4); }
.global-search-close {
    background: rgba(11, 11, 14, 0.06); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; color: rgba(11, 11, 14, 0.6);
    font-size: 14px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.global-search-close:hover { background: rgba(11, 11, 14, 0.12); color: #0B0B0E; }

.global-search-results {
    max-height: 58vh; overflow-y: auto;
    padding: 10px;
}
.global-search-result {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 12px; border-radius: 12px;
    text-decoration: none; color: #0B0B0E;
    transition: background 0.15s ease;
}
.global-search-result:hover, .global-search-result.is-focused { background: #F5F3EE; }
.global-search-result .thumb {
    width: 52px; height: 52px; border-radius: 10px;
    background: #F2F1ED center/cover no-repeat;
    flex-shrink: 0;
}
.global-search-result .info { flex: 1; min-width: 0; }
.global-search-result .name {
    font-weight: 500; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.global-search-result .meta {
    font-size: 12px; color: rgba(11, 11, 14, 0.55); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.global-search-result .price {
    font-size: 13px; color: rgba(11, 11, 14, 0.7);
    white-space: nowrap; flex-shrink: 0;
}
.global-search-empty {
    padding: 30px; text-align: center;
    color: rgba(11, 11, 14, 0.5); font-size: 14px;
}
.global-search-hint {
    padding: 12px 22px; font-size: 11px;
    color: rgba(11, 11, 14, 0.45);
    border-top: 1px solid rgba(11, 11, 14, 0.06);
    letter-spacing: 0.04em;
    display: flex; gap: 14px;
}
.global-search-hint kbd {
    background: rgba(11, 11, 14, 0.06); border-radius: 4px;
    padding: 2px 6px; font-family: inherit; font-size: 10px;
}
