/** 搜索占位文案（与首页、分类一致 SRH15） */
export const SEARCH_PLACEHOLDER = '搜索兽药、饲料、店铺'

/** 本地历史存储键 */
export const SEARCH_HISTORY_KEY = 'shop_search_history'

/** 历史条数上限 */
export const SEARCH_HISTORY_MAX = 20

/** 结果页 Tab */
export const SEARCH_TAB_SALES = 'sales'
export const SEARCH_TAB_PRICE = 'price'
export const SEARCH_TAB_SHOP = 'shop'

export const SEARCH_TAB_OPTIONS = [
  { label: '按销量', value: SEARCH_TAB_SALES },
  { label: '按价格', value: SEARCH_TAB_PRICE },
  { label: '店铺', value: SEARCH_TAB_SHOP }
]

/** 按价格 Tab 下的价序 */
export const PRICE_ORDER_ASC = 'price_asc'
export const PRICE_ORDER_DESC = 'price_desc'

export const PRICE_ORDER_OPTIONS = [
  { label: '从低到高', value: PRICE_ORDER_ASC },
  { label: '从高到低', value: PRICE_ORDER_DESC }
]

/** 默认商品排序（按销量 Tab / 首次进 B 页） */
export const DEFAULT_GOODS_SORT = 'sales_desc'

/** 列表每页条数 */
export const SEARCH_PAGE_SIZE = 10
