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 (16131, 16066, 16065, 16064)

Query time 0.00289

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": 27,
          "filtered": 100,
          "index_condition": "gp.group_id in (16131,16066,16065,16064)"
        }
      },
      {
        "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
23877 38101 83069 16064
23877 38241 83070 16064
23877 38242 83071 16064
23877 38243 83072 16064
23877 38244 83073 16064
23877 38245 83074 16064
23877 38246 83075 16064
23879 38247 83085 16065
23879 38102 83076 16065
23879 38248 83077 16065
23879 38249 83078 16065
23879 38250 83079 16065
23879 38251 83080 16065
23879 38252 83081 16065
23879 38253 83082 16065
23879 38254 83083 16065
23879 38255 83084 16065
23880 38271 83104 16066
23880 38257 83088 16066
23880 38256 83087 16066
23880 38103 83086 16066
23959 38647 83430 16131
23959 38668 83439 16131
23959 38669 83431 16131
23959 38670 83432 16131
23959 38671 83433 16131
23959 38672 83434 16131
23959 38673 83435 16131
23959 38674 83436 16131
23959 38675 83437 16131
23959 38676 83438 16131