/* Swiggy Style Search Overlay */
.search-overlay {
    position: absolute;
    top: 70px; /* Below the header */
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    min-height: calc(100vh - 70px);
    display: none; /* hidden by default */
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-overlay.active {
    display: block;
    animation: slideDownFade 0.2s ease-out;
}

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

.search-results-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Individual Search Result Item */
.search-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: #fcfcfc;
}
.search-item:active {
    background: #f5f5f5;
}

/* Image on left */
.search-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
    border: 1px solid #eaeaea;
    background: #f9f9f9;
}

/* Text after image */
.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 4px;
}

.search-item-parent {
    font-size: 0.8rem;
    color: #888;
}

.search-item-arrow {
    color: #ccc;
    font-size: 0.9rem;
    padding-left: 10px;
}

.search-no-results {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 0.95rem;
}
