SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    7884, 7885, 7924, 12379, 7882, 7925, 
    12380, 7886, 7881, 12097, 12096, 12377, 
    12378, 12376, 7879, 7888, 7880, 7883, 
    7889, 12381, 7919, 7920, 7887, 12095
  ) 
  AND destination_id = 115 
  AND storefront_id = 0

Query time 0.00057

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "range",
      "possible_keys": ["PRIMARY", "idx_storefront_id"],
      "key": "PRIMARY",
      "key_length": "9",
      "used_key_parts": ["product_id", "destination_id", "storefront_id"],
      "rows": 24,
      "filtered": 75,
      "index_condition": "cscart_warehouses_destination_products_amount.destination_id = 115 and cscart_warehouses_destination_products_amount.storefront_id = 0 and cscart_warehouses_destination_products_amount.product_id in (7884,7885,7924,12379,7882,7925,12380,7886,7881,12097,12096,12377,12378,12376,7879,7888,7880,7883,7889,12381,7919,7920,7887,12095)"
    }
  }
}

Result

product_id amount
7879 1
7880 2
7881 2
7882 1
7883 3
7884 2
7885 2
7886 1
7887 3
7888 2
7889 1
7919 3
7920 2
7924 1
7925 1
12095 5
12096 3
12097 4
12376 2
12377 2
12378 2
12379 2
12380 2
12381 3