/**
 * AJAX Search Results CSS
 */
.memip-ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.memip-search-loading,
.memip-search-no-results,
.memip-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.memip-search-items {
    padding: 10px 0;
}

.memip-search-section {
    margin-bottom: 10px;
}

.memip-search-section:last-child {
    margin-bottom: 0;
}

.memip-search-section-title {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.memip-search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.memip-search-item:last-child {
    border-bottom: none;
}

.memip-search-item:hover {
    background: #f7f7f7;
}

.memip-search-item-post {
    background: #fafafa;
}

.memip-search-item-post:hover {
    background: #f0f0f0;
}

.memip-search-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.memip-search-item-info {
    flex: 1;
    min-width: 0;
}

.memip-search-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memip-search-item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.memip-search-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #ed1c24;
}

.memip-search-item-excerpt {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.memip-search-item-date {
    font-size: 12px;
    color: #999;
}

.memip-search-footer {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.memip-search-footer a {
    display: inline-block;
    padding: 8px 20px;
    background: #ed1c24;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.memip-search-footer a:hover {
    background: #b71c1c;
}

@media (max-width: 767px) {
    .memip-ajax-search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: 70vh;
        margin-top: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .memip-search-section-title {
        padding: 10px 15px;
        font-size: 13px;
        background: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .memip-search-item {
        padding: 10px 15px;
        flex-direction: row;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
    }
    
    .memip-search-item-img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
        flex-shrink: 0;
        border-radius: 4px;
        object-fit: cover;
    }
    
    .memip-search-item-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .memip-search-item-title {
        font-size: 13px;
        line-height: 1.3;
        font-weight: 500;
        color: #333;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .memip-search-item-meta {
        font-size: 11px;
        color: #999;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .memip-search-item-price {
        font-size: 13px;
        font-weight: 600;
        color: #ed1c24;
    }
    
    .memip-search-footer {
        padding: 10px 15px;
        background: #f5f5f5;
    }
    
    .memip-search-footer a {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }
}
