export interface Product {
  id: string
  seller_id: string
  name: string
  description: string
  batch: string
  expires_at: string // ISO date
  price_cents: number
  stock: number
  created_at: string
  updated_at: string
}

export interface ProductWithDistance extends Product {
  distance_km: number
  tenant_city: string
  tenant_state: string
}

export interface ProductSearchFilters {
  search?: string
  min_price?: number
  max_price?: number
  max_distance?: number
  expires_before?: number
  lat: number
  lng: number
  page?: number
  page_size?: number
}

export interface ProductSearchPage {
  products: ProductWithDistance[]
  total: number
  page: number
  page_size: number
}
