/* ── Search Overlay ── */
.apollo-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apollo-search-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.apollo-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.apollo-search-overlay.visible .apollo-search-container {
    transform: translateY(0);
}

.apollo-search-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 30px 30px;
}

.apollo-search-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    color: #999 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    transition: background 0.15s, color 0.15s;
    font-weight: 300 !important;
}

.apollo-search-close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Input */
.apollo-search-input-wrap {
    position: relative;
    margin-bottom: 24px;
}

.apollo-search-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: #aaa;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

.apollo-search-input {
    width: 100% !important;
    padding: 16px 20px 16px 48px !important;
    font-size: 18px !important;
    font-family: inherit;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa !important;
    color: #111 !important;
    box-shadow: none !important;
}

.apollo-search-input::placeholder {
    color: #bbb;
}

.apollo-search-input:focus {
    border-color: #3fbcac !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(63, 188, 172, 0.12) !important;
}

/* Results */
.apollo-search-results {
    display: none;
}

.apollo-search-results.has-results {
    display: block;
}

.apollo-search-results-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
}

.apollo-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.apollo-search-result-item:hover,
.apollo-search-result-item.active {
    background: #f5f5f5;
}

.apollo-search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

.apollo-search-result-info {
    flex: 1;
    min-width: 0;
}

.apollo-search-result-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apollo-search-result-meta {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.apollo-search-result-price {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    color: #111;
}

/* Hint */
.apollo-search-hint {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    padding: 8px 0 0;
}

.apollo-search-hint kbd {
    display: inline-block;
    padding: 2px 7px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    color: #888;
}

/* No results */
.apollo-search-empty {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 15px;
    display: none;
}

/* Search trigger button in header */
.apollo-search-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.apollo-search-trigger svg {
    width: 22px;
    height: 22px;
    stroke: #111;
    fill: none;
    stroke-width: 2;
}
