SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'vi' 
  AND gp.group_id IN (
    16486, 14830, 12881, 14827, 14634, 14838, 
    16457, 12884, 17084, 15856, 12883, 
    16865, 13644
  )

Query time 0.00244

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 48,
          "filtered": 100,
          "index_condition": "gp.group_id in (16486,14830,12881,14827,14634,14838,16457,12884,17084,15856,12883,16865,13644)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
20429 18709 71488 12881
20429 18708 71487 12881
20429 3988 71489 12881
20431 18713 71494 12883
20431 3985 71495 12883
20432 18714 71496 12884
20432 3984 71497 12884
21274 22021 74435 13644
21274 2044 74436 13644
22367 25849 78424 14634
22367 25848 78423 14634
22367 25847 78425 14634
22367 353 78422 14634
22568 2249 79217 14827
22568 26664 79218 14827
22568 26665 79219 14827
22571 2252 79226 14830
22571 26670 79227 14830
22571 26671 79228 14830
22578 2260 79248 14838
22578 26684 79249 14838
22578 26685 79250 14838
23732 36299 82381 15856
23732 36694 82382 15856
24201 41230 84325 16457
24201 41242 84326 16457
24201 41243 84327 16457
24201 41244 84328 16457
24228 41426 84413 16486
24228 41468 84414 16486
24228 41469 84415 16486
24228 41470 84416 16486
24228 41471 84417 16486
24633 45674 85989 16865
24633 45673 85988 16865
24633 45672 85987 16865
24633 45671 85986 16865
24633 45670 85985 16865
24633 45597 85984 16865
24834 47608 86598 17084
24834 47635 86599 17084