SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51007, 51004, 51005, 51010, 51008, 51012, 
    51013, 51011, 51015, 51006, 51021, 
    51016, 51024, 51017, 51019, 51018
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "11.21"
    },
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "idx_storefront_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "destination_id",
        "storefront_id"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 16,
      "rows_produced_per_join": 16,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`storefront_id` = 1) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`destination_id` = 116) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`product_id` in (51007,51004,51005,51010,51008,51012,51013,51011,51015,51006,51021,51016,51024,51017,51019,51018)))",
      "cost_info": {
        "read_cost": "9.61",
        "eval_cost": "1.60",
        "prefix_cost": "11.21",
        "data_read_per_join": "256"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51004 2
51005 2
51006 2
51007 5
51008 5
51010 1
51011 1
51012 1
51013 1
51015 1
51016 2
51017 2
51018 2
51019 4
51021 4
51024 4