SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    51076, 51073, 51072, 51074, 51075, 22711, 
    22710, 51077, 51080, 51078, 51079, 
    51357, 79, 51360, 51359, 51358, 51361, 
    30, 51362, 51363, 51364, 51365, 31, 
    51366, 51367, 51368, 51369, 46, 51370, 
    51371, 51372, 51373, 51452, 51453, 
    42, 51376, 51377, 51378, 51379, 51380
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00057

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.01"
    },
    "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": 40,
      "rows_produced_per_join": 40,
      "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 (51076,51073,51072,51074,51075,22711,22710,51077,51080,51078,51079,51357,79,51360,51359,51358,51361,30,51362,51363,51364,51365,31,51366,51367,51368,51369,46,51370,51371,51372,51373,51452,51453,42,51376,51377,51378,51379,51380)))",
      "cost_info": {
        "read_cost": "24.01",
        "eval_cost": "4.00",
        "prefix_cost": "28.01",
        "data_read_per_join": "640"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
30 4
31 3
42 5
46 6
79 0
22710 16
22711 12
51072 22
51073 14
51074 7
51075 1
51076 1
51077 16
51078 13
51079 13
51080 5
51357 10
51358 9
51359 7
51360 2
51361 4
51362 6
51363 6
51364 3
51365 1
51366 4
51367 4
51368 3
51369 2
51370 3
51371 10
51372 5
51373 13
51376 3
51377 2
51378 4
51379 5
51380 5
51452 8
51453 10