SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    127, 51325, 63, 51326, 135, 50984, 51450, 
    51451, 51343, 51342, 51341, 51340, 
    47, 136, 65, 42, 51376, 51377, 51378, 
    51379, 51380, 134
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00056

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.41"
    },
    "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": 22,
      "rows_produced_per_join": 22,
      "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 (127,51325,63,51326,135,50984,51450,51451,51343,51342,51341,51340,47,136,65,42,51376,51377,51378,51379,51380,134)))",
      "cost_info": {
        "read_cost": "13.21",
        "eval_cost": "2.20",
        "prefix_cost": "15.41",
        "data_read_per_join": "352"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
42 5
47 2
63 5
65 1
127 3
134 2
135 6
136 13
50984 1
51325 1
51326 6
51340 1
51341 1
51342 1
51343 1
51376 3
51377 2
51378 4
51379 5
51380 5
51450 3
51451 3