/* Search Overlay Styles */

.search-toggle-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-overlay.open {
    display: flex;
}

.search-overlay-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: searchSlideDown 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}

.search-input-wrapper i {
    color: #94a3b8;
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.search-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s;
}

.search-close-btn:hover {
    background: #dc2626;
    color: #fff;
}

.search-results {
    overflow-y: auto;
    max-height: calc(80vh - 64px);
    padding: 8px;
}

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

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f1f5f9;
    padding: 4px;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
}

.search-result-category {
    font-size: 11px;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.search-result-info p {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 20px;
        align-items: flex-start;
    }
    .search-overlay-content {
        width: 95%;
        max-height: 90vh;
    }
    .search-result-item img {
        width: 48px;
        height: 48px;
    }
}
