SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    2395, 2275, 2399, 2393, 2286, 2354, 2356, 
    2277, 2400, 2283, 2281, 2279, 2284, 
    2280, 2282, 2285, 10177, 10192, 10105, 
    10159, 10273, 10235, 10096, 10245
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00090

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.41"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 32,
        "rows_produced_per_join": 6,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2395,2275,2399,2393,2286,2354,2356,2277,2400,2283,2281,2279,2284,2280,2282,2285,10177,10192,10105,10159,10273,10235,10096,10245))",
        "cost_info": {
          "read_cost": "19.77",
          "eval_cost": "0.64",
          "prefix_cost": "20.41",
          "data_read_per_join": "153"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
2275 21000.00000000
2277 60000.00000000
2279 246000.00000000
2280 48000.00000000
2281 45000.00000000
2282 19000.00000000
2283 63000.00000000
2284 28000.00000000
2285 36000.00000000
2286 18000.00000000
2354 24000.00000000
2356 19000.00000000
2393 13000.00000000
2395 22000.00000000
2399 27000.00000000
2400 18000.00000000
10096 33000.00000000
10105 63000.00000000
10159 25000.00000000
10177 13000.00000000
10192 80000.00000000
10235 13000.00000000
10245 27000.00000000
10273 67000.00000000